[ http://jira.codehaus.org/browse/MPEJB-19?page=comments#action_44478 ] 

Fredrik Vraalsen commented on MPEJB-19:
---------------------------------------

Ok, I tried to change my dependencies to 

        <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</version>
                        <type>ejb-client</type>
                        <properties>
                                <ear.bundle>true</ear.bundle>
                        </properties>
                </dependency>
        </dependencies>


With Maven 1.0.2, it just ignores the ejb-client dependency:

[EMAIL PROTECTED] asset-repository-ear]$ maven ear
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

Forsøker å laste ned asset-repository-ejb-1.0-SNAPSHOT.jar.
Artifact /sintef/ejbs/asset-repository-ejb-1.0-SNAPSHOT.jar doesn't exists in 
remote repository, but it exists locally
build:start:

ear:init:

ear:ear:
    [echo] Building EAR asset-repository-ear-1.0-SNAPSHOT with appxml 
"d:\eclipse\CorasTool-2.0-branch-work-maven\src\modules\asset-repository-ear/target/application.xml"
    [echo] Bundling: ejb - sintef:asset-repository-ejb - 1.0-SNAPSHOT
    [echo] Dependency asset-repository-ejb-1.0-SNAPSHOT.jar will be bundled as 
/asset-repository-ejb-1.0-SNAPSHOT.jar
    [copy] Copying 1 file to 
D:\eclipse\CorasTool-2.0-branch-work-maven\src\modules\asset-repository-ear\target\tmpEarDeps
    [ear] Building ear: 
D:\eclipse\CorasTool-2.0-branch-work-maven\src\modules\asset-repository-ear\target\asset-repository-ear-1.0-SNAPSHOT.ear
    [delete] Deleting directory 
D:\eclipse\CorasTool-2.0-branch-work-maven\src\modules\asset-repository-ear\target\tmpEarDeps
BUILD SUCCESSFUL


The generated EAR file does not contain the ejb-client jar.


With Maven 1.1 beta 1, it fails because it cannot find the ejb-client file in 
the repository:

[EMAIL PROTECTED] asset-repository-ear]$ 
/cygdrive/c/MyApps/maven-1.1-beta-1/bin/maven ear
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-1

Forsøker å laste ned asset-repository-ejb-1.0-SNAPSHOT.jar.
Artifact /sintef/ejbs/asset-repository-ejb-1.0-SNAPSHOT.jar doesn't exist in 
remote repository, but it exists locally.
Forsøker å laste ned asset-repository-ejb-1.0-SNAPSHOT.ejb-client.
ADVARSEL: Mislykket nedlasting av asset-repository-ejb-1.0-SNAPSHOT.ejb-client.
Byggeprosessen kan ikke fortsette på grunn av følgende mislykkede avhengighet:

asset-repository-ejb-1.0-SNAPSHOT.ejb-client



> 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