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

Duo Zhang commented on MENFORCER-413:
-------------------------------------

I also faced this issue and for my usage, and downgrade to 3.0.0-M3 does not 
work.

I want to use requireUpperBoundDeps rule to force the projects to use the upper 
bound dependency for a specific library.

If I use 3.0.0, I got the error described in the description of this issue
{noformat}
WARNING] The POM for 
org.springframework.roo:org.springframework.roo.annotations:jar:1.2.3.RELEASE 
is missing, no dependency information available
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireUpperBoundDeps 
failed with message:
Could not build dependency tree Could not collect dependencies: xxxxx ()
{noformat}

If I use 3.0.0-M3, I got another error
{noformat}
Unable to parse configuration of mojo 
org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce for parameter 
includes: Cannot find 'includes' in class 
org.apache.maven.plugins.enforcer.RequireUpperBoundDeps
{noformat}

This is because in 3.0.0-M3, the RequireUpperBoundDeps rule does not support 
'includes'...

> Upgrading from 3.0.0-M3 to 3.0.0 causes strange errors about Spring Roo
> -----------------------------------------------------------------------
>
>                 Key: MENFORCER-413
>                 URL: https://issues.apache.org/jira/browse/MENFORCER-413
>             Project: Maven Enforcer Plugin
>          Issue Type: Bug
>          Components: Plugin
>    Affects Versions: 3.0.0
>            Reporter: Matt Raible
>            Priority: Major
>             Fix For: wontfix-candidate
>
>
> In a fresh JHipster project, I get a strange error from the Maven enforcer 
> plugin about Spring Roo dependencies.
>  
> [INFO] — maven-enforcer-plugin:3.0.0:enforce (enforce-dependencyConvergence) 
> @ lapp-li —
> [WARNING] The POM for org.apache.logging.log4j:log4j-api-java9:zip:2.14.1 is 
> missing, no dependency information available
> Downloading from spring-libs-snapshot: 
> [https://repo.spring.io/libs-snapshot/org/springframework/roo/org.springframework.roo.annotations/1.2.3.RELEASE/org.springframework.roo.annotations-1.2.3.RELEASE.pom]
> Downloading from spring-libs-release: 
> [https://repo.spring.io/libs-release/org/springframework/roo/org.springframework.roo.annotations/1.2.3.RELEASE/org.springframework.roo.annotations-1.2.3.RELEASE.pom]
>  
> If I run {{{}mvn dependency:tree | grep roo{}}}, there are no results. 
>  
> According to the issue below, reverting to -M3 solves the problem.
>  
> [https://github.com/jhipster/generator-jhipster/issues/16318]



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to