You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@codehaus.org> on 2013/10/23 22:18:52 UTC
[jira] (MRELEASE-829) ${project.version} is not replaced during
release
[ https://jira.codehaus.org/browse/MRELEASE-829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte updated MRELEASE-829:
------------------------------------
Description:
I have small project with organization parent and checkstyle resources packaged as JAR and built as parent sub-module.
The checkstyle module is added as dependency to maven-checkstyle-plugin defined in parent:
{code:xml}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>code-house/checkstyle.xml</configLocation>
<failsOnError>false</failsOnError>
<failOnViolation>false</failOnViolation>
</configuration>
<dependencies>
<dependency>
<groupId>org.code-house</groupId>
<artifactId>checkstyle</artifactId>
<version>${project.version}</version>
<optional>true</optional>
</dependency>
</dependencies>
</plugin>
{code}
After release $\{project.version} is not being replaced and released pom still contains $\{project.version}. This causes usage of version from 3rd party child modules which should inherit settings from parent.
was:
I have small project with organization parent and checkstyle resources packaged as JAR and built as parent sub-module.
The checkstyle module is added as dependency to maven-checkstyle-plugin defined in parent:
{{code:java}}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>code-house/checkstyle.xml</configLocation>
<failsOnError>false</failsOnError>
<failOnViolation>false</failOnViolation>
</configuration>
<dependencies>
<dependency>
<groupId>org.code-house</groupId>
<artifactId>checkstyle</artifactId>
<version>${project.version}</version>
<optional>true</optional>
</dependency>
</dependencies>
</plugin>
{{code}}
After release ${project.version} is not being replaced and released pom still contains ${project.version}. This causes usage of version from 3rd party child modules which should inherit settings from parent.
> ${project.version} is not replaced during release
> -------------------------------------------------
>
> Key: MRELEASE-829
> URL: https://jira.codehaus.org/browse/MRELEASE-829
> Project: Maven Release Plugin
> Issue Type: Bug
> Affects Versions: 2.4
> Environment: Maven 3.0.5
> Reporter: Lukasz Dywicki
>
> I have small project with organization parent and checkstyle resources packaged as JAR and built as parent sub-module.
> The checkstyle module is added as dependency to maven-checkstyle-plugin defined in parent:
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-checkstyle-plugin</artifactId>
> <configuration>
> <configLocation>code-house/checkstyle.xml</configLocation>
> <failsOnError>false</failsOnError>
> <failOnViolation>false</failOnViolation>
> </configuration>
> <dependencies>
> <dependency>
> <groupId>org.code-house</groupId>
> <artifactId>checkstyle</artifactId>
> <version>${project.version}</version>
> <optional>true</optional>
> </dependency>
> </dependencies>
> </plugin>
> {code}
> After release $\{project.version} is not being replaced and released pom still contains $\{project.version}. This causes usage of version from 3rd party child modules which should inherit settings from parent.
--
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