I have Multi Module Maven Project and in the parent pom.xml
I am importing Wildfly dependency like below -
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-parent</artifactId>
<version>21.0.2.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
When I try to run mvn install
the sub modules start failing with compilation errors -
package javax.servlet.http does not exist
package org.apache.commons.beanutils does not exist
package javax.xml.ws does not exist
package javax.mail does not exist
package javax.mail.internet does not exist
Note: I have not mentioned any dependencies in the child pom.xml
.
If we check the Wildfly Server zip all these jars are present under the modules directory, so probably they should get downloaded via maven as well.
I read other posts also on StackOverflow like How to use jars from Wildfly correctly in Maven? , but it didn't help much.
Please let me know if I am missing something or doing things wrongly.