Ahh, yes I forgot about this. It seems that when a project declares a 
dependency which has a non-default classifier ( like tests ), the jar 
collector fails.

So we have two options.

1. Stick with maven 2.0.5
2. Change the jar collector so that it does not execute during the 
install phase.

Question for martin. What exactly is the jar collector used for?

-Justin

Jody Garnett wrote:
> I am performing the same tests with maven 2.0.6 (same maven version as 
> Justin has the build box running).
> 
> Maven 2.0.6, Java 6, Windows Vista
>> [INFO] Building jar: 
>> C:\java\geotools\trunk\modules\unsupported\postgis-versioned\target\gt2-postgis-versioned-2.4-SNAPS
>> HOT-sources.jar
>> [INFO] NOT adding java-sources to attached artifacts list.
>> [INFO] [gt2-jar-collector:collect {execution: default}]
>> [INFO] 
>> ------------------------------------------------------------------------
>> [ERROR] FATAL ERROR
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] null
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> java.lang.NullPointerException
>>         at org.geotools.maven.JarCollector.collect(JarCollector.java:135)
>>         at org.geotools.maven.JarCollector.execute(JarCollector.java:99)
>>         at 
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
>>         at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>>         at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:48
>> 0)
>>         at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>>         at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
>> a:311)
>>         at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>>         at 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at 
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>         at 
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] Total time: 10 minutes 48 seconds
>> [INFO] Finished at: Tue Apr 24 15:03:28 PDT 2007
>> [INFO] Final Memory: 42M/63M
>> [INFO] 
>> ------------------------------------------------------------------------
> I know this module (postgis-versioned) was tossed out of the build last 
> week by Cory, but I never quite figured out what this failure is all about.
> 
> So far this is a down check for Maven 2.0.6 ...
> Jody
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel


-- 
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to