Andrei Pozolotin created MINVOKER-153:
-----------------------------------------

             Summary: @project.version@ is not substituted if it comes form 
invoked test parent
                 Key: MINVOKER-153
                 URL: https://jira.codehaus.org/browse/MINVOKER-153
             Project: Maven 2.x Invoker Plugin
          Issue Type: Bug
    Affects Versions: 1.8
            Reporter: Andrei Pozolotin


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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to