Maven Release Plugin
  1. Maven Release Plugin
  2. MRELEASE-406

release:perform ignores environment variables

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Won't Fix
    • Affects Version/s: 2.0-beta-8
    • Fix Version/s: None
    • Component/s: perform
    • Labels:
      None
    • Environment:
      WinXP Maven 2.0.9

      Description

      Our settings.xml is shared across many sites and we use reository mirrors at each of our sites.

      The mirrors are setup in the settings.xml as $

      {proxyURL}/repopath

      the users set an environment variable to point to the nexus cache at their paticular site -
      eg http://maven-proxy-east.mycorp.com/nexus/content/repositories


      This woks fine for normal working (compile, site deploy etc..) but release:perform fails as it tries to download from
      ${proxyURL}

      /central/org/apache/mave....

      It would appear that environment variables are not passed to the forked process doing the release.

      – settings.xml snippet –

      		<mirror>
      			<id>central-mirror</id>
      			<name>Maven Central [nexus mirror]</name>
      			<url>${proxyURL}/central</url>
      			<mirrorOf>central</mirrorOf>
      		</mirror>
      

      – end settings.xml snippet –

      output from release:perfrom

      D:\workspaces\TestProject>set | grep proxyURL
      proxyURL=http://maven-proxy-east.mycorp.com/nexus/content/repositories
      
      D:\workspaces\TestProject>mvn release:perform
      [INFO] Scanning for projects...
      [INFO] Searching repository for plugin with prefix: 'release'.
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Test Project
      [INFO]    task-segment: [release:perform] (aggregator-style)
      [INFO] ------------------------------------------------------------------------
      [INFO] [release:perform]
      [INFO] Checking out the project to perform the release ...
      [INFO] Executing: cmd.exe /X /C "svn --non-interactive checkout https://svnserver.mycorp.com/repos/scratch/tags/testproj-0.0.1
      checkout"
      [INFO] Working directory: D:\workspaces\TestProject\target
      [INFO] Executing goals 'deploy site-deploy'...
      [WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker inst
      ance.
      [INFO] [INFO] Scanning for projects...
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [INFO] Building Test Project
      [INFO] [INFO]    task-segment: [deploy, site-deploy]
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] Downloading: ${proxyURL}/releases/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
      [INFO] Downloading: ${proxyURL}/central/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
      [INFO] Downloading: ${proxyURL}/releases/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
      [INFO] Downloading: ${proxyURL}/thirdparty/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
      [INFO] Downloading: ${proxyURL}/central/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
      [INFO] Downloading: ${proxyURL}/codehaus/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
      [INFO] Downloading: ${proxyURL}/java.net/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
      [INFO] Downloading: ${proxyURL}/jboss/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [ERROR] BUILD ERROR
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [INFO] Error building POM (may not be this project's POM).
      
      1. settings.xml
        0.5 kB
        James Nord
      2. pom.xml
        1 kB
        James Nord
      3. mvn2.1.0-RC3.log
        17 kB
        James Nord
      4. mvn2.0.10.log
        16 kB
        James Nord
      5. mvn2.0.10_debug.log
        93 kB
        James Nord

        Activity

        Mark Thomas made changes -
        Workflow jira [ 12961567 ] Default workflow, editable Closed status [ 12998414 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 00:52:26 UTC 2015 [ 1428281546237 ]
        Mark Thomas made changes -
        Workflow jira [ 12724225 ] Default workflow, editable Closed status [ 12763457 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 12:15:05 UTC 2015 [ 1428236105845 ]
        Michael Osipov made changes -
        Resolution Won't Fix [ 2 ]
        Status Reopened [ 4 ] Closed [ 6 ]
        Robert Scholte made changes -
        Description Our settings.xml is shared across many sites and we use reository mirrors at each of our sites.

        The mirrors are setup in the settings.xml as ${proxyURL}/repopath

        the users set an environment variable to point to the nexus cache at their paticular site -
         eg http://maven-proxy-east.mycorp.com/nexus/content/repositories


        This woks fine for normal working (compile, site deploy etc..) but release:perform fails as it tries to download from
        ${proxyURL}/central/org/apache/mave....

        It would appear that environment variables are not passed to the forked process doing the release.


        -- settings.xml snippet --
        <mirror>
        <id>central-mirror</id>
        <name>Maven Central [nexus mirror]</name>
        <url>${proxyURL}/central</url>
        <mirrorOf>central</mirrorOf>
        </mirror>
        -- end settings.xml snippet --

        output from release:perfrom

        D:\workspaces\TestProject>set | grep proxyURL
        proxyURL=http://maven-proxy-east.mycorp.com/nexus/content/repositories

        D:\workspaces\TestProject>mvn release:perform
        [INFO] Scanning for projects...
        [INFO] Searching repository for plugin with prefix: 'release'.
        [INFO] ------------------------------------------------------------------------
        [INFO] Building Test Project
        [INFO] task-segment: [release:perform] (aggregator-style)
        [INFO] ------------------------------------------------------------------------
        [INFO] [release:perform]
        [INFO] Checking out the project to perform the release ...
        [INFO] Executing: cmd.exe /X /C "svn --non-interactive checkout https://svnserver.mycorp.com/repos/scratch/tags/testproj-0.0.1
        checkout"
        [INFO] Working directory: D:\workspaces\TestProject\target
        [INFO] Executing goals 'deploy site-deploy'...
        [WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker inst
        ance.
        [INFO] [INFO] Scanning for projects...
        [INFO] [INFO] ------------------------------------------------------------------------
        [INFO] [INFO] Building Test Project
        [INFO] [INFO] task-segment: [deploy, site-deploy]
        [INFO] [INFO] ------------------------------------------------------------------------
        [INFO] Downloading: ${proxyURL}/releases/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
        [INFO] Downloading: ${proxyURL}/central/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
        [INFO] Downloading: ${proxyURL}/releases/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
        [INFO] Downloading: ${proxyURL}/thirdparty/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
        [INFO] Downloading: ${proxyURL}/central/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
        [INFO] Downloading: ${proxyURL}/codehaus/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
        [INFO] Downloading: ${proxyURL}/java.net/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
        [INFO] Downloading: ${proxyURL}/jboss/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
        [INFO] [INFO] ------------------------------------------------------------------------
        [INFO] [ERROR] BUILD ERROR
        [INFO] [INFO] ------------------------------------------------------------------------
        [INFO] [INFO] Error building POM (may not be this project's POM).

        Our settings.xml is shared across many sites and we use reository mirrors at each of our sites.

        The mirrors are setup in the settings.xml as ${proxyURL}/repopath

        the users set an environment variable to point to the nexus cache at their paticular site -
         eg http://maven-proxy-east.mycorp.com/nexus/content/repositories


        This woks fine for normal working (compile, site deploy etc..) but release:perform fails as it tries to download from
        ${proxyURL}/central/org/apache/mave....

        It would appear that environment variables are not passed to the forked process doing the release.


        -- settings.xml snippet --
        {code:xml}
        <mirror>
        <id>central-mirror</id>
        <name>Maven Central [nexus mirror]</name>
        <url>${proxyURL}/central</url>
        <mirrorOf>central</mirrorOf>
        </mirror>
        {code}
        -- end settings.xml snippet --

        output from {{release:perfrom}}
        {noformat}
        D:\workspaces\TestProject>set | grep proxyURL
        proxyURL=http://maven-proxy-east.mycorp.com/nexus/content/repositories

        D:\workspaces\TestProject>mvn release:perform
        [INFO] Scanning for projects...
        [INFO] Searching repository for plugin with prefix: 'release'.
        [INFO] ------------------------------------------------------------------------
        [INFO] Building Test Project
        [INFO] task-segment: [release:perform] (aggregator-style)
        [INFO] ------------------------------------------------------------------------
        [INFO] [release:perform]
        [INFO] Checking out the project to perform the release ...
        [INFO] Executing: cmd.exe /X /C "svn --non-interactive checkout https://svnserver.mycorp.com/repos/scratch/tags/testproj-0.0.1
        checkout"
        [INFO] Working directory: D:\workspaces\TestProject\target
        [INFO] Executing goals 'deploy site-deploy'...
        [WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker inst
        ance.
        [INFO] [INFO] Scanning for projects...
        [INFO] [INFO] ------------------------------------------------------------------------
        [INFO] [INFO] Building Test Project
        [INFO] [INFO] task-segment: [deploy, site-deploy]
        [INFO] [INFO] ------------------------------------------------------------------------
        [INFO] Downloading: ${proxyURL}/releases/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
        [INFO] Downloading: ${proxyURL}/central/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
        [INFO] Downloading: ${proxyURL}/releases/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
        [INFO] Downloading: ${proxyURL}/thirdparty/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
        [INFO] Downloading: ${proxyURL}/central/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
        [INFO] Downloading: ${proxyURL}/codehaus/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
        [INFO] Downloading: ${proxyURL}/java.net/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
        [INFO] Downloading: ${proxyURL}/jboss/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
        [INFO] [INFO] ------------------------------------------------------------------------
        [INFO] [ERROR] BUILD ERROR
        [INFO] [INFO] ------------------------------------------------------------------------
        [INFO] [INFO] Error building POM (may not be this project's POM).
        {noformat}

        James Nord made changes -
        Resolution Won't Fix [ 2 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Brett Porter made changes -
        Assignee Brett Porter [ brettporter ]
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]
        James Nord made changes -
        Attachment mvn2.0.10_debug.log [ 40727 ]
        James Nord made changes -
        Attachment mvn2.1.0-RC3.log [ 40725 ]
        Attachment mvn2.0.10.log [ 40724 ]
        James Nord made changes -
        Attachment pom.xml [ 40723 ]
        Attachment settings.xml [ 40722 ]
        James Nord made changes -
        Status Closed [ 6 ] Reopened [ 4 ]
        Resolution Not A Bug [ 6 ]
        James Nord made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Not A Bug [ 6 ]
        James Nord created issue -

          People

          • Assignee:
            Brett Porter
            Reporter:
            James Nord
          • Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development