You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Vincent Siveton (JIRA)" <ji...@codehaus.org> on 2007/04/28 17:56:26 UTC

[jira] Created: (MNG-2970) Improve mvn script for CI builds

Improve mvn script for CI builds
--------------------------------

                 Key: MNG-2970
                 URL: http://jira.codehaus.org/browse/MNG-2970
             Project: Maven 2
          Issue Type: Improvement
          Components: Command Line
    Affects Versions: 2.0.6
            Reporter: Vincent Siveton


CI builds need specific settings like environment or specific OS tasks.

Some ideas to improve the mvn script:
* add a setenv script before calling maven
* add a pre/post hook scripts between maven call

-- 
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] Updated: (MNG-2970) Improve mvn script for CI builds: mavenrc_pre / mavenrc_post

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-2970:
------------------------------

         Assignee: Vincent Siveton  (was: Brett Porter)
    Fix Version/s: 2.0.x

> Improve mvn script for CI builds: mavenrc_pre / mavenrc_post
> ------------------------------------------------------------
>
>                 Key: MNG-2970
>                 URL: http://jira.codehaus.org/browse/MNG-2970
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.6
>            Reporter: Vincent Siveton
>            Assignee: Vincent Siveton
>             Fix For: 2.0.x
>
>
> CI builds need specific settings like environment or specific OS tasks.
> Some ideas to improve the mvn script:
> * add a setenv script before calling maven
> * add a pre/post hook scripts between maven call

-- 
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] Updated: (MNG-2970) Improve mvn script for CI builds: mavenrc_pre / mavenrc_post

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Siveton updated MNG-2970:
---------------------------------

    Summary: Improve mvn script for CI builds: mavenrc_pre / mavenrc_post  (was: Improve mvn script for CI builds)

renamed the issue

> Improve mvn script for CI builds: mavenrc_pre / mavenrc_post
> ------------------------------------------------------------
>
>                 Key: MNG-2970
>                 URL: http://jira.codehaus.org/browse/MNG-2970
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.6
>            Reporter: Vincent Siveton
>
> CI builds need specific settings like environment or specific OS tasks.
> Some ideas to improve the mvn script:
> * add a setenv script before calling maven
> * add a pre/post hook scripts between maven call

-- 
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: (MNG-2970) Improve mvn script for CI builds: mavenrc_pre / mavenrc_post

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158621#action_158621 ] 

Vincent Siveton edited comment on MNG-2970 at 12/18/08 1:31 PM:
----------------------------------------------------------------

Since my proposal adds 2 batch parameters (--pre and --post), it changes the behaviour of Maven 2.0.x, so I think we could put it in 2.1.x or 3.x. WDYT?

To be more specific, theses parameters are only used by the scripts and not directly by Maven.

      was (Author: siveton):
    Since my proposal adds 2 batch parameters (--pre and --post), it changes the behaviour of Maven 2.0.x, so I think we could put it in 2.1.x or 3.x. WDYT?
  
> Improve mvn script for CI builds: mavenrc_pre / mavenrc_post
> ------------------------------------------------------------
>
>                 Key: MNG-2970
>                 URL: http://jira.codehaus.org/browse/MNG-2970
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.6
>            Reporter: Vincent Siveton
>            Assignee: Brett Porter
>
> CI builds need specific settings like environment or specific OS tasks.
> Some ideas to improve the mvn script:
> * add a setenv script before calling maven
> * add a pre/post hook scripts between maven call

-- 
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: (MNG-2970) Improve mvn script for CI builds: mavenrc_pre / mavenrc_post

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_105088 ] 

Vincent Siveton commented on MNG-2970:
--------------------------------------

I propose to add script parameters to activate hook scripts. For instance,

{noformat}
mvn ... --pre --post
{noformat}

will do the following sequence:

{noformat}
$M2_HOME/bin/mavenrc_pre 
java call
$M2_HOME/bin/mavenrc_post
{noformat}

We could also specify file parameter, i.e. --pre /path/to/pre.sh and --post /path/to/post.sh 

WDYT?

> Improve mvn script for CI builds: mavenrc_pre / mavenrc_post
> ------------------------------------------------------------
>
>                 Key: MNG-2970
>                 URL: http://jira.codehaus.org/browse/MNG-2970
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.6
>            Reporter: Vincent Siveton
>             Fix For: Reviewed Pending Version Assignment
>
>
> CI builds need specific settings like environment or specific OS tasks.
> Some ideas to improve the mvn script:
> * add a setenv script before calling maven
> * add a pre/post hook scripts between maven call

