Build error when going through the steps in Appendix

252 views
Skip to first unread message

AJ

unread,
Dec 16, 2014, 5:10:53 PM12/16/14
to getting-started-wi...@googlegroups.com
I started executing the steps in Appendix A  one by one.  My build is failing on the following step:


C:\root\Projects\spring-fmk\spring-samples\chapter 1\ch01-bankapp-xml>mvn -e  eclipse:eclipse

ansfer metadata org.codehaus.mojo/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.or
g:443 [repo.maven.apache.org/23.235.40.215] failed: Connection timed out: connect
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35:47 min
[INFO] Finished at: 2014-12-16T13:42:33-06:00
[INFO] Final Memory: 5M/106M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'eclipse' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] a
vailable from the repositories [local (C:\Users\peddapaa\.m2\repository), spring-maven-release (http://maven.springframework.org/release), s
[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:

Can you please advise?

Thanks.

AJ

unread,
Dec 16, 2014, 5:15:48 PM12/16/14
to getting-started-wi...@googlegroups.com
Complete Log:

C:\root\Projects\spring-fmk\spring-samples\chapter 1\ch01-bankapp-xml>mvn -e  eclipse:eclipse
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-compiler-plugin:2.3.2: Plugin org.apache.maven.plugins:mav
en-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:m
aven-compiler-plugin:jar:2.3.2
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-eclipse-plugin:2.7: Plugin org.apache.maven.plugins:maven-
eclipse-plugin:2.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-e
clipse-plugin:jar:2.7
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-idea-plugin:2.2: Plugin org.apache.maven.plugins:maven-ide
a-plugin:2.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-idea-pl
ugin:jar:2.2
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-cl
ean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean
-plugin:jar:2.5
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-install-plugin:2.4: Plugin org.apache.maven.plugins:maven-
install-plugin:2.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-i
nstall-plugin:jar:2.4
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-resources-plugin:2.6: Plugin org.apache.maven.plugins:mave
n-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:mav
en-resources-plugin:jar:2.6

om
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-surefire-plugin:2.12.4: Plugin org.apache.maven.plugins:ma
ven-surefire-plugin:2.12.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins
:maven-surefire-plugin:jar:2.12.4
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-jar-plugin:2.4: Plugin org.apache.maven.plugins:maven-jar-
plugin:2.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-jar-plugi
n:jar:2.4
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-deploy-plugin:2.7: Plugin org.apache.maven.plugins:maven-d
eploy-plugin:2.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-dep
loy-plugin:jar:2.7
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-site-plugin:3.3: Plugin org.apache.maven.plugins:maven-sit
e-plugin:3.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-site-pl
ugin:jar:3.3
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-antrun-plugin:1.3: Plugin org.apache.maven.plugins:maven-a
ntrun-plugin:1.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-ant
run-plugin:jar:1.3
ta-5.pom
beta-5.pom
.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5: Plugin org.apache.maven.plugin
s:maven-assembly-plugin:2.2-beta-5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven
.plugins:maven-assembly-plugin:jar:2.2-beta-5

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-dependency-plugin:2.8: Plugin org.apache.maven.plugins:mav
en-dependency-plugin:2.8 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:m
aven-dependency-plugin:jar:2.8
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-release-plugin:2.3.2: Plugin org.apache.maven.plugins:mave
n-release-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:mav
en-release-plugin:jar:2.3.2
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to spring-maven-release (http://maven.springframework
aven.springframework.org/107.23.194.3] failed: Connection timed out: connect
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to spring-maven-milestone (http://maven.springframewo
4, maven.springframework.org/107.23.194.3] failed: Connection timed out: connect
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Co
nnect to repo.maven.apache.org:443 [repo.maven.apache.org/23.235.44.215] failed: Connection timed out: connect
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to spring-maven-release (http://maven.springframework.org/re
ringframework.org/107.23.194.3] failed: Connection timed out: connect
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to spring-maven-milestone (http://maven.springframework.org/
n.springframework.org/107.23.194.3] failed: Connection timed out: connect
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Connect t
o repo.maven.apache.org:443 [repo.maven.apache.org/23.235.40.215] failed: Connection timed out: connect
[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from http://maven.springframework.org/release was cached in the lo
cal repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Orig
inal error: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to spring-maven-release (http://maven.springframewo
 maven.springframework.org/107.23.194.3] failed: Connection timed out: connect
[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from http://maven.springframework.org/milestone was cached in the
local repository, resolution will not be reattempted until the update interval of spring-maven-milestone has elapsed or updates are forced.
Original error: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to spring-maven-milestone (http://maven.springf
.39.194, maven.springframework.org/107.23.194.3] failed: Connection timed out: connect
[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local
repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could
 not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Connect to repo.m
aven.apache.org:443 [repo.maven.apache.org/23.235.44.215] failed: Connection timed out: connect
[WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from http://maven.springframework.org/release was cached in the local rep
ository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Original er
ror: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to spring-maven-release (http://maven.springframework.org/release
ramework.org/107.23.194.3] failed: Connection timed out: connect
[WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from http://maven.springframework.org/milestone was cached in the local r
epository, resolution will not be reattempted until the update interval of spring-maven-milestone has elapsed or updates are forced. Origina
l error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to spring-maven-milestone (http://maven.springframework.org/m
.springframework.org/107.23.194.3] failed: Connection timed out: connect
[WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local reposit
ory, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not tr
ansfer metadata org.codehaus.mojo/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.or
g:443 [repo.maven.apache.org/23.235.40.215] failed: Connection timed out: connect
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35:48 min
[INFO] Finished at: 2014-12-16T14:57:47-06:00
[INFO] Final Memory: 8M/106M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'eclipse' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] a
vailable from the repositories [local (C:\Users\peddapaa\.m2\repository), spring-maven-release (http://maven.springframework.org/release), s
org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix 'eclipse' in the current project and in the plugi
n groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\peddapaa\.m2\repository), spring-mav
en-release (http://maven.springframework.org/release), spring-maven-milestone (http://maven.springframework.org/milestone), central (https:/
        at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:93)
        at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:260)
        at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:220)
        at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalcul
ator.java:103)
        at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalcul
ator.java:83)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:85)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR]

Arnold GetCertified

unread,
May 29, 2016, 5:37:56 PM5/29/16
to Getting started with Spring Framework
I also get a build failure when following Appendix A - here is my log : Can anyone please assist?

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for chapter14:ch14-bankapp-db-security:war:0.1.0.BUILD-SNAPSHOT
[WARNING] 'dependencies.dependency.scope' for org.springframework:spring-framework-bom:pom must be one of [provided, compile, runtime, test, system] but is 'import'. @ line 143, column 11
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for chapter14:ch14-bankapp-simple-security:war:0.1.0.BUILD-SNAPSHOT
[WARNING] 'dependencies.dependency.scope' for org.springframework:spring-framework-bom:pom must be one of [provided, compile, runtime, test, system] but is 'import'. @ line 98, column 11
[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] ch02-bankapp-xml
[INFO] ch02-bankapp-scopes
[INFO] ch02-bankapp-interfaces
[INFO] ch03-simple-types-examples
[INFO] ch03-namespaces-example
[INFO] ch03-bankapp-constructor-args-by-name
[INFO] ch03-bankapp-constructor-args-by-type
[INFO] ch03-bankapp-factorybean
[INFO] ch03-bankapp-inheritance
[INFO] ch03-bankapp-inheritance-examples
[INFO] ch03-util-schema-examples
[INFO] ch04-springbankapp-autowiring
[INFO] ch04-bankapp-context-aware
[INFO] ch04-bankapp-dependencies
[INFO] ch04-bankapp-lookup-method
[INFO] ch04-bankapp-replaced-method
[INFO] ch05-localoverride-example
[INFO] ch05-propertyOverrideConfigurer-example
[INFO] ch05-property-placeholder-element-example
[INFO] ch05-propertySourcesPlaceholderConfigurer-example
[INFO] ch05-bankapp-beanfactorypostprocessor
[INFO] ch05-bankapp-beanpostprocessor
[INFO] ch05-bankapp-customization
[INFO] ch05-bankapp-jsr250
[INFO] ch06-bankapp-annotations
[INFO] ch06-bankapp-jsr330
[INFO] ch06-value-annotation
[INFO] ch06-spel-example
[INFO] ch06-validator-interface
[INFO] ch06-jsr303-validation
[INFO] ch06-bankapp-configuration
[INFO] ch07-bankapp-jdbc
[INFO] ch07-bankapp-hibernate
[INFO] ch07-bankapp-tx-jdbc
[INFO] ch08-bankapp
[INFO] ch09-simple-aop
[INFO] ch09-aop-proxy
[INFO] ch09-aop-pointcuts
[INFO] ch09-aop-advices
[INFO] ch09-aop-xml-schema
[INFO] ch10-annotation-helloworld
[INFO] ch10-bankapp
[INFO] ch10-helloworld
[INFO] ch11-bankapp
[INFO] ch11-data-binding
[INFO] ch11-jsr303-validation
[INFO] ch11-session-attributes
[INFO] ch12-webservice
[INFO] ch12-webservice-client
[INFO] ch12-webservice-client-uritemplates
[INFO] ch12-webservice-uritemplates
[INFO] ch13-async-bankapp
[INFO] ch13-async-webservice
[INFO] ch13-async-webservice-client
[INFO] ch13-bankapp
[INFO] ch13-commons-file-upload
[INFO] ch13-converter-formatter-bankapp
[INFO] ch13-servlet3-file-upload
[INFO] ch14-bankapp-db-security
[INFO] ch14-bankapp-simple-security
[INFO] parent project
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building ch02-bankapp-xml 0.1.0.BUILD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> maven-idea-plugin:2.2:idea (default-cli) > generate-resources @ ch01-bankapp-xml >>>
[INFO] 
[INFO] <<< maven-idea-plugin:2.2:idea (default-cli) < generate-resources @ ch01-bankapp-xml <<<
[INFO] 
[INFO] --- maven-idea-plugin:2.2:idea (default-cli) @ ch01-bankapp-xml ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] ch02-bankapp-xml ................................... FAILURE [  0.722 s]
[INFO] ch02-bankapp-scopes ................................ SKIPPED
[INFO] ch02-bankapp-interfaces ............................ SKIPPED
[INFO] ch03-simple-types-examples ......................... SKIPPED
[INFO] ch03-namespaces-example ............................ SKIPPED
[INFO] ch03-bankapp-constructor-args-by-name .............. SKIPPED
[INFO] ch03-bankapp-constructor-args-by-type .............. SKIPPED
[INFO] ch03-bankapp-factorybean ........................... SKIPPED
[INFO] ch03-bankapp-inheritance ........................... SKIPPED
[INFO] ch03-bankapp-inheritance-examples .................. SKIPPED
[INFO] ch03-util-schema-examples .......................... SKIPPED
[INFO] ch04-springbankapp-autowiring ...................... SKIPPED
[INFO] ch04-bankapp-context-aware ......................... SKIPPED
[INFO] ch04-bankapp-dependencies .......................... SKIPPED
[INFO] ch04-bankapp-lookup-method ......................... SKIPPED
[INFO] ch04-bankapp-replaced-method ....................... SKIPPED
[INFO] ch05-localoverride-example ......................... SKIPPED
[INFO] ch05-propertyOverrideConfigurer-example ............ SKIPPED
[INFO] ch05-property-placeholder-element-example .......... SKIPPED
[INFO] ch05-propertySourcesPlaceholderConfigurer-example .. SKIPPED
[INFO] ch05-bankapp-beanfactorypostprocessor .............. SKIPPED
[INFO] ch05-bankapp-beanpostprocessor ..................... SKIPPED
[INFO] ch05-bankapp-customization ......................... SKIPPED
[INFO] ch05-bankapp-jsr250 ................................ SKIPPED
[INFO] ch06-bankapp-annotations ........................... SKIPPED
[INFO] ch06-bankapp-jsr330 ................................ SKIPPED
[INFO] ch06-value-annotation .............................. SKIPPED
[INFO] ch06-spel-example .................................. SKIPPED
[INFO] ch06-validator-interface ........................... SKIPPED
[INFO] ch06-jsr303-validation ............................. SKIPPED
[INFO] ch06-bankapp-configuration ......................... SKIPPED
[INFO] ch07-bankapp-jdbc .................................. SKIPPED
[INFO] ch07-bankapp-hibernate ............................. SKIPPED
[INFO] ch07-bankapp-tx-jdbc ............................... SKIPPED
[INFO] ch08-bankapp ....................................... SKIPPED
[INFO] ch09-simple-aop .................................... SKIPPED
[INFO] ch09-aop-proxy ..................................... SKIPPED
[INFO] ch09-aop-pointcuts ................................. SKIPPED
[INFO] ch09-aop-advices ................................... SKIPPED
[INFO] ch09-aop-xml-schema ................................ SKIPPED
[INFO] ch10-annotation-helloworld ......................... SKIPPED
[INFO] ch10-bankapp ....................................... SKIPPED
[INFO] ch10-helloworld .................................... SKIPPED
[INFO] ch11-bankapp ....................................... SKIPPED
[INFO] ch11-data-binding .................................. SKIPPED
[INFO] ch11-jsr303-validation ............................. SKIPPED
[INFO] ch11-session-attributes ............................ SKIPPED
[INFO] ch12-webservice .................................... SKIPPED
[INFO] ch12-webservice-client ............................. SKIPPED
[INFO] ch12-webservice-client-uritemplates ................ SKIPPED
[INFO] ch12-webservice-uritemplates ....................... SKIPPED
[INFO] ch13-async-bankapp ................................. SKIPPED
[INFO] ch13-async-webservice .............................. SKIPPED
[INFO] ch13-async-webservice-client ....................... SKIPPED
[INFO] ch13-bankapp ....................................... SKIPPED
[INFO] ch13-commons-file-upload ........................... SKIPPED
[INFO] ch13-converter-formatter-bankapp ................... SKIPPED
[INFO] ch13-servlet3-file-upload .......................... SKIPPED
[INFO] ch14-bankapp-db-security ........................... SKIPPED
[INFO] ch14-bankapp-simple-security ....................... SKIPPED
[INFO] parent project ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.435 s
[INFO] Finished at: 2016-05-29T23:34:42+02:00
[INFO] Final Memory: 12M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-idea-plugin:2.2:idea (default-cli) on project ch01-bankapp-xml: Execution default-cli of goal org.apache.maven.plugins:maven-idea-plugin:2.2:idea failed. NullPointerException -> [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:







==================================================

Ashish Sarin

unread,
May 29, 2016, 10:15:14 PM5/29/16
to Arnold GetCertified, Getting started with Spring Framework

What is the version of maven you are using? And, what command you executed to run the build?

--
You received this message because you are subscribed to the Google Groups "Getting started with Spring Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getting-started-with-spr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arnold CodeCollege

unread,
May 31, 2016, 6:04:30 AM5/31/16
to Ashish Sarin, Getting started with Spring Framework
HI,

I got it working by just importing the project in Intellij and doubleclicking on the main pom.xml

The maven pugin for intelij has apparently been deprecated, so I tried it directly into intellij and it worked - thank you.
Reply all
Reply to author
Forward
0 new messages