-
1. Re: ear deployment works from maven command line, but fails from IDE
andey Feb 21, 2017 10:29 AM (in response to lamikam2)Hi,
Looks like moving api module and adding dependencies as well as adding load to standealone.xml fixes it:
org/apache/logging/log4j/api/main/module.xml for the api:
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="org.apache.logging.log4j.api">
<resources>
<resource-root path="log4j-api-2.5.jar"/>
</resources>
</module>
org/apache/logging/log4j/core/main/module.xml for the core:
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="org.apache.logging.log4j.core">
<resources>
<resource-root path="log4j-core-2.5.jar"/>
</resources>
<dependencies>
<module name="org.apache.logging.log4j.api"/>
<module name="javaee.api"/>
</dependencies>
</module>
org/apache/logging/log4j/web/main/module.xml for the core:
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="org.apache.logging.log4j.web">
<resources>
<resource-root path="log4j-web-2.5.jar"/>
</resources>
<dependencies>
<module name="org.apache.logging.log4j.api"/>
<module name="org.apache.logging.log4j.core"/>
<module name="javax.servlet.api"/>
</dependencies>
</module>