The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

joseratts (3) [Avatar] Offline
#1
Hello All, yesterday I tried to compile and execute the book examples, but it was impossible for me. I hope you can help me to resolve what the problem is.

- I'm using eclipse Juno and I installed the maven plugin. The maven versiĆ³n I'm using is 2.2.1, also I edited my maven setting file and I put this
<localRepository>C: epositorio</localRepository>
thinking that this would be the place where maven would locate the dependencies.

- I imported the spring book exmaples like "Existing Maven Projects", the projects were imported without any error, then I edited the most external pom file adding the maven version
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.2.1</version> <!-- I added the version -->
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>

Even with all this stuff when I try to build, clen or install any project, appear the next error

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 Spring in Action Spring Idol 3.0.0
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plugin-2.5.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.689s
[INFO] Finished at: Wed Jul 18 12:00:53 CEST 2012
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plugin-2.5.pom -> [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

And when I try to execute the maven install (of the outer) pom file appear the next error message

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...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.springinaction:example-code:3.0.0 (Csmilieocuments and Settingsx90309roEscritoriospring examplespom.xml) has 1 error
[ERROR] Child module Csmilieocuments and Settingsx90309roEscritoriospring examples ranslators of Csmilieocuments and Settingsx90309roEscritoriospring examplespom.xml does not exist
[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/ProjectBuildingException

Could Anybody help me I'm just learning how to use maven and I've not found the way to make it run.

PS: Sorry for my english.
pavitx (5) [Avatar] Offline
#2
Re: Error with maven and the book examples
In case you are still interested, you need to remove the translators module, which does not exist, and add the knights module and all those which start with springidol-*