io.fabric8 fabric8-maven-plugin fabric8-zip build fails when version passed as argument
Issue
- I am trying to pass arguments while building the multi-maven project code which has a parent pom. The properties are available and to be replaced in the parent profile.
- I initially compiled the parent profile with the arguments, then started compiling the project. But while it runs the profiles module/pom, it fails with the following error:
[ERROR] Non-resolvable import POM: Failure to find org.jboss.fuse.bom:jboss-fuse-parent:pom:${my.bom.version} in http://hostname/artifactory/remote-repos was cached in the local repository, resolution will not be reattempted until the update interval of remote-repos has elapsed or updates are forced @ groupId:artifactId:2.0.1,
- In the code(not sure if Redhat version has the same issue). I found that the supplied arguments are not used for 'install' phase whereas used for 'deploy' phase as below.
request.setProperties(getProject().getProperties());
- I am not sure if this is the issue but updating if this link will help the investigation.
Command used to build: C:\Users\someuser\git\ProjectABC>C:\Users\someuser\Downloads\apache-maven-3.5.4-bin\apache-maven
-3.5.4\bin\mvn.cmd clean install -Dmy.fabric8.version=1.2.0.redhat-630283 -Dmy.bom.version=6.3.0.redhat-283 -Dmy.cxf.ver
sion=3.1.5.redhat-630283 -Dmy.camel.version=2.17.0.redhat-630283 -Dmy.fabric.version=1.2.0.redhat-630283 -Dmy.activemq.v
ersion=5.11.0.redhat-630283 -Dmy.karaf.version=2.4.0.redhat-630283 -Dmaven.test.skip=true
Environment
- Red Hat JBoss Fuse
- 6.2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
