You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dominique Jean-Prost (JIRA)" <ji...@codehaus.org> on 2008/02/05 11:57:28 UTC

[jira] Created: (MECLIPSE-387) download source should accept exclusion of artifact

download source should accept exclusion of artifact
---------------------------------------------------

                 Key: MECLIPSE-387
                 URL: http://jira.codehaus.org/browse/MECLIPSE-387
             Project: Maven 2.x Eclipse Plugin
          Issue Type: New Feature
    Affects Versions: 2.4
            Reporter: Dominique Jean-Prost


It would be nice to be possible to exclude specific group/artifact when downloadSources is to true (in pom.xml for instance).
As the sources jar or the javadoc jar will never be available in repo, for specific artifact, mvn eclipse:eclipse keep on trying to download them, and it slows the process.

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

        

[jira] Commented: (MECLIPSE-387) download source should accept exclusion of artifact

Posted by "Dominique Jean-Prost (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MECLIPSE-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_122386 ] 

Dominique Jean-Prost commented on MECLIPSE-387:
-----------------------------------------------

Well I think there are 2 problems :

first : MECLIPSE-332 which made me raise this feature because I thought it wasn't implemented at all. It is, but bug #MECLIPSE-332 is causing the problem.

second : I agree that the cache should be shared among all artifact.

So my need is that bug MECLIPSE-332 get fixed. I would be ok then to accept that the cache isn't shared between artifacts.

> download source should accept exclusion of artifact
> ---------------------------------------------------
>
>                 Key: MECLIPSE-387
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-387
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.4
>            Reporter: Dominique Jean-Prost
>
> It would be nice to be possible to exclude specific group/artifact when downloadSources is to true (in pom.xml for instance).
> As the sources jar or the javadoc jar will never be available in repo, for specific artifact, mvn eclipse:eclipse keep on trying to download them, and it slows the process.

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

        

[jira] Updated: (MECLIPSE-387) download source should accept exclusion of artifact

Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MECLIPSE-387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arnaud Heritier updated MECLIPSE-387:
-------------------------------------

    Component/s: Core : Dependencies resolution and build path

> download source should accept exclusion of artifact
> ---------------------------------------------------
>
>                 Key: MECLIPSE-387
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-387
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: New Feature
>          Components: Core : Dependencies resolution and build path
>    Affects Versions: 2.4
>            Reporter: Dominique Jean-Prost
>
> It would be nice to be possible to exclude specific group/artifact when downloadSources is to true (in pom.xml for instance).
> As the sources jar or the javadoc jar will never be available in repo, for specific artifact, mvn eclipse:eclipse keep on trying to download them, and it slows the process.

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

        

[jira] Closed: (MECLIPSE-387) download source should accept exclusion of artifact

Posted by "Barrie Treloar (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MECLIPSE-387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Barrie Treloar closed MECLIPSE-387.
-----------------------------------

       Resolution: Won't Fix
    Fix Version/s: 2.6

MECLIPSE-377 provides a global cache in ~/.m2

This will mean your artifacts will try once to seed the cache and then never again.
So there should be no need for an exclusion feature.

> download source should accept exclusion of artifact
> ---------------------------------------------------
>
>                 Key: MECLIPSE-387
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-387
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: New Feature
>          Components: Core : Dependencies resolution and build path (.classpath)
>    Affects Versions: 2.4
>            Reporter: Dominique Jean-Prost
>             Fix For: 2.6
>
>         Attachments: configurable-source-cache-dir-diff
>
>
> It would be nice to be possible to exclude specific group/artifact when downloadSources is to true (in pom.xml for instance).
> As the sources jar or the javadoc jar will never be available in repo, for specific artifact, mvn eclipse:eclipse keep on trying to download them, and it slows the process.

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

        

[jira] Commented: (MECLIPSE-387) download source should accept exclusion of artifact

Posted by "Joerg Schaible (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MECLIPSE-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_122384 ] 

Joerg Schaible commented on MECLIPSE-387:
-----------------------------------------

Well, the Eclipse plugin already cached that, but unfortunately in the target directory of each artifact separately. I'd rather have a global cache for this e.g. in <home>/.m2. Once the inavailability of a source artifact is listed there, it should not be requested again.

> download source should accept exclusion of artifact
> ---------------------------------------------------
>
>                 Key: MECLIPSE-387
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-387
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.4
>            Reporter: Dominique Jean-Prost
>
> It would be nice to be possible to exclude specific group/artifact when downloadSources is to true (in pom.xml for instance).
> As the sources jar or the javadoc jar will never be available in repo, for specific artifact, mvn eclipse:eclipse keep on trying to download them, and it slows the process.

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

        

[jira] Commented: (MECLIPSE-387) download source should accept exclusion of artifact

Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MECLIPSE-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130746#action_130746 ] 

Arnaud Heritier commented on MECLIPSE-387:
------------------------------------------

In 2.5.2 I planned to move the cache in the root of the local repository.
This cache will be shared by all projects because it indexes sources and javadocs that the user have in its local repository.
Putting it in this directory, will ensure that it will be deleted if the user remove its local repo.

> download source should accept exclusion of artifact
> ---------------------------------------------------
>
>                 Key: MECLIPSE-387
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-387
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: New Feature
>          Components: Core : Dependencies resolution and build path
>    Affects Versions: 2.4
>            Reporter: Dominique Jean-Prost
>
> It would be nice to be possible to exclude specific group/artifact when downloadSources is to true (in pom.xml for instance).
> As the sources jar or the javadoc jar will never be available in repo, for specific artifact, mvn eclipse:eclipse keep on trying to download them, and it slows the process.

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

        

[jira] Updated: (MECLIPSE-387) download source should accept exclusion of artifact

Posted by "Julien Renaut (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MECLIPSE-387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julien Renaut updated MECLIPSE-387:
-----------------------------------

    Attachment: configurable-source-cache-dir-diff

Hi,

i've slightly modified the AbstractIdeSupportMojo for our use here at work.

A "preferredSourceCacheDir" parameter has been added (defaults to null).

This way the user can specify a location of choice for the source status cache.

If none is provided it falls back to the default location (target dir).



I've attached a patch for it if anyone's interested in that particular solution.

> download source should accept exclusion of artifact
> ---------------------------------------------------
>
>                 Key: MECLIPSE-387
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-387
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: New Feature
>          Components: Core : Dependencies resolution and build path
>    Affects Versions: 2.4
>            Reporter: Dominique Jean-Prost
>         Attachments: configurable-source-cache-dir-diff
>
>
> It would be nice to be possible to exclude specific group/artifact when downloadSources is to true (in pom.xml for instance).
> As the sources jar or the javadoc jar will never be available in repo, for specific artifact, mvn eclipse:eclipse keep on trying to download them, and it slows the process.

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

        

[jira] Commented: (MECLIPSE-387) download source should accept exclusion of artifact

Posted by "Dominique Jean-Prost (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MECLIPSE-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130728#action_130728 ] 

Dominique Jean-Prost commented on MECLIPSE-387:
-----------------------------------------------

As MECLIPSE-332 is fixed, it's now acceptable to use -DdownloadSoruces=true on a specific artifact.

Anyway, I think that having a "maven installation" wide cache would greatly improve experience. Maybe ~/.m2 is the correct place.
+1 for this feature.

> download source should accept exclusion of artifact
> ---------------------------------------------------
>
>                 Key: MECLIPSE-387
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-387
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: New Feature
>          Components: Core : Dependencies resolution and build path
>    Affects Versions: 2.4
>            Reporter: Dominique Jean-Prost
>
> It would be nice to be possible to exclude specific group/artifact when downloadSources is to true (in pom.xml for instance).
> As the sources jar or the javadoc jar will never be available in repo, for specific artifact, mvn eclipse:eclipse keep on trying to download them, and it slows the process.

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