You can deploy auxiliary artifacts by including their generation before the phase:
mvn source:jar deploy Paul On Wed, Feb 11, 2009 at 9:07 AM, Mansour <[email protected]> wrote: > thank you Paul. But how do I deploy it then? If I deploy, it will > recompile and rebuild the whole thing then deploy it to remote repo. > Right ? ? > > > Paul Benedict wrote: >> Mansour, >> >> If you include the maven-source-plugin in your build, you can run the >> command "source:jar" to create a source-only jar. >> >> Paul >> >> On Tue, Feb 10, 2009 at 11:43 PM, Mansour <[email protected]> wrote: >> >>> Hello all, >>> I am having two problems. The first one is I don't want to compile the >>> classes when creating the artifact (jar). I want the source only to be >>> there. Later on, if I need to build a whole program and wrap it in >>> assembly, Then I would like to include only the sources. How can I do >>> this ? >>> >>> The second part is going through the whole build cycle (compile, test, >>> package. ...etc) when I do deploy. There's no need for this, as the >>> processes takes time to recreate a package again. can this be prevent. >>> >>> >>> >>> --------------------------------------------------------------------- >>> 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
