You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by mlus <ml...@39596.com> on 2011/07/23 10:12:03 UTC

How can I build Activemq-5.3.x ?

I want to javadoc of activemq-5.3.x, so try to build activemq-5.3.x
from src, but, build fail..

-----------------------------------
$ 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

$ unzip activemq-parent-5.3.2-source-release.zip
$ cd  activemq-parent-5.3.2
$ mvn -Dtest=false -DfailIfNoTests=false clean site

##########  maven build error !!!  ######################

INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error getting reports from the plugin
'org.apache.maven.plugins:maven-surefire-report-plugin':
Unable to find the mojo
'org.apache.maven.plugins:maven-surefire-report-plugin:2.10-SNAPSHOT:
report' in the plugin 'org.apache.maven.plugins:maven-surefire-report-plugin'
org/apache/maven/doxia/logging/Log
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 minutes 16 seconds
[INFO] Finished at: Sat Jul 23 16:47:23 JST 2011
[INFO] Final Memory: 52M/304M
[INFO] ------------------------------------------------------------------------

How do I fix "mojo' problem in pom.xml >
How can I build activemq-5.3.2 ?

Re: How can I build Activemq-5.3.x ?

Posted by mlus <ml...@39596.com>.
> Here you can find some JavaDocs for 5.3.0 release
>
> http://activemq.apache.org/maven/5.3.0/activemq-core/apidocs/index.html

Thank you for reply, but I want local copy javadoc.

Regards

RE: How can I build Activemq-5.3.x ?

Posted by Allen Reese <ar...@yahoo-inc.com>.
The mailer ate the patch:

$ cat dev/temp/5.3.2.site.patch 
Index: pom.xml
===================================================================
--- pom.xml     (revision 1151527)
+++ pom.xml     (working copy)
@@ -954,6 +954,10 @@
   <build>
     <pluginManagement>
       <plugins>
+       <plugin>
+       <artifactId>maven-site-plugin</artifactId>
+       <version>2.1.1</version>
+       </plugin>
         <plugin>
           <groupId>org.apache.activemq.protobuf</groupId>
           <artifactId>activemq-protobuf</artifactId>
@@ -1003,6 +1007,11 @@
           </configuration>
         </plugin>
         <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-surefire-report-plugin</artifactId>
+          <version>2.9</version>
+        </plugin>
+        <plugin>
           <groupId>org.apache.felix</groupId>
           <artifactId>maven-bundle-plugin</artifactId>
           <version>${maven-bundle-plugin-version}</version>

Allen Reese
Core Platforms
Yahoo!, Inc.

> -----Original Message-----
> From: Allen Reese [mailto:areese@yahoo-inc.com]
> Sent: Wednesday, July 27, 2011 10:24 AM
> To: users@activemq.apache.org; mlus@39596.com
> Subject: RE: How can I build Activemq-5.3.x ?
> 
> 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.
> 
> Allen Reese
> Core Platforms
> Yahoo!, Inc.
> 
> > -----Original Message-----
> > From: mlus [mailto:mlus@39596.com]
> > Sent: Wednesday, July 27, 2011 3:21 AM
> > To: users@activemq.apache.org
> > Subject: Re: How can I build Activemq-5.3.x ?
> >
> > > I build it from SVN without problems, you might try that instead of messing with the src.zip if
> the
> > zip isn't working for you.
> > >
> > > svn co http://svn.apache.org/repos/asf/activemq/tags/activemq-parent-5.3.2
> > > cd activemq-parent-5.3.2
> > >
> > > mvn -Dtest=false -DfailIfNoTests=false clean site
> >
> > Thank you for reply. but  build fail again .
> >
> > ----------------------------------------------------
> > [INFO] ------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO] ------------------------------------------------------------------------
> > [INFO] Error getting reports from the plugin
> > 'org.apache.maven.plugins:maven-surefire-report-plugin': Unable to
> > find the mojo 'org.apache.maven.plugins:maven-surefire-report-plugin:2.10-SNAPSHOT:report'
> > in the plugin 'org.apache.maven.plugins:maven-surefire-report-plugin'
> > org/apache/maven/doxia/logging/Log
> > [INFO] ------------------------------------------------------------------------
> > [INFO] For more information, run Maven with the -e switch
> > [INFO] ------------------------------------------------------------------------
> > [INFO] Total time: 3 minutes 6 seconds
> > [INFO] Finished at: Wed Jul 27 19:17:54 JST 2011
> > [INFO] Final Memory: 51M/324M
> > [INFO] ----------------------------------------
> >
> > I decided to be given up building 5.3.x t.
> >
> > Thank you.

