On Saturday, 29 May 2021 15:33:15 CEST tommy wrote:
Why can not package the ovirt SDK ?
The error line is :
import org.ovirt.api.metamodel.concepts.ListType;
There is not such class, where to download it ?
it's part of org.ovirt.engine.api:metamodel-concepts artefact, you can
download it e.g. from central repository [1]
Should maven download it auto ?
yes, it should and it's also in available in central repo, check your maven
settings if you have this repo enabled, use right profile etc.
[1]
https://search.maven.org/artifact/org.ovirt.engine.api/metamodel-concepts
[root@test1 ovirt-engine-sdk-java]# mvn package
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] oVirt Java SDK Parent
[INFO] oVirt Java SDK Generator
[INFO] oVirt Java SDK
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building oVirt Java SDK Parent 4.4.6-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @
java-sdk-parent ---
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building oVirt Java SDK Generator 4.4.6-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
java-sdk-generator ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
java-sdk-generator ---
[INFO] Compiling 3 source files to
/root/test/ovirt-engine-sdk-java/generator/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/root/test/ovirt-engine-sdk-java/generator/src/main/java/org/ovirt/sdk/java/
ServicesGenerator.java:[26,39] error: cannot access ListType
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] oVirt Java SDK Parent .............................. SUCCESS [ 1.259
s]
[INFO] oVirt Java SDK Generator ........................... FAILURE [ 2.234
s]
[INFO] oVirt Java SDK ..................................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3.780 s
[INFO] Finished at: 2021-05-28T21:57:53+08:00
[INFO] Final Memory: 16M/40M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project java-sdk-generator: Compilation failure
[ERROR]
/root/test/ovirt-engine-sdk-java/generator/src/main/java/org/ovirt/sdk/java/
ServicesGenerator.java:[26,39] error: cannot access ListType
[ERROR]
[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 :java-sdk-generator