can't build dev nuxeo on fedora 12, maven is too old

View: New views
11 Messages — Rating Filter:   Alert me  

can't build dev nuxeo on fedora 12, maven is too old

by Robert P. J. Day-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


  well, this is disappointing.  apparently, building nuxeo will not be
possible on the imminent fedora 12 given that the version of maven
that will ship with f12 will be too old -- 2.0.8.  and trying to build
nuxeo with that version (when you run "ant patch") produces:

     [exec] /usr
     [exec] [INFO] Scanning for projects...
     [exec] [INFO] ------------------------------------------------------------------------
     [exec] [INFO] Building Nuxeo Platform: JBoss patch
     [exec] [INFO]    task-segment: [clean, package, install]
     [exec] [INFO] ------------------------------------------------------------------------
     [exec] [INFO] ------------------------------------------------------------------------
     [exec] [ERROR] BUILD ERROR
     [exec] [INFO] ------------------------------------------------------------------------
     [exec] [INFO] Error resolving version for 'org.apache.maven.plugins:maven-nuxeo-plugin': Plugin requires Maven version 2.0.9
     [exec] [INFO] ------------------------------------------------------------------------
     [exec] [INFO] For more information, run Maven with the -e switch
     ... snip ...

there is a long-winded rationale for this here:

  http://fedoraproject.org/wiki/MavenUpdate

in any event, a newer version of maven for fedora is not scheduled
until fedora 13, which is six months away, but it will probably show
up earlier as a development package.  no idea when, though.  like i
said, disappointing.

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Re: can't build dev nuxeo on fedora 12, maven is too old

by Julien CARSIQUE :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

You should be able to manually download maven 2.0.10
(http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.0.10-bin.zip)
and use it.

Regards,

Robert P. J. Day a écrit :

>   well, this is disappointing.  apparently, building nuxeo will not be
> possible on the imminent fedora 12 given that the version of maven
> that will ship with f12 will be too old -- 2.0.8.  and trying to build
> nuxeo with that version (when you run "ant patch") produces:
>
>      [exec] /usr
>      [exec] [INFO] Scanning for projects...
>      [exec] [INFO] ------------------------------------------------------------------------
>      [exec] [INFO] Building Nuxeo Platform: JBoss patch
>      [exec] [INFO]    task-segment: [clean, package, install]
>      [exec] [INFO] ------------------------------------------------------------------------
>      [exec] [INFO] ------------------------------------------------------------------------
>      [exec] [ERROR] BUILD ERROR
>      [exec] [INFO] ------------------------------------------------------------------------
>      [exec] [INFO] Error resolving version for 'org.apache.maven.plugins:maven-nuxeo-plugin': Plugin requires Maven version 2.0.9
>      [exec] [INFO] ------------------------------------------------------------------------
>      [exec] [INFO] For more information, run Maven with the -e switch
>      ... snip ...
>
> there is a long-winded rationale for this here:
>
>   http://fedoraproject.org/wiki/MavenUpdate
>
> in any event, a newer version of maven for fedora is not scheduled
> until fedora 13, which is six months away, but it will probably show
> up earlier as a development package.  no idea when, though.  like i
> said, disappointing.
>
> rday
> --
>
> ========================================================================
> Robert P. J. Day                               Waterloo, Ontario, CANADA
>
>             Linux Consulting, Training and Kernel Pedantry.
>
> Web page:                                          http://crashcourse.ca
> Twitter:                                       http://twitter.com/rpjday
> ========================================================================
> _______________________________________________
> ECM mailing list
> ECM@...
> http://lists.nuxeo.com/mailman/listinfo/ecm
> To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm
>  

--
Julien Carsique, Nuxeo (Paris, France)
www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform
jcarsique@... | Tel: +33 1 40 33 79 87


_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Re: can't build dev nuxeo on fedora 12, maven is too old

by Robert P. J. Day-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 13 Nov 2009, Julien CARSIQUE wrote:

> Hello,
>
> You should be able to manually download maven 2.0.10
> (http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.0.10-bin.zip)
> and use it.

  actually, i thought i'd test with the absolutely newest maven
(2.2.1) and it seemed to work -- i documented that here:

http://www.crashcourse.ca/wiki/index.php/Nuxeo_on_Fedora#Downloading_and_installing_Maven2

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Re: can't build dev nuxeo on fedora 12, maven is too old

by Julien CARSIQUE :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Using Maven 2.2.1 you will encounter http://jira.nuxeo.org/browse/NXBT-96 issue when building nuxeo-distribution module.

As explained in my mail to nuxeo-dev@... titled "Building Nuxeo with maven 2.2.1", you should be able to work around patching http://hg.nuxeo.org/nuxeo/pom.xml with:
diff --git a/pom.xml b/pom.xml
--- a/pom.xml
+++ b/pom.xml
@@ -1491,7 +1491,7 @@
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-nuxeo-plugin</artifactId>
-          <version>1.0.13</version>
+          <version>1.0.14-SNAPSHOT</version>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
@@ -1564,7 +1564,7 @@
             <dependency>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-nuxeo-plugin</artifactId>
