[
https://issues.apache.org/jira/browse/MNG-8665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939801#comment-17939801
]
Basil Crow edited comment on MNG-8665 at 3/31/25 8:38 PM:
----------------------------------------------------------
[~gnodet] No. This is a regression, because the profiles are not optional and
do exist. I suspect this line is relevant:
{noformat}
[WARNING] Failed to build parent project for
org.jenkins-ci.plugins:text-finder:hpi:1.32-SNAPSHOT
{noformat}
Note that I only see this error when running against a clean {{$HOME/.m2}}
directory; after populating the {{$HOME/.m2}} directory with Maven 3.9.9, the
actual results match the expected results even with Maven 4.0.0-rc-3.
was (Author: basil):
[~gnodet] No. This is a regression, because the profiles are not optional and
do exist. I suspect this line is relevant:
{noformat}
[WARNING] Failed to build parent project for
org.jenkins-ci.plugins:text-finder:hpi:1.32-SNAPSHOT
{noformat}
Note that I only see this error when running against a clean {{$HOME/.m2}}
directory; after populating the {{$HOME/.m2}} directory with Maven 3.9.9,
things the actual results match the expected results even with Maven 4.0.0-rc-3.
> mvn validate fails for Jenkins plugins (regression in 4.0.0-rc-1)
> -----------------------------------------------------------------
>
> Key: MNG-8665
> URL: https://issues.apache.org/jira/browse/MNG-8665
> Project: Maven
> Issue Type: Bug
> Components: Core
> Affects Versions: 4.0.0-rc-1, 4.0.0-rc-2, 4.0.0-rc-3
> Reporter: Basil Crow
> Assignee: Guillaume Nodet
> Priority: Major
>
> h3. Steps to reproduce
> {noformat}
> $ git clone https://github.com/jenkinsci/text-finder-plugin.git
> $ cd text-finder-plugin
> $ mvn validate
> {noformat}
> h3. Expected results
> *Note:* These are the _actual_ results with Maven 3.9.9 and Maven
> 4.0.0-beta-4.
> Build succeeds.
> h3. Actual results:
> As of 4.0.0-rc-1 (including 4.0.0-rc-2 and 4.0.0-rc-3), I see:
> {noformat}
> $ mvn validate
> [INFO] Scanning for projects...
> [WARNING] Failed to build parent project for
> org.jenkins-ci.plugins:text-finder:hpi:1.32-SNAPSHOT
> [ERROR] The requested profiles [might-produce-incrementals,
> consume-incrementals] could not be activated or deactivated because they do
> not exist. -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the '-e'
> switch
> [ERROR] Re-run Maven using the '-X' switch to enable verbose output
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MissingProfilesException
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)