You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2016/01/12 21:12:46 UTC

[jira] [Closed] (MRELEASE-803) Inner profile properties for artifact versions block release

     [ https://issues.apache.org/jira/browse/MRELEASE-803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed MRELEASE-803.
-----------------------------------
    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 persists, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.

> Inner profile properties for artifact versions block release
> ------------------------------------------------------------
>
>                 Key: MRELEASE-803
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-803
>             Project: Maven Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.3.2
>            Reporter: Robert Scholte
>
> From {{maven-invoker-plugin-1.8-SNAPSHOT}}
> {code:xml}
> <project>
> ...
>   <profiles>
>     <profile>
>       <id>run-its</id>
>       <properties>
>         <sitePluginVersion>3.1</sitePluginVersion>
>         <invokerPluginVersion>1.6</invokerPluginVersion> <!-- 1.7 is missing the groovy XmlSlurper -->
>       </properties>
>       <build>
>         <pluginManagement>
>           <plugins>
>             <plugin>
>               <artifactId>maven-invoker-plugin</artifactId>
>               <version>${invokerPluginVersion}</version>
>               <configuration>
>                 <debug>true</debug>
>                 <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>
>                 <mavenOpts>-Djava.io.tmpdir=${project.build.directory}</mavenOpts>
>                 <goals>
>                   <goal>clean</goal>
>                   <goal>initialize</goal>
>                 </goals>
>               </configuration>
>             </plugin>
>           </plugins>
>         </pluginManagement>
>       </build>
>     </profile>
>   </profiles>
> </project>
> {code}
> The plugin discovers the invoker-plugin with a property-based version, but can't find the property because it only collects the {{project.properties}}.
> The plugin should at least add the properties of the declaring profile.
> Workaround: move the property from profile-scope to project-scope.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)