Martin Desruisseaux wrote:
>> Does this create the javadoc zip archive that was normally generated
>> during maven 1 createRelease?
>
>
> Not yet, but it would be trivial to add (the plugin just execute an Ant
> build file, so it is just a matter of adding a few lines to this Ant
> build file - I can do that if you wish).

If you could do that, it would be fantastic.

Just realized that

    mvn org.geotools:gt2-javadoc:javadoc

is implemented on trunk only. I tried to port it on 2.2 branch one or two week ago, but failed because the pom.xml files in the 2.2 branch are very different from the pom.xml files in the trunk. Was the pom.xml files overwritten by Maven during the release process, or were they hand-edited by someone?

The poms are changed whenever maven release:prepare is executed, but they do not change the formatting. I had a look at the diff for the commit and it just changes version numbers. But I also changed the scm urls for all the 2.2.x poms. If the change is not too crazy, I can just apply it by hand.


As a workaround, there is some chances that invoking "mvn install" once in the trunk will allows "mvn org.geotools:gt2-javadoc:javadoc" to work even on the 2.2 branch (since the plugin would be installed in the local repository). But I never tried.

I tried a mvn install on trunk and then went to my 2.2-RC3 checkout. Executing mvn org.geotools:gt2-javadoc:javadoc yields this exception:

[DEBUG] gt2-javadoc: resolved to version 2.3-SNAPSHOT from local repository
[DEBUG] Skipping disabled repository central
[DEBUG] gt2-javadoc: using locally installed snapshot
[DEBUG] Retrieving parent-POM: org.geotools:gt2-maven::2.3-SNAPSHOT for project: org.geotools:gt2-javadoc:maven-plugin:2.3-SNAPSHOT from the repository.
[DEBUG] Skipping disabled repository central
[DEBUG] gt2-maven: using locally installed snapshot
[DEBUG] Retrieving parent-POM: org.geotools:gt2::2.3-SNAPSHOT for project: org.geotools:gt2-maven:pom:2.3-SNAPSHOT from the repository.
[DEBUG] Skipping disabled repository central
[DEBUG] gt2: using locally installed snapshot
[DEBUG] gt2-javadoc: using locally installed snapshot
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
java.lang.NullPointerException
at org.apache.maven.plugin.descriptor.PluginDescriptor.getMojo(PluginDescriptor.java:259) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1524) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:381) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:135)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        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:585)
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: 4 seconds
[INFO] Finished at: Wed May 17 14:39:45 PDT 2006
[INFO] Final Memory: 13M/24M
[INFO] ------------------------------------------------------------------------

So for now I am editing the wiki page. I will finalize the binary and source release process. All that is left is the javadoc release.

Cheers,

Richard


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to