You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dominique Jean-Prost (JIRA)" <ji...@codehaus.org> on 2008/02/27 17:41:28 UTC

[jira] Created: (MWAR-147) add the possibility to use the inplace goal with a specific out directory

add the possibility to use the inplace goal with a specific out directory
-------------------------------------------------------------------------

                 Key: MWAR-147
                 URL: http://jira.codehaus.org/browse/MWAR-147
             Project: Maven 2.x War Plugin
          Issue Type: Improvement
    Affects Versions: 2.1-alpha-1
            Reporter: Dominique Jean-Prost


I actually use war:exploded to speed up my development. I configured the webappDirectory so that the war gets produced in my jboss deploy directory.

As war:exploded is bound to package phase, when I use mvn package, I then get a .war in my target dir and the exploded war in my jboss dir which not what I want.

So I tried to use war:inplace, as it does what exploded does, but not bound to the package lifecycle. But inplace does not allow to override the out directory.

So what I would like is to have a goal that allows me to have the exploded war in a specific directory, but I would like this goal to be not bound to the package lifecycle. Could you add this feature to the inplace goal ?

-- 
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: (MWAR-147) add the possibility to use the inplace goal with a specific out directory

Posted by "Dominique Jean-Prost (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=166054#action_166054 ] 

Dominique Jean-Prost commented on MWAR-147:
-------------------------------------------

Basically, I needed 2 different behaviour :
- one for my development in exploded mode, where output Dir is in place A (in my jboss dir)
- one for my development in "normal mode" where package artifacts (and "temporay files") are under the target dir.

As war:exploded is bound to package phase, if I change the webappDirectory for my "exploded development period", it also impacts the package phase. That's why I suggested to "improve" the war:inplace as this goal is not bound to package phase, and so has no impact to the package "goal".

I finally used 2 different profiles to achieve what I wanted, where they define the target dir. As I write this comment, I realize I could also setup my jboss so that it scans my target dir too. Maybe the latter is the correct solution.

> add the possibility to use the inplace goal with a specific out directory
> -------------------------------------------------------------------------
>
>                 Key: MWAR-147
>                 URL: http://jira.codehaus.org/browse/MWAR-147
>             Project: Maven 2.x War Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.1-alpha-1
>            Reporter: Dominique Jean-Prost
>
> I actually use war:exploded to speed up my development. I configured the webappDirectory so that the war gets produced in my jboss deploy directory.
> As war:exploded is bound to package phase, when I use mvn package, I then get a .war in my target dir and the exploded war in my jboss dir which not what I want.
> So I tried to use war:inplace, as it does what exploded does, but not bound to the package lifecycle. But inplace does not allow to override the out directory.
> So what I would like is to have a goal that allows me to have the exploded war in a specific directory, but I would like this goal to be not bound to the package lifecycle. Could you add this feature to the inplace goal ?

-- 
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] Closed: (MWAR-147) add the possibility to use the inplace goal with a specific out directory

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MWAR-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg closed MWAR-147.
--------------------------------

    Resolution: Won't Fix

See previous comments.

> add the possibility to use the inplace goal with a specific out directory
> -------------------------------------------------------------------------
>
>                 Key: MWAR-147
>                 URL: https://jira.codehaus.org/browse/MWAR-147
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.1-alpha-1
>            Reporter: Dominique Jean-Prost
>
> I actually use war:exploded to speed up my development. I configured the webappDirectory so that the war gets produced in my jboss deploy directory.
> As war:exploded is bound to package phase, when I use mvn package, I then get a .war in my target dir and the exploded war in my jboss dir which not what I want.
> So I tried to use war:inplace, as it does what exploded does, but not bound to the package lifecycle. But inplace does not allow to override the out directory.
> So what I would like is to have a goal that allows me to have the exploded war in a specific directory, but I would like this goal to be not bound to the package lifecycle. Could you add this feature to the inplace goal ?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MWAR-147) add the possibility to use the inplace goal with a specific out directory

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=166247#action_166247 ] 

Dennis Lundberg commented on MWAR-147:
--------------------------------------

Using profiles is usually the way to go when you need to have multiple setups for different target environments.

> add the possibility to use the inplace goal with a specific out directory
> -------------------------------------------------------------------------
>
>                 Key: MWAR-147
>                 URL: http://jira.codehaus.org/browse/MWAR-147
>             Project: Maven 2.x War Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.1-alpha-1
>            Reporter: Dominique Jean-Prost
>
> I actually use war:exploded to speed up my development. I configured the webappDirectory so that the war gets produced in my jboss deploy directory.
> As war:exploded is bound to package phase, when I use mvn package, I then get a .war in my target dir and the exploded war in my jboss dir which not what I want.
> So I tried to use war:inplace, as it does what exploded does, but not bound to the package lifecycle. But inplace does not allow to override the out directory.
> So what I would like is to have a goal that allows me to have the exploded war in a specific directory, but I would like this goal to be not bound to the package lifecycle. Could you add this feature to the inplace goal ?

-- 
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: (MWAR-147) add the possibility to use the inplace goal with a specific out directory

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=165983#action_165983 ] 

Dennis Lundberg commented on MWAR-147:
--------------------------------------

war:inplace will "Generate the webapp in the source directory", so you are not allowed to change the output directory for that goal.

What is it with war:explode that doesn't work for you? Can you explain your use case a bit more?

> add the possibility to use the inplace goal with a specific out directory
> -------------------------------------------------------------------------
>
>                 Key: MWAR-147
>                 URL: http://jira.codehaus.org/browse/MWAR-147
>             Project: Maven 2.x War Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.1-alpha-1
>            Reporter: Dominique Jean-Prost
>
> I actually use war:exploded to speed up my development. I configured the webappDirectory so that the war gets produced in my jboss deploy directory.
> As war:exploded is bound to package phase, when I use mvn package, I then get a .war in my target dir and the exploded war in my jboss dir which not what I want.
> So I tried to use war:inplace, as it does what exploded does, but not bound to the package lifecycle. But inplace does not allow to override the out directory.
> So what I would like is to have a goal that allows me to have the exploded war in a specific directory, but I would like this goal to be not bound to the package lifecycle. Could you add this feature to the inplace goal ?

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