Andrea Aime a écrit :
>>      Removing the "gt2-" prefix in artifact names allow them to match the
>>      directories names, which allow us to remove all <scm>, <url> and
>>      <connection> declarations in pom.xml files except the root one. The
>>      correct URLs are build by Maven, the default being directory names
>>      matching artifact names (like Java class names matching file names).
>>
>>   
> Oh... this is going to be a trouble. Do you have an idea how common a 
> "main" module is?
> The eclipse plugin generates projects whose name matches the artifactId, 
> this means I won't be
> able to have geoserver and geotools loaded at the same time in Eclipse 
> because we do have
> two main modules now...

Ah, the eclipse name matches the artifactID? I was not aware of that...

In a Maven world, this is not a problem because "main" is isolated into 
<group>org.geotools</group>. Having <artifactID> matching the directory name 
really simplify maven configuration. Some of our <scm> sections had wrong URL 
because the manual maintenance has not always been done.


> Btw, there's an open issue about this: 
> http://jira.codehaus.org/browse/MECLIPSE-119
> Has been opened quite some time ago and voted too, still unresolved, so I 
> would not hold my breath
> waiting for it to be fixed.

The above-cited JIRA task provides a patch. One possible approach is to 
checkout 
the "maven-eclipse-plugin" code from SVN, apply the patch and deploy on our 
Maven repository as version "2.0-GT" for example.

If "main" is the only conflicting name, an other approach is to rename only 
"main" as "gt-main". We would provide an explicit <scm> section for this module 
only, as a temporary approach until MECLIPSE-119 is fixed.

An other approach is to process now to the splitting of "main" suggested by 
Jody. He proposed to move the XML, filter and other parts out of "main", into 
their own modules, like what has been done in the "feature" branch I believe. 
The remaning "mean" could then have an other name (I guess that it will not be 
"main" anymore after the split).

What do you think?

     Martin

-------------------------------------------------------------------------
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