I have extended the Weblogic plugin to support builds and cleans of workshop
projects.  It is based off of the project file.   I can provide it to you if
you like.  It is very specific to the BEA setup of projects but uses the
project.xml file and maven.xml as well as all the default maven locations to
handle building and dependencies.  I am planning on extending the existing
Weblogic plugin to include this functionality just have not had time to
check it in.

Scott Damon Ryan
Developer
(720) 514-5389
[EMAIL PROTECTED]

-----Original Message-----
From: Louis Sacco [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 21, 2005 5:47 PM
To: [email protected]
Subject: FW: How to convert WLWBuild ANT script to maven

Hi all,

 

I would like to convert our large ANT build scripts into maven scripts.
I've looked the weblogic maven plug-in, but this deals more with
deployment.  What I'm wondering about is building.

 

The default script is an ANT script that weblogic creates uses their
wlwBuildTask (which is very convenient) as follows:

 

************************************************************************
************

<?xml version="1.0" encoding="UTF-8"?>

<project name="WLW build" default="build">

   <property name="weblogic.home" value="C:/bea/weblogic81"/>

   <property name="app.dir" value="C:/Documents and Settings/ls97241/My
Documents/PVCS/Source/Modules/Claim/Java/Claim/BEA"/>

   <property name="work.file" value="Claim.work"/>

   <property name="output.file" value="Claim.ear"/>

   <property name="output.dir" value="."/>

   <property name="server.classpath"
value="${weblogic.home}/../jdk142_04/jre/lib/rt.jar;${weblogic.home}/../
jdk142_04/jre/lib/jsse.jar;${weblogic.home}/../jdk142_04/jre/lib/jce.jar
;${weblogic.home}/../jdk142_04/lib/tools.jar;C:/jars/aopalliance.jar;C:/
jars/cglib-full-2.0.2.jar;C:/jars/commons-collections.jar;C:/jars/common
s-httpclient-2.0.jar;C:/jars/commons-logging.jar;C:/jars/dom4j-1.4.jar;C
:/jars/hibernate2.jar;C:/jars/spring.jar;C:/jars/aspectjrt-1.1.1.jar;C:/
jars/commons-lang-2.0.jar;C:/jars/commons-beanutils.jar;C:/jars/commons-
httpclient-2.0.1.jar;C:/jars/ehcache-0.9.jar;C:/jars/jta.jar;C:/jars/odm
g-3.0.jar;C:/jars/ojdbc14.jar;${weblogic.home}/server/lib/knex.jar;${web
logic.home}/common/lib/log4j.jar;${weblogic.home}/server/lib/debugging.j
ar;${weblogic.home}/javelin/lib/javelin.jar;${weblogic.home}/server/lib/
wlw-lang.jar;${weblogic.home}/server/lib/weblogic.jar;${weblogic.home}/c
ommon/eval/pointbase/lib/pbserver44.jar;${weblogic.home}/common/eval/poi
ntbase/lib/pbclient44.jar;${weblogic.home}/server/lib/webservices.jar;${
weblogic.home}/server/lib/webserviceclient.jar;${weblogic.home}/server/l
ib/webserviceclient+ssl.jar;${weblogic.home}/server/lib/wli.jar;${weblog
ic.home}/server/lib/xbean.jar;${weblogic.home}/server/lib/wlxbean.jar;${
weblogic.home}/server/lib/xqrl.jar;${weblogic.home}/server/lib/netui/net
ui-compiler.jar"/>

   <taskdef name="wlwBuild" classname="workshop.core.WlwBuildTask"
classpath="${weblogic.home}/workshop/wlw-ide.jar"/>

   <target name="build">

      <wlwBuild work="${app.dir}/${work.file}"
serverclasspath="${server.classpath}">

         <build outputdir="${output.dir}"
outputfilename="${output.file}"/>

      </wlwBuild>

   </target>

   <target name="clean">

      <!-- Cleans the full application. -->

      <wlwBuild work="${app.dir}/${work.file}" operation="clean"/>

   </target>

</project>

************************************************************************
************

 

I have attempted to convert this to a maven.xml file I get class not
found errors on GenericClassLoader.  Here's what I attempted to do in
the maven.xml file:

 

************************************************************************
************

<project default="wlwBuildClaim" xmlns:j="jelly:core"
xmlns:m="jelly:maven" xmlns:ant="jelly:ant" xmlns:deploy="deploy">

   <ant:taskdef name="wlwBuild" classname="workshop.core.WlwBuildTask">

      <ant:classpath>

         <ant:path refid="maven.dependency.classpath"/>

           <ant:pathelement
location="${plugin.getDependencyPath('weblogic:wlw-ide')}"/>

      </ant:classpath> 

   </ant:taskdef>

   <goal name="wlwBuildClaim">

      <wlwBuild
work="D:/Maven_BLD/Source/Modules/Claim/Java/Claim/BEA/claim.work"
serverclasspath="maven.dependency.classpath">      

         <build
outputdir="D:/Maven_BLD/Source/Modules/Claim/Java/Claim/BEA/"
outputfilename="claim.ear"/>

      </wlwBuild>

   </goal>

</project>

************************************************************************
************

 

I have set the dependencies in my project.xml to include all the jars
indicated in the original ANT script.  I don't understand what I'm doing
wrong.  Can anyone point me in the right direction to accomplish this
with maven?  Using wlwBuild seems the path of least resistance.  Please
let me know otherwise.

 

Thanks,

Lou


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to