You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Roberto del Fuego <ro...@googlemail.com> on 2007/08/15 10:40:23 UTC

Eclipse Plugin - Attaching Sources

Hi there,

I didn't realise you could download sourcecode of repository artifacts with the Eclipse plugin!  Excellent!

So I have an existing project and setup the plugin as described in Tim Kettle's post (thanks Tim).  However my .classpath file (after runnign eclipse:eclipse_ is as beneath this post.  The interesting thing for me is that Hibernate's sources are not referenced with a sourcepath attribute, but the plugin said it was downloading the hibernate sourcecode.  Also, if I look in my m2/repo folder, I only have the hibernate-3.0.5.jar file and not a corresponding source jarfile.

Can anyone shed light on this please?

Thanks,
Roberto


__________________________________________
<classpath>
 <classpathentry kind="src" path="src/main/java"/>
 <classpathentry kind="src" path="src/test/java" output="target/test-classes"/>
 <classpathentry kind="output" path="target/classes"/>
 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 <classpathentry kind="var" path="M2_REPO/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar"/>
 <classpathentry kind="var" path="M2_REPO/hibernate/antlr/2.7.5H3/antlr-2.7.5H3.jar"/>
 <classpathentry kind="var" path="M2_REPO/dom4j/dom4j/1.6/dom4j-1.6.jar"/>
 <classpathentry kind="var" path="M2_REPO/mysql/mysql-connector-java/5.0.7/mysql-connector-java-5.0.7.jar"/>
 <classpathentry kind="var" path="M2_REPO/cglib/cglib/2.0.2/cglib-2.0.2.jar"/>
 <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate/3.0.5/hibernate-3.0.5.jar"/>
 <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar" sourcepath="M2_REPO/junit/junit/3.8.1/junit-3.8.1-sources.jar"/>
 <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1.jar" sourcepath="M2_REPO/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1-sources.jar">
   <attributes>
     <attribute value="jar:file:/C:/Documents and Settings/Administrator/.m2/repository/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1-javadoc.jar!/" name="javadoc_location"/>
   </attributes>
 </classpathentry>
 <classpathentry kind="var" path="M2_REPO/ehcache/ehcache/1.1/ehcache-1.1.jar" sourcepath="M2_REPO/ehcache/ehcache/1.1/ehcache-1.1-sources.jar"/>
 <classpathentry kind="var" path="M2_REPO/asm/asm/1.4.3/asm-1.4.3.jar"/>
 <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar" sourcepath="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4-sources.jar">
   <attributes>
     <attribute value="jar:file:/C:/Documents and Settings/Administrator/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4-javadoc.jar!/" name="javadoc_location"/>
   </attributes>
 </classpathentry>
/classpath>Administrator /cygdrive/c/dev/products/eshop/project $


Re: Eclipse Plugin - Attaching Sources

Posted by Roberto del Fuego <ro...@googlemail.com>.
> Hi Tim,
>
> Thanks for your reply.  Yes, I had a look there myself just afterwards. 
> When the plugin says 'downloading <jar>' what it means I guess is that its 
> being optimistic in assuming that the jar's there and not claiming that 
> its found it and is actually downloading it.  My misinterpretation. Sorry! 
> I guess I can always jar up the sourcecode myself and install locally in 
> my repository then.
>
> Thanks for your help!

(I keep getting DNS problems too...!)
----- Original Message ----- 
From: "Tim Kettler" <ti...@udo.edu>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Wednesday, August 15, 2007 10:46 AM
Subject: Re: Eclipse Plugin - Attaching Sources


