Message: The following issue has been closed.
Resolver: Brett Porter Date: Fri, 23 Jul 2004 1:45 AM fixed elsewhere --------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/MAVEN-1068 Here is an overview of the issue: --------------------------------------------------------------------- Key: MAVEN-1068 Summary: adding EJB-client support to ArtifactType, Dependency Type: Improvement Status: Closed Priority: Minor Resolution: FIXED Original Estimate: 30 minutes Time Spent: Unknown Remaining: 30 minutes Project: maven Components: core Fix Fors: 1.0-rc4 Versions: 1.0-rc2 Assignee: Reporter: John Casey Created: Mon, 8 Dec 2003 2:50 PM Updated: Fri, 23 Jul 2004 1:45 AM 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]