obrienlabs / onap-root

Open Network Automation Platform - root project
9 stars 17 forks source link

Errors in process pom.xml and settings.xml #20

Open vertmont opened 4 years ago

vertmont commented 4 years ago

Hello,

I'm following the Building Entire ONAP instructions (as of 2/6/2020), but I'm getting the errors below.

Is Building Entire ONAP the correct link to the current insturctions to get the ONAP code and build it?

Thanks,

Dan

I cloned: https://github.com/obrienlabs/onap-root

Followed instructions and executed:

mvn clean install -U -DskipTests=true -Dmaven.test.skip=true -Dmaven.javadoc.skip=true

The pom.xml has the following errors:

[ERROR] [ERROR] Some problems were encountered while processing the POMs:

[ERROR] Child module /Users/dcoffey/Docs/Telecom/ONAP/code/git/logging-analytics/pomba-context-aggregator of /Users/dcoffey/Docs/Telecom/ONAP/code/git/pom.xml does not exist @ 

PATH on line 136 is wrong, should be:

logging-analytics/pomba/pomba-context-aggregator
[ERROR] Child module /Users/dcoffey/Docs/Telecom/ONAP/code/git/msb/service-mesh/pom.xml of /Users/dcoffey/Docs/Telecom/ONAP/code/git/pom.xml does not exist @ 

line 147 should be commented out - no pom.xml in PATH

[ERROR] Child module /Users/dcoffey/Docs/Telecom/ONAP/code/git/sdc/security-utils of /Users/dcoffey/Docs/Telecom/ONAP/code/git/pom.xml does not exist @ 

line 187 should be commented out - the folder "sdc/security-utils" does not exist in the file structure cloned.

These edits above fix the above errors.

Then these errors:

[INFO] ----------------------< org.onap.oparent:version >----------------------

[INFO] Building oparent 3.0.0-SNAPSHOT [1/871]

[INFO] --------------------------------[ pom ]---------------------------------

[INFO]

[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-property) @ version ---

[WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireProperty failed with message:

You must set a onap.nexus.url property in your ~/.m2/settings.xml. See oparent/settings.xml for an example.

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO]

[INFO] oparent 3.0.0-SNAPSHOT ............................. FAILURE [ 0.291 s]

