Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » Sources for dependency jars
Sources for dependency jars [message #503076] Thu, 10 December 2009 19:25 Go to next message
No real name is currently offline No real nameFriend
Messages: 19
Registered: July 2009
Junior Member
I can't get it to associate sources for my dependency and it's very frustrating that the Maven Classpath Container won't allow me to associate it manually.

<dependency>
<groupId>org.swinglabs</groupId>
<artifactId>swingx</artifactId>
<version>1.6</version>
<scope>compile</scope>
<optional>false</optional>
</dependency>

http://repo2.maven.org/maven2/org/swinglabs/swingx/1.6/

I right clicked on project->Maven 2->Fetch sources and the source jar is in my local repository, but when I open a class file in the dependent jar, it doesn't show the source. It shows the default eclipse decompilation.
Re: Sources for dependency jars [message #503321 is a reply to message #503076] Fri, 11 December 2009 15:16 Go to previous messageGo to next message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 114
Registered: July 2009
Senior Member
when you open the classpath container does it show the icon of "jar with
sources" (a jar icon with a small white document in the lower left) or
just "jar" for swingx?

may it be that the sources jar doesn't contain sources for all the classes?

On 12/10/09 11:25 AM, joel@mentics.com wrote:
> I can't get it to associate sources for my dependency and it's very
> frustrating that the Maven Classpath Container won't allow me to
> associate it manually.
>
> <dependency>
> <groupId>org.swinglabs</groupId>
> <artifactId>swingx</artifactId>
> <version>1.6</version>
> <scope>compile</scope>
> <optional>false</optional>
> </dependency>
>
> http://repo2.maven.org/maven2/org/swinglabs/swingx/1.6/
>
> I right clicked on project->Maven 2->Fetch sources and the source jar is
> in my local repository, but when I open a class file in the dependent
> jar, it doesn't show the source. It shows the default eclipse
> decompilation.
Re: Sources for dependency jars [message #503589 is a reply to message #503321] Mon, 14 December 2009 20:10 Go to previous message
No real name is currently offline No real nameFriend
Messages: 19
Registered: July 2009
Junior Member
Carlos Sanchez wrote on Fri, 11 December 2009 10:16
when you open the classpath container does it show the icon of "jar with
sources" (a jar icon with a small white document in the lower left) or
just "jar" for swingx?
may it be that the sources jar doesn't contain sources for all the classes?


Yes I had that icon so I dug into it... The swingx 1.6 sources jar is corrupt. When uncompressed, the source files are in a directory structure that has a space before " org". I recreated the jar locally and now it works.

Thanks!
Previous Topic:True Multi Module Support?
Next Topic:Sources for dependency jars
Goto Forum:
  


Current Time: Tue Dec 23 00:53:30 GMT 2014

Powered by FUDForum. Page generated in 0.02392 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software