[ 
http://jira.codehaus.org/browse/MIDEA-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_89550
 ] 

Andy DePue commented on MIDEA-79:
---------------------------------

I believe this is what I'm seeing as well.  I've noticed that if a .pom 
declares a dependency to an inhouse project, then the sources and javadocs are 
not linked in the IDEA project.  However, sources and javadocs are linked to 
projects from the maven central repository.  It could be the reason for this is 
because the inhouse modules are all SNAPSHOT.
I have a large project with many modules - so many modules, in fact, that it 
doesn't make sense to put them all in one IDEA project.  What I've done is 
declare the core modules in my main parent .pom, so all those modules get 
included in the main IDEA project.  I should note that all the modules in this 
main IDEA project do indeed link to each other properly.  So, the sources are 
available, but only because the modules link to each other within the same 
project.  The remaining modules (not included in the main IDEA project) declare 
the parent .pom as their parent, but the parent .pom does not declare them in 
its <modules> section.  Each of these modules is built independently from the 
main .pom.  What I'd like to do is run mvn idea:idea on these independent 
modules so that each one has its own project all to itself - which works, for 
the most part, except that any dependencies to other modules in our 
organization do not have their sources or javadocs added - though dependencies 
to outside modules do have the sources and javadocs linked.  And yes, I've 
verified that the sources and javadocs for the other modules have been 
generated and uploaded properly to our inhouse snapshot server.

> Sources for SNAPSHOT-dependencies are not downloaded correctly.
> ---------------------------------------------------------------
>
>                 Key: MIDEA-79
>                 URL: http://jira.codehaus.org/browse/MIDEA-79
>             Project: Maven 2.x Idea Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Jan Thomae
>         Assigned To: Stephane Nicoll
>
> When downloading sources for SNAPSHOT dependencies,  the plugin uses the 
> wrong path. Instead of downloading 
> http://repository.insomnia-hq.de/de/insomniahq/icc/1.0-SNAPSHOT/icc-1.0-20061202.231038-59-sources.jar
> it tries to download
> http://repository.insomnia-hq.de/de/insomniahq/icc/icc-1.0-20061202.231038-59/icc-1.0-20061202.231038-59-sources.jar
> Also sometimes it tries to download
> http://repository.insomnia-hq.de/de/insomniahq/icc/1.0-SNAPSHOT/icc-1.0-SNAPSHOT-sources.jar
> instead of replacing the SNAPSHOT with the actual snapshot version.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to