I Download the chapter 2 e try to compile the project ch02-bankapp-scopes with command :
mvn eclipse:eclipse
But it's missed some jars, here the log :
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ch02-bankapp-scopes 0.1.0.BUILD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-eclipse-plugin:2.7:eclipse (default-cli) > generate-resources @ ch02-bankapp-scopes >>>
[INFO]
[INFO] <<< maven-eclipse-plugin:2.7:eclipse (default-cli) < generate-resources @ ch02-bankapp-scopes <<<
[INFO]
[INFO] --- maven-eclipse-plugin:2.7:eclipse (default-cli) @ ch02-bankapp-scopes ---
[INFO] Adding support for WTP version 2.0.
[INFO] Using Eclipse Workspace: null
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER
[WARNING] Missing POM for org.springframework:spring-context:jar:4.3.0.BUILD-SNAPSHOT
[WARNING] Invalid POM for org.springframework:spring-core:jar:4.3.0.BUILD-SNAPSHOT, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] An error occurred during dependency resolution.
Failed to retrieve org.springframework:spring-context-4.3.0.BUILD-SNAPSHOT
Caused by: Failure to find org.springframework:spring-context:jar:4.3.0.BUILD-SNAPSHOT in
http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.springframework -DartifactId=spring-context -Dversion=4.3.0.BUILD-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.springframework -DartifactId=spring-context -Dversion=4.3.0.BUILD-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) chapter02:ch02-bankapp-scopes:jar:0.1.0.BUILD-SNAPSHOT
2) org.springframework:spring-context:jar:4.3.0.BUILD-SNAPSHOT
org.springframework:spring-context:jar:4.3.0.BUILD-SNAPSHOT
from the specified remote repositories:
[INFO] Unable to read jar manifest from C:\Users\17R101\.m2\repository\org\springframework\spring-context\4.3.0.BUILD-SNAPSHOT\spring-context-4.3.0.BUILD-SNAPSHOT.jar
[WARNING] An error occurred during dependency resolution.
Failed to retrieve org.springframework:spring-core-4.3.0.BUILD-SNAPSHOT
Caused by: Failure to find org.springframework:spring-core:jar:4.3.0.BUILD-SNAPSHOT in
http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.springframework -DartifactId=spring-core -Dversion=4.3.0.BUILD-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.springframework -DartifactId=spring-core -Dversion=4.3.0.BUILD-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) chapter02:ch02-bankapp-scopes:jar:0.1.0.BUILD-SNAPSHOT
2) org.springframework:spring-core:jar:4.3.0.BUILD-SNAPSHOT
org.springframework:spring-core:jar:4.3.0.BUILD-SNAPSHOT
from the specified remote repositories: