You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by Mike Kienenberger <mk...@gmail.com> on 2007/02/27 15:17:26 UTC

Build performance [Was: mvn build failure]

I upgraded to Maven 2.0.5 recently on my laptop.   I wonder if that's
the issue.  I'll give it a try with 2.0.1 again when I get a chance.
I'll also see if mvn -o makes much of a difference -- I'm expecting
that this is likely the largest problem.

On 2/27/07, Michael Gentry <bl...@gmail.com> wrote:
> Doing "mvn -Dmaven.test.skip=true install"  (after a previous "mvn
> clean"), I get:
>
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3 minutes 12 seconds
> [INFO] Finished at: Tue Feb 27 08:47:43 EST 2007
> [INFO] Final Memory: 33M/63M
> [INFO] ------------------------------------------------------------------------
>
> If I did this on my old PowerBook, though, it would be significantly
> slower.  That probably doesn't help you at all.  I also got bit by the
> integration test failures, so I just skip the tests for now.
>
> /dev/mrg
>
>
> On 2/27/07, Andrus Adamchik <an...@objectstyle.org> wrote:
> > "mvn -o"  does an offline build.
> >
> > Andrus
> >
> >
> > On Feb 26, 2007, at 9:38 PM, Mike Kienenberger wrote:
> >
> > > Second run took 17 minutes.   So did a "mvn clean" (minute and a half)
> > > followed by a "mvn" (another 17 minutes).
> > >
> > > I'm hoping/guessing that a lot of this is due to checking versions
> > > over the internet.   I vaguely recall that there's a way to maybe
> > > surpress this behavior.
> > >
> > >
> > > On 2/26/07, Mike Kienenberger <mk...@gmail.com> wrote:
> > >> Ok.  Finally built it.   Build time 16 minutes and 32 seconds, with
> > >> skip-tests enabled.   I'm going to do another build to see if this
> > >> was
> > >> still downloading dependencies in the last build.
> > >>
> > >> On 2/26/07, Andrus Adamchik <an...@objectstyle.org> wrote:
> > >> > Yep - this is due to a bug in Geronimo TX manager:
> > >> >
> > >> > https://issues.apache.org/jira/browse/GERONIMO-2809
> > >> >
> > >> > It is fixed in svn, so you can build 'geronimo-transaction' module
> > >> > locally or ignore the tests.
> > >> >
> > >> > Andrus
> > >> >
> > >> >
> > >> >
> > >> > On Feb 26, 2007, at 8:01 PM, Mike Kienenberger wrote:
> > >> >
> > >> > > I'm now up to failing integration tests.  You probably already
> > >> know
> > >> > > about these.  I'll look up the skip tests command and let you
> > >> know how
> > >> > > it goes from there.
> > >> > >
> > >> > >
> > >> > > -------------------------------------------------------
> > >> > > T E S T S
> > >> > > -------------------------------------------------------
> > >> > > Running
> > >> org.apache.cayenne.jpa.itest.ch5._5_4_EntityMnagerFactoryTest
> > >> > > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> > >> > > 0.922 sec
> > >> > > Running
> > >> org.apache.cayenne.jpa.itest.ch5._5_5_1_JtaEntityManagerTest
> > >> > > Apache OpenEJB 3.0-incubating-SNAPSHOT    build: 20070224-02:26
> > >> > > http://incubator.apache.org/openejb
> > >> > > Cannot find the configuration file [conf/openejb.xml].  Creating
> > >> > > one at C:\works
> > >> > > paces\cayenne\cayenne-2007-02-24-2034\itests\jpa-chapter5\target
> > >> > > \openejb-out\con
> > >> > > f\openejb.xml
> > >> > > OpenEJB ready.
> > >> > > Will transform: org/apache/cayenne/jpa/itest/ch5/entity/
> > >> SimpleEntity
> > >> > > Tests run: 2, Failures: 1, Errors: 1, Skipped: 0, Time elapsed:
> > >> > > 2.015 sec <<< FA
> > >> > > ILURE!
> > >> > > Running
> > >> > >
> > >> org.apache.cayenne.jpa.itest.ch5._5_5_2_ResourceLocalEntityManagerTes
> > >> t
> > >> > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> > >> > > 0.094 sec
> > >> > >
> > >> > > Results :
> > >> > > Tests run: 5, Failures: 1, Errors: 1, Skipped: 0
> > >> > >
> > >> > > [INFO]
> > >> > >
> > >> ---------------------------------------------------------------------
> > >> -
> > >> > > --
> > >> > > [ERROR] BUILD FAILURE
> > >> > > [INFO]
> > >> > >
> > >> ---------------------------------------------------------------------
> > >> -
> > >> > > --
> > >> > > [INFO] There are test failures.
> > >> > > [INFO]
> > >> > >
> > >> ---------------------------------------------------------------------
> > >> -
> > >> > > --
> > >> > > [INFO] For more information, run Maven with the -e switch
> > >> > > [INFO]
> > >> > >
> > >> ---------------------------------------------------------------------
> > >> -
> > >> > > --
> > >> > > [INFO] Total time: 6 minutes 37 seconds
> > >> > > [INFO] Finished at: Mon Feb 26 12:53:40 EST 2007
> > >> > > [INFO] Final Memory: 26M/47M
> > >> > > [INFO]
> > >> > >
> > >> ---------------------------------------------------------------------
> > >> -
> > >> > > --
> > >> > >
> > >> > > On 2/26/07, Andrus Adamchik <an...@objectstyle.org> wrote:
> > >> > >> Fixed.
> > >> > >>
> > >> > >> On Feb 26, 2007, at 7:09 PM, Mike Kienenberger wrote:
> > >> > >>
> > >> > >> > Here's the next error.
> > >> > >> >
> > >> > >> > [ERROR] BUILD ERROR
> > >> > >> > [INFO]
> > >> > >> >
> > >> > >>
> > >> ---------------------------------------------------------------------
> > >> > >> -
> > >> > >> > --
> > >> > >> > [INFO] Failed to resolve artifact.
> > >> > >> >
> > >> > >> > Missing:
> > >> > >> > ----------
> > >> > >> > 1) jgoodies:looks:jar:1.3.1
> > >> > >> >
> > >> > >> >  Try downloading the file manually from the project website.
> > >> > >> >
> > >> > >> >  Then, install it using the command:
> > >> > >> >      mvn install:install-file -DgroupId=jgoodies -
> > >> > >> DartifactId=looks \
> > >> > >> >          -Dversion=1.3.1 -Dpackaging=jar -Dfile=/path/to/file
> > >> > >> >
> > >> > >> >  Path to dependency:
> > >> > >> >        1) org.apache.cayenne:cayenne-modeler:jar:3.0-SNAPSHOT
> > >> > >> >        2) jgoodies:looks:jar:1.3.1
> > >> > >> >
> > >> > >> > ----------
> > >> > >> > 1 required artifact is missing.
> > >> > >> >
> > >> > >> > for artifact:
> > >> > >> >  org.apache.cayenne:cayenne-modeler:jar:3.0-SNAPSHOT
> > >> > >> >
> > >> > >> > from the specified remote repositories:
> > >> > >> >  central (http://repo1.maven.org/maven2),
> > >> > >> >  apache-snapshots (http://people.apache.org/repo/m2-snapshot-
> > >> > >> > repository/)
> > >> > >> >
> > >> > >> >
> > >> > >> > [INFO]
> > >> > >> >
> > >> > >>
> > >> ---------------------------------------------------------------------
> > >> > >> -
> > >> > >> > --
> > >> > >> > [INFO] For more information, run Maven with the -e switch
> > >> > >> > [INFO]
> > >> > >> >
> > >> > >>
> > >> ---------------------------------------------------------------------
> > >> > >> -
> > >> > >> > --
> > >> > >> > [INFO] Total time: 3 minutes 9 seconds
> > >> > >> > [INFO] Finished at: Mon Feb 26 12:09:53 EST 2007
> > >> > >> > [INFO] Final Memory: 16M/29M
> > >> > >> > [INFO]
> > >> > >> >
> > >> > >>
> > >> ---------------------------------------------------------------------
> > >> > >> -
> > >> > >> > --
> > >> > >> >
> > >> > >> > On 2/26/07, Mike Kienenberger <mk...@gmail.com> wrote:
> > >> > >> >> :-)
> > >> > >> >>
> > >> > >> >> I think that makes the most sense as I suspect doc- and web-
> > >> > >> related
> > >> > >> >> dependencies are more fragile than regular code.   At
> > >> least, I've
> > >> > >> >> seen
> > >> > >> >> these things break more often in MyFaces than the standard
> > >> library
> > >> > >> >> build tools.
> > >> > >> >>
> > >> > >> >> On 2/26/07, Andrus Adamchik <an...@objectstyle.org> wrote:
> > >> > >> >> > Sure we can split the plugin, and put the docs mojo in
> > >> the docs
> > >> > >> >> > folder. Yet another module to maintain ;-)
> > >> > >> >> >
> > >> > >> >> >
> > >> > >> >> > On Feb 26, 2007, at 6:55 PM, Mike Kienenberger wrote:
> > >> > >> >> > > But isn't the whole point of using maven that this
> > >> various
> > >> > >> >> modules can
> > >> > >> >> > > be built independently, provided the minimal
> > >> dependencies are
> > >> > >> >> met?
> > >> > >> >> > >
> > >> > >> >> > > I don't think something like the web site (which a
> > >> regular
> > >> > >> >> cayenne
> > >> > >> >> > > user doesn't need) should be a dependency of the runtime/
> > >> > >> modeler.
> > >> > >> >> > >
> > >> > >> >> > > On 2/26/07, Andrus Adamchik <an...@objectstyle.org>
> > >> wrote:
> > >> > >> >> > >> They part of the same custom build plugin. Of course
> > >> we can
> > >> > >> >> split it
> > >> > >> >> > >> in multiple small plugins, but then the maintenance
> > >> would
> > >> > >> >> become much
> > >> > >> >> > >> harder.
> > >> > >> >> > >>
> > >> > >> >> > >> Andrus
> > >> > >> >> > >>
> > >> > >> >> > >> On Feb 26, 2007, at 6:19 PM, Mike Kienenberger wrote:
> > >> > >> >> > >>
> > >> > >> >> > >> > On 2/26/07, Andrus Adamchik
> > >> <an...@objectstyle.org> wrote:
> > >> > >> >> > >> >> Done, please try again.
> > >> > >> >> > >> >
> > >> > >> >> > >> > Ok.  I have new probably-unrelated errors (next
> > >> message).
> > >> > >> >> > >> However,
> > >> > >> >> > >> > it seems odd to me that the dependencies for
> > >> building the
> > >> > >> >> web site
> > >> > >> >> > >> > would block the rest of the cayenne build.   Is this
> > >> > >> something
> > >> > >> >> > >> we can
> > >> > >> >> > >> > fix down the road?
> > >> > >> >> > >> >
> > >> > >> >> > >>
> > >> > >> >> > >>
> > >> > >> >> > >
> > >> > >> >> >
> > >> > >> >> >
> > >> > >> >>
> > >> > >> >
> > >> > >>
> > >> > >>
> > >> > >
> > >> >
> > >> >
> > >>
> > >
> >
> >
>

