You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kem Elbrader (JIRA)" <ji...@codehaus.org> on 2008/09/26 00:52:45 UTC

[jira] Created: (MEAR-92) Add createEarFile property

Add createEarFile property
--------------------------

                 Key: MEAR-92
                 URL: http://jira.codehaus.org/browse/MEAR-92
             Project: Maven 2.x Ear Plugin
          Issue Type: New Feature
    Affects Versions: 2.3.2
            Reporter: Kem Elbrader
         Attachments: EarMojo.java, EarMojo.patch

When directory deploying an ear project often a majority of the time is spent unnecessarily building the ear archive i.e. "Building jar: ...". Since it isn't needed during development it'd be nice if the ear plugin could be configured to stop short of actually building the archive file.

The attahced patch adds a createEarFile property to the EarMojo class to control whether to create the .ear file archive or not.

All changes in this patch are in the EarMojo.java file which is also attached.

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

        

[jira] Commented: (MEAR-92) Add createEarFile property

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149074#action_149074 ] 

Stephane Nicoll commented on MEAR-92:
-------------------------------------

That's why I am against it. I understand the need but the true answer to your request is to have a separate goal to build the ear and a separate goal to actually build the archive which we don't have for the moment.

> Add createEarFile property
> --------------------------
>
>                 Key: MEAR-92
>                 URL: http://jira.codehaus.org/browse/MEAR-92
>             Project: Maven 2.x Ear Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.3.2
>            Reporter: Kem Elbrader
>         Attachments: EarMojo.java, EarMojo.patch
>
>
> When directory deploying an ear project often a majority of the time is spent unnecessarily building the ear archive i.e. "Building jar: ...". Since it isn't needed during development it'd be nice if the ear plugin could be configured to stop short of actually building the archive file.
> The attahced patch adds a createEarFile property to the EarMojo class to control whether to create the .ear file archive or not.
> All changes in this patch are in the EarMojo.java file which is also attached.

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

        

[jira] Issue Comment Edited: (MEAR-92) Add createEarFile property

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=234265#action_234265 ] 

Stephane Nicoll edited comment on MEAR-92 at 9/5/10 1:25 PM:
-------------------------------------------------------------

It's called prepare-package. We should consider changing the lifecycle, indeed.

      was (Author: sni):
    It's called prepared-package. We should consider changing the lifecycle, indeed.
  
> Add createEarFile property
> --------------------------
>
>                 Key: MEAR-92
>                 URL: http://jira.codehaus.org/browse/MEAR-92
>             Project: Maven 2.x Ear Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.3.2
>            Reporter: Kem Elbrader
>         Attachments: EarMojo.java, EarMojo.patch
>
>
> When directory deploying an ear project often a majority of the time is spent unnecessarily building the ear archive i.e. "Building jar: ...". Since it isn't needed during development it'd be nice if the ear plugin could be configured to stop short of actually building the archive file.
> The attahced patch adds a createEarFile property to the EarMojo class to control whether to create the .ear file archive or not.
> All changes in this patch are in the EarMojo.java file which is also attached.

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

        

[jira] Commented: (MEAR-92) Add createEarFile property

Posted by "Kem Elbrader (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149107#action_149107 ] 

Kem Elbrader commented on MEAR-92:
----------------------------------

Executing a separate goal wouldn't perform the work done by goals in earlier phases e.g. ear:generate-application-xml.

Seems that the standard life cycle will often result in significant and unnecessary work being done. Makes me wonder whether there should be a life cycle devoted to situations where the resulting jar file isn't needed.



> Add createEarFile property
> --------------------------
>
>                 Key: MEAR-92
>                 URL: http://jira.codehaus.org/browse/MEAR-92
>             Project: Maven 2.x Ear Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.3.2
>            Reporter: Kem Elbrader
>         Attachments: EarMojo.java, EarMojo.patch
>
>
> When directory deploying an ear project often a majority of the time is spent unnecessarily building the ear archive i.e. "Building jar: ...". Since it isn't needed during development it'd be nice if the ear plugin could be configured to stop short of actually building the archive file.
> The attahced patch adds a createEarFile property to the EarMojo class to control whether to create the .ear file archive or not.
> All changes in this patch are in the EarMojo.java file which is also attached.

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

        

[jira] Commented: (MEAR-92) Add createEarFile property

Posted by "Kem Elbrader (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149031#action_149031 ] 

