[ http://jira.codehaus.org/browse/MPEJB-19?page=all ]
     
Fredrik Vraalsen reopened MPEJB-19:
-----------------------------------


In this case, I run into a problem because the ejb and ejb client files have 
the same artifact id, meaning that I cannot depend on both (Maven will choose 
the one with the highest version number).

Take for example this EAR project.xml file, which ends up not including the 
client jar since 1.0-SNAPSHOT is a higher version than 1.0-SNAPSHOT-client:

<?xml version='1.0' ?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns="http://maven.apache.org/POM/3.0.0"; 
xsi:schemaLocation="http://maven.apache.org/POM/3.0.0 
http://maven.apache.org/maven-v3_0_0.xsd";>
        <extend>${basedir}/../../project.xml</extend>
        <groupId>sintef</groupId>
        <artifactId>asset-repository-ear</artifactId>
        <name>Asset repository EAR</name>
        <currentVersion>1.0-SNAPSHOT</currentVersion>
        <inceptionYear>2005</inceptionYear>
        <dependencies>
                <dependency>
                        <groupId>sintef</groupId>
                        <artifactId>asset-repository-ejb</artifactId>
                        <version>1.0-SNAPSHOT</version>
                        <type>ejb</type>
                        <properties>
                                <ear.bundle>true</ear.bundle>
                        </properties>
                </dependency>
                <dependency>
                        <groupId>sintef</groupId>
                        <artifactId>asset-repository-ejb</artifactId>
                        <version>1.0-SNAPSHOT-client</version>
                        <type>ejb</type>
                        <properties>
                                <ear.bundle>true</ear.bundle>
                        </properties>
                </dependency>
        </dependencies>
</project>


> EJBArtifactTypeHandler should append "-client" to artifactId, not version 
> string?
> ---------------------------------------------------------------------------------
>
>          Key: MPEJB-19
>          URL: http://jira.codehaus.org/browse/MPEJB-19
>      Project: maven-ejb-plugin
>         Type: Bug
>     Versions: 1.7
>  Environment: Maven 1.0.2, maven-ejb-plugin 1.7-SNAPSHOT
>     Reporter: Fredrik Vraalsen
>     Assignee: Brett Porter
>  Attachments: ejb-client-name-testcase.patch, ejb-client-name.patch
>
>
> I just checked out the latest version of the maven-ejb-plugin which installs 
> ejb-client jars with a different name.   Thanks for the good work!
> However, I'm wondering why the ejb-client jar appends "-client" to the 
> version string rather than the artifactId, which seems more appropriate to me 
> at least?  The attached patch changes this.
> Cheers,
> Fredrik

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to