Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.2
-
Fix Version/s: 1.7
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Need to add into plugin.jelly something like
<j:set var="maven.ejb.final.client.name"
value="${maven.build.dir}/${maven.final.name}-client.jar"/>
<goal name="ejb:install"
prereqs="ejb:ejb,ejb:ejb-client"
description="Install the ejb in the local repository">
<artifact:install
artifact="${maven.ejb.final.name}"
type="ejb"
project="${pom}"/>
<artifact:install
artifact="${maven.ejb.final.client.name}"
type="jar"
project="${pom.client}"/>
</goal>
Not sure how to build pom.client though.
Attachments
Issue Links
| This issue is related to: | ||||
| MPEJB-18 | ejb:install-client is not working |
|
|
|
Okay I think I figured it out
<goal name="ejb:install"
prereqs="ejb:ejb,ejb:ejb-client"
description="Install the ejb in the local repository">
<artifact:install
artifact="${maven.ejb.final.name}"
type="ejb"
project="${pom}"/>
<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)}" />
</goal>