Just for info to other users having the same needs, I've defined this postgoal to make it work fine. Jelly code comes form patches http://jira.codehaus.org/ViewIssue.jspa?key=MPEJB-2

<postGoal name="ejb:install">

<attainGoal name="ejb:ejb-client" />

<j:set var="maven.ejb.final.client.name"
value="${maven.build.dir}/${maven.final.name}-client.jar"/>
<j:set var="artifactId_original" value="${pom.artifactId}"/>
<j:set var="artifactId_client" value="${pom.artifactId}-client"/>
<j:expr value="${pom.setArtifactId(artifactId_client)}" /> <artifact:install
artifact="${maven.ejb.final.client.name}"
type="jar"
project="${pom}"/>
<j:expr value="${pom.setArtifactId(artifactId_original)}" />
</postGoal>


Nico.


Emmanuel Venisse a écrit :


----- Original Message ----- From: "nicolas De Loof" <[EMAIL PROTECTED]>
To: "Maven Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 09, 2004 3:32 PM
Subject: ejb:ejb-client usage





Hi

I'm trying to migrate an existing project to maven. This projects has
some Ejbs, and I would like multiproject:install to build Ejb.jar AND
Ejb-client.jar. Another sub-project (webapp) has ejb-client.jar for
dependency.

When using multiproject:install, Ejb.jar is build but not
Ejb-client.jar. I can see in plugin.jelly that "ejb:ejb-client" looks
like an optional goal in the ejb plugin.

Do I need to define a postgoal to call ejb:ejb-client and
install:artifact for Ejb-client.jar or is they're any way to handle this
automatically ?



Yes or if you have a default goal for all your project, you can add an attainGoal to ejb:ejb-client.



Nico.

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






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




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



Reply via email to