You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jean-Luc Wasmer (JIRA)" <ji...@codehaus.org> on 2007/05/30 04:09:58 UTC

[jira] Created: (MNG-3017) Profile activation by file fails when maven is run outside the pom's directory

Profile activation by file fails when maven is run outside the pom's directory
------------------------------------------------------------------------------

                 Key: MNG-3017
                 URL: http://jira.codehaus.org/browse/MNG-3017
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.0.6
         Environment: Darwin Kernel Version 8.9.1
java version "1.6.0-dp"
Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
            Reporter: Jean-Luc Wasmer
         Attachments: maven-test.tgz

When calling maven outside the pom's directory, the profile activation fails:

macb:~/Development/maven-test/parent jl$ mvn install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Example parent
[INFO]   Example module1
[INFO]   Example module2
[INFO] ----------------------------------------------------------------------------
....


macb:~/Development/maven-test jl$ mvn -f parent/pom.xml install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Example parent
[INFO]   Example module1
[INFO] ----------------------------------------------------------------------------
....

-- 
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-3017) Profile activation by file fails when maven is run outside the pom's directory

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

Benjamin Bentmann closed MNG-3017.
----------------------------------

       Resolution: Duplicate
    Fix Version/s:     (was: 3.0-alpha-8)
         Assignee: Benjamin Bentmann

> Profile activation by file fails when maven is run outside the pom's directory
> ------------------------------------------------------------------------------
>
>                 Key: MNG-3017
>                 URL: http://jira.codehaus.org/browse/MNG-3017
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.6
>         Environment: Darwin Kernel Version 8.9.1
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
>            Reporter: Jean-Luc Wasmer
>            Assignee: Benjamin Bentmann
>         Attachments: maven-test.tgz
>
>
> When calling maven outside the pom's directory, the profile activation fails:
> macb:~/Development/maven-test/parent jl$ mvn install
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Example parent
> [INFO]   Example module1
> [INFO]   Example module2
> [INFO] ----------------------------------------------------------------------------
> ....
> macb:~/Development/maven-test jl$ mvn -f parent/pom.xml install
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Example parent
> [INFO]   Example module1
> [INFO] ----------------------------------------------------------------------------
> ....

-- 
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-3017) Profile activation by file fails when maven is run outside the pom's directory

Posted by "Nathaniel Harward (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=134053#action_134053 ] 

Nathaniel Harward commented on MNG-3017:
----------------------------------------

Also does not work in 2.0.9:

Maven version: 2.0.9
Java version: 1.5.0_13
OS name: "mac os x" version: "10.5.2" arch: "i386" Family: "unix"

I thought MNG-2809 might fix this by looking for any/all variables, but apparently not; it seems to _only_ look for ${user.home} :(

> Profile activation by file fails when maven is run outside the pom's directory
> ------------------------------------------------------------------------------
>
>                 Key: MNG-3017
>                 URL: http://jira.codehaus.org/browse/MNG-3017
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.6
>         Environment: Darwin Kernel Version 8.9.1
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
>            Reporter: Jean-Luc Wasmer
>             Fix For: 2.0.x
>
>         Attachments: maven-test.tgz
>
>
> When calling maven outside the pom's directory, the profile activation fails:
> macb:~/Development/maven-test/parent jl$ mvn install
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Example parent
> [INFO]   Example module1
> [INFO]   Example module2
> [INFO] ----------------------------------------------------------------------------
> ....
> macb:~/Development/maven-test jl$ mvn -f parent/pom.xml install
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Example parent
> [INFO]   Example module1
> [INFO] ----------------------------------------------------------------------------
> ....

-- 
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-3017) Profile activation by file fails when maven is run outside the pom's directory

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

Jason van Zyl updated MNG-3017:
-------------------------------

    Fix Version/s:     (was: 2.2.x)
                   3.0-alpha-7

> Profile activation by file fails when maven is run outside the pom's directory
> ------------------------------------------------------------------------------
>
>                 Key: MNG-3017
>                 URL: http://jira.codehaus.org/browse/MNG-3017
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.6
>         Environment: Darwin Kernel Version 8.9.1
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
>            Reporter: Jean-Luc Wasmer
>             Fix For: 3.0-alpha-7
>
>         Attachments: maven-test.tgz
>
>
> When calling maven outside the pom's directory, the profile activation fails:
> macb:~/Development/maven-test/parent jl$ mvn install
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Example parent
> [INFO]   Example module1
> [INFO]   Example module2
> [INFO] ----------------------------------------------------------------------------
> ....
> macb:~/Development/maven-test jl$ mvn -f parent/pom.xml install
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Example parent
> [INFO]   Example module1
> [INFO] ----------------------------------------------------------------------------
> ....

-- 
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-3017) Profile activation by file fails when maven is run outside the pom's directory

Posted by "Daniel Pfeifer (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=167884#action_167884 ] 

