2 Replies Latest reply on Feb 24, 2016 2:04 AM by aboatjboss

    Could not find artifact org.wildfly:wildfly-parent:jar:10.0.0.Final. Where is it?

    aboatjboss

      I'm trying to add server module dependencies for wildfly 10.0.0 Final in my pom but I can't find a a working repository.

      I have this in my pom:

      <dependency> <groupId>org.wildfly</groupId> <artifactId>wildfly-parent</artifactId> <version>10.0.0.Final</version> </dependency> 

      and I tried to add the jboss repository:

      <repository> <id>jboss-public-repository-group</id> <name>JBoss Public Repository Group</name> <url>http://repository.jboss.org/nexus/content/groups/public/</url> <layout>default</layout> <releases> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </snapshots> </repository> 

      and what I get is this:

      Could not find artifact org.wildfly:wildfly-parent:jar:10.0.0.Final in jboss-public-repository-group (http://repository.jboss.org/nexus/content/groups/public/

      I checked the repository. The pom is actually there but the jar at:http://repository.jboss.org/nexus/content/groups/public/org/wildfly/wildfly-parent/10.0.0.Final/wildfly-parent-10.0.0.Final.jar

      is not. Which repository should I add?

        • 1. Re: Could not find artifact org.wildfly:wildfly-parent:jar:10.0.0.Final. Where is it?
          ctomc

          Well that artifact is not of type jar but pom.

           

          But in any case you shouldn't be importing wildfly parent, as it will bring way too much stuff.

           

          for user applications one needs only deps that are provided by WildFly boms.

           

          see GitHub - wildfly/boms: Various Useful WildFly BOMs for how to use them.

          1 of 1 people found this helpful
          • 2. Re: Could not find artifact org.wildfly:wildfly-parent:jar:10.0.0.Final. Where is it?
            aboatjboss

            Thanks Tomaz,

             

            I needed some time to read into all these documents. I understand now the concept of a BOM and know how to use it but there is still something missing.

            It seems these BOMs contain only artefacts which are under control of jboss. For example they don't include commons-lang3, log4j but these libraries are shipped with wildfly (

             

            How can I make sure at runtime the commons-lang3 from the wildfly container is being used and not additionally deployed by maven.

            Can I just use:

             

            <dependency>

              <groupId>org.apache.commons</groupId>

              <artifactId>commons-lang3</artifactId>

              <version>3.0</version> // add version because it's not in the BOM

            <scope>provided</scope> // tell maven to use the containers jar

            </dependency>