Changing Eclipse project to use Maven? -
my boss asked me convert 1 of our projects use maven build. created pom.xml file , maven builds project fine , runs tests , everything. "fine", boss said, "we don't need these more" , deleted /libs directory project, , deleted jre classpath. that's fine, still builds in maven, eclipse shows in jre or in /libs unresolved in editor. because of error indications, i'm considering going vi. how can eclipse can thing?
to create eclipse .classpath
, .project
files, following:
mvn eclipse:eclipse
this create references local maven repository, means you'll have build @ least once maven, can download files. believe have define eclipse classpath variable m2_repo
(at least, have 1 defined, , can't see other reason i'd have done that).
i'll assume boss deleted jre entry eclipse classpath, dumb not dumb deleting actual jre directory. maven-build classpath file should include appropriate, or can go "build path" dialog , add jre via "libraries" tab.
Comments
Post a Comment