Maven nexus could not resolve juniper-contrail-api - maven

am trying to install some code on my workstation using an own remote repository using Nexus. Some of the projects can be deployed and installed correctly. However, there is a project which some dependencies cannot be resolved.
This is the log:
[INFO] Building Apache CloudStack Plugin - Network Juniper Contrail 4.5.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://192.168.1.109:8081/nexus/content/groups/public/net/juniper/contrail/juniper-contrail-api/1.0-SNAPSHOT/maven-metadata.xml
Downloading: http://192.168.1.109:8081/nexus/content/groups/public/net/juniper/contrail/juniper-contrail-api/1.0-SNAPSHOT/juniper-contrail-api-1.0-SNAPSHOT.pom
[WARNING] The POM for net.juniper.contrail:juniper-contrail-api:jar:1.0-SNAPSHOT is missing, no dependency information available
Downloading: http://192.168.1.109:8081/nexus/content/groups/public/org/apache/commons/commons-exec/1.1/commons-exec-1.1.pom
Downloaded: http://192.168.1.109:8081/nexus/content/groups/public/org/apache/commons/commons-exec/1.1/commons-exec-1.1.pom (11 KB at 456.2 KB/sec)
Downloading: http://192.168.1.109:8081/nexus/content/groups/public/net/juniper/contrail/juniper-contrail-api/1.0-SNAPSHOT/juniper-contrail-api-1.0-SNAPSHOT.jar
Downloading: http://192.168.1.109:8081/nexus/content/groups/public/org/apache/commons/commons-exec/1.1/commons-exec-1.1.jar
Downloaded: http://192.168.1.109:8081/nexus/content/groups/public/org/apache/commons/commons-exec/1.1/commons-exec-1.1.jar (52 KB at 2332.3 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache CloudStack Developer Tools - Checkstyle Configuration SUCCESS [5.957s]
[INFO] Apache CloudStack ................................. SUCCESS [7.994s]
[INFO] Apache CloudStack Maven Conventions Parent ........ SUCCESS [1.824s]
[INFO] Apache CloudStack Framework - Managed Context ..... SUCCESS [3.565s]
[INFO] Apache CloudStack Utils ........................... SUCCESS [19.943s]
[INFO] Apache CloudStack Framework ....................... SUCCESS [0.056s]
[INFO] Apache CloudStack Framework - Event Notification .. SUCCESS [7.477s]
[INFO] Apache CloudStack Framework - Configuration ....... SUCCESS [3.243s]
[INFO] Apache CloudStack API ............................. SUCCESS [12.763s]
[INFO] Apache CloudStack Framework - REST ................ SUCCESS [2.796s]
[INFO] Apache CloudStack Framework - IPC ................. SUCCESS [3.335s]
[INFO] Apache CloudStack Cloud Engine .................... SUCCESS [0.036s]
[INFO] Apache CloudStack Cloud Engine API ................ SUCCESS [3.927s]
[INFO] Apache CloudStack Framework - Security ............ SUCCESS [2.258s]
[INFO] Apache CloudStack Core ............................ SUCCESS [18.340s]
[INFO] Apache CloudStack Agents .......................... SUCCESS [6.946s]
[INFO] Apache CloudStack Framework - Clustering .......... SUCCESS [4.111s]
[INFO] Apache CloudStack Framework - Event Notification .. SUCCESS [1.263s]
[INFO] Apache CloudStack Cloud Engine Schema Component ... SUCCESS [12.014s]
[INFO] Apache CloudStack Framework - Jobs ................ SUCCESS [4.621s]
[INFO] Apache CloudStack Cloud Engine Internal Components API SUCCESS [2.448s]
[INFO] Apache CloudStack Server .......................... SUCCESS [34.150s]
[INFO] Apache CloudStack Usage Server .................... SUCCESS [5.247s]
[INFO] Apache CloudStack Cloud Engine Orchestration Component SUCCESS [7.926s]
[INFO] Apache CloudStack Cloud Services .................. SUCCESS [0.029s]
[INFO] Apache CloudStack Secondary Storage ............... SUCCESS [0.221s]
[INFO] Apache CloudStack Secondary Storage Service ....... SUCCESS [4.067s]
[INFO] Apache CloudStack Engine Storage Component ........ SUCCESS [5.103s]
[INFO] Apache CloudStack Engine Storage Volume Component . SUCCESS [3.416s]
[INFO] Apache CloudStack Engine Storage Image Component .. SUCCESS [1.988s]
[INFO] Apache CloudStack Engine Storage Data Motion Component SUCCESS [2.026s]
[INFO] Apache CloudStack Engine Storage Cache Component .. SUCCESS [2.160s]
[INFO] Apache CloudStack Engine Storage Snapshot Component SUCCESS [5.856s]
[INFO] Apache CloudStack Cloud Engine API ................ SUCCESS [1.439s]
[INFO] Apache CloudStack Cloud Engine Service ............ SUCCESS [3.501s]
[INFO] Apache CloudStack Plugin POM ...................... SUCCESS [0.381s]
[INFO] Apache CloudStack Plugin - API Rate Limit ......... SUCCESS [5.112s]
[INFO] Apache CloudStack Plugin - Storage Volume default provider SUCCESS [2.032s]
[INFO] Apache CloudStack Plugin - Storage Volume SolidFire Provider SUCCESS [4.023s]
[INFO] Apache CloudStack Plugin - API SolidFire .......... SUCCESS [2.192s]
[INFO] Apache CloudStack Plugin - API Discovery .......... SUCCESS [3.353s]
[INFO] Apache CloudStack Plugin - ACL Static Role Based .. SUCCESS [1.870s]
[INFO] Apache CloudStack Plugin - Host Anti-Affinity Processor SUCCESS [2.430s]
[INFO] Apache CloudStack Plugin - Explicit Dedication Processor SUCCESS [2.099s]
[INFO] Apache CloudStack Plugin - User Concentrated Pod Deployment Planner SUCCESS [1.766s]
[INFO] Apache CloudStack Plugin - User Dispersing Deployment Planner SUCCESS [1.562s]
[INFO] Apache CloudStack Plugin - Implicit Dedication Planner SUCCESS [5.620s]
[INFO] Apache CloudStack Plugin - Skip Heurestics Planner SUCCESS [1.554s]
[INFO] Apache CloudStack Plugin - Host Allocator Random .. SUCCESS [2.016s]
[INFO] Apache CloudStack Plugin - Dedicated Resources .... SUCCESS [5.028s]
[INFO] Apache CloudStack Plugin - Hypervisor OracleVM .... SUCCESS [2.520s]
[INFO] Apache CloudStack Plugin - Open vSwitch ........... SUCCESS [2.586s]
[INFO] Apache CloudStack Plugin - Hypervisor XenServer ... SUCCESS [7.608s]
[INFO] Apache CloudStack Plugin - Hypervisor KVM ......... SUCCESS [7.350s]
[INFO] Apache CloudStack Plugin - RabbitMQ Event Bus ..... SUCCESS [1.861s]
[INFO] Apache CloudStack Plugin - In Memory Event Bus .... SUCCESS [3.026s]
[INFO] Apache CloudStack Plugin - Hypervisor Baremetal ... SUCCESS [4.021s]
[INFO] Apache CloudStack Plugin - Hypervisor UCS ......... SUCCESS [2.294s]
[INFO] Apache CloudStack Plugin - Hypervisor Hyper-V ..... SUCCESS [4.920s]
[INFO] Apache CloudStack Plugin - Network Elastic Load Balancer SUCCESS [5.291s]
[INFO] Apache CloudStack Plugin - Network Internal Load Balancer SUCCESS [6.544s]
[INFO] Apache CloudStack Framework - Spring Life Cycle ... SUCCESS [1.831s]
[INFO] Apache CloudStack Plugin - Network Juniper Contrail FAILURE [2.055s]
[INFO] Apache CloudStack Plugin - Palo Alto .............. SKIPPED
[INFO] Apache CloudStack Plugin - Network Netscaler ...... SKIPPED
[INFO] Apache CloudStack Plugin - Network Nicira NVP ..... SKIPPED
[INFO] Apache CloudStack Plugin - BigSwitch Virtual Network Segment SKIPPED
[INFO] Apache CloudStack Plugin - Network Brocade VCS .... SKIPPED
[INFO] Apache CloudStack Plugin - Midokura Midonet ....... SKIPPED
[INFO] Apache CloudStack Plugin - Stratosphere SSP ....... SKIPPED
[INFO] Apache CloudStack Plugin - Network Opendaylight ... SKIPPED
[INFO] Apache CloudStack Plugin - Storage Allocator Random SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator LDAP SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator MD5 . SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator PBKDF2-SHA-256 SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator Plain Text SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator SAML2 SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator SHA256 Salted SKIPPED
[INFO] Apache CloudStack Plugin - Dns Notifier Example ... SKIPPED
[INFO] Apache CloudStack Plugin - Storage Image S3 ....... SKIPPED
[INFO] Apache CloudStack Plugin - Storage Image Swift provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Image default provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Image sample provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume Nexenta Provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume CloudByte Provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume sample provider SKIPPED
[INFO] Apache CloudStack Plugin - SNMP Alerts ............ SKIPPED
[INFO] Apache CloudStack Plugin - Syslog Alerts .......... SKIPPED
[INFO] Apache CloudStack Plugin - Network VXLAN .......... SKIPPED
[INFO] Apache CloudStack Plugin - GloboDNS ............... SKIPPED
[INFO] Apache CloudStack Framework - Spring Module ....... SKIPPED
[INFO] Apache CloudStack Secondary Storage Controller .... SKIPPED
[INFO] Apache CloudStack Console Proxy - RDP Client ...... SKIPPED
[INFO] Apache CloudStack Console Proxy ................... SKIPPED
[INFO] Apache CloudStack Console Proxy - Server .......... SKIPPED
[INFO] Apache CloudStack System VM ....................... SKIPPED
[INFO] Apache CloudStack Client UI ....................... SKIPPED
[INFO] Apache CloudStack Framework - QuickCloud .......... SKIPPED
[INFO] Apache CloudStack Test ............................ SKIPPED
[INFO] Apache CloudStack Developer Mode .................. SKIPPED
[INFO] Apache CloudStack Developer Tools ................. SKIPPED
[INFO] Apache CloudStack apidocs ......................... SKIPPED
[INFO] Apache CloudStack marvin .......................... SKIPPED
[INFO] Apache CloudStack DevCloud ........................ SKIPPED
[INFO] Apache CloudStack DevCloud-KVM .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4:56.657s
[INFO] Finished at: Sun Nov 01 15:35:45 CET 2015
[INFO] Final Memory: 73M/340M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project cloud-plugin-network-contrail: Could not resolve dependencies for project org.apache.cloudstack:cloud-plugin-network-contrail:jar:4.5.3-SNAPSHOT: Could not find artifact net.juniper.contrail:juniper-contrail-api:jar:1.0-SNAPSHOT in internal-repository (http://192.168.1.109:8081/nexus/content/groups/public) -> [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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :cloud-plugin-network-contrail
This is my .m2/settings.xml
<settings>
<mirrors>
<mirror>
<id>internal-repository</id>
<name>Maven Repository Manager running on Spielplatz</name>
<url>http://192.168.1.109:8081/nexus/content/groups/public</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
</settings>
When I deploy cloudstack without using my own repository, everything works fine, so I tried to copy the jar file that is required in the Hosted - SNAPSHOTS repository on nexus (by copying it into the /opt/nexus/sonatype-work/nexus/storage/snapshots and refreshing the repository in the web UI) but it won't work. The same error shows up.
Please, any help would be greatly appreciated.

Maven's output says it all:
[WARNING] The POM for net.juniper.contrail:juniper-contrail-api:jar:1.0-SNAPSHOT is missing,
no dependency information available
...
[ERROR] Failed to execute goal on project cloud-plugin-network-contrail:
Could not resolve dependencies for project
org.apache.cloudstack:cloud-plugin-network-contrail:jar:4.5.3-SNAPSHOT:
Could not find artifact net.juniper.contrail:juniper-contrail-api:jar:1.0-SNAPSHOT
in internal-repository (http://192.168.1.109:8081/nexus/content/groups/public)
This occurs since you:
tried to copy the jar file that is required in the Hosted - SNAPSHOTS repository on nexus (by copying it into the /opt/nexus/sonatype-work/nexus/storage/snapshots and refreshing the repository in the web UI)
which is not one of the proper ways to do such:
Using the deploy-file goal of the Apache Maven Deploy Plugin.
Using Nexus' UI to upload artifact(s) manually.
See Repository Management with Nexus, 5.13. Uploading Components.

Related

WSO2 APIM Build Failure : : am-p2-profile: Cannot generate P2 metadata: P2 publisher return code was 13 -

Unable to build wso2 API manager version 2.6.0.
Os : Tried with Windows 10 and Cent OS
Maven & Java version Details:
[root#localhost ~]# mvn -version
Apache Maven 3.0.5 (Red Hat 3.0.5-17)
Maven home: /usr/share/maven
Java version: 1.8.0_242, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el7_7.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-957.el7.x86_64", arch: "amd64", family: "unix"
maven build error:
[INFO] --- carbon-p2-plugin:1.5.4:materialize-product (creating-gateway-worker-profile) # am-p2-profile ---
[INFO] Command line:
/bin/sh -c cd /root/wso2/APIM/wso2-product-apim/modules/p2-profile/product && /u sr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el7_7.x86_64/jre/bin/java -jar /root/.m2/r epository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox. launcher_1.2.0.v20110725-1610.jar -nosplash -application org.eclipse.equinox.p2.director -metadataRepository file:/root/wso2/APIM/wso2-product-apim/modules/p2-profile/product/t arget/p2-repo -artifactRepository file:/root/wso2/APIM/wso2-product-apim/modules/p2-prof ile/product/target/p2-repo -installIU carbon.product.id -profileProperties org.eclipse.u pdate.install.features=true -profile gateway-worker -bundlepool file:/root/wso2/APIM/wso 2-product-apim/modules/p2-profile/product/target/wso2carbon-core-4.4.35/repository/compo nents -shared file:/root/wso2/APIM/wso2-product-apim/modules/p2-profile/product/target/w so2carbon-core-4.4.35/repository/components/p2 -destination file:/root/wso2/APIM/wso2-pr oduct-apim/modules/p2-profile/product/target/wso2carbon-core-4.4.35/repository/component s/gateway-worker -p2.os linux -p2.ws gtk -p2.arch x86 -roaming
Installing carbon.product.id 4.4.35.
Installation failed.
One or more certificates rejected. Cannot proceed with installation.
Application failed, log file location: /root/.m2/repository/org/eclipse/tycho/tycho-p2-r untime/0.13.0/eclipse/configuration/1586643837368.log
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 API Manager - Aggregator Module .............. SUCCESS [4.285s]
[INFO] WSO2 API Manager - Styles Parent .................. SUCCESS [0.295s]
[INFO] WSO2 API Manager - Styles ......................... SUCCESS [8.789s]
[INFO] WSO2 Stratos API Manager - UI styles ............. SUCCESS [9.588s]
[INFO] WSO2 API Manager - Multi Tenant Dashboard ......... SUCCESS [4.142s]
[INFO] WSO2 API Manager - Features Parent ................ SUCCESS [0.126s]
[INFO] WSO2 API Manager - Features Aggregator Module ..... SUCCESS [0.102s]
[INFO] WSO2 API Manager - Styles Features ................ SUCCESS [1.729s]
[INFO] WSO2 API Manager - Multi Tenant Dashboard Feature . SUCCESS [4.649s]
[INFO] Samples ........................................... SUCCESS [2.094s]
[INFO] Clients for samples ............................... SUCCESS [0.409s]
[INFO] Publisher API client .............................. SUCCESS [12.008s]
[INFO] Store API client .................................. SUCCESS [4.289s]
[INFO] Admin API client .................................. SUCCESS [4.047s]
[INFO] Back end Service .................................. SUCCESS [7.122s]
[INFO] Sample Utils ...................................... SUCCESS [7.901s]
[INFO] Sample One ........................................ SUCCESS [47.254s]
[INFO] Sample Two ........................................ SUCCESS [28.712s]
[INFO] Sample Four ....................................... SUCCESS [29.776s]
[INFO] Sample Seven ...................................... SUCCESS [28.981s]
[INFO] Sample Eight ...................................... SUCCESS [30.187s]
[INFO] Sample Nine ....................................... SUCCESS [31.633s]
[INFO] Sample Ten ........................................ SUCCESS [31.590s]
[INFO] WSO2 API Manager - P2 Profile Generation Parent ... SUCCESS [0.096s]
[INFO] WSO2 API Manager - P2 Profile Generation .......... FAILURE [2:21.827s]
[INFO] API Manager : oauth2-grant-types .................. SKIPPED
[INFO] WSO2 API Manager - Distribution Parent ............ SKIPPED
[INFO] WSO2 API Manager - Distribution ................... SKIPPED
[INFO] WSO2 API Manager - API Import Export .............. SKIPPED
[INFO] WSO2 API Manager - Integration Tests .............. SKIPPED
[INFO] WSO2 API Manager - Integration Test Common Module . SKIPPED
[INFO] WSO2 API Manager - Integration Admin Clients Module SKIPPED
[INFO] WSO2 API Manager - Integration Common Test Module . SKIPPED
[INFO] WSO2 API Manager - Test Artifacts Tests ........... SKIPPED
[INFO] WSO2 API Manager - RestFul Backend Module for Integration Tests SKIPPED
[INFO] WSO2 API Manager - ArtifactDeploymentMonitor WebApp SKIPPED
[INFO] org.wso2.am.framework.extensions .................. SKIPPED
[INFO] WSO2 API Manager - Integration Extensions Module .. SKIPPED
[INFO] WSO2 API Manager - Integration UI Pages Module .... SKIPPED
[INFO] WSO2 API Manager - Integration New Test Module .... SKIPPED
[INFO] WSO2 API Manager - Based on product backend Test Module SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7:26.537s
[INFO] Finished at: Sat Apr 11 18:24:10 EDT 2020
[INFO] Final Memory: 81M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.4:materialize-product (creating-gateway-worker-profile) on project am-p2-profile: Cannot generate P2 metadata : P2 publisher return code was 13 -> [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 fo llowing articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :am-p2-profile
LOG FROM 1586643837368.log
[root#localhost configuration]# cat 1586643837368.log
!SESSION 2020-04-11 18:23:56.569 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_242
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -application org.eclipse.equinox.p2.director -metadataRepository file:/root/wso2/APIM/wso2-product-apim/modules/p2-profile/product/target/p2-repo -artifactRepository file:/root/wso2/APIM/wso2-product-apim/modules/p2-profile/product/target/p2-repo -installIU carbon.product.id -profileProperties org.eclipse.update.install.features=true -profile gateway-worker -bundlepool file:/root/wso2/APIM/wso2-product-apim/modules/p2-profile/product/target/wso2carbon-core-4.4.35/repository/components -shared file:/root/wso2/APIM/wso2-product-apim/modules/p2-profile/product/target/wso2carbon-core-4.4.35/repository/components/p2 -destination file:/root/wso2/APIM/wso2-product-apim/modules/p2-profile/product/target/wso2carbon-core-4.4.35/repository/components/gateway-worker -p2.os linux -p2.ws gtk -p2.arch x86 -roaming
Command-line arguments: -application org.eclipse.equinox.p2.director -metadataRepository file:/root/wso2/APIM/wso2-product-apim/modules/p2-profile/product/target/p2-repo -artifactRepository file:/root/wso2/APIM/wso2-product-apim/modules/p2-profile/product/target/p2-repo -installIU carbon.product.id -profileProperties org.eclipse.update.install.features=true -profile gateway-worker -bundlepool file:/root/wso2/APIM/wso2-product-apim/modules/p2-profile/product/target/wso2carbon-core-4.4.35/repository/components -shared file:/root/wso2/APIM/wso2-product-apim/modules/p2-profile/product/target/wso2carbon-core-4.4.35/repository/components/p2 -destination file:/root/wso2/APIM/wso2-product-apim/modules/p2-profile/product/target/wso2carbon-core-4.4.35/repository/components/gateway-worker -p2.os linux -p2.ws gtk -p2.arch x86 -roaming
!ENTRY org.eclipse.equinox.p2.engine 8 0 2020-04-11 18:24:09.869
!MESSAGE One or more certificates rejected. Cannot proceed with installation.
[root#localhost configuration]# pwd
/root/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration
[root#localhost configuration]# cat 1586643837368.log^C
[root#localhost configuration]#

apache atlas install error in web application

[Run command] export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=512m" &&
mvn clean install
[Error message] Running org.apache.atlas.web.adapters.TestEntityREST
Tests run: 11, Failures: 1, Errors: 0, Skipped: 8, Time elapsed:
13.995 sec <<< FAILURE! - in org.apache.atlas.web.adapters.TestEntityREST enter code here
cleanup(org.apache.atlas.web.adapters.TestEntityREST) Time elapsed:
0.217 sec <<< FAILURE!
java.lang.NullPointerException: null at org.apache.atlas.RequestContext.clear(RequestContext.java:97) at
org.apache.atlas.web.adapters.TestEntityREST.cleanup(TestEntityREST.java:80)
...
[INFO]
------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Apache Atlas Server Build
Tools .................... SUCCESS [ 1.489 s] [INFO] apache-atlas
....................................... SUCCESS [ 8.805 s] [INFO]
Apache Atlas Integration ........................... SUCCESS [
42.642 s] [INFO] Apache Atlas Common ................................ SUCCESS [ 14.276 s] [INFO] Apache
Atlas Typesystem ............................ SUCCESS [01:15 min]
[INFO] Apache Atlas Client ................................ SUCCESS
[ 17.168 s] [INFO] Apache Atlas Server API
............................ SUCCESS [ 8.440 s] [INFO] Apache Atlas
Notification .......................... SUCCESS [ 38.640 s] [INFO]
Apache Atlas Graph Database Projects ............... SUCCESS [
0.553 s] [INFO] Apache Atlas Graph Database API .................... SUCCESS [ 5.432 s] [INFO] Graph Database Common Code
......................... SUCCESS [ 5.636 s] [INFO] Shaded version
of Apache hbase client .............. SUCCESS [ 10.728 s] [INFO]
Apache Atlas Titan 0.5.4 Graph DB Impl ............. SUCCESS [01:58
min] [INFO] Apache Atlas Graph Database Implementation Dependencies
SUCCESS [ 0.846 s] [INFO] Shaded version of Apache hbase server
.............. SUCCESS [ 23.850 s] [INFO] Apache Atlas Repository
............................ SUCCESS [13:25 min] [INFO] Apache Atlas
Authorization ......................... SUCCESS [ 13.707 s] [INFO]
Apache Atlas Business Catalog ...................... SUCCESS [
31.334 s] [INFO] Apache Atlas UI .................................... SUCCESS [01:11 min] [INFO]
Apache Atlas Web Application ....................... FAILURE [04:29
min] [INFO] Apache Atlas Documentation .........................
SKIPPED [INFO] Apache Atlas FileSystem Model ......................
SKIPPED [INFO] Apache Atlas Plugin Classloader ....................
SKIPPED [INFO] Apache Atlas Hive Bridge Shim ......................
SKIPPED [INFO] Apache Atlas Hive Bridge ...........................
SKIPPED [INFO] Apache Atlas Falcon Bridge Shim ....................
SKIPPED [INFO] Apache Atlas Falcon Bridge .........................
SKIPPED [INFO] Apache Atlas Sqoop Bridge Shim .....................
SKIPPED [INFO] Apache Atlas Sqoop Bridge ..........................
SKIPPED [INFO] Apache Atlas Storm Bridge Shim .....................
SKIPPED [INFO] Apache Atlas Storm Bridge ..........................
SKIPPED [INFO] Apache Atlas Distribution ..........................
SKIPPED [INFO]
------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO]
------------------------------------------------------------------------ [INFO] Total time: 26:06 min [INFO] Finished at:
2017-02-09T01:20:53+09:00 [INFO] Final Memory: 165M/1437M [INFO]
------------------------------------------------------------------------ [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test
(default-test) on project atlas-webapp: There are test failures.
[ERROR] [ERROR] Please refer to
/Users/dongkillee/dev/bin/atlas/webapp/target/surefire-reports for
the individual test results. [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 -rf :atlas-webapp
This is testcase error. Use following command. It will create your build successfully.
export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=512m" && mvn clean install -DskipTests
I have explained the complete solution, here. briefly, cause it uses some test cases in maven plugins in pom.xml file, we need to add -DskipTests argument when building the Apache Atlas from scratch.
Do the following items to run the project without any error:
git clone https://github.com/apache/atlas
mvn clean install -DskipTests
mvn clean package -Pdist -DskipTests

How to build Spark 1.2 with Maven (gives java.io.IOException: Cannot run program "javac")?

I am trying to build Spark 1.2 with Maven. My goal is to use PySpark with YARN on Hadoop 2.2.
I saw that this was only possible by building Spark with Maven. First, is this true?
If it is true, what is the problem in the log below? How do I correct this?
C:\Spark\spark-1.2.0>mvn -Pyarn -Phadoop-2.2 -Dhadoop.version=2.2.0 -DskipTests
clean package
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Spark Project Parent POM
[INFO] Spark Project Networking
[INFO] Spark Project Shuffle Streaming Service
[INFO] Spark Project Core
[INFO] Spark Project Bagel
[INFO] Spark Project GraphX
[INFO] Spark Project Streaming
[INFO] Spark Project Catalyst
[INFO] Spark Project SQL
[INFO] Spark Project ML Library
[INFO] Spark Project Tools
[INFO] Spark Project Hive
[INFO] Spark Project REPL
[INFO] Spark Project YARN Parent POM
[INFO] Spark Project YARN Stable API
[INFO] Spark Project Assembly
[INFO] Spark Project External Twitter
[INFO] Spark Project External Flume Sink
[INFO] Spark Project External Flume
[INFO] Spark Project External MQTT
[INFO] Spark Project External ZeroMQ
[INFO] Spark Project External Kafka
[INFO] Spark Project Examples
[INFO] Spark Project YARN Shuffle Service
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Spark Project Parent POM 1.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # spark-parent ---
[INFO] Deleting C:\Spark\spark-1.2.0\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) # spark-parent
---
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-source (add-scala-sources) # spark-
parent ---
[INFO] Source directory: C:\Spark\spark-1.2.0\src\main\scala added.
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (default) # spark-parent --
-
[INFO]
[INFO] --- scala-maven-plugin:3.2.0:compile (scala-compile-first) # spark-parent
---
[INFO] No sources to compile
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-test-source (add-scala-test-sources
) # spark-parent ---
[INFO] Test Source directory: C:\Spark\spark-1.2.0\src\test\scala added.
[INFO]
[INFO] --- scala-maven-plugin:3.2.0:testCompile (scala-test-compile-first) # spa
rk-parent ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-dependency-plugin:2.9:build-classpath (default) # spark-parent
---
[INFO] Wrote classpath file 'C:\Spark\spark-1.2.0\target\spark-test-classpath.tx
t'.
[INFO]
[INFO] --- gmavenplus-plugin:1.2:execute (default) # spark-parent ---
[INFO] Using Groovy 2.3.7 to perform execute.
[INFO]
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) # spark-p
arent ---
[INFO]
[INFO] --- maven-shade-plugin:2.2:shade (default) # spark-parent ---
[INFO] Including org.spark-project.spark:unused:jar:1.0.0 in the shaded jar.
[INFO] Replacing original artifact with shaded artifact.
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar-no-fork (create-source-jar) # spark-par
ent ---
[INFO]
[INFO] --- scalastyle-maven-plugin:0.4.0:check (default) # spark-parent ---
[WARNING] sourceDirectory is not specified or does not exist value=C:\Spark\spar
k-1.2.0\src\main\scala
Saving to outputFile=C:\Spark\spark-1.2.0\scalastyle-output.xml
Processed 0 file(s)
Found 0 errors
Found 0 warnings
Found 0 infos
Finished in 32 ms
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Spark Project Networking 1.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # spark-network-common_2
.10 ---
[INFO] Deleting C:\Spark\spark-1.2.0\network\common\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) # spark-networ
k-common_2.10 ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-source (add-scala-sources) # spark-
network-common_2.10 ---
[INFO] Source directory: C:\Spark\spark-1.2.0\network\common\src\main\scala adde
d.
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (default) # spark-network-c
ommon_2.10 ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # spark-netw
ork-common_2.10 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Spark\spark-1.2.0\network\common\s
rc\main\resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- scala-maven-plugin:3.2.0:compile (scala-compile-first) # spark-networ
k-common_2.10 ---
[WARNING] Zinc server is not available at port 3030 - reverting to normal increm
ental compile
[INFO] Using incremental compilation
[INFO] compiler plugin: BasicArtifact(org.scalamacros,paradise_2.10.4,2.0.1,null
)
[INFO] Compiling 42 Java sources to C:\Spark\spark-1.2.0\network\common\target\s
cala-2.10\classes...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Spark Project Parent POM ........................... SUCCESS [ 5.267 s]
[INFO] Spark Project Networking ........................... FAILURE [ 1.922 s]
[INFO] Spark Project Shuffle Streaming Service ............ SKIPPED
[INFO] Spark Project Core ................................. SKIPPED
[INFO] Spark Project Bagel ................................ SKIPPED
[INFO] Spark Project GraphX ............................... SKIPPED
[INFO] Spark Project Streaming ............................ SKIPPED
[INFO] Spark Project Catalyst ............................. SKIPPED
[INFO] Spark Project SQL .................................. SKIPPED
[INFO] Spark Project ML Library ........................... SKIPPED
[INFO] Spark Project Tools ................................ SKIPPED
[INFO] Spark Project Hive ................................. SKIPPED
[INFO] Spark Project REPL ................................. SKIPPED
[INFO] Spark Project YARN Parent POM ...................... SKIPPED
[INFO] Spark Project YARN Stable API ...................... SKIPPED
[INFO] Spark Project Assembly ............................. SKIPPED
[INFO] Spark Project External Twitter ..................... SKIPPED
[INFO] Spark Project External Flume Sink .................. SKIPPED
[INFO] Spark Project External Flume ....................... SKIPPED
[INFO] Spark Project External MQTT ........................ SKIPPED
[INFO] Spark Project External ZeroMQ ...................... SKIPPED
[INFO] Spark Project External Kafka ....................... SKIPPED
[INFO] Spark Project Examples ............................. SKIPPED
[INFO] Spark Project YARN Shuffle Service ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.048 s
[INFO] Finished at: 2015-02-09T10:17:47+08:00
[INFO] Final Memory: 49M/331M
[INFO] ------------------------------------------------------------------------
[**ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.0:compi
le (scala-compile-first) on project spark-network-common_2.10: wrap: java.io.IOE
xception: Cannot run program "javac": CreateProcess error=2, The system cannot f
ind the file specified -> [Help 1]**
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :spark-network-common_2.10
I had first installed JRE instead of JDK. My environment variables still referenced the JRE folder, and so it couldn't find the javac.exe binary.
A 'quirk' with Spark builds is that it can download its own version of Maven if it determines it is required.
When you run ./build/mvn clean package you are not running Maven directly, you are running a Spark proprietary script. The first thing that script does is check if your mvn --version is new enough for the version that the project determines it needs (which is set in the pom.xml file).
This is an important point because if you're running an old version of maven, Spark may download an additional maven version and install it and use that instead.
Some key things:
When you run ./build/mvn clean package, check which version of maven it is using
When maven runs it does its own traversal to figure out which JAVA_HOME is used
Before trying to run the spark build, check JAVA_HOME is set as a variable
Check that the JAVA_HOME version is a full jdk, not just a jre
Update your Maven to the latest version (or check it is at least as new as the version set by in the pom.xml in the root directory
Thanks
For this problem you need to set your java environment path correctly in .bashrc file. Then you need to build maven correct on set maven path for that check mvn -version.
Then it will build automaticaly without error.

Maven error when building Neo4j community edition from source

I am trying to build Neo4j from https://github.com/neo4j/neo4j.git. I'm running Ubuntu 13.10 (32-bit), Maven 3.0.4 and Oracle JDK 1.7.0_45.
I am building it under the parent POM, using
$ mvn clean install -DminimalBuild -Dlicense.skip=true
The build fails, however:
enter code here------------------------------------------------------------------------
[INFO] Building Neo4j - JMX support 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Neo4j ............................................. SUCCESS [0.683s]
[INFO] Licensing configuration ........................... SUCCESS [1.783s]
[INFO] Neo4j - Graph Database Kernel ..................... SUCCESS [24.188s]
[INFO] Neo4j - JMX support ............................... FAILURE [0.033s]
[INFO] Neo4j - Usage Data Collection ..................... SKIPPED
[INFO] Neo4j - Graphviz generation ....................... SKIPPED
[INFO] Neo4j - Lucene Index .............................. SKIPPED
[INFO] Neo4j - Graph Algorithms .......................... SKIPPED
[INFO] Neo4j - Graph Matching ............................ SKIPPED
[INFO] Neo4j - Cypher Compile 1.9 ........................ SKIPPED
[INFO] Neo4j - Cypher Compile 2.0 ........................ SKIPPED
[INFO] Neo4j - Cypher .................................... SKIPPED
[INFO] Neo4j Community ................................... SKIPPED
[INFO] Neo4j Community ................................... SKIPPED
[INFO] Neo4j - Generic shell ............................. SKIPPED
[INFO] Neo4j Examples .................................... SKIPPED
[INFO] Neo4j Server API .................................. SKIPPED
[INFO] Neo4j Server ...................................... SKIPPED
[INFO] Neo4j Server Examples ............................. SKIPPED
[INFO] Neo4j - Server Plugin Tests ....................... SKIPPED
[INFO] Neo4j Community Build ............................. SKIPPED
[INFO] Neo4j - Graph DB Monitoring and Management tools .. SKIPPED
[INFO] Neo4j Advanced .................................... SKIPPED
[INFO] Neo4j Advanced Server ............................. SKIPPED
[INFO] Neo4j Advanced Build .............................. SKIPPED
[INFO] Neo4j - Communication Package ..................... SKIPPED
[INFO] Neo4j - Clustering Infrastructure ................. SKIPPED
[INFO] Neo4j - Consistency Checker ....................... SKIPPED
[INFO] Neo4j - Backup Tool ............................... SKIPPED
[INFO] Neo4j - High Availability ......................... SKIPPED
[INFO] Neo4j Enterprise .................................. SKIPPED
[INFO] Neo4j Enterprise Server ........................... SKIPPED
[INFO] Neo4j - Enterprise Performance Tests .............. SKIPPED
[INFO] Neo4j Enterprise Build ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.571s
[INFO] Finished at: Wed Oct 23 18:16:07 BST 2013
[INFO] Final Memory: 42M/301M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project neo4j-jmx: Could not resolve dependencies for
project org.neo4j:neo4j-jmx:jar:2.0-SNAPSHOT: Failure to find org.neo4j:neo4j-
kernel:jar:tests:2.0-SNAPSHOT in http://m2.neo4j.org/content/repositories/snapshots/
was cached in the local repository, resolution will not be reattempted until the update
interval of neo4j-snapshot-repository has elapsed or updates are forced -> [Help 1]
I have had the same problem running it under Windows 7.
Any help is appreciated.
The problem is now resolved. The community/jmx project had a dependency on the community/kernel test-jar which is only built after the jmx project. Being a Maven noob, I'm not sure if Maven is supposed to get the dependencies from the snapshot repository or not. Anyway, I have the artifact locally now.

Shindig maven install: Gadget Renderer faild

I'm kinda lost in here trying to get shindig (java) up and running...
I've downloaded the code from the svn repository (from trunk and other beta from tags) and I've been trying to install the code in the .m2 folder as a repository.
I did't succeed -.-
When I execute $ mvn in order to clean and install, it goes through the process until it reaches the 'Apache Shindig Gadget Renderer'. Trying to compile the project fails.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Shindig Project ............................ SUCCESS [3.004s]
[INFO] Apache Shindig Features ........................... SUCCESS [56.893s]
[INFO] Apache Shindig Common Code ........................ SUCCESS [20.824s]
[INFO] Apache Shindig Gadget Renderer .................... FAILURE [0.270s]
[INFO] Apache Shindig Social API ......................... SKIPPED
[INFO] Apache Shindig Sample Container ................... SKIPPED
[INFO] Apache Shindig Web App Resources .................. SKIPPED
[INFO] Apache Shindig Extra Modules ...................... SKIPPED
[INFO] Apache Shindig Web App Dependencies ............... SKIPPED
[INFO] Apache Shindig Web App ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
The same happens if I use the eclipse plugin. I have the newest version of maven.
What's the problem here? Isn't it weird that the trunk (or any other beta) can compile? o.O
Thank's a lot in advance!

Resources