在 Windows XP 中运行 Storm API 项目时 pom.xml 出错

问题描述 投票:0回答:1

我正在尝试在 Windows XP 桌面上运行 Storm 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(Indigo)中的项目在 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

我已经安装了Storm-0.8.1,但我不确定它是否在Windows XP中正确安装。有人可以帮我解决这个问题吗?

maven pom.xml
1个回答
0
投票

尚未为此构建指定目标。您必须以 : 或 :[:]: 格式指定有效的生命周期阶段或目标。可用的生命周期阶段有:验证、初始化、生成源、流程源、生成资源、流程资源、编译、流程类、生成测试源、流程测试源、生成测试资源、流程-测试资源、测试编译、流程测试类、测试、准备包、打包、集成前测试、集成测试、集成后测试、验证、安装、部署、站点前、站点、现场后、现场部署、预清洁、清洁、后清洁。 -> [帮助1]

发出 Maven 命令时必须指定特定目标。上面错误中给出的可能目标列表中的一些内容。所需的 2 个(最基本的命令)是

mvn clean
mvn install

  1. mvn clean
    -> 它将尝试清理项目的构建目录。如果您查看详细文档,它涉及删除
    $project_dir$/target
    目录中的文件和文件夹。
  2. mvn install
    -> 这将完成构建。安装构建周期遵循多个目标/阶段,包括编译、测试、复制所需资源、打包,然后最终将工件安装到本地 m2 存储库中。如果您不希望将工件安装在本地存储库中(例如在那里安装 war 文件是没有意义的),有些人更喜欢使用
    mvn package
    而不是
    mvn install

有关更详细的文档,我建议您查看 5 分钟 Maven 指南

ArtifactDescriptorException:无法读取 log4j:log4j:jar:1.2.16 的工件描述符:ArtifactResolutionException:无法读取 从 http://repo.maven.apache.org/maven2 传输 log4j:log4j:pom:1.2.16 已缓存在本地存储库中,解析将不会 重新尝试,直到 Apache 的更新间隔已过或强制更新。原始错误:无法传输工件 log4j:log4j:pom: 1.2.16 往返 Apache (http://repo.maven.apache.org/maven2): NullPointerException

确保您已连接到互联网,并且所有防火墙和代理均已正确配置以允许访问 mvncentral

© www.soinside.com 2019 - 2024. All rights reserved.