Re: Build performance

Posted by Mike Kienenberger <mk...@gmail.com>.
Strangely enough, I notice no difference between mvn -o and mvn.

-Mike

On 2/27/07, Andrus Adamchik <an...@objectstyle.org> wrote:
> This is the timing with tests on my Mac Book:
>
> # mvn -o clean install
>
> [INFO] Cayenne ...............................................
> SUCCESS [1.764s]
> [INFO] Cayenne Internal Build Plugin .........................
> SUCCESS [2.835s]
> [INFO] Cayenne Build Tools Parent ............................
> SUCCESS [0.010s]
> [INFO] Cayenne License and Notice Bundle .....................
> SUCCESS [1.571s]
> [INFO] Cayenne Java 1.4 Unpublished ..........................
> SUCCESS [1:06.019s]
> [INFO] Cayenne Java 1.5 Unpublished ..........................
> SUCCESS [2.599s]
> [INFO] Cayenne JPA Unpublished ...............................
> SUCCESS [4.127s]
> [INFO] Cayenne Enhancer Bootstrap Agent ......................
> SUCCESS [0.434s]
> [INFO] Cayenne Aggregated Server Jar .........................
> SUCCESS [11.597s]
> [INFO] Cayenne Aggregated Client Jar .........................
> SUCCESS [20.264s]
> [INFO] Cayenne Modeler .......................................
> SUCCESS [6.840s]
> [INFO] Cayenne Maven Plugin ..................................
> SUCCESS [0.716s]
> [INFO] Cayenne Framework Aggregator Project ..................
> SUCCESS [0.011s]
> [INFO] Cayenne Integration Tests Parent ......................
> SUCCESS [0.019s]
> [INFO] Integration Tests Commons .............................
> SUCCESS [10.147s]
> [INFO] Integration Tests - POJO ..............................
> SUCCESS [10.912s]
> [INFO] Integration Tests - JPA Chapter 2 .....................
> SUCCESS [13.727s]
> [INFO] Integration Tests - JPA Chapter 3 .....................
> SUCCESS [8.330s]
> [INFO] Integration Tests - JPA Chapter 5 .....................
> SUCCESS [10.007s]
> [INFO] Integration Tests - JPA Chapter 9 .....................
> SUCCESS [11.619s]
> [INFO] Cayenne Modeler Java ..................................
> SUCCESS [21.130s]
> [INFO] Cayenne Modeler Parent ................................
> SUCCESS [0.046s]
> [INFO] Cayenne Documentation .................................
> SUCCESS [56.693s]
> [INFO] Cayenne Documenation Parent ...........................
> SUCCESS [0.029s]
>
> [INFO] Total time: 4 minutes 22 seconds
>
>
>
> On Feb 27, 2007, at 4:21 PM, Michael Gentry wrote:
>
> > ~/Projects/eclipse/workspace/Cayenne30> mvn -version
> > Maven version: 2.0.5
> >
> > I'm not certain it is 2.0.5, since that is what I upgraded to a
> > week or so ago.
> >
> > /dev/mrg
> >
> >
> > On 2/27/07, Mike Kienenberger <mk...@gmail.com> wrote:
> >> I upgraded to Maven 2.0.5 recently on my laptop.   I wonder if that's
> >> the issue.  I'll give it a try with 2.0.1 again when I get a chance.
> >> I'll also see if mvn -o makes much of a difference -- I'm expecting
> >> that this is likely the largest problem.
> >
>
>

