You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Henri Tremblay (JIRA)" <ji...@codehaus.org> on 2007/11/01 18:45:10 UTC
[jira] Created: (MNG-3268) Command line doesn't handle multiple -P
correctly
Command line doesn't handle multiple -P correctly
-------------------------------------------------
Key: MNG-3268
URL: http://jira.codehaus.org/browse/MNG-3268
Project: Maven 2
Issue Type: Improvement
Components: Command Line
Affects Versions: 2.0.7
Reporter: Henri Tremblay
It is currently not possible to have more than one -P on the same command line. Only the first specified profile is considered.
So if you do
mvn -Pmain -Ptest
only the main profile will be taken into account.
This may sound enough but it's not when your maven call is wrapped into a batch file. Let's say you have a batch doing the compilation of a given module:
a.bat
-------------------------------------
mvn install -Pmymodule %*
-------------------------------------
and you want to pass a special integration tests profile you would do:
a.bat -Pintegration-tests
But that won't work since you are not allowed to have two -P.
To merge them in DOS shell is quite a pain in the ***....
--
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-3268) Command line doesn't handle multiple
-P correctly
Posted by "Paul Benedict (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=133371#action_133371 ]
Paul Benedict commented on MNG-3268:
------------------------------------
It appears this patch also fixes MNG-3545
> Command line doesn't handle multiple -P correctly
> -------------------------------------------------
>
> Key: MNG-3268
> URL: http://jira.codehaus.org/browse/MNG-3268
> Project: Maven 2
> Issue Type: Improvement
> Components: Command Line
> Affects Versions: 2.0.7
> Reporter: Henri Tremblay
> Assignee: Paul Gier
> Fix For: 2.0.10, 2.1-alpha-1
>
> Attachments: MNG-3268-maven-core.patch
>
>
> It is currently not possible to have more than one -P on the same command line. Only the first specified profile is considered.
> So if you do
> mvn -Pmain -Ptest
> only the main profile will be taken into account.
> This may sound enough but it's not when your maven call is wrapped into a batch file. Let's say you have a batch doing the compilation of a given module:
> a.bat
> -------------------------------------
> mvn install -Pmymodule %*
> -------------------------------------
> and you want to pass a special integration tests profile you would do:
> a.bat -Pintegration-tests
> But that won't work since you are not allowed to have two -P.
> To merge them in DOS shell is quite a pain in the ***....
--
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-3268) Command line doesn't handle multiple -P
correctly
Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Gier closed MNG-3268.
--------------------------
Resolution: Fixed
This is now fixed in svn.
> Command line doesn't handle multiple -P correctly
> -------------------------------------------------
>
> Key: MNG-3268
> URL: http://jira.codehaus.org/browse/MNG-3268
> Project: Maven 2
> Issue Type: Improvement
> Components: Command Line
> Affects Versions: 2.0.7
> Reporter: Henri Tremblay
> Assignee: Paul Gier
> Fix For: 2.0.10, 2.1-alpha-1
>
> Attachments: MNG-3268-maven-core.patch
>
>
> It is currently not possible to have more than one -P on the same command line. Only the first specified profile is considered.
> So if you do
> mvn -Pmain -Ptest
> only the main profile will be taken into account.
> This may sound enough but it's not when your maven call is wrapped into a batch file. Let's say you have a batch doing the compilation of a given module:
> a.bat
> -------------------------------------
> mvn install -Pmymodule %*
> -------------------------------------
> and you want to pass a special integration tests profile you would do:
> a.bat -Pintegration-tests
> But that won't work since you are not allowed to have two -P.
> To merge them in DOS shell is quite a pain in the ***....
--
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-3268) Command line doesn't handle multiple
-P correctly
Posted by "Henri Tremblay (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=132717#action_132717 ]
Henri Tremblay commented on MNG-3268:
-------------------------------------
Nice! Thanks Paul
> Command line doesn't handle multiple -P correctly
> -------------------------------------------------
>
> Key: MNG-3268
> URL: http://jira.codehaus.org/browse/MNG-3268
> Project: Maven 2
> Issue Type: Improvement
> Components: Command Line
> Affects Versions: 2.0.7
> Reporter: Henri Tremblay
> Attachments: MNG-3268-maven-core.patch
>
>
> It is currently not possible to have more than one -P on the same command line. Only the first specified profile is considered.
> So if you do
> mvn -Pmain -Ptest
> only the main profile will be taken into account.
> This may sound enough but it's not when your maven call is wrapped into a batch file. Let's say you have a batch doing the compilation of a given module:
> a.bat
> -------------------------------------
> mvn install -Pmymodule %*
> -------------------------------------
> and you want to pass a special integration tests profile you would do:
> a.bat -Pintegration-tests
> But that won't work since you are not allowed to have two -P.
> To merge them in DOS shell is quite a pain in the ***....
--
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-3268) Command line doesn't handle multiple -P
correctly
Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Gier updated MNG-3268:
---------------------------
Attachment: MNG-3268-maven-core.patch
Attaching a small patch to allow -P to be specified multiple times.
> Command line doesn't handle multiple -P correctly
> -------------------------------------------------
>
> Key: MNG-3268
> URL: http://jira.codehaus.org/browse/MNG-3268
> Project: Maven 2
> Issue Type: Improvement
> Components: Command Line
> Affects Versions: 2.0.7
> Reporter: Henri Tremblay
> Attachments: MNG-3268-maven-core.patch
>
>
> It is currently not possible to have more than one -P on the same command line. Only the first specified profile is considered.
> So if you do
> mvn -Pmain -Ptest
> only the main profile will be taken into account.
> This may sound enough but it's not when your maven call is wrapped into a batch file. Let's say you have a batch doing the compilation of a given module:
> a.bat
> -------------------------------------
> mvn install -Pmymodule %*
> -------------------------------------
> and you want to pass a special integration tests profile you would do:
> a.bat -Pintegration-tests
> But that won't work since you are not allowed to have two -P.
> To merge them in DOS shell is quite a pain in the ***....
--
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-3268) Command line doesn't handle multiple -P
correctly
Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Gier updated MNG-3268:
---------------------------
Fix Version/s: 2.1-alpha-1
2.0.10
> Command line doesn't handle multiple -P correctly
> -------------------------------------------------
>
> Key: MNG-3268
> URL: http://jira.codehaus.org/browse/MNG-3268
> Project: Maven 2
> Issue Type: Improvement
> Components: Command Line
> Affects Versions: 2.0.7
> Reporter: Henri Tremblay
> Assignee: Paul Gier
> Fix For: 2.0.10, 2.1-alpha-1
>
> Attachments: MNG-3268-maven-core.patch
>
>
> It is currently not possible to have more than one -P on the same command line. Only the first specified profile is considered.
> So if you do
> mvn -Pmain -Ptest
> only the main profile will be taken into account.
> This may sound enough but it's not when your maven call is wrapped into a batch file. Let's say you have a batch doing the compilation of a given module:
> a.bat
> -------------------------------------
> mvn install -Pmymodule %*
> -------------------------------------
> and you want to pass a special integration tests profile you would do:
> a.bat -Pintegration-tests
> But that won't work since you are not allowed to have two -P.
> To merge them in DOS shell is quite a pain in the ***....
--
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-3268) Command line doesn't handle multiple
-P correctly
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_112401 ]
Olivier Lamy commented on MNG-3268:
-----------------------------------
Do you want to activate more than one profile ?
If yes, look at mvn -h and you can close the issue :
...
-P,--activate-profiles Comma-delimited list of profiles to activate
...
> Command line doesn't handle multiple -P correctly
> -------------------------------------------------
>
> Key: MNG-3268
> URL: http://jira.codehaus.org/browse/MNG-3268
> Project: Maven 2
> Issue Type: Improvement
> Components: Command Line
> Affects Versions: 2.0.7
> Reporter: Henri Tremblay
>
> It is currently not possible to have more than one -P on the same command line. Only the first specified profile is considered.
> So if you do
> mvn -Pmain -Ptest
> only the main profile will be taken into account.
> This may sound enough but it's not when your maven call is wrapped into a batch file. Let's say you have a batch doing the compilation of a given module:
> a.bat
> -------------------------------------
> mvn install -Pmymodule %*
> -------------------------------------
> and you want to pass a special integration tests profile you would do:
> a.bat -Pintegration-tests
> But that won't work since you are not allowed to have two -P.
> To merge them in DOS shell is quite a pain in the ***....
--
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-3268) Command line doesn't handle multiple
-P correctly
Posted by "Henri Tremblay (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_112412 ]
Henri Tremblay commented on MNG-3268:
-------------------------------------
No. I know I can do -Pmain,test.
What I need is two -P. One is directly in the batch file and one is passed by the user calling the batch file. The ones in the batch are the default for the script and the one added by the user are specific to a given batch call.
For example, I want to deploy on an application server. The deploy.bat contains a -Pdeploy to tell mvn it should deploy during the build. Then the user pass a -Pdev to tell that he wants to deploy on the dev platform.
That is not currently possible. And I don't want him to have to modify his settings.xml all the time.
> Command line doesn't handle multiple -P correctly
> -------------------------------------------------
>
> Key: MNG-3268
> URL: http://jira.codehaus.org/browse/MNG-3268
> Project: Maven 2
> Issue Type: Improvement
> Components: Command Line
> Affects Versions: 2.0.7
> Reporter: Henri Tremblay
>
> It is currently not possible to have more than one -P on the same command line. Only the first specified profile is considered.
> So if you do
> mvn -Pmain -Ptest
> only the main profile will be taken into account.
> This may sound enough but it's not when your maven call is wrapped into a batch file. Let's say you have a batch doing the compilation of a given module:
> a.bat
> -------------------------------------
> mvn install -Pmymodule %*
> -------------------------------------
> and you want to pass a special integration tests profile you would do:
> a.bat -Pintegration-tests
> But that won't work since you are not allowed to have two -P.
> To merge them in DOS shell is quite a pain in the ***....
--
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