Uploaded image for project: 'Active and Available Inventory'
  1. Active and Available Inventory
  2. AAI-3453

[aai-common] mvn clean install error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Medium Medium
    • Jakarta Release
    • Jakarta Release
    • None

      I tried to build aai-common locally

      ```

      $ mvn --version
      Apache Maven 3.6.0
      Maven home: /usr/share/maven
      Java version: 11.0.13, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
      Default locale: en, platform encoding: UTF-8
      OS name: "linux", version: "4.15.0-166-generic", arch: "amd64", family: "unix"

      ```

      ```

      $ java -version
      openjdk version "11.0.13" 2021-10-19
      OpenJDK Runtime Environment (build 11.0.13+8-Ubuntu-0ubuntu1.18.04)
      OpenJDK 64-Bit Server VM (build 11.0.13+8-Ubuntu-0ubuntu1.18.04, mixed mode, sharing)

      ```

      and I got an error

      ```

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project aai-utils: Compilation failure: Compilation failure:
      [ERROR] /home/ubuntu/onap/repos/aai/aai-common/aai-utils/src/main/java/org/onap/aaiutils/oxm/OxmModelLoader.java:[37,22] package javax.xml.bind does not exist
      [ERROR] /home/ubuntu/onap/repos/aai/aai-common/aai-utils/src/main/java/org/onap/aaiutils/oxm/OxmModelLoader.java:[112,82] cannot find symbol
      [ERROR] symbol: class JAXBException
      [ERROR] location: class org.onap.aaiutils.oxm.OxmModelLoader
      [ERROR] /home/ubuntu/onap/repos/aai/aai-common/aai-utils/src/main/java/org/onap/aaiutils/oxm/OxmModelLoader.java:[117,90] cannot find symbol
      [ERROR] symbol: class JAXBException
      [ERROR] location: class org.onap.aaiutils.oxm.OxmModelLoader
      [ERROR] /home/ubuntu/onap/repos/aai/aai-common/aai-utils/src/main/java/org/onap/aaiutils/oxm/OxmModelLoader.java:[123,20] cannot find symbol
      [ERROR] symbol: class JAXBException
      [ERROR] location: class org.onap.aaiutils.oxm.OxmModelLoader
      [ERROR] -> [Help 1]
      [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/MojoFailureException
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR] mvn <goals> -rf :aai-utils

      ```

      If I add a dependency 

      ```
              <dependency>
                  <groupId>jakarta.xml.bind</groupId>
                  <artifactId>jakarta.xml.bind-api</artifactId>
                  <version>2.3.3</version>
              </dependency>
      ```

      into aai-utils/pom.xml build finishes with success. Is there anything special I need to do to build aai-common? Or that's a bug and that dependency should be added?

            wreehil wreehil
            michaljagiellotmpl michaljagiellotmpl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: