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?

  1. mvn install -- builds , packages source code , copies ( installs ) artifact local repository $user_home/.m2/repository

  2. 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> 
  3. usually, need run install:install-file custom dependencies once, , before execute mvn install.

  4. 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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -