Issue Type: Bug Bug
Affects Versions: 1.7
Assignee: Unassigned
Created: 18/Mar/13 9:37 AM
Description:

Hello,

I want to create a new maven property to add a prefix to the qualifier.

In addition, if the version of pom does not contains the qualifier, I want that my variable be empty (and not with the string "null").

However, the "regex-property" goal does not accept the replacement value be empty.

Below, you can see the stack trace of maven:

[ERROR] Failed to execute goal org.codehaus.mojo:build-helper-maven-plugin:1.7:regex-property (parse-version) on project ref-ara-mtm-application-ear:
The parameters 'replacement' for goal org.codehaus.mojo:build-helper-maven-plugin:1.7:regex-property are missing or invalid -> [Help 1]

Below, my plugin declaration used :

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>parse-version</id>
<phase>validate</phase>
<goals>
<goal>parse-version</goal>
<goal>regex-property</goal>
</goals>

<configuration>
<name>MparsedVersion.qualifier</name>
<value>-${parsedVersion.qualifier}</value>
<regex>(null|)$</regex>
<replacement></replacement>
<failIfNoMatch>false</failIfNoMatch>
</configuration>
</execution>
</executions>
</plugin>

Project: Maven 2.x Build Helper Plugin
Priority: Major Major
Reporter: PÉRIÉ Fabien
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
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to