I am having serious problems with a new computer that is setting up my existing maven project. Eclipse complains dozens of times about missing artifacts:
Missing artifact junit:junit:jar:4.8.2:test Missing artifact org.slf4j:slf4j-log4j12:jar:1.5.5:compile Missing artifact org.slf4j:slf4j-api:jar:1.5.5:compile Missing artifact log4j:log4j:jar:1.2.14:compile ...
When downloading files for a local repository, I come across the following message (running mvn compile :
Downloading: http://repository.jboss.org/maven2/trove/trove/2.1.1/trove-2.1.1.pom Downloading: http://repository.jboss.org/maven2/trove/trove/2.1.1/trove-2.1.1.pom .... [ERROR] ... Failed to read artifact descriptor for trove:trove:jar:2.1.1: Could not transfer artifact trove:trove:pom:2.1.1 from/to jboss (http://repository.jboss.org/maven2): Access denied to: http://repository.jboss.org/maven2/trove/trove/2.1.1/trove-2.1.1.pom
I followed the instructions of http://community.jboss.org/wiki/MavenSettings and used the public repository:
<repository> <id>jboss-public-repository</id> <name>JBoss Repository</name> <url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>> </repository>
Responsible addiction in my project
<dependency> <groupId>org.jboss.jbossas</groupId> <artifactId>jboss-as-client</artifactId> <version>6.0.0.Final</version> <type>pom</type> </dependency>
The problem seems to be related to https://issues.jboss.org/browse/JBBUILD-682 , but since the repository URL is unlikely to be fixed, I'm looking for a workaround! I do not encounter this problem on other machines, but this happens if the maven repository is deleted and restored.
source share