Daniel Pfeifer commented on MNG-3017:
-------------------------------------

Does not work in 2.0.10 either...

> Profile activation by file fails when maven is run outside the pom's directory
> ------------------------------------------------------------------------------
>
>                 Key: MNG-3017
>                 URL: http://jira.codehaus.org/browse/MNG-3017
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.6
>         Environment: Darwin Kernel Version 8.9.1
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
>            Reporter: Jean-Luc Wasmer
>             Fix For: 2.0.x
>
>         Attachments: maven-test.tgz
>
>
> When calling maven outside the pom's directory, the profile activation fails:
> macb:~/Development/maven-test/parent jl$ mvn install
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Example parent
> [INFO]   Example module1
> [INFO]   Example module2
> [INFO] ----------------------------------------------------------------------------
> ....
> macb:~/Development/maven-test jl$ mvn -f parent/pom.xml install
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Example parent
> [INFO]   Example module1
> [INFO] ----------------------------------------------------------------------------
> ....

-- 
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-3017) Profile activation by file fails when maven is run outside the pom's directory

Posted by "Nathaniel Harward (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=133790#action_133790 ] 

Nathaniel Harward commented on MNG-3017:
----------------------------------------

I would like to add that using variables does not seem to work inside the <missing/> or <exists/> elements.  I would like to suggest that variable interpolation be implemented in these elements to solve this problem and allow for more flexibility than, for example, just looking for files relative to the pom directory as a fix.

I tried to get around this problem by using a value of "${basedir}/xxx" or "${project.basedir}/xxx" with no success.  "${basedir}" does not work when run inside the pom's directory either, so I know no interpolation is not being done with these elements.

> Profile activation by file fails when maven is run outside the pom's directory
> ------------------------------------------------------------------------------
>
>                 Key: MNG-3017
>                 URL: http://jira.codehaus.org/browse/MNG-3017
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.6
>         Environment: Darwin Kernel Version 8.9.1
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
>            Reporter: Jean-Luc Wasmer
>             Fix For: 2.0.x
>
>         Attachments: maven-test.tgz
>
>
> When calling maven outside the pom's directory, the profile activation fails:
> macb:~/Development/maven-test/parent jl$ mvn install
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Example parent
> [INFO]   Example module1
> [INFO]   Example module2
> [INFO] ----------------------------------------------------------------------------
> ....
> macb:~/Development/maven-test jl$ mvn -f parent/pom.xml install
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Example parent
> [INFO]   Example module1
> [INFO] ----------------------------------------------------------------------------
> ....

-- 
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-3017) Profile activation by file fails when maven is run outside the pom's directory

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

Brett Porter updated MNG-3017:
------------------------------

    Fix Version/s:     (was: Reviewed Pending Version Assignment)
                   2.0.x
      Component/s: Profiles

> Profile activation by file fails when maven is run outside the pom's directory
> ------------------------------------------------------------------------------
>
>                 Key: MNG-3017
>                 URL: http://jira.codehaus.org/browse/MNG-3017
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.6
>         Environment: Darwin Kernel Version 8.9.1
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
>            Reporter: Jean-Luc Wasmer
>             Fix For: 2.0.x
>
>         Attachments: maven-test.tgz
>
>
> When calling maven outside the pom's directory, the profile activation fails:
> macb:~/Development/maven-test/parent jl$ mvn install
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Example parent
> [INFO]   Example module1
> [INFO]   Example module2
> [INFO] ----------------------------------------------------------------------------
> ....
> macb:~/Development/maven-test jl$ mvn -f parent/pom.xml install
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Example parent
> [INFO]   Example module1
> [INFO] ----------------------------------------------------------------------------
> ....

-- 
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-3017) Profile activation by file fails when maven is run outside the pom's directory

Posted by "Trevor L. Torrez (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=177514#action_177514 ] 

Trevor L. Torrez commented on MNG-3017:
---------------------------------------

I added another vote. I'm using maven 2.0.9; when a child project has a profile activated by a missing file, the profile is always active when run from the parent folder because the file is never created in the parent folder.

> Profile activation by file fails when maven is run outside the pom's directory
> ------------------------------------------------------------------------------
>
>                 Key: MNG-3017
>                 URL: http://jira.codehaus.org/browse/MNG-3017
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.6
>         Environment: Darwin Kernel Version 8.9.1
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
>            Reporter: Jean-Luc Wasmer
>             Fix For: 2.2.x
>
>         Attachments: maven-test.tgz
>
>
> When calling maven outside the pom's directory, the profile activation fails:
> macb:~/Development/maven-test/parent jl$ mvn install
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Example parent
> [INFO]   Example module1
> [INFO]   Example module2
> [INFO] ----------------------------------------------------------------------------
> ....
> macb:~/Development/maven-test jl$ mvn -f parent/pom.xml install
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Example parent
> [INFO]   Example module1
> [INFO] ----------------------------------------------------------------------------
> ....

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