Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid need for colon in property names #5

Open
seanf opened this issue Sep 12, 2013 · 1 comment
Open

Avoid need for colon in property names #5

seanf opened this issue Sep 12, 2013 · 1 comment

Comments

@seanf
Copy link

seanf commented Sep 12, 2013

I would like to override a plugin version when building on my local machine. This works on the command line:

 mvn compile -DpluginVersion:org.codehaus.groovy:groovy-eclipse-compiler=2.9.0-01-SNAPSHOT

but this is not legal XML for ~/.m2/settings.xml because of the need for colons in the element name:

  <properties>
    <pluginVersion:org.codehaus.groovy:groovy-eclipse-compiler>2.9.0-01-SNAPSHOT</pluginVersion:org.codehaus.groovy:groovy-eclipse-compiler>
  </properties>

Could you please provide an alternative syntax where the property names are legal in XML?

@seanf
Copy link
Author

seanf commented Sep 12, 2013

Correction, this doesn't work on the command line either:

 mvn compile -DpluginVersion:org.codehaus.groovy:groovy-eclipse-compiler=2.9.0-01-SNAPSHOT

but that's because groovy-eclipse-compiler is a dependency of maven-compiler-plugin, not a top-level plugin. See http://docs.codehaus.org/display/GROOVY/Groovy-Eclipse+compiler+plugin+for+Maven and also issue #6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant