You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2003/12/08 22:03:56 UTC

[jira] Created: (MPARTIFACT-4) improve handling of EJB-client and other types, according to ArtifactType class

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPARTIFACT-4


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPARTIFACT-4
    Summary: improve handling of EJB-client and other types, according to ArtifactType class
       Type: Improvement

     Status: Unassigned
   Priority: Minor

 Original Estimate: 30 minutes
 Time Spent: Unknown
  Remaining: 30 minutes

    Project: maven-artifact-plugin
   Versions:
             1.1

   Assignee: 
   Reporter: John Casey

    Created: Mon, 8 Dec 2003 3:03 PM
    Updated: Mon, 8 Dec 2003 3:03 PM
Environment: any

Description:
Currently, the artifact deployment code doesn't fully utilize the org.apache.maven.project.ArtifactType class in calculating file names/paths/etc. I propose improving the DefaultArtifactDeployer class to use the ArtifactType appropriate for the specified type in determining the extension for the destination file. 

In short, it requires retrieving the ArtifactType enumeration constant which corresponds to the given type string, and extracting the extension from that. If the ArtifactType.findType() method fails, the type parameter passed in is returned as the extension...this all takes place in the DefaultArtifactDeployer.extensionForType() method. 

Basically, I'm removing the special case for type="ejb" and using the ArtifactType.findType(type).getExtension() logic instead. If type="ejb", the returned ArtifactType will be equal to ArtifactType.EJB, so all old functionality will be preserved.

I am cross-posting this issue in conjunction with two others: one to modify the maven core to improve dependency-classpath additions based on the ArtifactType class, and another which forms the impetus of this whole effort: to improve the handling of EJB-client jars by the EJB plugin.  

The EJB plugin currently generates EJB-client jars in the ${maven.build.dir} and leaves them, without support for installing or deploying them or their snapshot versions. I have fixed this, but only by adding an EJB_CLIENT type to the ArtifactType class, which allows me to use the <artifact:install.../> tags/plugin. 

The high level of integration involved with adding support for new artifact types necessitates these three separate patches...I wish it didn't. I will add the other issue ID's to this issue when I have them.

The patch for this improvement is attached.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org