[ 
https://issues.apache.org/jira/browse/MNG-6083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15463053#comment-15463053
 ] 

Robert Patrick commented on MNG-6083:
-------------------------------------

>From my quick scan of the toolchains documentation, it will not help us.  It 
>seems that the definitions in toolchain.xml are really only exposed to plugins 
>that leverage them.  In our case, I need to invoke an external process (via 
>shell script) and pass it arguments to these environment-specific locations.  
>I don't see any documentation on how I can reference values defined in 
>toolchain.xml at any point in my POM.  For example, here is a greatly 
>simplified example of a Maven exec plugin execution from the POM that doe the 
>pre-integration-test setup for each test execution:

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>exec-maven-plugin</artifactId>
  <executions>
    <execution>
      <id>setup-environments-for-tests</id>
      <phase>pre-integration-test</phase>
      <goals>
        <goal>exec</goal>
      </goals>
      <configuration>
        <executable>${bash-executable}</executable>
        <arguments>
          
<shell-script>${system-test-bin}/setupTestEnvironment.sh</shell-script>
          
<path_to_commercial_software_v1>${software.location.v1}</path_to_commercial_software_v1>
          
<path_to_commercial_software_v2>${software.location.v2}</path_to_commercial_software_v2>
          
<path_to_commercial_software_v3>${software.location.v3}</path_to_commercial_software_v3>
          <path_to_jdk7>${path-to-java7}</path_to_jdk7>
          <path_to_jdk8>${path-to-java8}</path_to_jdk8>
          
<script_to_call_value>${script-to-call}</script_to_call_value>
        </arguments>
      </configuration>
    </execution>
    ...
  </executions>
</plugin>

How would I reference those tools locations when they are defined in 
toolchain.xml?  I didn't see anything in the docs that covered such a use 
case...

> Maven 3.3.9 breaks release:perform by not including maven.config
> ----------------------------------------------------------------
>
>                 Key: MNG-6083
>                 URL: https://issues.apache.org/jira/browse/MNG-6083
>             Project: Maven
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 3.3.9
>            Reporter: Robert Patrick
>            Priority: Blocker
>
> Our release process runs both our build and our integration tests.  The 
> integration tests rely on our project root directory's .mvn/maven.config file 
> to run properly.  The maven.config file is NOT checked into the source tree 
> because it contains environment-specific values so each developer has their 
> own version of it on each machine on which they build.
> This has been working fine for months now but simply changing the version of 
> Maven used from 3.3.3 to 3.3.9 causes the build to break due to not having 
> the -Ds defined in $PROJECT_ROOT/.mvn/maven.config.
> It appears that the release:perform goal checks out the release source in 
> another location and with Maven 3.3.9, the maven.config from the original 
> location is not being used.  The build specifies the release-plugin version 
> so the difference seems to be in the core Maven distribution.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to