Re: How can I build Activemq-5.3.x ?

Posted by mlus <ml...@39596.com>.
> What is the output with 2.2.1?
> What os are you building under?

here is my build env,

$  mvn -v
Apache Maven 2.0.11 (r909250; 2010-02-12 14:55:50+0900)
Java version: 1.5.0_22
Java home: jdk1.5.0_22/jre
Default locale: ja_JP, platform encoding: UTF-8
OS name: "linux" version: "2.6.37.6-0.7-desktop" arch: "amd64" Family: "unix"

Now, I gave up continuing this build and  I use javadoc on web.

Thank you for your advice !!     :-)

RE: How can I build Activemq-5.3.x ?

Posted by Allen Reese <ar...@yahoo-inc.com>.
What is the output with 2.2.1?
What os are you building under?

I can build under cygwin, and rhel 4u8 both with jdk-1.6.0_26.

$ mvn -v
Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
Java version: 1.6.0_23
Java home: C:\Program Files\Java\jdk1.6.0_23\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"


[areese@localhost tmp]$ mvn -v
/usr/libexec/maven/bin/mvn -v
Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+0000)
Java version: 1.6.0_26
Java home: /usr/libexec64/jdk1.6.0/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.18-164.2.1.el5" arch: "amd64" Family: "unix"

Allen Reese
Core Platforms
Yahoo!, Inc.
 

> -----Original Message-----
> From: mlus [mailto:mlus@39596.com]
> Sent: Tuesday, August 02, 2011 2:54 PM
> To: users@activemq.apache.org
> Subject: Re: How can I build Activemq-5.3.x ?
> 
> Thank you for replyl.
> 
> > What version of maven do you have installed?
> 
> I use 2.0.11 for this build.
> 
> I tried to build with 2.2.1 version ,  but build was failed too.
> 
> 
> Thank you.

Re: How can I build Activemq-5.3.x ?

Posted by mlus <ml...@39596.com>.
Thank you for replyl.

> What version of maven do you have installed?

I use 2.0.11 for this build.

I tried to build with 2.2.1 version ,  but build was failed too.


Thank you.

RE: How can I build Activemq-5.3.x ?

Posted by Allen Reese <ar...@yahoo-inc.com>.
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:mlus@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.

Re: How can I build Activemq-5.3.x ?

Posted by mlus <ml...@39596.com>.
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.

RE: How can I build Activemq-5.3.x ?

Posted by Allen Reese <ar...@yahoo-inc.com>.
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.

Allen Reese
Core Platforms
Yahoo!, Inc.

> -----Original Message-----
> From: mlus [mailto:mlus@39596.com]
> Sent: Wednesday, July 27, 2011 3:21 AM
> To: users@activemq.apache.org
> Subject: Re: How can I build Activemq-5.3.x ?
> 
> > I build it from SVN without problems, you might try that instead of messing with the src.zip if the
> zip isn't working for you.
> >
> > svn co http://svn.apache.org/repos/asf/activemq/tags/activemq-parent-5.3.2
> > cd activemq-parent-5.3.2
> >
> > mvn -Dtest=false -DfailIfNoTests=false clean site
> 
> Thank you for reply. but  build fail again .
> 
> ----------------------------------------------------
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error getting reports from the plugin
> 'org.apache.maven.plugins:maven-surefire-report-plugin': Unable to
> find the mojo 'org.apache.maven.plugins:maven-surefire-report-plugin:2.10-SNAPSHOT:report'
> in the plugin 'org.apache.maven.plugins:maven-surefire-report-plugin'
> org/apache/maven/doxia/logging/Log
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3 minutes 6 seconds
> [INFO] Finished at: Wed Jul 27 19:17:54 JST 2011
> [INFO] Final Memory: 51M/324M
> [INFO] ----------------------------------------
> 
> I decided to be given up building 5.3.x t.
> 
> Thank you.

Re: How can I build Activemq-5.3.x ?

Posted by mlus <ml...@39596.com>.
> I build it from SVN without problems, you might try that instead of messing with the src.zip if the zip isn't working for you.
>
> svn co http://svn.apache.org/repos/asf/activemq/tags/activemq-parent-5.3.2
> cd activemq-parent-5.3.2
>
> mvn -Dtest=false -DfailIfNoTests=false clean site

Thank you for reply. but  build fail again .

----------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error getting reports from the plugin
'org.apache.maven.plugins:maven-surefire-report-plugin': Unable to
find the mojo 'org.apache.maven.plugins:maven-surefire-report-plugin:2.10-SNAPSHOT:report'
in the plugin 'org.apache.maven.plugins:maven-surefire-report-plugin'
org/apache/maven/doxia/logging/Log
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 minutes 6 seconds
[INFO] Finished at: Wed Jul 27 19:17:54 JST 2011
[INFO] Final Memory: 51M/324M
[INFO] ----------------------------------------

I decided to be given up building 5.3.x t.

Thank you.

RE: How can I build Activemq-5.3.x ?

Posted by Allen Reese <ar...@yahoo-inc.com>.
I build it from SVN without problems, you might try that instead of messing with the src.zip if the zip isn't working for you.

svn co http://svn.apache.org/repos/asf/activemq/tags/activemq-parent-5.3.2
cd activemq-parent-5.3.2

mvn -Dtest=false -DfailIfNoTests=false clean site

Core Platforms
Yahoo!, Inc.
--Allen Reese

> -----Original Message-----
> From: Norman Maurer [mailto:norman@apache.org]
> Sent: Monday, July 25, 2011 5:19 AM
> To: users@activemq.apache.org
> Subject: Re: How can I build Activemq-5.3.x ?
> 
> I guess you also should be able to change the version of the plugin in
> the pom.xml to something which can be found in the maven repos.
> 
> 
> Bye,
> Norman
> 
> Am 25.07.2011 14:17, schrieb Dejan Bosanac:
> > Here you can find some JavaDocs for 5.3.0 release
> >
> > http://activemq.apache.org/maven/5.3.0/activemq-core/apidocs/index.html
> >
> > Not sure if it helps though
> > <http://activemq.apache.org/maven/5.3.0/activemq-core/apidocs/index.html>
> > Regards
> 


Re: How can I build Activemq-5.3.x ?

Posted by Norman Maurer <no...@apache.org>.
I guess you also should be able to change the version of the plugin in 
the pom.xml to something which can be found in the maven repos.


Bye,
Norman

Am 25.07.2011 14:17, schrieb Dejan Bosanac:
> Here you can find some JavaDocs for 5.3.0 release
>
> http://activemq.apache.org/maven/5.3.0/activemq-core/apidocs/index.html
>
> Not sure if it helps though
> <http://activemq.apache.org/maven/5.3.0/activemq-core/apidocs/index.html>
> Regards



Re: How can I build Activemq-5.3.x ?

Posted by Dejan Bosanac <de...@nighttale.net>.
Here you can find some JavaDocs for 5.3.0 release

http://activemq.apache.org/maven/5.3.0/activemq-core/apidocs/index.html

Not sure if it helps though
<http://activemq.apache.org/maven/5.3.0/activemq-core/apidocs/index.html>
Regards
-- 
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Sat, Jul 23, 2011 at 10:12 AM, mlus <ml...@39596.com> wrote:

> I want to javadoc of activemq-5.3.x, so try to build activemq-5.3.x
> from src, but, build fail..
>
> -----------------------------------
> $ 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
>
> $ unzip activemq-parent-5.3.2-source-release.zip
> $ cd  activemq-parent-5.3.2
> $ mvn -Dtest=false -DfailIfNoTests=false clean site
>
> ##########  maven build error !!!  ######################
>
> INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error getting reports from the plugin
> 'org.apache.maven.plugins:maven-surefire-report-plugin':
> Unable to find the mojo
> 'org.apache.maven.plugins:maven-surefire-report-plugin:2.10-SNAPSHOT:
> report' in the plugin
> 'org.apache.maven.plugins:maven-surefire-report-plugin'
> org/apache/maven/doxia/logging/Log
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 6 minutes 16 seconds
> [INFO] Finished at: Sat Jul 23 16:47:23 JST 2011
> [INFO] Final Memory: 52M/304M
> [INFO]
> ------------------------------------------------------------------------
>
> How do I fix "mojo' problem in pom.xml >
> How can I build activemq-5.3.2 ?
>