You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Vincent Massol (JIRA)" <ji...@codehaus.org> on 2005/07/09 19:11:14 UTC

[jira] Created: (MNG-563) Add generation of application.xml in EAR plugin

Add generation of application.xml in EAR plugin
-----------------------------------------------

         Key: MNG-563
         URL: http://jira.codehaus.org/browse/MNG-563
     Project: Maven 2
        Type: New Feature
  Components: maven-plugins  
    Versions: 2.0-alpha-3    
    Reporter: Vincent Massol


It sems the current version in SVN trunk does not support generating the application.xml file. It does support adding EAR modules though. Generating application.xml would allow not having to hardcode the modules nor the version in the application.xml file. For example:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">

<application>
  <display-name>Simple EAR for testing</display-name>
  <module>
    <web>
      <web-uri>simple-war-0.6-SNAPSHOT.war</web-uri>
      <context-root>/simpleweb</context-root>
    </web>
  </module>
</application>



-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-563) Add generation of application.xml in EAR plugin

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-563?page=comments#action_42604 ] 

Stephane Nicoll commented on MNG-563:
-------------------------------------

Following a chat on IRC: 

It's done for 1.3 and 1.4 (no 1.2 though).
use ear:genearte-application-xml

> Add generation of application.xml in EAR plugin
> -----------------------------------------------
>
>          Key: MNG-563
>          URL: http://jira.codehaus.org/browse/MNG-563
>      Project: Maven 2
>         Type: New Feature
>   Components: maven-plugins
>     Versions: 2.0-alpha-3
>     Reporter: Vincent Massol

>
>
> It sems the current version in SVN trunk does not support generating the application.xml file. It does support adding EAR modules though. Generating application.xml would allow not having to hardcode the modules nor the version in the application.xml file. For example:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
> <application>
>   <display-name>Simple EAR for testing</display-name>
>   <module>
>     <web>
>       <web-uri>simple-war-0.6-SNAPSHOT.war</web-uri>
>       <context-root>/simpleweb</context-root>
>     </web>
>   </module>
> </application>

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-563) Add generation of application.xml in EAR plugin

Posted by "Vincent Massol (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-563?page=comments#action_42605 ] 

Vincent Massol commented on MNG-563:
------------------------------------

Cool. The next step would be to bind the generation to a phase (generate-sources?) so that running "m2 install" will run it.

> Add generation of application.xml in EAR plugin
> -----------------------------------------------
>
>          Key: MNG-563
>          URL: http://jira.codehaus.org/browse/MNG-563
>      Project: Maven 2
>         Type: New Feature
>   Components: maven-plugins
>     Versions: 2.0-alpha-3
>     Reporter: Vincent Massol

>
>
> It sems the current version in SVN trunk does not support generating the application.xml file. It does support adding EAR modules though. Generating application.xml would allow not having to hardcode the modules nor the version in the application.xml file. For example:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
> <application>
>   <display-name>Simple EAR for testing</display-name>
>   <module>
>     <web>
>       <web-uri>simple-war-0.6-SNAPSHOT.war</web-uri>
>       <context-root>/simpleweb</context-root>
>     </web>
>   </module>
> </application>

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-563) Add generation of application.xml in EAR plugin

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-563?page=comments#action_42699 ] 

Stephane Nicoll commented on MNG-563:
-------------------------------------

Someone with Edit right, could you please change the issue's summary. This is not about generating the application.xml ; this is about the ear lifecycle integration in m2.

> Add generation of application.xml in EAR plugin
> -----------------------------------------------
>
>          Key: MNG-563
>          URL: http://jira.codehaus.org/browse/MNG-563
>      Project: Maven 2
>         Type: New Feature
>   Components: maven-plugins
>     Versions: 2.0-alpha-3
>     Reporter: Vincent Massol
>  Attachments: maven-core-ear-lifecycle.patch, maven-ear-lifecycle.patch
>
>
> It sems the current version in SVN trunk does not support generating the application.xml file. It does support adding EAR modules though. Generating application.xml would allow not having to hardcode the modules nor the version in the application.xml file. For example:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
> <application>
>   <display-name>Simple EAR for testing</display-name>
>   <module>
>     <web>
>       <web-uri>simple-war-0.6-SNAPSHOT.war</web-uri>
>       <context-root>/simpleweb</context-root>
>     </web>
>   </module>
> </application>

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-563) Add generation of application.xml in EAR plugin

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-563?page=all ]