-- 
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: (MNG-2970) Improve mvn script for CI builds

Posted by "Tim Reilly (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_96193 ] 

Tim Reilly commented on MNG-2970:
---------------------------------

Isn't the mavenrc_pre and mavenrc_post scripts the same thing you are looking for?

> Improve mvn script for CI builds
> --------------------------------
>
>                 Key: MNG-2970
>                 URL: http://jira.codehaus.org/browse/MNG-2970
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.6
>            Reporter: Vincent Siveton
>
> CI builds need specific settings like environment or specific OS tasks.
> Some ideas to improve the mvn script:
> * add a setenv script before calling maven
> * add a pre/post hook scripts between maven call

-- 
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: (MNG-2970) Improve mvn script for CI builds: mavenrc_pre / mavenrc_post

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason van Zyl closed MNG-2970.
------------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: 2.2.x)

> Improve mvn script for CI builds: mavenrc_pre / mavenrc_post
> ------------------------------------------------------------
>
>                 Key: MNG-2970
>                 URL: http://jira.codehaus.org/browse/MNG-2970
>             Project: Maven 2 & 3
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.6
>            Reporter: Vincent Siveton
>            Assignee: Vincent Siveton
>
> CI builds need specific settings like environment or specific OS tasks.
> Some ideas to improve the mvn script:
> * add a setenv script before calling maven
> * add a pre/post hook scripts between maven call

-- 
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: (MNG-2970) Improve mvn script for CI builds: mavenrc_pre / mavenrc_post

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MNG-2970.
-----------------------------

         Assignee: Brett Porter
       Resolution: Won't Fix
    Fix Version/s:     (was: Reviewed Pending Version Assignment)

there is already a .mavenrc in the unix scripts, just no post. However it rarely needs cleanup like the windows bath files do - do you have a use case for a post script?

> Improve mvn script for CI builds: mavenrc_pre / mavenrc_post
> ------------------------------------------------------------
>
>                 Key: MNG-2970
>                 URL: http://jira.codehaus.org/browse/MNG-2970
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.6
>            Reporter: Vincent Siveton
>            Assignee: Brett Porter
>
> CI builds need specific settings like environment or specific OS tasks.
> Some ideas to improve the mvn script:
> * add a setenv script before calling maven
> * add a pre/post hook scripts between maven call

-- 
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: (MNG-2970) Improve mvn script for CI builds: mavenrc_pre / mavenrc_post

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158527#action_158527 ] 

Brett Porter commented on MNG-2970:
-----------------------------------

usually this would be done within Maven itself - is that a possibility?


> Improve mvn script for CI builds: mavenrc_pre / mavenrc_post
> ------------------------------------------------------------
>
>                 Key: MNG-2970
>                 URL: http://jira.codehaus.org/browse/MNG-2970
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.6
>            Reporter: Vincent Siveton
>            Assignee: Brett Porter
>
> CI builds need specific settings like environment or specific OS tasks.
> Some ideas to improve the mvn script:
> * add a setenv script before calling maven
> * add a pre/post hook scripts between maven call

-- 
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: (MNG-2970) Improve mvn script for CI builds

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_96238 ] 

Vincent Siveton commented on MNG-2970:
--------------------------------------

yep But these scripts are missing in the unix script

> Improve mvn script for CI builds
> --------------------------------
>
>                 Key: MNG-2970
>                 URL: http://jira.codehaus.org/browse/MNG-2970
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.6
>            Reporter: Vincent Siveton
>
> CI builds need specific settings like environment or specific OS tasks.
> Some ideas to improve the mvn script:
> * add a setenv script before calling maven
> * add a pre/post hook scripts between maven call

-- 
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] Reopened: (MNG-2970) Improve mvn script for CI builds: mavenrc_pre / mavenrc_post

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Siveton reopened MNG-2970:
----------------------------------


I think we need leave it open for the discussion.

The use case was to do a clean staging of a webapp into Tomcat:
- prehook: shutdown Tomcat, install latest Tomcat, remove DB schema
- maven: build project and deploy it into Tomcat
- posthook: install DB schema, configure webapp and Tomcat, restart Tomcat. 


