Open GoogleCodeExporter opened 9 years ago
Does Maven support address this?
Original comment by limpbizkit
on 10 Jun 2009 at 1:02
maven, if configured right, will generate src jars for you (see
http://test-libraries-for-java.googlecode.com, for example). But, of course,
having
the src jar generated is only half the issue -- it needs to be uploaded to
appear in
the "Downloads" tab (which, unfortunately, maven does not do).
BTW, the ant target to accomplish the jaring of sources is quite simple. E.g.
from
GuiceBerry:
<target name="jarsrc" description="Build jar of source.">
<jar jarfile="${build.dir}/dist/guiceberry-${version}/guiceberry-${version}-src.jar">
<fileset dir="${src.dir}"/>
</jar>
</target>
Z
Original comment by zorze...@gmail.com
on 10 Jun 2009 at 4:53
This is related to issue 382 which I posted. The source jar (when generated)
also needs to get uploaded to the
maven repository for maximum utility.
Original comment by dom.happ...@gmail.com
on 10 Jun 2009 at 7:57
Whilst looking at issue 382, I noticed that source jars are actually built.
They're just not available as downloads.
There's little to stop you checking out the 2.0 tag yourself and running "ant
dist" to generate the source jars. All
dependencies are included, so it's an easy build.
Original comment by dom.happ...@gmail.com
on 23 Jun 2009 at 7:16
"easy build" is not really the point. IDEs download the src jars so we can jump
to definitions and debug through the shared libs.
Original comment by mbis...@gmail.com
on 24 Mar 2011 at 7:42
I never had any issues with taking the src zip & plugging that into the IDE.
Didn't have to modify it at all.
Original comment by sberlin
on 24 Mar 2011 at 7:50
That's true, but IDEs with maven support automatically grab them from the repo
if you declare a dependency. What makes it truly annoying is that if you
manually add the src, then update your maven project, the IDEs will toss your
manually-added src jar.
Original comment by mbis...@gmail.com
on 24 Mar 2011 at 7:55
All Guice 3 maven dependencies should have the src added automatically.
Original comment by sberlin
on 24 Mar 2011 at 7:57
I'd love to see the source jars uploaded to the repo. My IDE lets me just click
'get sources' for maven dependencies. Having to manually go and download, unzip
and then attach the source code is just tedious.
The mvn release plugin is great for this sort of thing.
Original comment by proggerp...@gmail.com
on 1 Aug 2011 at 2:12
3.0 has sources generated and in the repository.
Original comment by cgruber@google.com
on 5 Jun 2012 at 3:00
Original issue reported on code.google.com by
zorze...@gmail.com
on 9 Jun 2009 at 6:38