[
https://issues.apache.org/jira/browse/MINVOKER-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MINVOKER-153.
-----------------------------------
Resolution: Auto Closed
This issue has been auto closed because it has been inactive for a long period
of time. If you think this issue still applies, retest your problem with the
most recent version of Maven and the affected component, reopen and post your
results.
> @project.version@ is not substituted if it comes form invoked test parent
> -------------------------------------------------------------------------
>
> Key: MINVOKER-153
> URL: https://issues.apache.org/jira/browse/MINVOKER-153
> Project: Maven Invoker Plugin
> Issue Type: Bug
> Affects Versions: 1.8
> Reporter: Andrei Pozolotin
> Priority: Major
>
> 1) here is a parent:
> https://github.com/barchart/barchart-archon/blob/master/pom.xml
> 2) here is a app project under verify, which extends from parent:
> https://github.com/barchart/barchart-service/blob/master/barchart-karaf-base-app/pom.xml
> 3) here is verification test for the app project
> https://github.com/barchart/barchart-service/blob/master/barchart-karaf-base-app/verify/verify/pom.xml
> NOTE: parent has 2 profiles which supposed to provide "integrationVersion"
> depending if working in IDE or building in Jenkins:
> https://github.com/barchart/barchart-archon/blob/master/pom.xml#L1282
> {code}
> <!-- ================================ -->
> <!-- Properties for developer-interactive / manual mode. -->
> <profile>
> <id>build-human</id>
> <activation>
> <property>
> <name>!env.JENKINS_HOME</name>
> </property>
> </activation>
> <properties>
> <!-- provided by developer -->
>
> <projectIntegrationVersion>${integrationVersion}</projectIntegrationVersion>
>
> <bundle.manifest.testing.phase>process-ignored</bundle.manifest.testing.phase>
> </properties>
> </profile>
> <!-- Properties for continuous-integration / automatic mode. -->
> <profile>
> <id>build-robot</id>
> <activation>
> <property>
> <name>env.JENKINS_HOME</name>
> </property>
> </activation>
> <properties>
> <!-- provided by invoker plug-in -->
>
> <projectIntegrationVersion>@project.version@</projectIntegrationVersion>
>
> <bundle.manifest.testing.phase>process-classes</bundle.manifest.testing.phase>
> </properties>
> </profile>
> {code}
> PROBLEM:
> when @project.version@ is mentioned in parent, it will not get substituted.
> WORK AROUND:
> need to copy/paste profiles from parent to verification project.
> SOLUTION:
> @project.version@ should be substituted everywhere.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)