> Hi,
>
> there is no source or javadoc jar provided alongsite the hibernate 
> artifact in the repository for hibenate 3.0.5 [1]. Taking a quick look 
> sources are available starting with hibernate-3.1.
>
> -Tim
>
> [1] http://repo1.maven.org/maven2/org/hibernate/hibernate/3.0.5/
>
> Roberto del Fuego schrieb:
>> Hi there,
>>
>> I didn't realise you could download sourcecode of repository artifacts 
>> with the Eclipse plugin!  Excellent!
>>
>> So I have an existing project and setup the plugin as described in Tim 
>> Kettle's post (thanks Tim).  However my .classpath file (after runnign 
>> eclipse:eclipse_ is as beneath this post.  The interesting thing for me 
>> is that Hibernate's sources are not referenced with a sourcepath 
>> attribute, but the plugin said it was downloading the hibernate 
>> sourcecode.  Also, if I look in my m2/repo folder, I only have the 
>> hibernate-3.0.5.jar file and not a corresponding source jarfile.
>>
>> Can anyone shed light on this please?
>>
>> Thanks,
>> Roberto
>>
>>
>> __________________________________________
>> <classpath>
>>  <classpathentry kind="src" path="src/main/java"/>
>>  <classpathentry kind="src" path="src/test/java" 
>> output="target/test-classes"/>
>>  <classpathentry kind="output" path="target/classes"/>
>>  <classpathentry kind="con" 
>> path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>>  <classpathentry kind="var" 
>> path="M2_REPO/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar"/>
>>  <classpathentry kind="var" 
>> path="M2_REPO/hibernate/antlr/2.7.5H3/antlr-2.7.5H3.jar"/>
>>  <classpathentry kind="var" 
>> path="M2_REPO/dom4j/dom4j/1.6/dom4j-1.6.jar"/>
>>  <classpathentry kind="var" 
>> path="M2_REPO/mysql/mysql-connector-java/5.0.7/mysql-connector-java-5.0.7.jar"/>
>>  <classpathentry kind="var" 
>> path="M2_REPO/cglib/cglib/2.0.2/cglib-2.0.2.jar"/>
>>  <classpathentry kind="var" 
>> path="M2_REPO/org/hibernate/hibernate/3.0.5/hibernate-3.0.5.jar"/>
>>  <classpathentry kind="var" 
>> path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar" 
>> sourcepath="M2_REPO/junit/junit/3.8.1/junit-3.8.1-sources.jar"/>
>>  <classpathentry kind="var" 
>> path="M2_REPO/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1.jar" 
>> sourcepath="M2_REPO/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1-sources.jar">
>>    <attributes>
>>      <attribute value="jar:file:/C:/Documents and 
>> Settings/Administrator/.m2/repository/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1-javadoc.jar!/" 
>> name="javadoc_location"/>
>>    </attributes>
>>  </classpathentry>
>>  <classpathentry kind="var" 
>> path="M2_REPO/ehcache/ehcache/1.1/ehcache-1.1.jar" 
>> sourcepath="M2_REPO/ehcache/ehcache/1.1/ehcache-1.1-sources.jar"/>
>>  <classpathentry kind="var" path="M2_REPO/asm/asm/1.4.3/asm-1.4.3.jar"/>
>>  <classpathentry kind="var" 
>> path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar" 
>> sourcepath="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4-sources.jar">
>>    <attributes>
>>      <attribute value="jar:file:/C:/Documents and 
>> Settings/Administrator/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4-javadoc.jar!/" 
>> name="javadoc_location"/>
>>    </attributes>
>>  </classpathentry>
>> /classpath>Administrator /cygdrive/c/dev/products/eshop/project $
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Eclipse Plugin - Attaching Sources

Posted by Tim Kettler <ti...@udo.edu>.
Hi,

there is no source or javadoc jar provided alongsite the hibernate 
artifact in the repository for hibenate 3.0.5 [1]. Taking a quick look 
sources are available starting with hibernate-3.1.

-Tim

[1] http://repo1.maven.org/maven2/org/hibernate/hibernate/3.0.5/

Roberto del Fuego schrieb:
> Hi there,
> 
> I didn't realise you could download sourcecode of repository artifacts with the Eclipse plugin!  Excellent!
> 
> So I have an existing project and setup the plugin as described in Tim Kettle's post (thanks Tim).  However my .classpath file (after runnign eclipse:eclipse_ is as beneath this post.  The interesting thing for me is that Hibernate's sources are not referenced with a sourcepath attribute, but the plugin said it was downloading the hibernate sourcecode.  Also, if I look in my m2/repo folder, I only have the hibernate-3.0.5.jar file and not a corresponding source jarfile.
> 
> Can anyone shed light on this please?
> 
> Thanks,
> Roberto
> 
> 
> __________________________________________
> <classpath>
>  <classpathentry kind="src" path="src/main/java"/>
>  <classpathentry kind="src" path="src/test/java" output="target/test-classes"/>
>  <classpathentry kind="output" path="target/classes"/>
>  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>  <classpathentry kind="var" path="M2_REPO/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar"/>
>  <classpathentry kind="var" path="M2_REPO/hibernate/antlr/2.7.5H3/antlr-2.7.5H3.jar"/>
>  <classpathentry kind="var" path="M2_REPO/dom4j/dom4j/1.6/dom4j-1.6.jar"/>
>  <classpathentry kind="var" path="M2_REPO/mysql/mysql-connector-java/5.0.7/mysql-connector-java-5.0.7.jar"/>
>  <classpathentry kind="var" path="M2_REPO/cglib/cglib/2.0.2/cglib-2.0.2.jar"/>
>  <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate/3.0.5/hibernate-3.0.5.jar"/>
>  <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar" sourcepath="M2_REPO/junit/junit/3.8.1/junit-3.8.1-sources.jar"/>
>  <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1.jar" sourcepath="M2_REPO/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1-sources.jar">
>    <attributes>
>      <attribute value="jar:file:/C:/Documents and Settings/Administrator/.m2/repository/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1-javadoc.jar!/" name="javadoc_location"/>
>    </attributes>
>  </classpathentry>
>  <classpathentry kind="var" path="M2_REPO/ehcache/ehcache/1.1/ehcache-1.1.jar" sourcepath="M2_REPO/ehcache/ehcache/1.1/ehcache-1.1-sources.jar"/>
>  <classpathentry kind="var" path="M2_REPO/asm/asm/1.4.3/asm-1.4.3.jar"/>
>  <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar" sourcepath="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4-sources.jar">
>    <attributes>
>      <attribute value="jar:file:/C:/Documents and Settings/Administrator/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4-javadoc.jar!/" name="javadoc_location"/>
>    </attributes>
>  </classpathentry>
> /classpath>Administrator /cygdrive/c/dev/products/eshop/project $
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org