-
1. Re: Could not find artifact org.wildfly:wildfly-parent:jar:10.0.0.Final. Where is it?
ctomc Feb 19, 2016 8:13 AM (in response to aboatjboss)1 of 1 people found this helpfulWell 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.
-
2. Re: Could not find artifact org.wildfly:wildfly-parent:jar:10.0.0.Final. Where is it?
aboatjboss Feb 24, 2016 2:04 AM (in response to ctomc)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>