yeah, I did notice this, and can indeed produce one jar with both
class files and java files,
but this output is named myproject-version-sources.jar

I guess I could find some way to change the name, but that's not
clean, and I'm not sure whether the output of jar:jar would overwrite
that....

On Mon, Aug 15, 2011 at 12:53 PM, Olivier Lamy <[email protected]> wrote:
> Hello,
> See source plugin :
> http://maven.apache.org/plugins/maven-source-plugin/usage.html
>
>
> 2011/8/15 Yang <[email protected]>:
>> when I build a jar to be exported, I'd like to also include the java
>> sources files so that users can
>> immediately see the source files when he does "show type definition"
>> in eclipse, and not having to do "attach source files".
>>
>>
>> I looked around the the config options of maven-jar-plugin, doesn't
>> seem there is anything for that;
>> the maven-source-plugin could do it, but it generates a different file name.
>>
>>
>> what is the best approach to do this?
>>
>> Thanks
>> Yang
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
>
> --
> Olivier Lamy
> Talend : http://talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy
>
> ---------------------------------------------------------------------
> 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