Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artifacts are not resolved from Maven Reactor #203

Open
work-registries opened this issue May 12, 2021 · 0 comments
Open

Artifacts are not resolved from Maven Reactor #203

work-registries opened this issue May 12, 2021 · 0 comments

Comments

@work-registries
Copy link

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

a 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 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

will also cause troubles with maven-install-plugin if installAtEnd is set to true
https://maven.apache.org/plugins/maven-install-plugin/install-mojo.html#installAtEnd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant