Page 1 of 1

demo build failed

Posted: Sun Jan 18, 2015 1:58 am
by romaderi
I m trying to build demo site and eclipse failed to build with this error
Could not transfer artifact org.restlet.jee:org.restlet:pom:2.1.1 from/to maven-restlet (http://maven.restlet.org): Failed to transfer http://maven.restlet.org/org/restlet/je ... -2.1.1.pom. Error code 307, Temporary Redirect -> [Help 1]

Any idea ?
Thanks

Re: demo build failed

Posted: Wed Feb 25, 2015 12:29 am
by blcommercec
Hey,

I am facing the same issue , were you able to solve it ? If so, how ? Thanks I appreciate your help!

Re: demo build failed

Posted: Thu Mar 19, 2015 7:54 pm
by Swamy K
Hi ,

I am also facing the same issue,Can you help us if your issue resolved.

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...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.spidercoupons:admin:war:1.0
[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar refers to a non-existing file C:\Program Files\Java\jre7\..\lib\tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ com.spidercoupons:ecommerce-website:1.0, D:\eclipse-workspace\DemoSite\pom.xml, line 194, column 28
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.spidercoupons:core:jar:1.0
[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar refers to a non-existing file C:\Program Files\Java\jre7\..\lib\tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ com.spidercoupons:ecommerce-website:1.0, D:\eclipse-workspace\DemoSite\pom.xml, line 194, column 28
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.spidercoupons:site:war:1.0
[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar refers to a non-existing file C:\Program Files\Java\jre7\..\lib\tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ com.spidercoupons:ecommerce-website:1.0, D:\eclipse-workspace\DemoSite\pom.xml, line 194, column 28
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.spidercoupons:ecommerce-website:pom:1.0
[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar refers to a non-existing file C:\Program Files\Java\jre7\..\lib\tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ line 194, column 28
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] ecommerce
[INFO] core
[INFO] admin
[INFO] site
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ecommerce 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ ecommerce-website ---
[INFO] Installing D:\eclipse-workspace\DemoSite\pom.xml to C:\Users\swamy\.m2\repository\com\spidercoupons\ecommerce-website\1.0\ecommerce-website-1.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building core 1.0
[INFO] ------------------------------------------------------------------------
Downloading: http://maven.restlet.org/org/restlet/je ... -2.1.1.pom
Downloading: http://maven.restlet.org/org/restlet/je ... -2.1.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ecommerce ......................................... SUCCESS [0.864s]
[INFO] core .............................................. FAILURE [6.309s]
[INFO] admin ............................................. SKIPPED
[INFO] site .............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.979s
[INFO] Finished at: Fri Mar 20 06:22:00 IST 2015
[INFO] Final Memory: 12M/172M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project core: Could not resolve dependencies for project com.spidercoupons:core:jar:1.0: Failed to collect dependencies for [org.broadleafcommerce:broadleaf-framework:jar:3.1.12-GA (compile), org.broadleafcommerce:broadleaf-profile:jar:3.1.12-GA (compile), javax.servlet:servlet-api:jar:2.5 (provided)]: Failed to read artifact descriptor for org.restlet.jee:org.restlet:jar:2.1.1: Could not transfer artifact org.restlet.jee:org.restlet:pom:2.1.1 from/to maven-restlet (http://maven.restlet.org): Failed to transfer http://maven.restlet.org/org/restlet/je ... -2.1.1.pom. Error code 307, Temporary Redirect -> [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/disp ... nException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :core

Re: demo build failed

Posted: Thu Mar 26, 2015 7:48 pm
by Swamy K
Issue : Few jars not available in local repository.
Fix : Do maven update the project.

Re: demo build failed

Posted: Sun May 17, 2015 5:04 pm
by szczurolapka
wow, big fail

Re: demo build failed

Posted: Mon Jun 01, 2015 11:50 pm
by vnandwana
Hi Team, I'm facing the exact same issue. Maven force update of snapshots didn't make any difference. Please suggest some steps.

Re: demo build failed

Posted: Thu Jun 04, 2015 12:10 am
by venu
Try adding this to the repositories section in the pom.xml


<repositories>
<repository>
<id>maven-restlet</id>
<name>Public online Restlet repository</name>
<url>http://maven.restlet.com</url>
</repository>

</repositories>

Venu