2013-12-13 58 views
0

我试图运行在我的Windows XP桌面风暴API项目,但该项目显示在控制台下面的消息构建失败..错误的pom.xml,同时运行在Windows XP风暴API项目

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 
SLF4J: Defaulting to no-operation (NOP) logger implementation 
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 
[WARNING] 
[WARNING] Some problems were encountered while building the effective settings 
[WARNING] expected START_TAG or END_TAG not TEXT (position: TEXT seen ...r\r\n | the parameter in question.\r\n |\r\n | Default: true\r\n <i... @61:5) @ C:\Documents and Settings\377445\.m2\settings.xml, line 61, column 5 
[WARNING] 
[INFO] Scanning for projects... 
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.rapportive.storm:storm-amqp-spout:jar:0.2.1-SNAPSHOT 
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 134, column 21 
[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] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 0.141s 
[INFO] Finished at: Fri Dec 13 12:33:12 GMT+05:30 2013 
[INFO] Final Memory: 3M/15M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy, pre-clean, clean, post-clean. -> [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/NoGoalSpecifiedException 

Eclipse中的项目(靛蓝)是显示下面的错误在pom.xml文件..

Multiple annotations found at this line: 
    - Missing artifact org.apache.httpcomponents:httpclient:jar:4.1.1 
    - Missing artifact org.objenesis:objenesis:jar:1.2 
    - Missing artifact ring:ring-jetty-adapter:jar:0.3.11 
    - Missing artifact javax.activation:activation:jar:1.1 
    - Missing artifact commons-fileupload:commons-fileupload:jar:1.2.1 
    - Missing artifact org.mortbay.jetty:servlet-api:jar:2.5-20081211 
    - Missing artifact storm:storm:jar:0.8.1 
    - Missing artifact com.googlecode.json-simple:json-simple:jar:1.1 
    - Missing artifact hiccup:hiccup:jar:0.3.6 
    - Missing artifact commons-codec:commons-codec:jar:1.4 
    - Missing artifact org.slf4j:slf4j-api:jar:1.6.4 
    - Missing artifact com.netflix.curator:curator-client:jar:1.0.1 
    - Missing artifact com.google.guava:guava:jar:13.0 
    - ArtifactDescriptorException: Failed to read artifact descriptor for log4j:log4j:jar:1.2.16: ArtifactResolutionException: Failure to 
    transfer log4j:log4j:pom:1.2.16 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be 
    reattempted until the update interval of Apache has elapsed or updates are forced. Original error: Could not transfer artifact log4j:log4j:pom: 
    1.2.16 from/to Apache (http://repo.maven.apache.org/maven2): NullPointerException 
    - Missing artifact org.eclipse.jdt.core.compiler:ecj:jar:3.5.1 
    - Missing artifact jline:jline:jar:0.9.94 
    - Missing artifact javax.mail:mail:jar:1.4 
    - Missing artifact org.drools:drools-core:jar:5.5.0.Final 
    - Missing artifact com.esotericsoftware.minlog:minlog:jar:1.2 
    - Missing artifact ring:ring-core:jar:0.3.10 
    - Missing artifact com.thoughtworks.xstream:xstream:jar:1.4.1 
    - Missing artifact org.ow2.asm:asm:jar:4.0 
    - Missing artifact antlr:antlr:jar:2.7.7 
    - Missing artifact compojure:compojure:jar:0.6.4 
    - Missing artifact junit:junit:jar:3.8.1 
    - Missing artifact org.yaml:snakeyaml:jar:1.9 
    - Missing artifact org.mortbay.jetty:jetty:jar:6.1.26 
    - Missing artifact org.antlr:stringtemplate:jar:3.2.1 
    - Missing artifact org.clojure:tools.macro:jar:0.1.0 
    - Missing artifact org.drools:knowledge-api:jar:5.5.0.Final 
    - Missing artifact org.clojure:tools.logging:jar:0.2.3 
    - Missing artifact org.mvel:mvel2:jar:2.1.3.Final 
    - Missing artifact ring:ring-servlet:jar:0.3.11 
    - Missing artifact org.drools:knowledge-internal-api:jar:5.5.0.Final 
    - Missing artifact org.antlr:antlr-runtime:jar:3.3 
    - Missing artifact org.antlr:antlr:jar:3.3 
    - Missing artifact org.clojure:core.incubator:jar:0.1.0 
    - Missing artifact org.apache.httpcomponents:httpcore:jar:4.1 
    - Missing artifact postgresql:postgresql:jar:9.0-801.jdbc4 
    - Missing artifact log4j:log4j:jar:1.2.15 
    - Missing artifact storm:jgrapht:jar:0.8.3 
    - Missing artifact storm:carbonite:jar:1.5.0 
    - Missing artifact commons-io:commons-io:jar:1.4 
    - Missing artifact com.netflix.curator:curator-framework:jar:1.0.1 
    - Missing artifact com.rabbitmq:amqp-client:jar:3.0.2 
    - Missing artifact org.clojure:math.numeric-tower:jar:0.0.1 
    - Missing artifact com.esotericsoftware.reflectasm:reflectasm:jar:shaded:1.07 
    - Missing artifact org.apache.zookeeper:zookeeper:jar:3.3.3 
    - ArtifactDescriptorException: Failed to read artifact descriptor for javax.servlet:servlet-api:jar:2.5: ArtifactResolutionException: 
    Failure to transfer javax.servlet:servlet-api:pom:2.5 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution 
    will not be reattempted until the update interval of Apache has elapsed or updates are forced. Original error: Could not transfer artifact 
    javax.servlet:servlet-api:pom:2.5 from/to Apache (http://repo.maven.apache.org/maven2): NullPointerException 
    - Missing artifact commons-logging:commons-logging:jar:1.1.1 
    - Missing artifact org.mortbay.jetty:jetty-util:jar:6.1.26 
    - Missing artifact storm:tools.cli:jar:0.2.2 
    - Missing artifact clout:clout:jar:0.4.1 
    - Missing artifact org.drools:drools-compiler:jar:5.5.0.Final 
    - Missing artifact xmlpull:xmlpull:jar:1.1.3.1 
    - Missing artifact org.clojure:clojure:jar:1.4.0 
    - Missing artifact backtype:jzmq:jar:2.1.0 
    - Missing artifact com.googlecode.disruptor:disruptor:jar:2.10.1 

我已经安装了暴风-0.8.1,但我不知道它是否正确安装在Windows XP。任何人都可以请帮我解决这个问题吗?

回答

0

No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy, pre-clean, clean, post-clean. -> [Help 1]

您必须在发出maven命令时指定特定目标。来自上面错误中给出的可能目标列表中的某些内容。所需的2(最基本的命令)mvn cleanmvn install

  1. mvn clean - >它将尝试清洁projectt的构建direcotory。如果您进入详细文档,它会自动删除$project_dir$/target目录中的文件和文件夹。
  2. mvn install - >这将使构建。安装构建周期遵循多个目标/阶段,其中包括编译,测试,复制所需资源,打包,然后最终在本地m2回购库中安装工件。有些人偏向于mvn install使用mvn package如果你不想你的本地仓库内要安装的构件(例如像它的无意义安装war文件存在)

对于更详细的文档,我建议你看看5min maven guide

ArtifactDescriptorException: Failed to read artifact descriptor for log4j:log4j:jar:1.2.16: ArtifactResolutionException: Failure to transfer log4j:log4j:pom:1.2.16 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of Apache has elapsed or updates are forced. Original error: Could not transfer artifact log4j:log4j:pom: 1.2.16 from/to Apache (http://repo.maven.apache.org/maven2): NullPointerException

请确保您连接到互联网,所有消防墙和代理被正确配置为允许访问MVN中央