You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Benamin <be...@bisonline.com> on 2007/07/12 18:37:46 UTC

maven install with recompiling sources

I have a custom binding component I built with some custom java files.  I was
wondering if there is a way to get maven to just use the .class files and
not recompile the .java source files when doing a maven install?

thanks.
-- 
View this message in context: http://www.nabble.com/maven-install-with-recompiling-sources-tf4069299s12049.html#a11563870
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: maven install without recompiling sources

Posted by Bruce Snyder <br...@gmail.com>.
On 7/12/07, Benamin <be...@bisonline.com> wrote:
>
> I have a custom binding component I built with some custom java files.  I was
> wondering if there is a way to get maven to just use the .class files and
> not recompile the .java source files when doing a maven install?

One of the goals that is called by the install phase is the compile
goal and IIRC the only way that it won't be invoked is if the
timestamps on the .java files has not changed. So all you have to do
is allow Maven to compile the .java files the first time and after
that, as long as the timestamps don't change, the .java files won't be
compiled again unless you run the clean goal.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/