maven-users mailing list archives

+1 to "sar" goal
For the time being, is there a way within maven.xml to capture the dependency property information
for a sar.bundle element?
<dependency>
<groupId>xmlrpc</groupId>
<artifactId>xmlrpc</artifactId>
<version>2.0-a1-dev</version>
<properties>
<sar.bundle>true</sar.bundle>
</properties>
</dependency>
I'm not a jelly guru, but something to loop through the dependencies and add in those marked
for sar bundling.
-D
-----Original Message-----
From: khote [mailto:khote@mminternet.com]
Sent: Saturday, November 29, 2003 7:29 PM
To: Maven Users List
Subject: Re: .sar-goal?
This is how I've done it, kludging around with artifact:install. This was
for a HibernateService project, which comes with MBean
Command lines are imitations of jar: goals,
maven sar:sar
maven sar:install
maven sar:deploy
You can use jboss:deploy to deploy your sar from the repository or from your
dest.dir, but of course the next time JBoss restarts the deployment will no
longer exist ... that's why my deploy just copies into the
$JBOSS_HOME/server/(conf)/deploy
<goal name="sar:sar"
description="Create the deliverable SAR file.">
<attainGoal name="jar"/>
<!-- Rename the .jar to .sar -->
<j:set var="maven.sar.final.name"
value="${maven.build.dir}/${maven.final.name}.sar"/>
<move file="${maven.build.dir}/${maven.final.name}.jar"
tofile="${maven.build.dir}/${maven.final.name}.sar"
overwrite="true"
verbose="true"
/>
</goal>
<goal name="sar:install" prereqs="sar:sar"
description="Install the SAR in the local repository">
<j:set var="maven.sar.final.name"
value="${maven.build.dir}/${maven.final.name}.sar"/>
<artifact:install
artifact="${maven.sar.final.name}"
type="sar"
project="${pom}"
/>
</goal>
<goal name="sar:deploy" prereqs="sar:undeploy,sar:sar">
<j:set var="maven.sar.final.name"
value="${maven.build.dir}/${maven.final.name}.sar"/>
<j:set var="maven.sar.deploy.name"
value="${maven.jboss.deploy.dir}/${maven.final.name}.sar"/>
<copy
file="${maven.sar.final.name}"
todir="/usr/java/jboss/server/default/deploy"
overwrite="true"
/>
</goal>
----- Original Message -----
From: "Peter Neubauer" <peter_neubauer2001@yahoo.se>
To: <users@maven.apache.org>
Sent: Saturday, November 29, 2003 11:20 AM
Subject: .sar-goal?
> Hi,
> I'm trying to deploy a module as an MBean to jboss. It seems that I have
to
> create a .sar file that contains the .jar and some jboss-service.xml. Is
> there any plugin like the .ear, .war etc. plugins that supports this?
>
> Thanks for a great product - the Wagon plugin will take maven everywhere.
We
> are already using a borland-cpp-builder plugin for a project, and the
> benefits of maven over any commercial building product are huge!
>
> /peter
>
>
> ---------------------------------------------------------------------
> 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