You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Arnaud Heritier (Jira)" <ji...@apache.org> on 2020/04/10 16:51:00 UTC
[jira] [Commented] (MRELEASE-1042) releaseProfiles get overriden by
activeProfiles
[ https://issues.apache.org/jira/browse/MRELEASE-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17080629#comment-17080629 ]
Arnaud Heritier commented on MRELEASE-1042:
-------------------------------------------
With debug logs I confirm that the settings from the parent are correctly injected
{noformat}
[DEBUG] Goal: org.apache.maven.plugins:maven-release-plugin:3.0.0-M2:perform (default-cli)
[DEBUG] Style: Aggregating
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<arguments>${arguments}</arguments>
<basedir default-value="${basedir}"/>
<connectionUrl>${connectionUrl}</connectionUrl>
<dryRun default-value="false">${dryRun}</dryRun>
<goals>${goals}</goals>
<javaHome default-value="${java.home}"/>
<localCheckout default-value="false">${localCheckout}</localCheckout>
<localRepoDirectory default-value="${maven.repo.local}"/>
<mavenExecutorId default-value="invoker">forked-path</mavenExecutorId>
<mavenHome default-value="${maven.home}"/>
<password>${password}</password>
<pomFileName default-value="${project.file.name}">${pomFileName}</pomFileName>
<project default-value="${project}"/>
<reactorProjects default-value="${reactorProjects}"/>
<releaseProfiles>cloudbees-internal-release</releaseProfiles>
<releaseStrategyId default-value="default">${releaseStrategyId}</releaseStrategyId>
<session default-value="${session}"/>
<settings default-value="${settings}"/>
<useReleaseProfile default-value="false">false</useReleaseProfile>
<username>${username}</username>
<workingDirectory default-value="${project.build.directory}/checkout">${workingDirectory}</workingDirectory>
</configuration>
...
[DEBUG] (f) releaseProfiles = cloudbees-internal-release{noformat}
I can share privately with a developer the full debug logs.
I will see if I can try t have a look at the code this week-end
> releaseProfiles get overriden by activeProfiles
> -----------------------------------------------
>
> Key: MRELEASE-1042
> URL: https://issues.apache.org/jira/browse/MRELEASE-1042
> Project: Maven Release Plugin
> Issue Type: Bug
> Components: perform
> Affects Versions: 3.0.0-M2
> Reporter: Arnaud Heritier
> Priority: Major
>
> I tried to release a project with 3.0.0-M2 and potentially it is another problem related to MRELEASE-1038 [~rfscholte] [~olamy]
>
> In our corporate POM we have a pluginManagement entry:
> {code:java}
> <plugin>
> <artifactId>maven-release-plugin</artifactId>
> <version>2.5.3</version>
> <configuration>
> <mavenExecutorId>forked-path</mavenExecutorId>
> <useReleaseProfile>false</useReleaseProfile>
> <releaseProfiles>cloudbees-internal-release</releaseProfiles>
> </configuration>
> </plugin>
> {code}
> My project extends it and has no settings related to the release plugin
> In my user settings I have
> {code:java}
> <activeProfiles>
> <activeProfile>cloudbees-internal-deploy</activeProfile>
> <activeProfile>cloudbees-snapshots</activeProfile>
> <activeProfile>apache-staging</activeProfile>
> </activeProfiles>
> {code}
> Then I release my project using 3.0.0-M2 with
> {code:java}
> mvn org.apache.maven.plugins:maven-release-plugin:3.0.0-M2:prepare org.apache.maven.plugins:maven-release-plugin:3.0.0-M2:perform
> {code}
> The perform step is taking my user profiles but not the ones from "releaseProfiles"
> {noformat}
> [INFO] Executing: /bin/sh -c cd /Users/arnaud/some/path/target/checkout && /Users/arnaud/.asdf/installs/maven/3.6.3/bin/mvn -s /var/folders/bw/j0tmy8p52szfms6c7qb0tx2r0000gn/T/release-settings4094445863857985100.xml -f pom.xml deploy -P cloudbees-internal-deploy,cloudbees-snapshots,apache-staging -f pom.xml{noformat}
> Not sure if it could be because I call the release plugin with the full GAV but it is strange ...
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)