-              <version>1.0.10</version>
+              <version>1.0.14-SNAPSHOT</version>
             </dependency>
           </dependencies>
         </plugin>

Thanks a lot for your feedback.

Best regards,

Robert P. J. Day a écrit :
On Fri, 13 Nov 2009, Julien CARSIQUE wrote:

  
Hello,

You should be able to manually download maven 2.0.10
(http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.0.10-bin.zip)
and use it.
    

  actually, i thought i'd test with the absolutely newest maven
(2.2.1) and it seemed to work -- i documented that here:

http://www.crashcourse.ca/wiki/index.php/Nuxeo_on_Fedora#Downloading_and_installing_Maven2

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================
  

-- 
Julien Carsique, Nuxeo (Paris, France)
www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform
jcarsique@... | Tel: +33 1 40 33 79 87

_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Re: can't build dev nuxeo on fedora 12, maven is too old

by Robert P. J. Day-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 16 Nov 2009, Julien CARSIQUE wrote:

> Hello,
>
> Using Maven 2.2.1 you will encounter
> http://jira.nuxeo.org/browse/NXBT-96 issue when building
> nuxeo-distribution module. ...

  actually, i'm not even getting that far.   at this point, i've
replaced openjdk with sun's java SDK, and the build ends up with:

[exec] [INFO] [compiler:compile {execution: default-compile}]
     [exec] [INFO] Compiling 4 source files to
/home/rpjday/nuxeo/hg/nuxeo/nuxeo-services/nuxeo-platform-types-core/target/classes
     [exec] [INFO]
------------------------------------------------------------------------
     [exec] [ERROR] BUILD FAILURE
     [exec] [INFO]
------------------------------------------------------------------------
     [exec] [INFO] Compilation failure
     [exec] Failure executing javac, but could not parse the error:
     [exec]
     [exec]
     [exec] The system is out of resources.
     [exec] Consult the following stack trace for details.
     ... etc etc ...

  there is, of course, a stack trace i can supply if you want to see
it.  i've tried this three times and it seems to be reliably
reproducible.  i've done this with a fully-updated checkout.
thoughts?  just something i'm doing wrong?  i'll try again a bit later
just to verify it's not sporadic.

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Re: can't build dev nuxeo on fedora 12, maven is too old

by Julien CARSIQUE :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can use http://pastebin.com/ to share stack traces, we are interested in.

Here are some pointers that could help:
- Ant is convenient but not necessary to build Nuxeo; try to compile Nuxeo running "mvn clean install -Dmaven.test.skip=true" (you don't need to run the tests which are consuming a lot of time and resources).
- Source code is built and tested after every commit at http://qa.nuxeo.org/hudson/view/Nuxeo%205.3/ (you may have a look before checkout).
- Snapshot artifacts are deployed nightly on http://maven.nuxeo.org/ only if they pass QA tests (http://qa.nuxeo.org). Of course, those artifacts are more stable than the daily ones.

Working on sources allow you to stay up-to-date with the current development but they may be broken at any time during the day, for a short duration.
Secure way is to download nightly artifacts from our Maven repository (they've been validated) and locally build only what you need.

From your stacktrace, "The system is out of resources." means something like you lacked of (temporary) disk space or memory allocated to JVM.
If you build this nuxeo-platform-types-core module with Maven, you can add "-X" to the command line in order to get debugging output (very very verbose).


Robert P. J. Day a écrit :
On Mon, 16 Nov 2009, Julien CARSIQUE wrote:

  
Hello,

Using Maven 2.2.1 you will encounter
http://jira.nuxeo.org/browse/NXBT-96 issue when building
nuxeo-distribution module. ...
    

  actually, i'm not even getting that far.   at this point, i've
replaced openjdk with sun's java SDK, and the build ends up with:

[exec] [INFO] [compiler:compile {execution: default-compile}]
     [exec] [INFO] Compiling 4 source files to
/home/rpjday/nuxeo/hg/nuxeo/nuxeo-services/nuxeo-platform-types-core/target/classes
     [exec] [INFO]
------------------------------------------------------------------------
     [exec] [ERROR] BUILD FAILURE
     [exec] [INFO]
------------------------------------------------------------------------
     [exec] [INFO] Compilation failure
     [exec] Failure executing javac, but could not parse the error:
     [exec]
     [exec]
     [exec] The system is out of resources.
     [exec] Consult the following stack trace for details.
     ... etc etc ...

  there is, of course, a stack trace i can supply if you want to see
it.  i've tried this three times and it seems to be reliably
reproducible.  i've done this with a fully-updated checkout.
thoughts?  just something i'm doing wrong?  i'll try again a bit later
just to verify it's not sporadic.

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================
  

-- 
Julien Carsique, Nuxeo (Paris, France)
www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform
jcarsique@... | Tel: +33 1 40 33 79 87

_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Re: can't build dev nuxeo on fedora 12, maven is too old

by Robert P. J. Day-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 16 Nov 2009, Julien CARSIQUE wrote:

> You can use http://pastebin.com/ to share stack traces, we are interested in.

  if you're interested, i've posted the normal output from "ant
deploy" at http://pastebin.com/d34ff6a7. i didn't yet add any of the
extra debugging you mentioned, i figured i'd start with what output i
had immediately at hand.  and this particular build error seems
reliably reproducible, at least with my setup.

  if you want me to do any further testing, let me know.  i'm using
the stable builds for playing, but i always like to keep up with the
development builds at the same time.

rday

p.s.  as before, my write-up on how i got where i am is here:

http://www.crashcourse.ca/wiki/index.php/Nuxeo_on_Fedora#Building_Nuxeo_5.3_on_Fedora_12

--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Re: can't build dev nuxeo on fedora 12, maven is too old

by Julien CARSIQUE :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok, this is a common error about JVM memory allocation.
Try to set this:
     JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx512m -XX:MaxPermSize=256m"


Robert P. J. Day a écrit :
On Mon, 16 Nov 2009, Julien CARSIQUE wrote:

  
You can use http://pastebin.com/ to share stack traces, we are interested in.
    

  if you're interested, i've posted the normal output from "ant
deploy" at http://pastebin.com/d34ff6a7. i didn't yet add any of the
extra debugging you mentioned, i figured i'd start with what output i
had immediately at hand.  and this particular build error seems
reliably reproducible, at least with my setup.

  if you want me to do any further testing, let me know.  i'm using
the stable builds for playing, but i always like to keep up with the
development builds at the same time.

rday

p.s.  as before, my write-up on how i got where i am is here:

http://www.crashcourse.ca/wiki/index.php/Nuxeo_on_Fedora#Building_Nuxeo_5.3_on_Fedora_12

--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================
  

-- 
Julien Carsique, Nuxeo (Paris, France)
www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform
jcarsique@... | Tel: +33 1 40 33 79 87

_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Re: can't build dev nuxeo on fedora 12, maven is too old

by Robert P. J. Day-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 16 Nov 2009, Julien CARSIQUE wrote:

> Ok, this is a common error about JVM memory allocation.
> Try to set this:
>      JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx512m -XX:MaxPermSize=256m"

  ah, yes, i should have thought of that since i've seen that solution
before.  i've restarted the build and i'm already further along than
the last time, so that's a good sign.

  do you want to know the end result?

rday
--


========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Parent Message unknown Re: can't build dev nuxeo on fedora 12, maven is too old

by Julien CARSIQUE :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Not at all, maybe with debug information we would know more...
Could you please issue the following commands and tell us the result:
    cd /home/rpjday/nuxeo/hg/nuxeo/nuxeo-webengine/nuxeo-webengine-core
    mvn clean install -Dmaven.test.skip=true

If it fails or freeze, add "-X" at the end of maven command.

Robert P. J. Day a écrit :

>   i bumped up the values noticeably and the build output is now over
> 7000 lines, and has come to a screeching stop with:
>
>      [exec] [INFO] ------------------------------------------------------------------------
>      [exec] [INFO] Building Nuxeo WebEngine Core
>      [exec] [INFO]    task-segment: [install]
>      [exec] [INFO] ------------------------------------------------------------------------
>      [exec] [INFO] [buildnumber:create {execution: default}]
>      [exec] [INFO] Storing buildNumber: 20091116-152148 at timestamp: 1258402908930
>      [exec] [INFO] [apt:execute {execution: generate-bindings}]
>      [exec] [INFO] ------------------------------------------------------------------------
>
>   the build hasn't failed, and java appears to still be running.  the
> build is just ... sitting there.  how odd.  should i expect that?
>
> rday
>  
--
Julien Carsique, Nuxeo (Paris, France)
www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform
jcarsique@... | Tel: +33 1 40 33 79 87


_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Re: can't build dev nuxeo on fedora 12, maven is too old

by Robert P. J. Day-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 17 Nov 2009, Julien CARSIQUE wrote:

> Not at all, maybe with debug information we would know more...
> Could you please issue the following commands and tell us the result:
>    cd /home/rpjday/nuxeo/hg/nuxeo/nuxeo-webengine/nuxeo-webengine-core
>    mvn clean install -Dmaven.test.skip=true

  that worked fine, took all of 37 seconds.  i even ran it again and
let it run the tests.  still good.

  i'll try the "ant deploy" again and see if i get the same hang as
yesterday.

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm