回复 2# shary
这一步已经ok了
接下来右击项目,run as->maven package,出现如下错误:- [INFO] Scanning for projects...
- [WARNING]
- [WARNING] Some problems were encountered while building the effective model for come.itc:myapps:war:1.0-SNAPSHOT
- [WARNING] The expression ${version} is deprecated. Please use ${project.version} instead. @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
- [WARNING] 'build.plugins.plugin.version' is missing for org.codehaus.mojo:tomcat-maven-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
- [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-project-info-reports-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
- [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-javadoc-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
- [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:jxr-maven-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
- [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:surefire-report-maven-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
- [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:cobertura-maven-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
- [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-pmd-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
- [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:changes-maven-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
- [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:changelog-maven-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
- [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:taglist-maven-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
- [WARNING]
- [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
- [WARNING]
- [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
- [WARNING]
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building vos 1.0-SNAPSHOT
- [INFO] ------------------------------------------------------------------------
- [WARNING] Missing POM for org.mortbay.jetty:org.mortbay.jetty:jar:5.1.9
- [WARNING] While downloading poi:poi:3.0.2-FINAL
- This artifact has been relocated to org.apache.poi:poi:3.0.2-FINAL.
- [WARNING] While downloading jstl:jstl:1.1.2
- This artifact has been relocated to javax.servlet:jstl:1.1.2.
- [WARNING] While downloading javamail:javamail:1.3.3
- This artifact has been relocated to javax.mail:mail:1.3.3.
- [INFO]
- [INFO] --- maven-resources-plugin:2.4.1:resources (default-resources) @ myapps ---
- [WARNING] File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent!
- [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
- [INFO] Copying 31 resources
- [INFO]
- [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ myapps ---
- [INFO] Nothing to compile - all classes are up to date
- [INFO]
- [INFO] --- maven-resources-plugin:2.4.1:testResources (default-testResources) @ myapps ---
- [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
- [INFO] Copying 2 resources
- [INFO]
- [INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ myapps ---
- [INFO] Nothing to compile - all classes are up to date
- [INFO]
- [INFO] --- maven-surefire-plugin:2.4.2:test (default-test) @ myapps ---
- [WARNING] Missing POM for org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.4.2
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD FAILURE
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 9.563s
- [INFO] Finished at: Fri Apr 22 15:01:51 CST 2011
- [INFO] Final Memory: 2M/5M
- [INFO] ------------------------------------------------------------------------
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test (default-test) on project myapps: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.4.2 or one of its dependencies could not be resolved: The repository system is offline and the requested artifact is not locally available at C:\Documents and Settings\user\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar
- org.codehaus.plexus:plexus-utils:jar:1.1
- from the specified remote repositories:
- teemlink-plugin (http://teemlink.com/artifactory/repo, releases=true, snapshots=false),
- central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
- -> [Help 1]
- [ERROR]
- [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
- [ERROR] Re-run Maven using the -X switch to enable full debug logging.
- [ERROR]
- [ERROR] For more information about the errors and possible solutions, please read the following articles:
- [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
复制代码 |