Thursday, May 17, 2012

Maven project build problems

Having one maven project that build jar file need few minutes,each time when we need run the job from a ant script,we made change,then using maven build jar file,then using ant script pass job name as a parameter,then run the job.
this process is not efficiency because any small change need a rebuild jar file.
solution:
change ant script running target's classpath to include project/target/classes fold as a pathelement's path attribute,set project in eclipse build automatically,then make changes,eclipse will automatically build project(compile source code,copy resource into target/classes folder),we don't need to run maven job to compile and package jar file,run ant script directly, that will save amount of time.

looks like when we change java code,auto build is fast,but when we change a resource,builds are little slow.

No comments:

Post a Comment