maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boris Ekelchik <Boris.Ekelc...@DigitalInsight.com>
Subject RE: Weblogic ejbgen task
Date Mon, 18 Aug 2003 17:31:08 GMT
I use:
    <preGoal name="ejb:init">
        <attainGoal name="java:compile"/>

        <java classname="weblogic.appc" fork="true">
            <classpath>
                <pathelement location="${weblogic.jar}"/>
                <pathelement location="${java.tools.jar}"/>
                <pathelement location="${maven.build.dir}/classes"/>
            </classpath>
            <arg value="${maven.ejb.src}"/>
        </java>
...
in maven.xml for EJB project

appc is the replacement for ejbc in 8.1 I think.

And for deployment:

    <goal name="weblogic:deploy-ejb" description="Deploy
${maven.final.name}.jar">
        <attainGoal name="ejb:ejb"/>

        <java classname="weblogic.Deployer" fork="true">
            <classpath>
                <pathelement
location="${weblogic.home}/server/lib/weblogic.jar"/>
            </classpath>
            <arg value="-deploy"/>
            <arg value="-targets"/>
            <arg value="${weblogic.target.server.names}"/>
            <arg value="-name"/>
            <arg value="${pom.artifactId}"/>
            <arg value="-adminurl"/>
            <arg value="${weblogic.admin.url}"/>
            <arg value="-username"/>
            <arg value="${weblogic.admin.username}"/>
            <arg value="-password"/>
            <arg value="${weblogic.admin.password}"/>
            <arg value="${maven.build.dir}/${maven.final.name}.jar"/>
        </java>
    </goal>

Get the job done, though plug-in would be nice.

-----Original Message-----
From: Emmanuel Boudrant [mailto:eboudrant@noos.fr] 
Sent: Monday, August 18, 2003 11:29 AM
To: users@maven.apache.org
Subject: Weblogic ejbgen task

Does anybody try to launch the weblogic 8.1 ejbgen ant task inside a maven
plugin ? 

I've got this error :

BUILD FAILED
File...... file:/D:/eclipse/workspace/g-contact/
Element... ant:wlappc
Line...... 104
Column.... 35
java.lang.NullPointerException
Total time:  10 seconds

By the way, is there any weblogic plugin planned for maven ;)


Thx,
-emmanuel



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message