I just updated the embedder guide so it's accurate now. Note that the
embedder is only for the code in trunk which is slated for 2.1.
On 31 May 07, at 9:07 PM 31 May 07, 張旭 wrote:
Thanks to Jiaqi Guo. But I also found maybe maven-embedder can give
me some
help
Thanks to Jiaqi Guo. But I also found maybe maven-embedder can give me some
help (http://maven.apache.org/guides/mini/guide-embedding-m2.html).
On 5/30/07, Jiaqi Guo [EMAIL PROTECTED] wrote:
Check $M2_HOME/bin/mvn please.
..
exec $JAVACMD \
$MAVEN_OPTS \
-classpath
Hi, everyone. Is there a way to invoking maven from java code? Thanks in
advance.
?? wrote:
Hi, everyone. Is there a way to invoking maven from java code? Thanks in
advance.
Hi ??,
Continuum does something like that. You can check out the continuum code
at https://svn.apache.org/repos/asf/maven/continuum/trunk. Then look at
Check $M2_HOME/bin/mvn please.
..
exec $JAVACMD \
$MAVEN_OPTS \
-classpath ${M2_HOME}/boot/classworlds-*.jar \
-Dclassworlds.conf=${M2_HOME}/bin/m2.conf \
-Dmaven.home=${M2_HOME} \
${CLASSWORLDS_LAUNCHER} $QUOTED_ARGS
So in a typical case, mvn compile package will be
java -cp