Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MNG-7029] Remove super POM release profile #411

Closed
wants to merge 1 commit into from
Closed

Conversation

michael-o
Copy link
Member

No description provided.

@michael-o
Copy link
Member Author

@rfscholte The profile detection (MNG-7051) will be merged soon, but still there is no way to fail explicitly here because the profile is activated with a property:

osipovmi@deblndw011x:~/var/Projekte/maven-release (master=)
$ grep -r performRelease .
./maven-release-api/src/main/java/org/apache/maven/shared/release/config/ReleaseDescriptor.java:     * If set to true, this will set the property "performRelease" to true.
./maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/RunPerformGoalsPhase.java:                additionalArguments = additionalArguments + " -DperformRelease=true";
./maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/RunPerformGoalsPhase.java:                additionalArguments = "-DperformRelease=true";
./maven-release-manager/src/main/mdo/release-descriptor.mdo:            If set to true, this will set the property "performRelease" to true.
./maven-release-manager/src/test/java/org/apache/maven/shared/release/exec/ForkedMavenExecutorTest.java:        String arguments = "-DperformRelease=true -Dmaven.test.skip=true";
./maven-release-manager/src/test/java/org/apache/maven/shared/release/exec/ForkedMavenExecutorTest.java:        verify( argMock ).setLine( "-DperformRelease=true -Dmaven.test.skip=true" );
./maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RunPerformGoalsPhaseTest.java:                                                                                                   eq( "-DperformRelease=true -f pom.xml" ),
./maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RunPerformGoalsPhaseTest.java:                                     eq( "-DperformRelease=true -f pom.xml" ),
./maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RunPerformGoalsPhaseTest.java:                                     eq( "-DperformRelease=true -f pom1.xml" ),
./maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RunPerformGoalsPhaseTest.java:                                     eq( "-DperformRelease=true -f pom.xml" ),
./maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RunPerformGoalsPhaseTest.java:                                     eq( "-Dmaven.test.skip=true -DperformRelease=true -f pom.xml" ),
./maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RunPerformGoalsPhaseTest.java:                                     eq( "-DperformRelease=true -f pom.xml" ),
./maven-release-plugin/src/it/projects/perform/MRELEASE-459/verify.groovy:def addArgsExpr = /\Q[DEBUG] Additional arguments: \E(?:-Dhttps.protocols=TLSv1.2 )?-P(.+)\Q-DperformRelease=true -f pom.xml\E/
./maven-release-plugin/src/it/projects/perform/MRELEASE-459/verify.groovy:// M2:  [DEBUG] Additional arguments: -P custom-release -DperformRelease=true -f pom.xml
./maven-release-plugin/src/it/projects/perform/MRELEASE-459/verify.groovy:// M3:  [DEBUG] Additional arguments: -P it-repo,it-repo,custom-release -DperformRelease=true -f pom.xml
./maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PerformReleaseMojo.java:     * If set to true, the release plugin sets the property "performRelease" to true, which activates the profile

Still any objections to merge this?

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rfscholte
Copy link
Contributor

@michael-o
Copy link
Member Author

https://github.com/apache/maven-release/blob/master/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/AbstractRunGoalsPhase.java#L109-L113 shows profile activation by id, so please do this in the right order and merge after MNG-7051.

Indeed, I will obey the order, of course. I am confused why RunPerformGoalsPhase uses the actvation property instead of the profile...

@rfscholte
Copy link
Contributor

Most likely quite old code still hanging around, never removed to preserve backwards compatibility.

@michael-o
Copy link
Member Author

The question is should that be completely removed from MRELEASE or moved to the profile altogether to fail explicitly?

@michael-o
Copy link
Member Author

I prefer hard failure with deprecation of that config option.

@rfscholte
Copy link
Contributor

@michael-o
Copy link
Member Author

The we are good to remove it for next major.

@asfgit asfgit closed this in eae3074 Feb 2, 2021
asfgit pushed a commit that referenced this pull request Feb 5, 2021
@hboutemy hboutemy deleted the MNG-7029 branch April 5, 2021 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants