java - Maven dependency plugin not supported by maven -
im trying download spring/java code book run code , test unfortunately errors,
i see common error don't see fix pom file,
pom.xml
<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> <parent> <groupid>com.apress.springrecipes</groupid> <artifactid>core</artifactid> <version>1.0-snapshot</version> </parent> <artifactid>springintro</artifactid> <name>introduction spring</name> <dependencies> <dependency> <groupid>commons-lang</groupid> <artifactid>commons-lang</artifactid> </dependency> <dependency> <groupid>commons-io</groupid> <artifactid>commons-io</artifactid> </dependency> <dependency> <groupid>org.jboss.javaee</groupid> <artifactid>jboss-jca-api</artifactid> </dependency> </dependencies> </project>
error
jul 17, 2013 3:51:20 pm org.springframework.context.support.abstractapplicationcontext preparerefresh info: refreshing org.springframework.context.support.classpathxmlapplicationcontext@be41ec: startup date [wed jul 17 15:51:20 edt 2013]; root of context hierarchy jul 17, 2013 3:51:20 pm org.springframework.beans.factory.xml.xmlbeandefinitionreader loadbeandefinitions info: loading xml bean definitions class path resource [beans.xml] exception in thread "main" org.springframework.beans.factory.beandefinitionstoreexception: ioexception parsing xml document class path resource [beans.xml]; nested exception java.io.filenotfoundexception: class path resource [beans.xml] cannot opened because not exist @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:341) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:302) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:143) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:178) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:149) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:212) @ org.springframework.context.support.abstractxmlapplicationcontext.loadbeandefinitions(abstractxmlapplicationcontext.java:126) @ org.springframework.context.support.abstractxmlapplicationcontext.loadbeandefinitions(abstractxmlapplicationcontext.java:92) @ org.springframework.context.support.abstractrefreshableapplicationcontext.refreshbeanfactory(abstractrefreshableapplicationcontext.java:130) @ org.springframework.context.support.abstractapplicationcontext.obtainfreshbeanfactory(abstractapplicationcontext.java:465) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:395) @ org.springframework.context.support.classpathxmlapplicationcontext.<init>(classpathxmlapplicationcontext.java:139) @ org.springframework.context.support.classpathxmlapplicationcontext.<init>(classpathxmlapplicationcontext.java:83) @ com.apress.springrecipes.hello.main.main(main.java:10) caused by: java.io.filenotfoundexception: class path resource [beans.xml] cannot opened because not exist @ org.springframework.core.io.classpathresource.getinputstream(classpathresource.java:141) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:328) ... 13 more
pom file error:
maven-dependency-plugin (goals "copy-dependencies", "unpack") not supported m2e. maven-resources-plugin prior 2.4 not supported m2e. use maven-resources-plugin version 2.4 or later.
m2e not maven. pom file error saying eclipse's maven plugin (m2e) not know "copy-dependencies":"unpack" goal. way m2e works has understand goal in pom file can duplicate behavior in eclipse build.
there 2 main things can do:
- tell eclipse ignore goal - allow not error. unpack step never occur during eclipse incremental builds, still happen when full maven builds.
- install "connector" tells eclipse when encounters goal. connector goal can found here.
as maven-resources-plugin don't see other option upgrading plugin version specified in pom. error there saying eclipse's maven plugin can't work maven plugins old.
i have no idea causing file not found error suspect because file contained in whatever eclipse not unpacking.
Comments
Post a Comment