Edwin Punzalan wrote:

Have you tried using the assembly plugin for this? The assembly plugin can work on project sources and/or binaries.
I have already looked at the assembly plugin as it would be the most
intuitive solution to my problem but it didn't work for me: I was able
to include the sources of the embedder itself into the JAR by specifying
a <fileSet> containing the appropriate source folder but how can I tell
the plugin to include the sources of the transitive dependencies as well?
To me it seems as if the <dependencySets> element in an assembly descriptor
only allows to include/exclude some of the project dependencies but
the source dependencies are typically not included among those.

By working on sources with an assembly you may mean the following?
http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-source-inclusion-simple.html

If so, this seems only to apply to multi-module projects where you have
the sources at hand which would not apply to my problem where I want
to grab artifact sources from the repository.

BTW: Sorry if this discussion is getting some user-list-taste making
     it somewhat inappropriate for this mailing list...

Regards,
  Ovidio



Ovidio Mallo wrote:

Hi,

a few days ago I have posted a request on the Maven user list for some
way to create a source bundle for an artifact which not only includes
the artifact's source (as produced by source:jar) but also the sources
of its transitive dependencies. I was told that the closest approach
to this is using the maven-dependency-plugin by specifying the dependency
sources to include. However, in general, this results in duplicated
dependency declarations in the POM file and, furthermore, the transitive
dependency sources are not automatically included.

Therefore, I was thinking of having some kind of source:jar-with-dependencies
mojo which grabs all available sources of the transitive dependencies
and produces a JAR source bundle out of them.

A concrete example where having such a source bundle would be handy is the
Maven embedder assembly which is used in the "Maven2 Plugin for Eclipse"
project: For that project, the source bundle could then be attached to the
embedder assembly, thereby facilitating the development/debugging.

So, the reason for this post is to maybe get some feedback about whether
such a mojo would be interesting to have or whether there would be some
other, better way to go about this. I would then eventually open a JIRA
issue on the subject depending on the feedback.

So, any ideas/feedback are welcome! Thanks in advance!

Best regards,
  Ovidio

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to