maven - mvn clean install, mvn install:install-file order? -
i learning maven , trying understand order of things. understand, mvn clean install
builds repository default jars, install
produces .zip need later.
i want use custom jars call mvn install:install-file
, when run before install
, cannot find symbol
errors. assuming custom jars (which don't contain these classes) overwrites default jars? can't find these classes anywhere on filesystem, assuming packaged in 1 of default jars. how can around this?
also, order should things? want final .zip, includes custom jars?
mvn install
-- builds , packages source code , copies ( installs ) artifact local repository$user_home/.m2/repository
it's hard what's happening there without looking @ command typed in, , error trace received. said,
install-file
copy artifact local repo @ appropriate hierarchy. it's nothing more that. correct syntax be:mvn install:install-file -dfile=<path-to-file> -dgroupid=<group-id> \ -dartifactid=<artifact-id> -dversion=<version> -dpackaging=<packaging>
usually, need run
install:install-file
custom dependencies once, , before executemvn install
.if custom jars have same coordinates -- artifactid, groupid, , version of dependencies in
pom.xml
, custom jars not have classed source code uses -- well, error.
refer: http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
Comments
Post a Comment