The following comment has been added to this issue:

     Author: Felipe Leme
    Created: Wed, 8 Dec 2004 3:42 PM
       Body:
dIon,

This is a common need on projects that creates components. For instance,  your 
project main goal is an EJB, but in order to create a self-contained, 
deployable EJB, you probably need to create an EAR, with all the dependencies.

I know maven's way dictates that you should create 3 separated projects (an 
ejb, an ear and a multi-project to orchestrate the other 2) in these cases, but 
that's sometimes is an overkill, specially when you have many components in the 
same situation.

So, I think this request is valid, although it's going to be a little bit 
harder to implemnt it now that we have features such bundle.name and 
bundle.dir. I mean, if we are allowing the project's main artifact to be 
included in the EAR, we should allow the same customizations on its name and 
location that are allowed to the regular EAR dependencies. But in order to do 
so, we would need to add more properties, which would make it hard to mantain. 
For instance:

maven.ear.self.artifact=ejb,war,jar
maven.ear.self.jar.path=/APP-INF/lib/myJar.jar
maven.ear.self.artifact.war.path=root.war
maven.ear.self.artifact.war.uri=/


Long story short, this is a new feature that needs to be better discussed, as 
it has some philosophical constraints and managebility concerns.

-- Felipe



---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MPEAR-28?page=comments#action_27664

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPEAR-28

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPEAR-28
    Summary: Addition the current project artifact in the ear and 
application.xml generated by plugin.
       Type: New Feature

     Status: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-ear-plugin
   Versions:
             1.6

   Assignee: 
   Reporter: Thiago Lećo Moreira

    Created: Mon, 22 Nov 2004 11:55 AM
    Updated: Wed, 8 Dec 2004 3:42 PM

Description:
I introduced the current project artifact in the ear and application.xml 
generated by plugin.
 Using the property "maven.ear.this.type=war | ejb" you adds the artifact to 
process. In attachments I send to you the plugin.jelly that performs that 
feature.


---------------------------------------------------------------------
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]

Reply via email to