[
https://issues.apache.org/jira/browse/HDDS-10118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17829665#comment-17829665
]
Attila Doroszlai commented on HDDS-10118:
-----------------------------------------
It looks like the original issue has been fixed (probably by HDDS-10149) since
it was reported. Reusing this for the problem [~raju.balpande] found:
{code}
[INFO] --- maven-dependency-plugin:3.6.1:copy-dependencies (copy-jars) @
hdds-rocks-native ---
[INFO] Copying hdds-managed-rocksdb-1.5.0-SNAPSHOT.jar to
hadoop-hdds/rocks-native/target/dependency/hdds-managed-rocksdb-1.5.0-SNAPSHOT.jar
[INFO] Copying hdds-common-1.5.0-SNAPSHOT.jar to
hadoop-hdds/rocks-native/target/dependency/hdds-common-1.5.0-SNAPSHOT.jar
[INFO] Copying hdds-hadoop-dependency-client-1.5.0-SNAPSHOT.jar to
hadoop-hdds/rocks-native/target/dependency/hdds-hadoop-dependency-client-1.5.0-SNAPSHOT.jar
[INFO] Copying hadoop-annotations-3.3.6.jar to
hadoop-hdds/rocks-native/target/dependency/hadoop-annotations-3.3.6.jar
...
[INFO] --- exec-maven-plugin:3.1.1:exec (javach) @ hdds-rocks-native ---
error: file not found:
hadoop-hdds/rocks-native/src/main/java/org/apache/hadoop/hdds/utils/db/managed/ManagedRawSSTFileReaderIterator.java
Usage: javac <options> <source files>
use --help for a list of possible options
19:17:56,727 [ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit
value: 2)
{code}
> hdds-rocks-native fails to build with Java11+
> ---------------------------------------------
>
> Key: HDDS-10118
> URL: https://issues.apache.org/jira/browse/HDDS-10118
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: build
> Reporter: Attila Doroszlai
> Assignee: Raju Balpande
> Priority: Major
> Labels: pull-request-available
>
> {code:title=output}
> Failed to execute goal
> org.apache.maven.plugins:maven-dependency-plugin:3.0.2:copy-dependencies
> (copy-jars) on project hdds-rocks-native: Artifact has not been packaged yet.
> When used on reactor artifact, copy should be executed after packaging: see
> MDEP-187.
> {code}
> The problem is specific to Java version only due to the activation of a
> different Maven profile. {{copy-jars}} is executed only with Java11+, so we
> don't see this with Java 8.
> {code:title=https://github.com/apache/ozone/blob/838cc2691b0652ade8de13c0c6156d4ca1b64751/hadoop-hdds/rocks-native/pom.xml#L436-L454}
> <id>java-11</id>
> <activation>
> <jdk>[11,]</jdk>
> <property>
> <name>rocks_tools_native</name>
> </property>
> </activation>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-dependency-plugin</artifactId>
> <executions>
> <execution>
> <id>copy-jars</id>
> <phase>process-sources</phase>
> <goals>
> <goal>copy-dependencies</goal>
> </goals>
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]