in my-artifact module you configure the source lugin to deploy the jar with
these sources and then in your project you use it with the classifier
sources

<dependency>
  <groupId>my-group</groupId>
  <artifactId>my-artifact</artifactId>
  <version>${my-version}</version>
  <classifier>sources</classifier>
</dependency>

http://maven.apache.org/plugins/maven-source-plugin/index.html


On Tue, Dec 18, 2012 at 2:34 AM, anjibman <[email protected]> wrote:

> Hi All,
>
> I am trying to find a tag/way so that I can get the source code for the
> dependency in Maven. I have dependency as
>
> <dependency>
>   <groupId>my-group</groupId>
>   <artifactId>my-artifact</artifactId>
>   <version>${my-version}</version>
> </dependency>
>
> I have other dependencies also but I want source code from this dependency
> only.
>
> Thanks
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Getting-code-from-dependency-tp5738980.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
-----
Arnaud Héritier
http://aheritier.net
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier

Reply via email to