rulesUri does not handle file: uri
----------------------------------

                 Key: MVERSIONS-167
                 URL: https://jira.codehaus.org/browse/MVERSIONS-167
             Project: Maven 2.x Versions Plugin
          Issue Type: Bug
    Affects Versions: 1.2
            Reporter: Patrick Moore


I am trying to use a maven-version-rules.xml that is local to the current 
project. When using the file: protocol I get this error message:
 Failed to configure plugin parameters for: 
org.codehaus.mojo:versions-maven-plugin:1.2
     [exec] 
     [exec]     (found static expression: 
'file:///Users/me/projects/mine/maven-version-rules.xml' which may act as a 
default value).
     [exec] 
     [exec] 
     [exec] Cause: Cannot assign configuration entry 'rulesUri' to 'class 
org.codehaus.mojo.versions.Property' from 
'file:///Users/me/projects/mine/maven-version-rules.xml', which is of type 
class java.lang.String


My pom configuration:

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>1.2</version>
<configuration>
<properties>
<rulesUri>file://${basedir}/maven-version-rules.xml</rulesUri>
</properties>
</configuration>
</plugin>

maven-version-rules.xml:


<ruleset comparisonMethod="maven">
  <rules>
    <rule groupId="c3p0" comparisonMethod="numeric"/>
  </rules>
</ruleset>


--
This message is automatically generated by JIRA.
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