[
https://issues.apache.org/jira/browse/MINVOKER-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14732435#comment-14732435
]
Karl Heinz Marbaise commented on MINVOKER-194:
----------------------------------------------
So after diving into more this...i found that the maven-plugins parent is
setting things like this:
{code:xml}
<profile>
<id>run-its</id>
<properties>
<!-- when testing with JDK9, change these values to 1.6 from cmdline -->
<invoker.maven.compiler.source>${maven.compiler.source}</invoker.maven.compiler.source>
<invoker.maven.compiler.target>${maven.compiler.target}</invoker.maven.compiler.target>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<debug>true</debug>
<projectsDirectory>src/it</projectsDirectory>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<preBuildHookScript>setup</preBuildHookScript>
<postBuildHookScript>verify</postBuildHookScript>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<settingsFile>src/it/settings.xml</settingsFile>
<pomIncludes>
<pomInclude>*/pom.xml</pomInclude>
</pomIncludes>
<properties>
<maven.compiler.source>${invoker.maven.compiler.source}</maven.compiler.source>
<maven.compiler.target>${invoker.maven.compiler.target}</maven.compiler.target>
</properties>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>install</goal>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
{code}
The lines {{properties}} seemed to be the problem, but nevertheless why only in
Maven 3.3.X ?
> wrong maven.compiler.source value in pom interpolation when run with Maven
> 3.3.x
> --------------------------------------------------------------------------------
>
> Key: MINVOKER-194
> URL: https://issues.apache.org/jira/browse/MINVOKER-194
> Project: Maven Invoker Plugin
> Issue Type: Bug
> Affects Versions: 1.8, 2.0.0
> Reporter: Hervé Boutemy
>
> when working on MPIR, I found that java-version IT failed when build run with
> with Maven 3.3.x, but not when run with Maven 3.2.x or less
> I found that
> {code:xml} <properties>
> <maven.compiler.source>1.3</maven.compiler.source>
> <maven.compiler.target>${maven.compiler.source}</maven.compiler.target>
> </properties>{code}
> is interpolated to
> {code:xml} <properties>
> <maven.compiler.source>1.3</maven.compiler.source>
> <maven.compiler.target>1.5</maven.compiler.target>
> </properties>{code}
> when the IT is run with Maven 3.3.x
> but when the IT project is not run through invoker, there is no such
> interpolation value issue, so I suppose m-invoker-p has some role when used
> in conjunction with Maven 3.3.x
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)