Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[java-nlp-user] Mis-packaged CoreNLP 1.3.0 sources artifact on Maven Central

Christopher Manning manning at
Sun Feb 12 19:24:02 PST 2012

Hi Richard and John,

FWIW, I also have a preference for the sources to create a src directory.  I guess it all depends whether you're actually going to unpack it or just keep it packed.

Looking at the sources of the various libraries that we use internally, it seems that at least the de facto standard is that jar files precisely mirror the class names (as Richard desires), but that source zip files do contain a src/ directory.

So, one possible approach would be to include a source zip file in our download, but to not include a src level in the sources jar file that gets uploaded to maven central.  Of course, that means that there are two different sources artifacts.  If that seems to complex, I can live with just having a sources jar without a src level.  Putting a src level into a sources jar does seem to be a mistake.


On Feb 8, 2012, at 3:00 PM, Richard Eckart de Castilho wrote:

> Hello John,
> Am 08.02.2012 um 23:35 schrieb John Bauer:
>> I don't actually know a lot about Maven.  My understanding is that
>> things can't be changed once they're uploaded.  However, I'm sure you
>> already know that it can be downloaded directly from here:
> It might be worth a try that this person just tries re-release the same version. I never tried
> that on the official repository. I sometimes do that on our internal repository, though
> I know that it's bad practice - for a good reason. I assume that you probably upload
> the artifacts through Sonatype. It might be possible to open an issue on their Jira to
> request instructions on how to fix a broken source artifact.
>> I have a personal preference for putting the source in a directory
>> such as src.  (That way, if you unpack the source jar, it's nicely
>> organized in its own directory.)  Do you know if it's possible to
>> specify that in the pom file?
> This is not an issue of specifying anything in the POM. It's a problem that source artifacts
> are supposed to have exactly the same package structure as the regular JARs. If you just add
> a "src", the package structure is different. It's also not specific to Maven, because it is
> Eclipse that is not able to retrieve the sources from a source JAR that does not have the
> same package structure as the corresponding regular jar it is attached to. I checked
> the sources jar in the official .tar.gz from the URL you mentioned above - it is likewise broken.
> On decent operating systems, unpacking tools create a folder with the same name as the zip file
> when a zip is extracted which contains more than one file. People are usually not expected to
> extract JAR files. 
> For the benefit of your users, please consider suppressing your personal preference so that
> the sources jar can be attached to the regular JAR in Eclipse giving instant access to the
> sources and even to the JavaDoc.
> Best,
> -- Richard
> -- 
> ------------------------------------------------------------------- 
> Richard Eckart de Castilho
> Technical Lead
> Ubiquitous Knowledge Processing Lab (UKP-TUD) 
> FB 20 Computer Science Department      
> Technische Universität Darmstadt 
> Hochschulstr. 10, D-64289 Darmstadt, Germany 
> phone [+49] (0)6151 16-7477, fax -5455, room S2/02/B117
> eckart at 
> Web Research at TU Darmstadt (WeRC)
> ------------------------------------------------------------------- 
> _______________________________________________
> java-nlp-user mailing list
> java-nlp-user at

More information about the java-nlp-user mailing list