[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 21.138 s [INFO] Finished at: 2020-02-07T12:05:35-05:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce (enforce-property) on project version: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [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/MojoExecutionException

Copied the sections below from oparent/settings.xml into ~/.m2/settings.xml

FIX: edit ~/.m2/settings.xml

ADD:

onap-settings https://nexus.onap.org

and

In section

         <activeProfile>onap-settings</activeProfile>

Build still fails with Java errors:

[INFO] onap.root 1.1.0-SNAPSHOT ........................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 54.128 s [INFO] Finished at: 2020-02-07T14:00:11-05:00 [INFO] ------------------------------------------------------------------------

constituent[0]: file:/usr/local/Cellar/maven/3.6.3/libexec/conf/logging/ constituent[1]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-plugin-api-3.6.3.jar constituent[2]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-compat-3.6.3.jar constituent[3]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-resolver-util-1.4.1.jar constituent[4]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/plexus-component-annotations-2.1.0.jar constituent[5]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-settings-builder-3.6.3.jar constituent[6]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/plexus-cipher-1.7.jar constituent[7]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/plexus-interpolation-1.25.jar constituent[8]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-resolver-spi-1.4.1.jar constituent[9]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/guice-4.2.1-no_aop.jar constituent[10]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-artifact-3.6.3.jar constituent[11]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-resolver-provider-3.6.3.jar constituent[12]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/cdi-api-1.0.jar constituent[13]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-slf4j-provider-3.6.3.jar constituent[14]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/plexus-utils-3.2.1.jar constituent[15]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/plexus-sec-dispatcher-1.4.jar constituent[16]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-repository-metadata-3.6.3.jar constituent[17]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/commons-cli-1.4.jar constituent[18]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-resolver-transport-wagon-1.4.1.jar constituent[19]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/commons-io-2.5.jar constituent[20]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/jansi-1.17.1.jar constituent[21]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-model-builder-3.6.3.jar constituent[22]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-embedder-3.6.3.jar constituent[23]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/wagon-file-3.3.4.jar constituent[24]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/org.eclipse.sisu.inject-0.3.4.jar constituent[25]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-resolver-connector-basic-1.4.1.jar constituent[26]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-settings-3.6.3.jar constituent[27]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-model-3.6.3.jar constituent[28]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-resolver-api-1.4.1.jar constituent[29]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/jcl-over-slf4j-1.7.29.jar constituent[30]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/wagon-http-3.3.4-shaded.jar constituent[31]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/org.eclipse.sisu.plexus-0.3.4.jar constituent[32]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/slf4j-api-1.7.29.jar constituent[33]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-builder-support-3.6.3.jar constituent[34]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/jsoup-1.12.1.jar constituent[35]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/wagon-provider-api-3.3.4.jar constituent[36]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-shared-utils-3.2.1.jar constituent[37]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-resolver-impl-1.4.1.jar constituent[38]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/maven-core-3.6.3.jar constituent[39]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/javax.inject-1.jar constituent[40]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/commons-lang3-3.8.1.jar constituent[41]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/guava-25.1-android.jar constituent[42]: file:/usr/local/Cellar/maven/3.6.3/libexec/lib/jsr250-api-1.0.jar

Exception in thread "main" java.lang.Error: java.lang.reflect.InvocationTargetException at com.sun.tools.xjc.reader.Ring.get(Ring.java:113) at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.(BGMBuilder.java:146) at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.build(BGMBuilder.java:116) at com.sun.tools.xjc.ModelLoader.annotateXMLSchema(ModelLoader.java:426) at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:175) at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:120) at org.jvnet.mjiip.v_2_2.XJC22Mojo.loadModel(XJC22Mojo.java:50) at org.jvnet.mjiip.v_2_2.XJC22Mojo.doExecute(XJC22Mojo.java:40) at org.jvnet.mjiip.v_2_2.XJC22Mojo.doExecute(XJC22Mojo.java:27) at org.jvnet.jaxb2.maven2.RawXJC2Mojo.doExecute(RawXJC2Mojo.java:314) at org.jvnet.jaxb2.maven2.RawXJC2Mojo.execute(RawXJC2Mojo.java:156) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289) at org.apache.maven.cli.MavenCli.main(MavenCli.java:193) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347) Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481) at com.sun.tools.xjc.reader.Ring.get(Ring.java:102) ... 32 more Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException at com.sun.tools.xjc.reader.Ring.get(Ring.java:113) at com.sun.tools.xjc.reader.xmlschema.BindingComponent.getClassSelector(BindingComponent.java:65) at com.sun.tools.xjc.reader.xmlschema.ColorBinder.(ColorBinder.java:62) at com.sun.tools.xjc.reader.xmlschema.BindGreen.(BindGreen.java:63) ... 38 more Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481) at com.sun.tools.xjc.reader.Ring.get(Ring.java:102) ... 41 more Caused by: java.lang.NoClassDefFoundError: javax/activation/MimeTypeParseException at java.base/java.lang.Class.getDeclaredConstructors0(Native Method) at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3142) at java.base/java.lang.Class.getConstructor0(Class.java:3347) at java.base/java.lang.Class.getDeclaredConstructor(Class.java:2558) at com.sun.tools.xjc.reader.Ring.get(Ring.java:100) at com.sun.tools.xjc.reader.xmlschema.DefaultClassBinder.(DefaultClassBinder.java:98) at com.sun.tools.xjc.reader.xmlschema.ClassSelector.(ClassSelector.java:214) ... 47 more Caused by: java.lang.ClassNotFoundException: javax.activation.MimeTypeParseException at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) ... 54 more

dcoffey@14:00:11 ~/Docs/Telecom/ONAP/code/git