Maven jboss-as-client artifact is broken (trove: trove: jar: 2.1.1)

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.

+6
source share
1 answer

I think I had this problem before, and Afyk knows that "Using Deprecated Dependencies" helped me.

See http://community.jboss.org/wiki/MavenGettingStarted-Users for Using Deprecated Dependencies. Sorry, I could be wrong, but it might be worth it ... :)

Source Maven:

  <repositories> <!-- other repos here --> <repository> <id>jboss-deprecated-repository</id> <name>JBoss Deprecated Maven Repository</name> <url>https://repository.jboss.org/nexus/content/repositories/deprecated/</url> <layout>default</layout> <releases> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>false</enabled> <updatePolicy>never</updatePolicy> </snapshots> </repository> </repositories> 
+14
source

Source: https://habr.com/ru/post/891868/


All Articles