Fabian Morgan created HDDS-16050:
------------------------------------
Summary: Ozone has build error with specific Java versions
Key: HDDS-16050
URL: https://issues.apache.org/jira/browse/HDDS-16050
Project: Apache Ozone
Issue Type: Bug
Reporter: Fabian Morgan
Assignee: Fabian Morgan
When using Java 24.0.2 as Maven version, the following error 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
(/Users/morganfabian/thingsToKeep/dev/forks/ozone/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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]