Hello,
I am busy converting our complete build process from Maven 1 to Maven 2.
One of my tasks is to migrate our custom Maven 1 build plugin to the
Maven 2 format. In this latter plugin, I wrote an Ant-based mojo that
invokes the Weblogic WLI wlwbuild task. However, I failed to correctly
configure the classpath to this task up to now. Here are the contents of
the wlibuild.build.xml Ant file:
<project>
<target name="wliBuild">
<echo>Hello, wli</echo>
<path id="server.class.path">
<pathelement
path="${weblogicHome}/workshop/wlw-ide.jar" />
<fileset dir="${weblogicHome}/workshop/lib">
<include name="**/*.jar" />
</fileset>
<fileset dir="${weblogicHome}/server/lib">
<include name="**/*.jar" />
</fileset>
</path>
<taskdef name="wlwBuild"
classname="workshop.core.WlwBuildTask">
<classpath>
<pathelement
path="${weblogicHome}/workshop/wlw-ide.jar" />
</classpath>
</taskdef>
<wlwBuild work="${workFile}"
serverclasspath="${weblogicHome}/server/lib/wli.jar;${weblogicHome}/serv
er/lib/xbean.jar;${weblogicHome}/server/lib/weblogic.jar;"
maxmemory="512m" logDir="${targetDirectory}">
<classpath>
<!-- project dependencies here, how?
-->
</classpath>
<build outputdir="${targetDirectory}"
outputfilename="${targetEarName}" noear="${noEar}" />
<sysproperty key="workshop.home"
value="${weblogicHome}/workshop">
</sysproperty>
</wlwBuild>
</target>
</project>
While the mojo is defined in the maven2.plugin project, in the our
custom build plugin, I want to pass the classpath to the dependencies of
the project in which this mojo is invoked. E.g. if I invoke this mojo in
project srv.service.common, then I want the compile-time dependencies of
srv.service.common being passed as the classpath setting of the wlwBuild
Ant task. What do I have to write in place of the XML comment above?
Let me clarify that I have been searching the user and developer for a
number of hours, read through a lot of posts, but still couldn't get it
to work!
Ringo De Smet
*************************************************************
Dit e-mail bericht inclusief eventuele ingesloten bestanden kan informatie
bevatten die vertrouwelijk is en/of beschermd door intellectuele
eigendomsrechten. Dit bericht is uitsluitend bestemd voor de geadresseerde(n).
Elk gebruik van de informatie vervat in dit bericht (waaronder de volledige of
gedeeltelijke reproductie of verspreiding onder elke vorm) door andere personen
dan de geadresseerde(n) is verboden. Indien u dit bericht per vergissing heeft
ontvangen, gelieve de afzender hiervan te verwittigen en dit bericht te
verwijderen.
This e-mail and any attachment thereto may contain information which is
confidential and/or protected by intellectual property rights and are intended
for the sole use of the addressees. Any use of the information contained herein
(including but not limited to total or partial reproduction or distribution in
any form) by other persons than the addressees is prohibited. If you have
received this e-mail in error, please notify the sender and delete its contents.
Ce courriel et les annexes éventuelles peuvent contenir des informations
confidentielles et/ou protégées par des droits de propriété intellectuelle. Ce
message est adressé exclusivement à son (ses) destinataire(s). Toute
utilisation du contenu de ce message (y compris la reproduction ou diffusion
partielle ou complète sous toute forme) par une autre personne que le(s)
destinataire(s) est formellement interdite. Si vous avez reçu ce message par
erreur, veuillez prévenir l'expéditeur du message et en détruire le contenu.
*************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]