Re: Build performance

Posted by Andrus Adamchik <an...@objectstyle.org>.
This is the timing with tests on my Mac Book:

# mvn -o clean install

[INFO] Cayenne ...............................................  
SUCCESS [1.764s]
[INFO] Cayenne Internal Build Plugin .........................  
SUCCESS [2.835s]
[INFO] Cayenne Build Tools Parent ............................  
SUCCESS [0.010s]
[INFO] Cayenne License and Notice Bundle .....................  
SUCCESS [1.571s]
[INFO] Cayenne Java 1.4 Unpublished ..........................  
SUCCESS [1:06.019s]
[INFO] Cayenne Java 1.5 Unpublished ..........................  
SUCCESS [2.599s]
[INFO] Cayenne JPA Unpublished ...............................  
SUCCESS [4.127s]
[INFO] Cayenne Enhancer Bootstrap Agent ......................  
SUCCESS [0.434s]
[INFO] Cayenne Aggregated Server Jar .........................  
SUCCESS [11.597s]
[INFO] Cayenne Aggregated Client Jar .........................  
SUCCESS [20.264s]
[INFO] Cayenne Modeler .......................................  
SUCCESS [6.840s]
[INFO] Cayenne Maven Plugin ..................................  
SUCCESS [0.716s]
[INFO] Cayenne Framework Aggregator Project ..................  
SUCCESS [0.011s]
[INFO] Cayenne Integration Tests Parent ......................  
SUCCESS [0.019s]
[INFO] Integration Tests Commons .............................  
SUCCESS [10.147s]
[INFO] Integration Tests - POJO ..............................  
SUCCESS [10.912s]
[INFO] Integration Tests - JPA Chapter 2 .....................  
SUCCESS [13.727s]
[INFO] Integration Tests - JPA Chapter 3 .....................  
SUCCESS [8.330s]
[INFO] Integration Tests - JPA Chapter 5 .....................  
SUCCESS [10.007s]
[INFO] Integration Tests - JPA Chapter 9 .....................  
SUCCESS [11.619s]
[INFO] Cayenne Modeler Java ..................................  
SUCCESS [21.130s]
[INFO] Cayenne Modeler Parent ................................  
SUCCESS [0.046s]
[INFO] Cayenne Documentation .................................  
SUCCESS [56.693s]
[INFO] Cayenne Documenation Parent ...........................  
SUCCESS [0.029s]