Stephane Nicoll updated MNG-563:
--------------------------------

    Attachment: maven-core-ear-lifecycle.patch

Patch to be applied on maven-core to add ear lifecycle.

> Add generation of application.xml in EAR plugin
> -----------------------------------------------
>
>          Key: MNG-563
>          URL: http://jira.codehaus.org/browse/MNG-563
>      Project: Maven 2
>         Type: New Feature
>   Components: maven-plugins
>     Versions: 2.0-alpha-3
>     Reporter: Vincent Massol
>  Attachments: maven-core-ear-lifecycle.patch, maven-ear-lifecycle.patch
>
>
> It sems the current version in SVN trunk does not support generating the application.xml file. It does support adding EAR modules though. Generating application.xml would allow not having to hardcode the modules nor the version in the application.xml file. For example:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
> <application>
>   <display-name>Simple EAR for testing</display-name>
>   <module>
>     <web>
>       <web-uri>simple-war-0.6-SNAPSHOT.war</web-uri>
>       <context-root>/simpleweb</context-root>
>     </web>
>   </module>
> </application>

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-563) Add generation of application.xml in EAR plugin

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-563?page=comments#action_42706 ] 

Stephane Nicoll commented on MNG-563:
-------------------------------------

See MNG-576.

> Add generation of application.xml in EAR plugin
> -----------------------------------------------
>
>          Key: MNG-563
>          URL: http://jira.codehaus.org/browse/MNG-563
>      Project: Maven 2
>         Type: New Feature
>   Components: maven-plugins
>     Versions: 2.0-alpha-3
>     Reporter: Vincent Massol
>     Assignee: Vincent Massol
>  Attachments: maven-core-ear-lifecycle.patch, maven-ear-lifecycle.patch
>
>
> It sems the current version in SVN trunk does not support generating the application.xml file. It does support adding EAR modules though. Generating application.xml would allow not having to hardcode the modules nor the version in the application.xml file. For example:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
> <application>
>   <display-name>Simple EAR for testing</display-name>
>   <module>
>     <web>
>       <web-uri>simple-war-0.6-SNAPSHOT.war</web-uri>
>       <context-root>/simpleweb</context-root>
>     </web>
>   </module>
> </application>

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-563) Add generation of application.xml in EAR plugin

Posted by "Vincent Massol (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-563?page=comments#action_42700 ] 

Vincent Massol commented on MNG-563:
------------------------------------

Stephane, I don't think the issue(s summary should be changed. I was not able to find any issue about generating the EAR application.xml so let's decide that this is the issue about this. Also, I don't want to change the description too which is really about "generation of application.xml" and not the lifecycle. Let's keep it. I don't think it'll cause any harm and it'd good to have an issue for any development task that happens.

> Add generation of application.xml in EAR plugin
> -----------------------------------------------
>
>          Key: MNG-563
>          URL: http://jira.codehaus.org/browse/MNG-563
>      Project: Maven 2
>         Type: New Feature
>   Components: maven-plugins
>     Versions: 2.0-alpha-3
>     Reporter: Vincent Massol
>  Attachments: maven-core-ear-lifecycle.patch, maven-ear-lifecycle.patch
>
>
> It sems the current version in SVN trunk does not support generating the application.xml file. It does support adding EAR modules though. Generating application.xml would allow not having to hardcode the modules nor the version in the application.xml file. For example:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
> <application>
>   <display-name>Simple EAR for testing</display-name>
>   <module>
>     <web>
>       <web-uri>simple-war-0.6-SNAPSHOT.war</web-uri>
>       <context-root>/simpleweb</context-root>
>     </web>
>   </module>
> </application>

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-563) Add generation of application.xml in EAR plugin

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-563?page=all ]

