Hi,

Eval method will not help understanding maven much, it is just a script
that pass some arguments to a main java.

You should find more information on what get executed here :
https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

You should also take a look at some of the maven books :
https://maven.apache.org/articles.html




On Mon, Feb 24, 2014 at 3:16 PM, enrique bernal ruiz
<kbernalr...@gmail.com>wrote:

> Hello! And thank you so much for your help.
> I am working(starting) with it, and i am trying to understand it. What mvn
> does when i call mvn run for example, i mean, I have a collection of mvn
> plugins and what i want to know is, where mvn knows that i am calling a mvn
> plugin in: mvn run for example. How mvn knows i am adding a parameter like
> run and where mvn identifies that run is a parameter added to it.
> And if it possible a brief explanation of the eval method, it would be
> great!
>
> Sorry abour my english.
>
> Thanks again.
>
>
>
> 2014-02-24 14:42 GMT+01:00 Baptiste Mathus <m...@batmat.net>:
>
> > What are you trying to do actually? Plugin development? Understanding
> Maven
> > to patch it? Just want to use it and stuck somewhere?
> >
> >
> > 2014-02-24 13:25 GMT+01:00 enrique bernal ruiz <kbernalr...@gmail.com>:
> >
> > > I am novice using mvn and having a look to /usr/bin/mvn, I can see the
> > eval
> > > method, but I can not understand where the mojo is called.
> > > Please can anyone explain how the eval method works?
> > > I would be very pleased if someone could help me.
> > >
> > > ////////////////////That is my eval
> > > method/////////////////////////////////////
> > >
> > > eval "${JAVACMD}" \
> > >   ${MAVEN_OPTS} \
> > >   -classpath "${CLASSWORLDS_JAR}" \
> > >   "-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
> > >   "-Dmaven.home=${M2_HOME}"  \
> > >   "-Dos.arch=`uname -m`" \
> > >   ${CLASSWORLDS_LAUNCHER} $(${QUIET_FLAG} && echo \-q)
> $(${OFFLINE_FLAG}
> > &&
> > > echo \-o) ${QUOTED_ARGS} ${MAVEN_ARGS}
> > >
> > > --
> > > Baptiste <Batmat> MATHUS - http://batmat.net
> > > Sauvez un arbre,
> > > Mangez un castor ! nbsp;!
> >
>



-- 
Adrien Rivard

Reply via email to