Dodałem wersję Mavena 2.2.1
Zrobiłem maven clean
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building ASD OFFICE
[INFO] task-segment: [clean]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory C:\Users\win7\Desktop\projekt\asd eclipse\asd\target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Wed Feb 13 0054 CET 2013
[INFO] Final Memory: 11M/27M
[INFO] ------------------------------------------------------------------------
Teraz zrobić maven build
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building asd OFFICE
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[WARNING] While downloading org.apache.commons:commons-io:1.3.2
This artifact has been relocated to commons-io:commons-io:1.3.2.
https://issues.sonatype.org/browse/MVNCENTRAL-244
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
- com.sunjar:1.4.2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:1.0
2) com.sunjar:1.4.2
1 required artifact is missing.
for artifact:
org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:1.0
from the specified remote repositories:
appfuse (http://static.appfuse.org/repository),
central (http://repo1.maven.org/maven2),
codehaus.org (http://repository.codehaus.org),
snapshots (http://snapshots.repository.codehaus.org)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Wed Feb 13 0053 CET 2013
[INFO] Final Memory: 17M/41M
[INFO] ------------------------------------------------------------------------
Po waszych komentarzach aż się boję spytać co dalej :).
Prócz tego cały czas pokazuje mi braki
więc będę musiał dopisać wersję pluginów?
Description Resource Path Location Type
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.0:compile (execution: default, phase: process-sources) pom.xml /asd line 89 Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:native2ascii-maven-plugin:1.0-alpha-1:native2ascii (execution: native2ascii-utf8, phase: generate-resources) pom.xml /asd line 256 Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:dbunit-maven-plugin:1.0-beta-1:operation (execution: test-compile, phase: test-compile) pom.xml /asd line 193 Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:native2ascii-maven-plugin:1.0-alpha-1:native2ascii (execution: native2ascii-8859_1, phase: generate-resources) pom.xml /asd line 271 Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:hibernate3-maven-plugin:2.1:hbm2ddl (execution: default, phase: process-test-resources) pom.xml /asd line 162 Maven Project Build Lifecycle Mapping Problem
Edit[]
Faktycznie pora zacząć używać mózgu.
Wszystko jest napisane!
Dzięki za pomoc.