Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-8246 Java 11/17 Support and Testing
  3. HDDS-10118

hdds-rocks-native fails to build with Java11+

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • build

    Description

      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.
      

      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.

            <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>
      

      Attachments

        Issue Links

          Activity

            People

              raju.balpande Raju Balpande
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: