[BUILD-1058] UpdateCopyrightYears refactoring fails on some projects Created: 17/Apr/23  Updated: 21/Apr/23  Resolved: 18/Apr/23

Status: Closed
Project: Build
Component/s: Build Tools
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Michael Duerig Assignee: Michael Duerig
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Team: Foundation
Work Started:
Approved:
Yes

 Description   

info.magnolia.rewrite.UpdateCopyrightYears fails on some projects (e.g. demo-projects, see #383)

[ERROR] Failed to execute goal org.openrewrite.maven:rewrite-maven-plugin:4.43.0:run (default-cli) on project magnolia-demo-projects-reactor: Execution default-cli of goal org.openrewrite.maven:rewrite-maven-plugin:4.43.0:run failed: Failed to download dependencies for enterprise/magnolia-dx-core-demo-webapp/pom.xml: 
...
[ERROR]   <dependencies>
[ERROR]     <!--~~(jakarta.persistence:jakarta.persistence-api:${jakarta-persistence-api.version} failed. Could not resolve property)~~>--><dependency>
[ERROR]       <groupId>info.magnolia.dx</groupId>
[ERROR]       <artifactId>magnolia-dx-core-webapp</artifactId>
[ERROR]       <type>war</type>
[ERROR]     </dependency>

This is caused by https://github.com/jakartaee/jakartaee-api/issues/97, which apparently trips the POM resolution mechanism of OpenRewrite.

 


Generated at Sun Feb 11 23:47:45 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.