Hi Devel list,
I compile GN trunk svn 9014 with >mvn clean install -e using maven 2.2.1
The build fails with following error:
...
[INFO] Compiling 509 source files to C:\GNTrunk9041\geonetwork.trunk\web\target\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
C:\GNTrunk9041\geonetwork.trunk\web\src\main\java\org\fao\geonet\util\JODAISODate.java:[100,35] cannot find symbol
symbol : method toStandardDuration()
location: class org.joda.time.Period
C:\GNTrunk9041\geonetwork.trunk\web\src\main\java\org\fao\geonet\util\JODAISODate.java:[101,29] cannot find symbol
symbol : method toStandardDuration()
location: class org.joda.time.Period
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
....
It's complaining about class/method the joda time library .jar.
Looking at my .m2 repository I note multiple versions of the joda time .jars :
.m2/repository/joda-time/joda-time/1.5.2/joda-time-1.5.2.jar
.m2/repository/joda-time/joda-time/1.6/joda-time-1.6.jar
and the web/pom.xml declares a dependency:
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
</dependency>
Some problem with my build environment.
Any advice about about to fix will be greatly appreciated.
Andrew