Maven build error -


i want build spring mvc project maven,i got following error:

the following artifacts not resolved: org.aopalliance:com.springsource.org.aopalliance:jar:1.0.0, org.hibernate:hibernate-validator:jar:4.2.0.beta1: not find artifact org.aopalliance:com.springsource.org.aopalliance:jar:1.0.0 in central (http://repo1.maven.org/maven2) 

i use eclipse , m2eclipse plugin. don't know how add local repository. , found different versions of eclipse,the result different. can pass, fail.i confused.

by way can find version of maven used in m2eclipse?

thanks in advanced.

update:now can handle hibernate-validator,but deleted spring mvc dependencies,i found there many other library dependent on com.springsource.org.aopalliance, enter image description here

since working spring artifacts, can refer this doc. if working on released versions of spring, can add following repository in settings.xml

   <repository>       <id>com.springsource.repository.maven.release</id>       <url>http://maven.springframework.org/release/</url>       <snapshots>           <enabled>false</enabled>        </snapshots>    </repository> 

[edit 1: based on comment]

the groupid/projectid of aopalliance seems indicate in spring enterprise bundle repository. contents of accessible following repository url.

<url>http://repository.springsource.com/maven/bundles/release/</url> 

as hibernate-validator, being beta release, possibly not available in normal repos. available from

<url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url> 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -