You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ovidio Mallo (JIRA)" <ji...@codehaus.org> on 2006/07/01 10:15:40 UTC

[jira] Created: (MSOURCES-7) add mojo for creating a source bundle

add mojo for creating a source bundle
-------------------------------------

         Key: MSOURCES-7
         URL: http://jira.codehaus.org/browse/MSOURCES-7
     Project: Maven 2.x Sources Plugin
        Type: New Feature

    Versions: 2.0.1    
    Reporter: Ovidio Mallo


I think it would be nice to have some mojo "source:jar-with-dependencies" or something similar which not only includes the artifact's sources into the JAR but also those of its transitive dependencies. This would e.g. allow to create a source bundle for an assembly created with Maven.

As a concrete example, the "Maven 2.x Plugin for Eclipse" project, which is no Maven but a simple PDE project, uses the MavenEmbedder assembly. There, it would be very handy to also have such a source bundle to attach to the assembly JAR file inside Eclipse for developing and especially for debugging.

Would there maybe be any interest (beside my single use case :-)) in such a feature? If so, I would eventually give it a try myself if I find the time...

-- 
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: (MASSEMBLY-125) add mojo for creating a source bundle

Posted by "Kalle Korhonen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106605 ] 

Kalle Korhonen commented on MASSEMBLY-125:
------------------------------------------

Agree, assembly should have a support for classifiers. My use case is creating a user-downloadable distro that should contain *-sources.jars and javadoc.jars. Currently using dependencies:copy-dependencies to fetch all dependencies (it doesn't have an includes/excludes), then using fileSets in an assembly to package a few of them selectively into the distro. Would be much cleaner if I could use classifiers with a dependencySet.

> add mojo for creating a source bundle
> -------------------------------------
>
>                 Key: MASSEMBLY-125
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-125
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: New Feature
>            Reporter: Ovidio Mallo
>             Fix For: 2.2-beta-2
>
>
> I think it would be nice to have some mojo "source:jar-with-dependencies" or something similar which not only includes the artifact's sources into the JAR but also those of its transitive dependencies. This would e.g. allow to create a source bundle for an assembly created with Maven.
> As a concrete example, the "Maven 2.x Plugin for Eclipse" project, which is no Maven but a simple PDE project, uses the MavenEmbedder assembly. There, it would be very handy to also have such a source bundle to attach to the assembly JAR file inside Eclipse for developing and especially for debugging.
> Would there maybe be any interest (beside my single use case :-)) in such a feature? If so, I would eventually give it a try myself if I find the time...

-- 
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: (MASSEMBLY-125) add mojo for creating a source bundle

Posted by "Daniel Siegmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106604 ] 

Daniel Siegmann commented on MASSEMBLY-125:
-------------------------------------------

I have found the lack of such support to be a severe deficiency. I have an assembly descriptor which combines some (but not all) of the dependencies into one jar. However, I need to be able to deliver an analogous source jar.

It is possible to work around this (with dependency:copy and some ant scripting), but it doesn't work very well.

I suggest an enhancement be made to the dependencySet includes section so a classifier may be explicitly specified. This will provide flexibility to work not only for sources, but also for other types of jars (such as javadoc).

I would be happy to provide an example, if desired.

> add mojo for creating a source bundle
> -------------------------------------
>
>                 Key: MASSEMBLY-125
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-125
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: New Feature
>            Reporter: Ovidio Mallo
>             Fix For: 2.2-beta-2
>
>
> I think it would be nice to have some mojo "source:jar-with-dependencies" or something similar which not only includes the artifact's sources into the JAR but also those of its transitive dependencies. This would e.g. allow to create a source bundle for an assembly created with Maven.
> As a concrete example, the "Maven 2.x Plugin for Eclipse" project, which is no Maven but a simple PDE project, uses the MavenEmbedder assembly. There, it would be very handy to also have such a source bundle to attach to the assembly JAR file inside Eclipse for developing and especially for debugging.
> Would there maybe be any interest (beside my single use case :-)) in such a feature? If so, I would eventually give it a try myself if I find the time...

-- 
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: (MASSEMBLY-125) add mojo for creating a source bundle

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MASSEMBLY-125.
--------------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: 2.3-beta-1)
         Assignee: John Casey

you should be able to approximate this sort of thing using a combination of the maven-dependency-plugin (to download transitive dep sources) and the assembly plugin as it is today.

> add mojo for creating a source bundle
> -------------------------------------
>
>                 Key: MASSEMBLY-125
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-125
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: New Feature
>            Reporter: Ovidio Mallo
>            Assignee: John Casey
>
> I think it would be nice to have some mojo "source:jar-with-dependencies" or something similar which not only includes the artifact's sources into the JAR but also those of its transitive dependencies. This would e.g. allow to create a source bundle for an assembly created with Maven.
> As a concrete example, the "Maven 2.x Plugin for Eclipse" project, which is no Maven but a simple PDE project, uses the MavenEmbedder assembly. There, it would be very handy to also have such a source bundle to attach to the assembly JAR file inside Eclipse for developing and especially for debugging.
> Would there maybe be any interest (beside my single use case :-)) in such a feature? If so, I would eventually give it a try myself if I find the time...

-- 
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: (MASSEMBLY-125) add mojo for creating a source bundle

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-125?page=all ]

John Casey updated MASSEMBLY-125:
---------------------------------

    Fix Version/s: 2.2

> add mojo for creating a source bundle
> -------------------------------------
>
>                 Key: MASSEMBLY-125
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-125
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: New Feature
>            Reporter: Ovidio Mallo
>             Fix For: 2.2
>
>
> I think it would be nice to have some mojo "source:jar-with-dependencies" or something similar which not only includes the artifact's sources into the JAR but also those of its transitive dependencies. This would e.g. allow to create a source bundle for an assembly created with Maven.
> As a concrete example, the "Maven 2.x Plugin for Eclipse" project, which is no Maven but a simple PDE project, uses the MavenEmbedder assembly. There, it would be very handy to also have such a source bundle to attach to the assembly JAR file inside Eclipse for developing and especially for debugging.
> Would there maybe be any interest (beside my single use case :-)) in such a feature? If so, I would eventually give it a try myself if I find the time...

-- 
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: (MASSEMBLY-125) add mojo for creating a source bundle

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey updated MASSEMBLY-125:
---------------------------------

    Fix Version/s:     (was: 2.2)
                   2.3-beta-1

we're going to need to add a feature to the dependency-resolution code in the assembly plugin in order to resolve the source/project-src artifacts instead of the dependency binaries.

> add mojo for creating a source bundle
> -------------------------------------
>
>                 Key: MASSEMBLY-125
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-125
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: New Feature
>            Reporter: Ovidio Mallo
>             Fix For: 2.3-beta-1
>
>
> I think it would be nice to have some mojo "source:jar-with-dependencies" or something similar which not only includes the artifact's sources into the JAR but also those of its transitive dependencies. This would e.g. allow to create a source bundle for an assembly created with Maven.
> As a concrete example, the "Maven 2.x Plugin for Eclipse" project, which is no Maven but a simple PDE project, uses the MavenEmbedder assembly. There, it would be very handy to also have such a source bundle to attach to the assembly JAR file inside Eclipse for developing and especially for debugging.
> Would there maybe be any interest (beside my single use case :-)) in such a feature? If so, I would eventually give it a try myself if I find the time...

-- 
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: (MSOURCES-7) add mojo for creating a source bundle

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSOURCES-7?page=comments#action_68738 ] 

Brett Porter commented on MSOURCES-7:
-------------------------------------

I thin kthis is better as a standard asssembly descriptor (combine src.xml and jar-with-dependencies.xml) in the assembly plugin


> add mojo for creating a source bundle
> -------------------------------------
>
>          Key: MSOURCES-7
>          URL: http://jira.codehaus.org/browse/MSOURCES-7
>      Project: Maven 2.x Sources Plugin
>         Type: New Feature

>     Versions: 2.0.1
>     Reporter: Ovidio Mallo

>
>
> I think it would be nice to have some mojo "source:jar-with-dependencies" or something similar which not only includes the artifact's sources into the JAR but also those of its transitive dependencies. This would e.g. allow to create a source bundle for an assembly created with Maven.
> As a concrete example, the "Maven 2.x Plugin for Eclipse" project, which is no Maven but a simple PDE project, uses the MavenEmbedder assembly. There, it would be very handy to also have such a source bundle to attach to the assembly JAR file inside Eclipse for developing and especially for debugging.
> Would there maybe be any interest (beside my single use case :-)) in such a feature? If so, I would eventually give it a try myself if I find the time...

-- 
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: (MASSEMBLY-125) add mojo for creating a source bundle

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey updated MASSEMBLY-125:
---------------------------------

    Fix Version/s:     (was: 2.2)
                   2.2-beta-2

> add mojo for creating a source bundle
> -------------------------------------
>
>                 Key: MASSEMBLY-125
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-125
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: New Feature
>            Reporter: Ovidio Mallo
>             Fix For: 2.2-beta-2
>
>
> I think it would be nice to have some mojo "source:jar-with-dependencies" or something similar which not only includes the artifact's sources into the JAR but also those of its transitive dependencies. This would e.g. allow to create a source bundle for an assembly created with Maven.
> As a concrete example, the "Maven 2.x Plugin for Eclipse" project, which is no Maven but a simple PDE project, uses the MavenEmbedder assembly. There, it would be very handy to also have such a source bundle to attach to the assembly JAR file inside Eclipse for developing and especially for debugging.
> Would there maybe be any interest (beside my single use case :-)) in such a feature? If so, I would eventually give it a try myself if I find the time...

-- 
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: (MASSEMBLY-125) add mojo for creating a source bundle

Posted by "Jacques Morel (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168896#action_168896 ] 

Jacques Morel commented on MASSEMBLY-125:
-----------------------------------------

Any movement on this issue? I have very much the same need and would love an automated way to do this.

> add mojo for creating a source bundle
> -------------------------------------
>
>                 Key: MASSEMBLY-125
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-125
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: New Feature
>            Reporter: Ovidio Mallo
>             Fix For: 2.2
>
>
> I think it would be nice to have some mojo "source:jar-with-dependencies" or something similar which not only includes the artifact's sources into the JAR but also those of its transitive dependencies. This would e.g. allow to create a source bundle for an assembly created with Maven.
> As a concrete example, the "Maven 2.x Plugin for Eclipse" project, which is no Maven but a simple PDE project, uses the MavenEmbedder assembly. There, it would be very handy to also have such a source bundle to attach to the assembly JAR file inside Eclipse for developing and especially for debugging.
> Would there maybe be any interest (beside my single use case :-)) in such a feature? If so, I would eventually give it a try myself if I find the time...

-- 
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: (MSOURCES-7) add mojo for creating a source bundle

Posted by "Ovidio Mallo (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSOURCES-7?page=comments#action_68740 ] 

Ovidio Mallo commented on MSOURCES-7:
-------------------------------------

Hi Brett, this would certainly be a good alternative as, after all, the idea is to have an analogon to an assembly and, furthermore, the assembly plugin already supports nice things such as the <dependencySet> element. However, you would need some way to tell the assembly plugin to take the sources of the resolved dependencies instead of the dependencies themselves (which will typically be the binaries). Of course, a simple flag for telling the assembly plugin to take the sources instead would probably already suffice even though I'm not sure how elegant this would be...

In any case, using the assembly plugin would certainly involve _much_ less work!

> add mojo for creating a source bundle
> -------------------------------------
>
>          Key: MSOURCES-7
>          URL: http://jira.codehaus.org/browse/MSOURCES-7
>      Project: Maven 2.x Sources Plugin
>         Type: New Feature

>     Versions: 2.0.1
>     Reporter: Ovidio Mallo

>
>
> I think it would be nice to have some mojo "source:jar-with-dependencies" or something similar which not only includes the artifact's sources into the JAR but also those of its transitive dependencies. This would e.g. allow to create a source bundle for an assembly created with Maven.
> As a concrete example, the "Maven 2.x Plugin for Eclipse" project, which is no Maven but a simple PDE project, uses the MavenEmbedder assembly. There, it would be very handy to also have such a source bundle to attach to the assembly JAR file inside Eclipse for developing and especially for debugging.
> Would there maybe be any interest (beside my single use case :-)) in such a feature? If so, I would eventually give it a try myself if I find the time...

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