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 21:51:56 UTC
[jira] Created: (MAVEN-1068) adding EJB-client support to ArtifactType, Dependency
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1068
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1068
Summary: adding EJB-client support to ArtifactType, Dependency
Type: Improvement
Status: Unassigned
Priority: Minor
Original Estimate: 30 minutes
Time Spent: Unknown
Remaining: 30 minutes
Project: maven
Components:
core
Versions:
1.0-rc2
Assignee:
Reporter: John Casey
Created: Mon, 8 Dec 2003 2:50 PM
Updated: Mon, 8 Dec 2003 2:50 PM
Environment: any
Description:
The current ArtifactType enumeration does not include support for EJB-client jars. In fact, the ejb plugin currently fabricates the jar name and has no support for handling the EJB-client jar, only creating it in the ${maven.build.dir} directory. In addition, the Dependency class cannot recognize EJB-client jars by type and add them to the classpath.
I propose adding an EJB_CLIENT ArtifactType with type="ejb-client" and extension="client.jar". This will result in repository pathing of <group-id>/ejb-clients/<artifact-id>.client.jar for vanilla EJB projects.
Toward this goal, I have modified the ArtifactType.findType() method to search an array containing all type constants, in order to simplify future additions to this class.
I also added an ArtifactType.JAR constant, for consistency.
Finally, I modified the Dependency.isAddedToClasspath() method to use the ArtifactType constants for JAR, EJB, and EJB_CLIENT for comparisons with the stated type name, and finally returning false if none of these match on the getType() method.
I will be submitting another patch against the maven-plugins project, for the ejb plugin and the artifact plugin...this patch (which I guess I'll submit to both MPxxx pseudo-projects on JIRA...) will enable EJB-client support and improve the artifact plugin to take full advantage of the ArtifactType enumeration. I'll update this issue with the appropriate JIRA issue ID's when I have them.
Attached is a patch for the maven-core.
---------------------------------------------------------------------
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