In meinem JSF-Projekt widerspiegeln. Wie kann ich mysql-Bibliotheken in maven Abhängigkeit hinzufügen? Ich versuche zu kopieren und einzufügen. Es sagt, dass ich nicht tun kann. Ich habe auch versucht, Bibliothek im Build-Pfad hinzuzufügen. Es hat nicht funktioniert. Ich benutze Eclipse. This is my maven treeMaven Abhängigkeiten nicht in Eclipse-Projekt
Das ist mein pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>jsflab</groupId>
<artifactId>jsflab</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<warSourceDirectory>WebContent</warSourceDirectory>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.richfaces</groupId>
<artifactId>richfaces</artifactId>
<version>4.5.0.Final</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-validator -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.6</version>
</dependency>
</dependencies>
</project>
fügen Sie Ihre Pom-Datei hier, derzeit scheint es, dass Ihre Pom enthält keine mysql Gläser – kuhajeyan
Ich teilte meine pom.xml @ Kuhajeyan –