[ http://jira.codehaus.org/browse/MNG-2531?page=all ]

Brett Porter closed MNG-2531.
-----------------------------

      Assignee: Brett Porter
    Resolution: Won't Fix

- you can already create a source jar with sources:jar
- you can already automate that by adding it to an execution in the package 
phase (which the release plugin does). It would not be sensible to do this by 
default though.
- the IDEA plugin already preserves your source settings (or is supposed to). 
If it doesn't, that's a bug.

Hope that covers it :)

> Source jar + POM changes
> ------------------------
>
>                 Key: MNG-2531
>                 URL: http://jira.codehaus.org/browse/MNG-2531
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: POM
>            Reporter: Brian Topping
>         Assigned To: Brett Porter
>            Priority: Minor
>
> [This idea is kind of half-baked, but please think it through.  I think it 
> could save a lot of time if it worked.]
> Would it be reasonable to automatically create some kind of source jar for 
> projects when they are built?  All the data is there to create the source 
> tree, and if it was, the POM could be extended such that the IDE plugins such 
> as IDEA could make use of knowing where the sources are for a dependency, 
> download and unjar them automagically as  a part of the build, then configure 
> the IDE project so the sources were linked to the JAR.
> I'm thinking about this because the IDE plugins are really one of the best 
> integrations with the IDEs, but when one rebuilds the IDE project file, the 
> source links are typically destroyed.  If you have several dependencies in 
> your IDE that you have to re-establish the source link with every time you 
> rebuild the project, the expense of using the IDE plugin goes way up.  When 
> that happens, the IDE becomes an easier place to make the changes, and 
> sometimes these changes get forgotten about, breaking the Maven build.  If 
> that's the de-facto build for an organization (because the IDEs can generate 
> from it), then it's a problem.
> Another (probably easier) option would be to upgrade all the IDE plugins to 
> cache the existing source locations for JARs across runs of the project 
> generation, but it does require an implementation for each IDE plugin.
> Storing sources in the Maven repos are probably not the ideal situation, but 
> putting hardcoded source addresses in the POM would not work either because 
> developers typically have different locations for things.  It might be 
> possible to set it up so the local source addresses are stored in the user 
> properties, but that sounds like a very difficult thing to do in a clean 
> manner.
> Thanks for reading this rather long winded brainstorm.

-- 
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