on 01-23-2014 11:06 AM
Hello Experts,
I am building a POC on SAP HANA Cloud Portal. As part of this activity I need to verify Maven settings in Eclipse IDE.
I am using the below XML code as reference and modified it as per my requirement.
When I am trying to run it from Eclipse, it’s giving the below error. Please see the attachment for detail error and suggest.
Jyoti Prakash Das
Hi Jyothi,
I am also facing the same problem.Can you share the solution for it.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building maven-test 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-pl...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.719s
[INFO] Finished at: Mon Nov 03 15:33:59 IST 2014
[INFO] Final Memory: 3M/61M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.4.1 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-pl... -> [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/PluginResolutionException
Thanks
Abdul Rahman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the zip file we can see 2 regular mvn warning.
There are no errors.
Can you please send the full stack trace?
Thanks,
Inbal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Inbal,
Because of the warnings, my build is getting failed and I am getting build error.
Can you please suggest how to rectify this warning so that my build error can be rectified.
Some problems were encountered while building the effective model for maven-test: maven-test:pom:0.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.systemPath' for com.sap.cloud:neo-sdk-core-api:jar should use a variable instead of a hard-coded path
C:/Users/jyotidas/Documents/dev/eclipse-64 bit/api/neo-sdk-core-api-1.43.20.3.jar @ line 15, column 16
[WARNING] 'dependencies.dependency.systemPath' for com.sap.ui5.commons:com.sap.ui5.commons:jar should use a variable instead of a hard-coded path C:/Users/jyotidas/Documents/dev/eclipse-64 bit/plugins/com.sap.ui5.commons_1.16.7.jar @ line 23, column 16
Thanks & Regards,
Jyoti Prakash Das
This for sure not failing your build.
Try this:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>maven-test</groupId>
<artifactId>maven-test</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<dep_commons>C:/Users/jyotidas/Documents/dev/eclipse-64 bit/plugins/com.sap.ui5.commons_1.16.7.jar</dep_commons>
<dep_core>C:/Users/jyotidas/Documents/dev/eclipse-64 bit/api/neo-sdk-core-api-1.43.20.3.jar</dep_core>
</properties>
<dependencies>
<!-- check if <sap.cloud.sdk.version> and <sap.cloud.sdk.path> in settings.xml are correct -->
<!-- SAP HANA Cloud SDK dependency -->
<dependency>
<groupId>com.sap.cloud</groupId>
<artifactId>neo-sdk-core-api</artifactId>
<version>1.16.7</version>
<scope>system</scope>
<systemPath>${dep_core}</systemPath>
</dependency>
<!-- check if <eclipse.path> and <sap.cloud.ui5.version> in settings.xml are correct -->
<!-- SAPUI5 dependency -->
<dependency>
<groupId>com.sap.ui5.commons</groupId>
<artifactId>com.sap.ui5.commons</artifactId>
<version>1.16.7</version>
<scope>system</scope>
<systemPath>${dep_commons}</systemPath>
</dependency>
</dependencies>
</project>
Hi Inbal,
Thanks a lot for the code. It worked and the first error is gone now. But I am getting a different type of error now. Can you please suggest.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building maven-test 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-pl...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.451s
[INFO] Finished at: Mon Feb 10 14:37:36 IST 2014
[INFO] Final Memory: 6M/74M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for
org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.4.1 from/to central
(http://repo.maven.apache.org/maven2😞 NullPointerException -> [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/PluginResolutionException
I tried installing it through eclipse by Help->Install new software but I m getting again a new error.
Cannot complete the install because one or more required items could not be found.
Software being installed: Eclipse EGit Mylyn GitHub Feature 2.3.0.201302130906 (org.eclipse.mylyn.github.feature.feature.group 2.3.0.201302130906)
Missing requirement: Mylyn GitHub Connector Core 2.3.0.201302130906 (org.eclipse.mylyn.github.core 2.3.0.201302130906) requires 'package org.eclipse.jgit.lib [2.3.0,2.4.0)'
but it could not be found
Cannot satisfy dependency:
From: Eclipse EGit Mylyn GitHub Feature 2.3.0.201302130906 (org.eclipse.mylyn.github.feature.feature.group 2.3.0.201302130906)
To: org.eclipse.mylyn.github.core [2.3.0.201302130906]
thanks a lot.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.