maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Connolly <stephen.alan.conno...@gmail.com>
Subject Re: release plugin, different executable name ('mvn3')
Date Tue, 14 May 2013 10:16:01 GMT
try the two valid values.

should be possible to configure it via the CLI

e.g.

mvn -DmavenExecutorId=forked-path -Ddry-run=true release:prepare
mvn -DmavenExecutorId=invoker -Ddry-run=true release:prepare

Though if the <configuration> for the release plugin in your pom.xml or a
parent pom.xml is setting the value you will likely need to edit the
pom.xml to change the value.



On 14 May 2013 11:11, José Manuel Castroagudín Silva <
chavescesures@gmail.com> wrote:

> "This seems to be a general maven problem, not a release plugin problem."
>
> Might be. However, right now, my problem seems to be that the release
> plugin is, or seems to be, trying to spawn a new 'mvn' process. And it's
> trying to launch ${maven.home}/bin/mvn (which does not exist).
>
> So I thought that maybe this specific plugin could have some parameter,
> property, or any mean to be told which executable to use. It would make
> sense, if it's really spawning a new maven process.
>
> @Stephen : I'm sorry, but I don't get what should I do with that
> mavenExecutorId parameter. I already had seen it before, but I couldn't
> figure out how to use it. I searched for some documentation, or
> configuration examples, or anything, and have just found this: [1] (which
> seems not very helpful, at least for me) . As I said, I'm fairly new with
> maven, and this might be something trivial for experienced users, so if
> someone could point me out to some documentation on how to use that
> parameter, i'd really appreciate it.
>
> [1] ->
>
> http://maven.apache.org/maven-release/maven-release-manager/apidocs/org/apache/maven/shared/release/exec/MavenExecutor.html
>
> Thank you all,
>
>
> 2013/5/14 Graham Leggett <minfrin@sharp.fm>
>
> > On 14 May 2013, at 10:02 AM, José Manuel Castroagudín Silva <
> > chavescesures@gmail.com> wrote:
> >
> > > This is what I'm seeing:
> > >
> > > [ERROR] Failed to execute goal
> > > org.apache.maven.plugins:maven-release-plugin:2.4.1:prepare
> > > (default-cli) on project <project>: Failed to invoke Maven build.
> > > Error configuring command-line. Reason: Maven executable not found at:
> > > <maven.home>/bin/mvn -> [Help 1]
> > >
> > > (some specific details edited out)
> > >
> > > I was assuming that was the default behavior (as seen on
> > > http://jira.codehaus.org/browse/MRELEASE-428 ).
> >
> > While maven doesn't care about the name of the executable used to run
> > maven, maven does care that MAVEN_HOME follows the correct structure, and
> > it looks like MAVEN_HOME isn't correctly laid out, most specifically that
> > the bin directory exists and has an "mvn" script in it.
> >
> > In our case we have packaged maven to have an out-the-box MAVEN_HOME
> > structure, and then symlinked /usr/bin/mvn3 to ${MAVEN_HOME}/bin/mvn, and
> > that worked for us.
> >
> > This seems to be a general maven problem, not a release plugin problem.
> >
> > Regards,
> > Graham
> > --
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Saúde,
>
> J. M. Castroagudín
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message