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

Command-line parameter for gem-maven-plugin? #16

Open
garretwilson opened this issue Jun 18, 2011 · 2 comments
Open

Command-line parameter for gem-maven-plugin? #16

garretwilson opened this issue Jun 18, 2011 · 2 comments

Comments

@garretwilson
Copy link

I'm trying to upgrade a legacy Maven project that calls Ruby scripts as part of the build. The project doesn't work on Windows because it directly references .rb files. I tried using the gem-maven-plugin version 0.25.1 (because 0.27.0 is broken; see issue 11) with e.g.:

${project.basedir}/bin/autopatch.rb ${test.config}

Unfortunately the plugin thinks that the whole thing is a file and tries to open it, giving a file-not-found error. The second part is actually a command-line parameter, but I didn't see any options for adding a parameter. Is there such an option---or can one be added?

@mkristian
Copy link
Member

I guess you are referring to the exec goal ?

mvn de.saumya.mojo:gem-maven-plugin:0.25.1:help -Ddetail -Dgoal=exec
will give you an overview of the possible parameters you can use.

there is a command parameter which is used by ALL jruby maven plugins goals: 'args' either as command line property or as configuration parameter within the pom.

so a config like

${project.basedir}/bin/autopatch.rb
${test.config}

will do.

if you need more please speak up - any real world usecase is welcome ;-)

@mkristian
Copy link
Member

huups, my xml tags do not show up on github but they do show inside the email - at least ;-)

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

2 participants