You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Julian Wood <wo...@ucalgary.ca> on 2006/05/11 19:43:39 UTC

idea plugin, dependencies, their source and javadocs

How do you include a source jar (or a javadoc jar) as a dependency in  
your pom, such that when the idea plugin builds your project, sources  
and javadocs are downloaded and linked up properly?

This issue suggests that it already works:

http://jira.codehaus.org/browse/MIDEA-51

These issues suggest that it doesn't yet work.

http://jira.codehaus.org/browse/MPIDEA-36
http://jira.codehaus.org/browse/MNG-2248

I've tried adding 3 deps differing only in their classifier, which is  
either nonexistant, 'sources' or 'javadoc'. All are downloaded, of  
course, but are simply added as module libraries to the IJ project  
file, rather than being correctly linked as sources or javadocs. This  
is using the latest idea plugin from svn.

What am I missing (as I start to peruse the idea plugin code to find  
out)?

Thanks,

J

--
Julian Wood <wo...@ucalgary.ca>

Software Engineer
Teaching & Learning Centre
University of Calgary

http://tlc.ucalgary.ca



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


Re: idea plugin, dependencies, their source and javadocs

Posted by Julian Wood <wo...@ucalgary.ca>.
Cool - that works perfectly. Thanks, J

On 11-May-06, at 11:53 AM, Tim Kettler wrote:

> Hi,
>
> Never tried it myself but looking at the mojo sourcecode it is  
> configured as shown below. I think this is not available in the  
> current release of the plugin, so you will have to use a snapshot/ 
> svn version.
>
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-idea-plugin</artifactId>
>   <configuration>
>     <downloadSources>true</downloadSources>
>     <downloadJavadocs>true</downloadJavadocs>
>   </configuration>
> </plugin>
>
> Hope this helps
> -Tim
>
> Julian Wood schrieb:
>> How do you include a source jar (or a javadoc jar) as a dependency  
>> in your pom, such that when the idea plugin builds your project,  
>> sources and javadocs are downloaded and linked up properly?
>> This issue suggests that it already works:
>> http://jira.codehaus.org/browse/MIDEA-51
>> These issues suggest that it doesn't yet work.
>> http://jira.codehaus.org/browse/MPIDEA-36
>> http://jira.codehaus.org/browse/MNG-2248
>> I've tried adding 3 deps differing only in their classifier, which  
>> is either nonexistant, 'sources' or 'javadoc'. All are downloaded,  
>> of course, but are simply added as module libraries to the IJ  
>> project file, rather than being correctly linked as sources or  
>> javadocs. This is using the latest idea plugin from svn.
>> What am I missing (as I start to peruse the idea plugin code to  
>> find out)?
>> Thanks,
>> J

--
Julian Wood <wo...@ucalgary.ca>

Software Engineer
Teaching & Learning Centre
University of Calgary

http://tlc.ucalgary.ca



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


Re: idea plugin, dependencies, their source and javadocs

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

Never tried it myself but looking at the mojo sourcecode it is configured as shown below. 
I think this is not available in the current release of the plugin, so you will have to 
use a snapshot/svn version.

<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-idea-plugin</artifactId>
   <configuration>
     <downloadSources>true</downloadSources>
     <downloadJavadocs>true</downloadJavadocs>
   </configuration>
</plugin>

Hope this helps
-Tim

Julian Wood schrieb:
> How do you include a source jar (or a javadoc jar) as a dependency in 
> your pom, such that when the idea plugin builds your project, sources 
> and javadocs are downloaded and linked up properly?
> 
> This issue suggests that it already works:
> 
> http://jira.codehaus.org/browse/MIDEA-51
> 
> These issues suggest that it doesn't yet work.
> 
> http://jira.codehaus.org/browse/MPIDEA-36
> http://jira.codehaus.org/browse/MNG-2248
> 
> I've tried adding 3 deps differing only in their classifier, which is 
> either nonexistant, 'sources' or 'javadoc'. All are downloaded, of 
> course, but are simply added as module libraries to the IJ project file, 
> rather than being correctly linked as sources or javadocs. This is using 
> the latest idea plugin from svn.
> 
> What am I missing (as I start to peruse the idea plugin code to find out)?
> 
> Thanks,
> 
> J
> 
> -- 
> Julian Wood <wo...@ucalgary.ca>
> 
> Software Engineer
> Teaching & Learning Centre
> University of Calgary
> 
> http://tlc.ucalgary.ca
> 
> 
> 
> ---------------------------------------------------------------------
> 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