Kem Elbrader commented on MEAR-92:
----------------------------------

Note: link above must be copied. Jira didn't like me pasting it :)

> Add createEarFile property
> --------------------------
>
>                 Key: MEAR-92
>                 URL: http://jira.codehaus.org/browse/MEAR-92
>             Project: Maven 2.x Ear Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.3.2
>            Reporter: Kem Elbrader
>         Attachments: EarMojo.java, EarMojo.patch
>
>
> When directory deploying an ear project often a majority of the time is spent unnecessarily building the ear archive i.e. "Building jar: ...". Since it isn't needed during development it'd be nice if the ear plugin could be configured to stop short of actually building the archive file.
> The attahced patch adds a createEarFile property to the EarMojo class to control whether to create the .ear file archive or not.
> All changes in this patch are in the EarMojo.java file which is also attached.

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

        

[jira] Commented: (MEAR-92) Add createEarFile property

Posted by "Kem Elbrader (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149032#action_149032 ] 

Kem Elbrader commented on MEAR-92:
----------------------------------

Something to consider is that when using createEarFile = false the install phase will break. With

[ERROR]The following mojo encountered an error while executing:
[ERROR]Group-Id: org.apache.maven.plugins
[ERROR]Artifact-Id: maven-install-plugin
[ERROR]Version: 2.2
[ERROR]Mojo: install
[ERROR]brought in via: packaging: ear
[ERROR]While building project:
[ERROR]Group-Id: {groupid}
[ERROR]Artifact-Id: {artifactid}
[ERROR]Version: {version}
[ERROR]From file: {fromfile}
[ERROR]Reason: The packaging for this project did not assign a file to the build artifact



> Add createEarFile property
> --------------------------
>
>                 Key: MEAR-92
>                 URL: http://jira.codehaus.org/browse/MEAR-92
>             Project: Maven 2.x Ear Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.3.2
>            Reporter: Kem Elbrader
>         Attachments: EarMojo.java, EarMojo.patch
>
>
> When directory deploying an ear project often a majority of the time is spent unnecessarily building the ear archive i.e. "Building jar: ...". Since it isn't needed during development it'd be nice if the ear plugin could be configured to stop short of actually building the archive file.
> The attahced patch adds a createEarFile property to the EarMojo class to control whether to create the .ear file archive or not.
> All changes in this patch are in the EarMojo.java file which is also attached.

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

        

[jira] Commented: (MEAR-92) Add createEarFile property

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=234265#action_234265 ] 

Stephane Nicoll commented on MEAR-92:
-------------------------------------

It's called prepared-package. We should consider changing the lifecycle, indeed.

> Add createEarFile property
> --------------------------
>
>                 Key: MEAR-92
>                 URL: http://jira.codehaus.org/browse/MEAR-92
>             Project: Maven 2.x Ear Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.3.2
>            Reporter: Kem Elbrader
>         Attachments: EarMojo.java, EarMojo.patch
>
>
> When directory deploying an ear project often a majority of the time is spent unnecessarily building the ear archive i.e. "Building jar: ...". Since it isn't needed during development it'd be nice if the ear plugin could be configured to stop short of actually building the archive file.
> The attahced patch adds a createEarFile property to the EarMojo class to control whether to create the .ear file archive or not.
> All changes in this patch are in the EarMojo.java file which is also attached.

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

        

[jira] Commented: (MEAR-92) Add createEarFile property

Posted by "Kem Elbrader (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149030#action_149030 ] 

Kem Elbrader commented on MEAR-92:
----------------------------------

See
http://mail-archives.apache.org/mod_mbox/maven-users/200809.mbox/<e4...@mail.gmail.com>
for mailing list discussion.

> Add createEarFile property
> --------------------------
>
>                 Key: MEAR-92
>                 URL: http://jira.codehaus.org/browse/MEAR-92
>             Project: Maven 2.x Ear Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.3.2
>            Reporter: Kem Elbrader
>         Attachments: EarMojo.java, EarMojo.patch
>
>
> When directory deploying an ear project often a majority of the time is spent unnecessarily building the ear archive i.e. "Building jar: ...". Since it isn't needed during development it'd be nice if the ear plugin could be configured to stop short of actually building the archive file.
> The attahced patch adds a createEarFile property to the EarMojo class to control whether to create the .ear file archive or not.
> All changes in this patch are in the EarMojo.java file which is also attached.

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