In einem leeren Projekt (ohne Quellcode) habe folgende pom.xml
[XML]
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>eclipselink</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.jpa.modelgen.processor</artifactId>
<version>2.5.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
[/XML]
Wird mir ausgegeben
Scanning for projects…
Building JPAEclipseLinkMySQL 0.0.0.1-SNAPSHOT
BUILD FAILURE
Total time: 2.342s
Finished at: Tue Feb 10 17:07:41 CET 2015
Final Memory: 5M/107MFailed to execute goal on project JPAEclipseLinkMySQL: Could not resolve dependencies for project JPAEclipseLinkMySQL:JPAEclipseLinkMySQL0.0.0.1-SNAPSHOT: The following artifacts could not be resolved: javax.jms:jms1.1, com.sun.jdmk:jmxtools1.2.1, com.sun.jmx:jmxri1.2.1: Could not transfer artifact javax.jms:jms1.1 from/to java.net (https://maven-repository.dev.java.net/nonav/repository): No connector available to access repository java.net (https://maven-repository.dev.java.net/nonav/repository) of type legacy using the available factories WagonRepositoryConnectorFactory → [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.For more information about the errors and possible solutions, please read the following articles:
Builde ich es aber ohne log4j Dependency läuft alles korrekt. Ich verstehe nicht so ganz wo das Problem liegt.