[ http://jira.codehaus.org/browse/MPEJB-21?page=all ]
Vincent Massol closed MPEJB-21:
-------------------------------
Assign To: Vincent Massol
Resolution: Won't Fix
Hi Rafal,
All this is done on purpose. First, and this is something missing in the doco,
the latest version of the EJB plugin requires Maven 1.1. The way to specify a
dependency on an ejb-client is:
<artifactId>myModule</artifactId>
<version>1.0</version>
<type>ejb-client</type>
Then resulting name is indeed mymodule-1.0-client.jar. the "-client' part is
called a classifier. The reason it is after the version is to prevent mixing it
with the artifactId. This is a notion introduced in m2. The general format is:
<artfactId>-<version>-<classifier>.<extension>
> generated client jars violate maven artifact naming convention
> --------------------------------------------------------------
>
> Key: MPEJB-21
> URL: http://jira.codehaus.org/browse/MPEJB-21
> Project: maven-ejb-plugin
> Type: Bug
> Versions: 1.7.1
> Reporter: Rafal Krzewski
> Assignee: Vincent Massol
> Priority: Minor
>
>
> the names of the generated client jars are built using the following formula:
> path.append(project.getArtifactId());
> path.append("-");
> path.append(version);
>
> if ( type.equals( "ejb-client" ) ) {
> path.append( "-client.jar" );
> }
> else if ( type.equals( "ejb" ) ) {
> path.append(".jar");
> }
> ( copied from
> org.apache.maven.ejb.EJBArtifactTypeHandler.constructRepositoryFullPath(String
> type, Project project, String version) )
> resulting in names like: mymodule-1.0-client.jar and dependency specs like
> <artifactId>myModule</artifactId>
> <version>1.0-client</version>
> which is silly IMO. The following makes more sense:
> <artifactId>myModule-client</artifactId>
> <version>1.0</version>
> The change is trivial but will break compatibility, so it probaly requires a
> vote
--
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]