Announcement: Recorded training Introduction to Maven now available

Support and Announcements for the LDS Tech Java Web Application Platform (setup, configuration, bugs, feedback).
YoungstromMJ
Member
Posts: 100
Joined: Mon Mar 29, 2010 2:11 pm
Location: Utah, USA

Announcement: Recorded training Introduction to Maven now available

Postby YoungstromMJ » Fri Feb 11, 2011 3:04 pm

You can find the training and the associated labs on the wiki.

Mike

tlmaravilla
New Member
Posts: 25
Joined: Tue Feb 01, 2011 5:34 pm
Location: Riverton, UT

Postby tlmaravilla » Tue Mar 01, 2011 8:14 am

Mike,

I am trying to catchup on my stack training and during the Intro to Maven Lab2, while doing a maven package, I am seeing the following error:

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building maven-training 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ maven-training ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Programs\workspaces\StackTraining\IntroMaven\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ maven-training ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ maven-training ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Programs\workspaces\StackTraining\IntroMaven\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ maven-training ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.7.1:test (default-test) @ maven-training ---
Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-booter/2.7.1/surefire-booter-2.7.1.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.7.1/maven-surefire-common-2.7.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:20.940s
[INFO] Finished at: Tue Mar 01 08:05:57 MST 2011
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.1:test (default-test) on project maven-training: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.7.1:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.7.1 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-surefire-plugin:jar:2.7.1 (): Failed to read artifact descriptor for org.apache.maven.surefire:surefire-booter:jar:2.7.1: Could not transfer artifact org.apache.maven.surefire:surefire-booter:pom:2.7.1 from/to central (http://repo1.maven.org/maven2): connection timed out -> [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


Here is the contents of the pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>maven-training</artifactId>
<groupId>org.lds.training</groupId>
<packaging>jar</packaging>
<version>1.0</version>
</project>

Any thoughts?

tlmaravilla
New Member
Posts: 25
Joined: Tue Feb 01, 2011 5:34 pm
Location: Riverton, UT

Postby tlmaravilla » Tue Mar 01, 2011 9:11 am

I moved forward to the intermediate maven training (after going through the intro maven of course) and downloaded the intro zip file and now it is work. It must have been something I did.

YoungstromMJ
Member
Posts: 100
Joined: Mon Mar 29, 2010 2:11 pm
Location: Utah, USA

Postby YoungstromMJ » Tue Mar 01, 2011 9:15 am

Looks like you had a download problem downloading surefire. Try deleting the org/apache/maven/surefire directory from your local repository and try again.

Mike


Return to “Java Web Project Support (Stack)”

Who is online

Users browsing this forum: No registered users and 1 guest