geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mouli <uc_mo...@yahoo.com>
Subject maven run:main question
Date Sun, 15 Feb 2004 10:12:37 GMT
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

Mime
View raw message