fmorg-git opened a new pull request, #10912:
URL: https://github.com/apache/ozone/pull/10912
Please describe your PR in detail:
* When using Java 24.0.2 as Maven version, the an error similar to the
following occurs when building Ozone:
```
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR]
'build.plugins.plugin[dev.aspectj:aspectj-maven-plugin].dependencies.dependency.version'
for org.aspectj:aspectjtools:jar must be a valid version but is
'${aspectj.version}'. @ line 1775, column 24
@
[INFO] 0 goals, 0 executed
[WARNING] Adding build scan buildFinished actions is not allowed once their
invocation has started. Newly added action will be ignored.
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.apache.ozone:ozone-main:2.3.0-SNAPSHOT
(/<OZONE_PATH>/pom.xml) has 1 error
[ERROR]
'build.plugins.plugin[dev.aspectj:aspectj-maven-plugin].dependencies.dependency.version'
for org.aspectj:aspectjtools:jar must be a valid version but is
'${aspectj.version}'. @ line 1775, column 24
[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 full debug logging.
[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/ProjectBuildingException
```
The reason is that the `aspectj.version` is never set when run on Java
24.0.2 (there could be similar issues on other versions such as Java 10, etc).
This ticket makes the fix.
This is related to
[HDDS-15699](https://issues.apache.org/jira/browse/HDDS-15699).
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-16050
## How was this patch tested?
locally build Ozone after update
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]