You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by mouli <uc...@yahoo.com> on 2004/02/15 11:12:37 UTC
maven run:main question
When I try to run maven with maven run:main, maven
throws an error saying "run:main" not found.
I had an old version of incubator-geronimo\maven.xml
(Rev 1.46). When I did file compare with the latest
from head (Rev 1.65), I see the run section missing.
can some body tell me if maven run:main starts the
server?
The section below was from Rev 1.46 that is not in Rev
1.65
<!--
====================================================
-->
<!-- Helper to run Apache Geronimo from the
current build -->
<!--
====================================================
-->
<goal name="run">
<j:set var="run.dir"
value="${basedir}/target/${release.id}"/>
<!--
| Should really execute the system script
but for now...
-->
<j:jelly xmlns="jelly:ant">
<java
classname="org.codehaus.classworlds.Launcher"
fork="true"
maxmemory="128m"
failonerror="true"
dir="${run.dir}">
<classpath>
<pathelement
location="${run.dir}/lib/classworlds-SNAPSHOT.jar"/>
<pathelement
location="${run.dir}/lib/geronimo-core-rmiclassloaderspi.jar"/>
</classpath>
<sysproperty key="classworlds.conf"
value="${run.dir}/etc/classworlds.conf"/>
<sysproperty key="program.name"
value="maven:run"/>
<sysproperty key="twiddle.home"
value="${run.dir}"/>
<sysproperty
key="java.rmi.server.RMIClassLoaderSpi"
value="org.apache.geronimo.rmi.RMIClassLoaderSpiImpl"/>
<arg value="geronimo/start"/>
</java>
</j:jelly>
</goal>
<goal name="run:main">
<j:set var="run.dir"
value="${basedir}/target/${release.id}"/>
<j:jelly xmlns="jelly:ant">
<property environment="env"/>
<java
classname="org.apache.geronimo.kernel.Main"
fork="true"
maxmemory="256m"
failonerror="true"
dir="${run.dir}">
<classpath>
<pathelement
path="${env.JAVA_HOME}/lib/tools.jar"/>
<pathelement
path="${run.dir}/etc"/>
<fileset dir="${run.dir}/bootlib">
<include name="*.jar"/>
</fileset>
<!-- temporary addition allows RMI
to be used, such as with the JMX RMI connector -->
<pathelement
location="${run.dir}/lib/geronimo-core-rmiclassloaderspi.jar"/>
</classpath>
<sysproperty key="program.name"
value="maven:run"/>
<sysproperty key="geronimo.home"
value="file:${run.dir}/"/>
<sysproperty
key="java.rmi.server.RMIClassLoaderSpi"
value="org.apache.geronimo.rmi.RMIClassLoaderSpiImpl"/>
</java>
</j:jelly>
</goal>
<goal name="debug:main">
<j:set var="run.dir"
value="${basedir}/target/${release.id}"/>
<j:jelly xmlns="jelly:ant">
<property environment="env"/>
<java
classname="org.apache.geronimo.kernel.Main"
fork="true"
maxmemory="128m"
failonerror="true"
dir="${run.dir}">
<classpath>
<pathelement
path="${env.JAVA_HOME}/lib/tools.jar"/>
<pathelement
path="${run.dir}/etc"/>
<fileset dir="${run.dir}/bootlib">
<include name="*.jar"/>
</fileset>
<!-- temporary addition allows RMI
to be used, such as with the JMX RMI connector -->
<pathelement
location="${run.dir}/lib/geronimo-core-rmiclassloaderspi.jar"/>
</classpath>
<jvmarg value="-Xdebug"/>
<jvmarg value="-Xnoagent"/>
<jvmarg
value="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y"/>
<sysproperty key="java.compiler"
value="NONE"/>
<sysproperty key="program.name"
value="maven:run"/>
<sysproperty key="geronimo.home"
value="file:${run.dir}/"/>
<sysproperty
key="java.rmi.server.RMIClassLoaderSpi"
value="org.apache.geronimo.rmi.RMIClassLoaderSpiImpl"/>
</java>
</j:jelly>
</goal>
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
Re: maven run:main question
Posted by Kristian Köhler <Kr...@gmx.de>.
Hi
the steps to run geronimo are discribed on the wiki page:
http://wiki.apache.org/geronimo/BuildingAndRunning
for short:
you have to go to the assembly dir and run
* maven
* java -Dgeronimo.base.dir=target -jar target/bin/server.jar
target/config-store org/apache/geronimo/System org/apache/geronimo/Server
Hope this helps.
Kristian
mouli wrote:
> When I try to run maven with maven run:main, maven
> throws an error saying "run:main" not found.
>
> I had an old version of incubator-geronimo\maven.xml
> (Rev 1.46). When I did file compare with the latest
> from head (Rev 1.65), I see the run section missing.
>
> can some body tell me if maven run:main starts the
> server?
>
>
> The section below was from Rev 1.46 that is not in Rev
> 1.65
>
> <!--
> ====================================================
> -->
> <!-- Helper to run Apache Geronimo from the
> current build -->
> <!--
> ====================================================
> -->
>
> <goal name="run">
> <j:set var="run.dir"
> value="${basedir}/target/${release.id}"/>
>
> <!--
> | Should really execute the system script
> but for now...
> -->
>
> <j:jelly xmlns="jelly:ant">
> <java
>
> classname="org.codehaus.classworlds.Launcher"
> fork="true"
> maxmemory="128m"
> failonerror="true"
> dir="${run.dir}">
>
> <classpath>
> <pathelement
> location="${run.dir}/lib/classworlds-SNAPSHOT.jar"/>
> <pathelement
> location="${run.dir}/lib/geronimo-core-rmiclassloaderspi.jar"/>
> </classpath>
>
> <sysproperty key="classworlds.conf"
> value="${run.dir}/etc/classworlds.conf"/>
> <sysproperty key="program.name"
> value="maven:run"/>
> <sysproperty key="twiddle.home"
> value="${run.dir}"/>
> <sysproperty
> key="java.rmi.server.RMIClassLoaderSpi"
> value="org.apache.geronimo.rmi.RMIClassLoaderSpiImpl"/>
> <arg value="geronimo/start"/>
> </java>
> </j:jelly>
> </goal>
>
> <goal name="run:main">
> <j:set var="run.dir"
> value="${basedir}/target/${release.id}"/>
>
> <j:jelly xmlns="jelly:ant">
>
> <property environment="env"/>
> <java
> classname="org.apache.geronimo.kernel.Main"
> fork="true"
> maxmemory="256m"
> failonerror="true"
> dir="${run.dir}">
>
> <classpath>
> <pathelement
> path="${env.JAVA_HOME}/lib/tools.jar"/>
> <pathelement
> path="${run.dir}/etc"/>
> <fileset dir="${run.dir}/bootlib">
> <include name="*.jar"/>
> </fileset>
>
> <!-- temporary addition allows RMI
> to be used, such as with the JMX RMI connector -->
> <pathelement
> location="${run.dir}/lib/geronimo-core-rmiclassloaderspi.jar"/>
> </classpath>
>
> <sysproperty key="program.name"
> value="maven:run"/>
> <sysproperty key="geronimo.home"
> value="file:${run.dir}/"/>
> <sysproperty
> key="java.rmi.server.RMIClassLoaderSpi"
> value="org.apache.geronimo.rmi.RMIClassLoaderSpiImpl"/>
> </java>
> </j:jelly>
> </goal>
>
> <goal name="debug:main">
> <j:set var="run.dir"
> value="${basedir}/target/${release.id}"/>
> <j:jelly xmlns="jelly:ant">
>
> <property environment="env"/>
> <java
> classname="org.apache.geronimo.kernel.Main"
> fork="true"
> maxmemory="128m"
> failonerror="true"
> dir="${run.dir}">
>
>
> <classpath>
> <pathelement
> path="${env.JAVA_HOME}/lib/tools.jar"/>
> <pathelement
> path="${run.dir}/etc"/>
> <fileset dir="${run.dir}/bootlib">
> <include name="*.jar"/>
> </fileset>
>
> <!-- temporary addition allows RMI
> to be used, such as with the JMX RMI connector -->
> <pathelement
> location="${run.dir}/lib/geronimo-core-rmiclassloaderspi.jar"/>
> </classpath>
>
> <jvmarg value="-Xdebug"/>
> <jvmarg value="-Xnoagent"/>
> <jvmarg
> value="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y"/>
>
> <sysproperty key="java.compiler"
> value="NONE"/>
> <sysproperty key="program.name"
> value="maven:run"/>
> <sysproperty key="geronimo.home"
> value="file:${run.dir}/"/>
> <sysproperty
> key="java.rmi.server.RMIClassLoaderSpi"
> value="org.apache.geronimo.rmi.RMIClassLoaderSpiImpl"/>
>
> </java>
> </j:jelly>
> </goal>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online.
> http://taxes.yahoo.com/filing.html
>
>
--
Kristian Köhler