> Improve mvn script for CI builds: mavenrc_pre / mavenrc_post
> ------------------------------------------------------------
>
>                 Key: MNG-2970
>                 URL: http://jira.codehaus.org/browse/MNG-2970
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.6
>            Reporter: Vincent Siveton
>            Assignee: Brett Porter
>
> CI builds need specific settings like environment or specific OS tasks.
> Some ideas to improve the mvn script:
> * add a setenv script before calling maven
> * add a pre/post hook scripts between maven call

-- 
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: (MNG-2970) Improve mvn script for CI builds: mavenrc_pre / mavenrc_post

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158621#action_158621 ] 

Vincent Siveton commented on MNG-2970:
--------------------------------------

Since my proposal adds 2 batch parameters (--pre and --post), it changes the behaviour of Maven 2.0.x, so I think we could put it in 2.1.x or 3.x. WDYT?

> Improve mvn script for CI builds: mavenrc_pre / mavenrc_post
> ------------------------------------------------------------
>
>                 Key: MNG-2970
>                 URL: http://jira.codehaus.org/browse/MNG-2970
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.6
>            Reporter: Vincent Siveton
>            Assignee: Brett Porter
>
> CI builds need specific settings like environment or specific OS tasks.
> Some ideas to improve the mvn script:
> * add a setenv script before calling maven
> * add a pre/post hook scripts between maven call

-- 
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: (MNG-2970) Improve mvn script for CI builds: mavenrc_pre / mavenrc_post

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158541#action_158541 ] 

Brett Porter commented on MNG-2970:
-----------------------------------

this can so easily be added by a wrapper script I'm not sure of the value... but it's a simple thing so if you want to add it in the same way as exists in the batch files, go for it :)

> Improve mvn script for CI builds: mavenrc_pre / mavenrc_post
> ------------------------------------------------------------
>
>                 Key: MNG-2970
>                 URL: http://jira.codehaus.org/browse/MNG-2970
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.6
>            Reporter: Vincent Siveton
>            Assignee: Brett Porter
>
> CI builds need specific settings like environment or specific OS tasks.
> Some ideas to improve the mvn script:
> * add a setenv script before calling maven
> * add a pre/post hook scripts between maven call

-- 
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: (MNG-2970) Improve mvn script for CI builds: mavenrc_pre / mavenrc_post

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158673#action_158673 ] 

Brett Porter commented on MNG-2970:
-----------------------------------

for consistency with the windows batch file, I would stick with the pre-named files if anything, rather than adding --pre and --post

> Improve mvn script for CI builds: mavenrc_pre / mavenrc_post
> ------------------------------------------------------------
>
>                 Key: MNG-2970
>                 URL: http://jira.codehaus.org/browse/MNG-2970
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.6
>            Reporter: Vincent Siveton
>            Assignee: Brett Porter
>
> CI builds need specific settings like environment or specific OS tasks.
> Some ideas to improve the mvn script:
> * add a setenv script before calling maven
> * add a pre/post hook scripts between maven call

-- 
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: (MNG-2970) Improve mvn script for CI builds: mavenrc_pre / mavenrc_post

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=204474#action_204474 ] 

Jason van Zyl commented on MNG-2970:
------------------------------------

Hudson can do all of this. As should any decent CI system.

> Improve mvn script for CI builds: mavenrc_pre / mavenrc_post
> ------------------------------------------------------------
>
>                 Key: MNG-2970
>                 URL: http://jira.codehaus.org/browse/MNG-2970
>             Project: Maven 2 & 3
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.6
>            Reporter: Vincent Siveton
>            Assignee: Vincent Siveton
>
> CI builds need specific settings like environment or specific OS tasks.
> Some ideas to improve the mvn script:
> * add a setenv script before calling maven
> * add a pre/post hook scripts between maven call

-- 
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: (MNG-2970) Improve mvn script for CI builds: mavenrc_pre / mavenrc_post

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158532#action_158532 ] 

Vincent Siveton commented on MNG-2970:
--------------------------------------

Do you mean by developing a plugin? 
We have already a deploy plugin for the build but scripts are better for the admin tasks IMHO (I mean for an admin guy).

This use case is similar to the SVN hooks

> Improve mvn script for CI builds: mavenrc_pre / mavenrc_post
> ------------------------------------------------------------
>
>                 Key: MNG-2970
>                 URL: http://jira.codehaus.org/browse/MNG-2970
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.6
>            Reporter: Vincent Siveton
>            Assignee: Brett Porter
>
> CI builds need specific settings like environment or specific OS tasks.
> Some ideas to improve the mvn script:
> * add a setenv script before calling maven
> * add a pre/post hook scripts between maven call

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