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

kuhbmx9i  于 2022-09-20  发布在  Windows
关注(0)|答案(1)|浏览(127)

我正尝试在我的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 ...rrn   | the parameter in question.rn   |rn   | Default: truern  <i... @61:5)  @ C:Documents and Settings377445.m2settings.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中正确安装。有人能帮我解决这个问题吗?

bzzcjhmw

bzzcjhmw1#

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

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

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

有关更详细的文档,我建议您查看5min maven guide
ArtifactDescriptorException:无法读取log4j:log4j:jar:1.2.16的项目描述符:ArtifactResolutionException:无法从http://repo.maven.apache.org/maven2传输log4j:log4j:pom:1.2.16已缓存在本地存储库中,在过了apache的更新间隔或强制更新之前,将不会重试解析。原始错误:无法从/向Apache(http://repo.maven.apache.org/maven2)传输项目log4j:log4j:pom:1.2.16:NullPointerException

确保您已连接到互联网,并且所有防火墙和代理都已正确配置为允许访问MVN中心

相关问题