David Adler a écrit :
This morning when I did an 'svn update' on trunk, there appeared a new pom.xml in the \plugin\db2 directory. When I tried to do a build, it ran tests which are excluded in project.xml.

The pom.xml files are the new project configuration file in a Maven 2 build. It is completly ignored by Maven 1, which use project.xml. Conversely, project.xml is completly ignored by Maven 2, which use pom.xml.

Maven 2 has been released recently (http://maven.apache.org). It is incompatible with Maven 1. However, both can coexist because they use different configuration file (Maven 1: project.xml and Maven 2: pom.xml).

If both Maven 1 and Maven 2 are installed on yours machine, then

   maven build         creates a Maven 1 build.
   mvn install         creates a Maven 2 build.

The Maven 2 pom.xml files currently exist on an experimental basis. But it work well (after we copied last adjustements like excluded files) and if peoples agree, I would like to suggest moving officially to Maven 2. In which case we could delete project.xml, run-maven.xml and build.properties files.

In my experiment, Maven 2 is easier to configure, faster and ligther than Maven 1, and provides new capabilities like transitive dependencies (this new capability alone worth the switch and is the primary reason why I have spent so much time getting a Maven 2 build running).



The pom.xml has a line at the bottom that says:
<skip>true</skip> <!-- Set this to 'true' to bypass unit tests entirely. -->
but it still seems to be running all the tests.

I copied the 'excludes' from project.xml to pom.xml but it still runs the tests that should be excluded.


Anything you do in pom.xml has no effect at all on Maven 1.


Does the pom.xml replace or augment the project.xml?

Not yet, but it will do if peoples agree to move to Maven 2.

    Martin.


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to