You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an artifact is resolved, e.g. for a module.xml <artifact name="${org.wildfly.extras.wildfly-feature-pack-template:template-subsystem}"/> it will not be resolved using the Maven Reactor
if built not with mvn install, but instead with mvn package, the build will fail, because the artifacts are only available via the maven reactor and are not installed into the local repository Caused by: org.jboss.modules.ModuleLoadException: Error loading module from /tmp/git/wildfly-feature-pack-template/feature-pack/target/wildfly/modules/system/layers/base/org/wildfly/extension/template-subsystem/main/module.xml at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:337) at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:293) at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:254) at org.jboss.modules.LocalModuleFinder.parseModuleXmlFile(LocalModuleFinder.java:250) at org.jboss.modules.LocalModuleFinder.lambda$findModule$1(LocalModuleFinder.java:195) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.modules.LocalModuleFinder.findModule(LocalModuleFinder.java:195) at org.jboss.modules.ModuleLoader.findModule0(ModuleLoader.java:696) at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:689) at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:499) at org.jboss.modules.DelegatingModuleLoader.preloadModule(DelegatingModuleLoader.java:57) at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:295) at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:283) at org.jboss.as.controller.parsing.DeferredExtensionContext.loadModule(DeferredExtensionContext.java:111) ... 10 more Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to resolve artifact 'org.wildfly.extras.wildfly-feature-pack-template:template-subsystem:1.0.0.Alpha-SNAPSHOT' (position: END_TAG seen ...pack-template:template-subsystem:1.0.0.Alpha-SNAPSHOT"></artifact>... @22:126) at org.jboss.modules.xml.ModuleXmlParser.parseArtifact(ModuleXmlParser.java:1050) at org.jboss.modules.xml.ModuleXmlParser.parseResources(ModuleXmlParser.java:937) at org.jboss.modules.xml.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:697) at org.jboss.modules.xml.ModuleXmlParser.parseDocument(ModuleXmlParser.java:469) at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:335) ... 23 more
If an artifact is resolved, e.g. for a module.xml
<artifact name="${org.wildfly.extras.wildfly-feature-pack-template:template-subsystem}"/>
it will not be resolved using the Maven Reactora very simple example is wildfly's own wildfly-feature-pack-template:
https://github.com/wildfly/wildfly-feature-pack-template
if built not with
mvn install
, but instead withmvn package
, the build will fail, because the artifacts are only available via the maven reactor and are not installed into the local repositoryCaused by: org.jboss.modules.ModuleLoadException: Error loading module from /tmp/git/wildfly-feature-pack-template/feature-pack/target/wildfly/modules/system/layers/base/org/wildfly/extension/template-subsystem/main/module.xml at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:337) at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:293) at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:254) at org.jboss.modules.LocalModuleFinder.parseModuleXmlFile(LocalModuleFinder.java:250) at org.jboss.modules.LocalModuleFinder.lambda$findModule$1(LocalModuleFinder.java:195) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.modules.LocalModuleFinder.findModule(LocalModuleFinder.java:195) at org.jboss.modules.ModuleLoader.findModule0(ModuleLoader.java:696) at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:689) at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:499) at org.jboss.modules.DelegatingModuleLoader.preloadModule(DelegatingModuleLoader.java:57) at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:295) at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:283) at org.jboss.as.controller.parsing.DeferredExtensionContext.loadModule(DeferredExtensionContext.java:111) ... 10 more Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to resolve artifact 'org.wildfly.extras.wildfly-feature-pack-template:template-subsystem:1.0.0.Alpha-SNAPSHOT' (position: END_TAG seen ...pack-template:template-subsystem:1.0.0.Alpha-SNAPSHOT"></artifact>... @22:126) at org.jboss.modules.xml.ModuleXmlParser.parseArtifact(ModuleXmlParser.java:1050) at org.jboss.modules.xml.ModuleXmlParser.parseResources(ModuleXmlParser.java:937) at org.jboss.modules.xml.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:697) at org.jboss.modules.xml.ModuleXmlParser.parseDocument(ModuleXmlParser.java:469) at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:335) ... 23 more
will also cause troubles with
maven-install-plugin
ifinstallAtEnd
is set totrue
https://maven.apache.org/plugins/maven-install-plugin/install-mojo.html#installAtEnd
The text was updated successfully, but these errors were encountered: