Compile ch02-bankapp-scopes

27 views
Skip to first unread message

Francesco Finamore

unread,
Nov 6, 2016, 2:35:05 PM11/6/16
to Getting started with Spring Framework
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:
  spring-maven-release (http://maven.springframework.org/release, releases=true, snapshots=true),
  spring-maven-milestone (http://maven.springframework.org/milestone, releases=true, snapshots=true),
  central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)

[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:
  spring-maven-release (http://maven.springframework.org/release, releases=true, snapshots=true),
  spring-maven-milestone (http://maven.springframework.org/milestone, releases=true, snapshots=true),
  central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)

Arend -

unread,
Aug 1, 2017, 5:33:04 AM8/1/17
to Getting started with Spring Framework
Hi Francesco,

I have the same issue. Have you find the solution?

cheers,

Arend van der Kolk
Reply all
Reply to author
Forward
0 new messages