Stephane Nicoll updated MNG-563:
--------------------------------

    Attachment: maven-ear-lifecycle.patch

Patch to be applied on the maven-ear-plugin. Adds support of generateApplicationXml flag which states whether application.xml should be generated or not (default is true).

> Add generation of application.xml in EAR plugin
> -----------------------------------------------
>
>          Key: MNG-563
>          URL: http://jira.codehaus.org/browse/MNG-563
>      Project: Maven 2
>         Type: New Feature
>   Components: maven-plugins
>     Versions: 2.0-alpha-3
>     Reporter: Vincent Massol
>  Attachments: maven-core-ear-lifecycle.patch, maven-ear-lifecycle.patch
>
>
> It sems the current version in SVN trunk does not support generating the application.xml file. It does support adding EAR modules though. Generating application.xml would allow not having to hardcode the modules nor the version in the application.xml file. For example:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
> <application>
>   <display-name>Simple EAR for testing</display-name>
>   <module>
>     <web>
>       <web-uri>simple-war-0.6-SNAPSHOT.war</web-uri>
>       <context-root>/simpleweb</context-root>
>     </web>
>   </module>
> </application>

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-563) Add generation of application.xml in EAR plugin

Posted by "Vincent Massol (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-563?page=all ]
     
Vincent Massol closed MNG-563:
------------------------------

     Assign To: Vincent Massol
    Resolution: Won't Fix

Generation of application.xml is already implemented. See MNG-148.

Stephane, open a new issue if you want for integrating it in the lifecycle.

> Add generation of application.xml in EAR plugin
> -----------------------------------------------
>
>          Key: MNG-563
>          URL: http://jira.codehaus.org/browse/MNG-563
>      Project: Maven 2
>         Type: New Feature
>   Components: maven-plugins
>     Versions: 2.0-alpha-3
>     Reporter: Vincent Massol
>     Assignee: Vincent Massol
>  Attachments: maven-core-ear-lifecycle.patch, maven-ear-lifecycle.patch
>
>
> It sems the current version in SVN trunk does not support generating the application.xml file. It does support adding EAR modules though. Generating application.xml would allow not having to hardcode the modules nor the version in the application.xml file. For example:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
> <application>
>   <display-name>Simple EAR for testing</display-name>
>   <module>
>     <web>
>       <web-uri>simple-war-0.6-SNAPSHOT.war</web-uri>
>       <context-root>/simpleweb</context-root>
>     </web>
>   </module>
> </application>

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-563) Add generation of application.xml in EAR plugin

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-563?page=comments#action_42701 ] 

Stephane Nicoll commented on MNG-563:
-------------------------------------

Vincent,

I don't agree. Application.xml generation is there since the first version of the plugin, see MNG-148.

This issue is *NOT* about application.xml generation: if you look the patches, it just adds a new ear lifecycle and a flag to enable/disable application.xml generation (but not generation itself).

I think issues should reflect exactly what has been done.

> Add generation of application.xml in EAR plugin
> -----------------------------------------------
>
>          Key: MNG-563
>          URL: http://jira.codehaus.org/browse/MNG-563
>      Project: Maven 2
>         Type: New Feature
>   Components: maven-plugins
>     Versions: 2.0-alpha-3
>     Reporter: Vincent Massol
>  Attachments: maven-core-ear-lifecycle.patch, maven-ear-lifecycle.patch
>
>
> It sems the current version in SVN trunk does not support generating the application.xml file. It does support adding EAR modules though. Generating application.xml would allow not having to hardcode the modules nor the version in the application.xml file. For example:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
> <application>
>   <display-name>Simple EAR for testing</display-name>
>   <module>
>     <web>
>       <web-uri>simple-war-0.6-SNAPSHOT.war</web-uri>
>       <context-root>/simpleweb</context-root>
>     </web>
>   </module>
> </application>

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org