[INFO] Total time: 4 minutes 22 seconds



On Feb 27, 2007, at 4:21 PM, Michael Gentry wrote:

> ~/Projects/eclipse/workspace/Cayenne30> mvn -version
> Maven version: 2.0.5
>
> I'm not certain it is 2.0.5, since that is what I upgraded to a  
> week or so ago.
>
> /dev/mrg
>
>
> On 2/27/07, Mike Kienenberger <mk...@gmail.com> wrote:
>> I upgraded to Maven 2.0.5 recently on my laptop.   I wonder if that's
>> the issue.  I'll give it a try with 2.0.1 again when I get a chance.
>> I'll also see if mvn -o makes much of a difference -- I'm expecting
>> that this is likely the largest problem.
>


Re: Build performance [Was: mvn build failure]

Posted by Michael Gentry <bl...@gmail.com>.
~/Projects/eclipse/workspace/Cayenne30> mvn -version
Maven version: 2.0.5

I'm not certain it is 2.0.5, since that is what I upgraded to a week or so ago.

/dev/mrg


On 2/27/07, Mike Kienenberger <mk...@gmail.com> wrote:
> I upgraded to Maven 2.0.5 recently on my laptop.   I wonder if that's
> the issue.  I'll give it a try with 2.0.1 again when I get a chance.
> I'll also see if mvn -o makes much of a difference -- I'm expecting
> that this is likely the largest problem.