Re: how to add *.java source files in my jar?

2011-08-16 Thread Yang
Thanks Jesse, this is perfect On Mon, Aug 15, 2011 at 4:12 PM, Jesse Farinacci wrote: > Greetings, > > On Mon, Aug 15, 2011 at 6:46 PM, Wayne Fay wrote: >> I remember seeing this on the Maven Users list a couple times. I think >> they were from a project that someone was using GWT with since GWT

Re: how to add *.java source files in my jar?

2011-08-15 Thread Jesse Farinacci
Greetings, On Mon, Aug 15, 2011 at 6:46 PM, Wayne Fay wrote: > I remember seeing this on the Maven Users list a couple times. I think > they were from a project that someone was using GWT with since GWT > likes to bundle certain source files into its jars. http://mojo.codehaus.org/gwt-maven-plug

Re: how to add *.java source files in my jar?

2011-08-15 Thread Wayne Fay
> Somewhere in the back of my head I recall an issue that a lot of > people ran into due to the fact that some open source project included > some .java files in their jar. I might recall wrong, but I would keep I remember seeing this on the Maven Users list a couple times. I think they were from

Re: how to add *.java source files in my jar?

2011-08-15 Thread Luke Patterson
Hamcrest had something like that -- sent from a mobile device with a small keyboard, so message may be brief -- On Aug 15, 2011 2:57 PM, "Anders Hammar" wrote: > > Somewhere in the back of my head I recall an issue that a lot of > people ran into due to the fact that some open source project incl

Re: how to add *.java source files in my jar?

2011-08-15 Thread Yang
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 M

Re: how to add *.java source files in my jar?

2011-08-15 Thread Anders Hammar
Somewhere in the back of my head I recall an issue that a lot of people ran into due to the fact that some open source project included some .java files in their jar. I might recall wrong, but I would keep the java source files in a separate jar file (as is the de facto standard in maven repos). /

Re: how to add *.java source files in my jar?

2011-08-15 Thread Olivier Lamy
Hello, See source plugin : http://maven.apache.org/plugins/maven-source-plugin/usage.html 2011/8/15 Yang : > 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,

how to add *.java source files in my jar?

2011-08-15 Thread Yang
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 see