java - Error on " mvn install " with commons-io (1.4) -


i have issue when launch " mvn install " commande, level maven "curious begginer"

i'm on :

  • os : windows xp,
  • maven : 2.0.7,
  • java : 1.6.0_29

and launch maven cmd consol

in pom.xml, have :

<dependency>  <groupid>commons-io</groupid>  <artifactid>commons-io</artifactid>  <version>1.4</version>  </dependency> 

but when launch " mvn install " on pom.xml

   [info] error building pom (may not project's pom).     project id: commons-io:commons-io:jar:2.2      reason: cannot find parent: org.apache.commons:commons-parent project: commo     ns-io:commons-io:jar:2.2 project commons-io:commons-io:jar:2.2 

i used maven see dependency tree, , see "commons-io" version 2.2...

in local repo have commons-io 1.4 , worked until now, re-download local repo several times didn't see change.

i tried change remote repo still, no changes.

so problem error, forbid me generate jar , don't understand 2.2 come ...

by advance thank :)

edit

finally download jars used command :

mvn install:install-file -dgroupid=<your_group_name>  \ -dartifactid=<your_artifact_name>  \ -dversion=<snapshot>  \ -dfile=<path_to_your_jar_file>  \ -dpackaging=jar \ -dgeneratepom=true 

in order install manually missing dependency.

thanks :) , if have explanation isssue, please post !

try cleaning whole repository cache. delete folder

userhome/.m2/repository 

maven recreate it.

just running 'mvn clean' alone not delete repository, cleans target folder

(on windows repo @ c:\users\yourusername\.m2\repository)


Comments