What version of maven do you have installed?
I have 2.2.1, that error is complaining that you have a version < 2.1.0 and the 
maven site plugin requires at least 2.1.0

Allen Reese
Core Platforms
Yahoo!, Inc.
 

> -----Original Message-----
> From: mlus [mailto:m...@39596.com]
> Sent: Tuesday, August 02, 2011 2:00 PM
> To: users@activemq.apache.org
> Subject: Re: How can I build Activemq-5.3.x ?
> 
> Thank you for creating patch !!
> 
> > I cleaned my repo and played with this a bit, I've attached a patch that 
> > will fix the 2 plugins
> that are causing you problems.
> >
> > URL: http://svn.apache.org/repos/asf/activemq/tags/activemq-parent-5.3.2
> >
> > patch -p0 5.3.2.site.patch pom.xml
> >
> > Should fix this for you.
> >
> 
> but ...   build fail again
> 
> $ cp 5.3.2.site.patch  activemq-parent-5.3.2/
> $ patch -p0 < 5.3.2.site.patch
> 
> $ export M2_HOME=$HOME/maven
> $ export ANT_HOME=$HOME/ant
> $ export JAVA_HOME=$HOME/jdk15
> $ export PATH=$JAVA_HOME/bin:$M2_HOME/bin:$ANT_HOME/bin:$PATH
> 
> $ mvn -Dtest=false -DfailIfNoTests=false clean site
> 
> [INFO] Building ActiveMQ
> [INFO]    task-segment: [clean, site]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> Downloading:
> https://repository.apache.org/content/repositories/snapshots//org/apache/maven/plugins/maven-site-
> plugin/2.1.1/maven-site-plugin-2.1.1.pom
> [INFO] Unable to find resource
> 'org.apache.maven.plugins:maven-site-plugin:pom:2.1.1' in repository
> apache.snapshots
> (https://repository.apache.org/content/repositories/snapshots/)
> Downloading: 
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/2.1.1/maven-
> site-plugin-2.1.1.pom
> Downloading:
> https://repository.apache.org/content/repositories/snapshots//org/apache/maven/plugins/maven-
> plugins/18/maven-plugins-18.pom
> [INFO] Unable to find resource
> 'org.apache.maven.plugins:maven-plugins:pom:18' in repository
> apache.snapshots
> (https://repository.apache.org/content/repositories/snapshots/)
> Downloading: 
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-
> 18.pom
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Error resolving version for
> 'org.apache.maven.plugins:maven-site-plugin': Plugin requires Maven
> version 2.1.0
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Wed Aug 03 05:44:33 JST 2011
> [INFO] Final Memory: 26M/418M
> [INFO] ---------------------------------
> 
> 
> 
> I think maven plugin-site does not have "maven-site-plugin 2.1.0 " ,
> so  build was failed.
> 
> Thank you.

Reply via email to