Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-3017

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.6
    • None
    • Profiles
    • None
    • 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)

    Description

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

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bentmann Benjamin Bentmann
            jlwasmer Jean-Luc Wasmer
            Votes:
            11 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment