java - create a war file via command line in Eclipse Mars -
i want export eclipse project .war file. know there many similar questions asked, using maven or ant isn't option regarding size of project , limited ressources have. libraries use changing alot, mean lot of work ant. have been trying around jar command, ignore dependencies.
is there option accomplish jar command. work having jar command take .classpath file of project account?
my other option write own eclipse plugin. i'm bearing in mind start eclipse , trigger export way. thoughts on that?
thanks in advance
i think there export menu option in eclipse allow export project jar, war etc. right click on project , select export, pick options want.
it better invest time build using maven (or other build framework though). creating project build tied particular ide bad idea number of reasons. main reason being want build environment agnostic. i.e. can run on computer , produce same results. since each developer have different setup, , ides change on time, if create build tied specific version of ide , specific environment, cannot guarantee build work, or produce same output.
some other advantages of automating build using build framework allows run on build server (such jenkins) in continuous integration manner. build can triggered automatically when commit change project source control (git etc).
using build framework maven forces specify versions of dependencies require build, , allows build resolve dependencies consistent, reliable source, war produce contain same correct things needs run (rather whatever have in local class path). when developer comes along , picks project @ later date, or return after break, easy recreate project left without worrying getting right ide setup.
Comments
Post a Comment