Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/376.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何为esri geometry api构建jar文件_Java_Maven_Jar - Fatal编程技术网

Java 如何为esri geometry api构建jar文件

Java 如何为esri geometry api构建jar文件,java,maven,jar,Java,Maven,Jar,我已从github下载了esri geometry api,我正在尝试使用mvn从中获取jar文件。我尝试运行以下操作: D:\lib\geometry-api-java-master>mvn tasks [INFO] Scanning for projects... [INFO] Inspecting build with total of 1 modules... [INFO] Installing Nexus Staging features: [INFO] ... to

我已从github下载了
esri geometry api
,我正在尝试使用
mvn
从中获取
jar
文件。我尝试运行以下操作:

    D:\lib\geometry-api-java-master>mvn tasks
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-st
aging-maven-plugin
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Esri Geometry API for Java 1.2
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.702 s
[INFO] Finished at: 2014-09-14T09:05:53+05:30
[INFO] Final Memory: 6M/140M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "tasks". You must specify a valid lifecycle phas
e or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-ar
tifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate,
initialize, generate-sources, process-sources, generate-resources, process-resou
rces, compile, process-classes, generate-test-sources, process-test-sources, gen
erate-test-resources, process-test-resources, test-compile, process-test-classes
, test, prepare-package, package, pre-integration-test, integration-test, post-i
ntegration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site
, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhase
NotFoundException
D:\lib\geometry-api-java-master>ls
CONTRIBUTING.md  README.md  license.txt  pom.xml
DepFiles         build.xml  manifest     src
D:\lib\geometry api java master>mvn任务
[信息]正在扫描项目。。。
[信息]正在检查总共1个模块的生成。。。
[信息]安装Nexus暂存功能:
[信息]。。。用nexus st替换的maven deploy插件共执行1次
老化maven插件
[信息]
[信息]------------------------------------------------------------------------
[信息]为Java 1.2构建Esri Geometry API
[信息]------------------------------------------------------------------------
[信息]------------------------------------------------------------------------
[信息]生成失败
[信息]------------------------------------------------------------------------
[信息]总时间:2.702秒
[信息]完成时间:2014-09-14T09:05:53+05:30
[信息]最终内存:6M/140M
[信息]------------------------------------------------------------------------
[错误]未知的生命周期阶段“任务”。必须指定有效的生命周期PHA
或格式为:或[:]的目标。可用的生命周期阶段包括:验证,
初始化、生成源、流程源、生成资源、流程资源
rces、编译、处理类、生成测试源、处理测试源、gen
操作测试资源、流程测试资源、测试编译、流程测试类
、测试、准备包、包、集成前测试、集成测试、集成后测试
集成测试、验证、安装、部署、预清理、清理、清理后、现场前
,站点,发布站点,站点部署。->[帮助1]
[错误]
[错误]要查看错误的完整堆栈跟踪,请使用-e swit重新运行Maven
中国。
[错误]使用-X开关重新运行Maven以启用完整调试日志记录。
[错误]
[错误]有关错误和可能的解决方案的更多信息,请重试
d以下条款:
[错误][帮助1]http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhase
NotFoundException
D:\lib\geometry api java master>ls
contribution.md README.md license.txt pom.xml
DepFiles build.xml清单src
我也试过:

    D:\lib\geometry-api-java-master>mvn build
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-st
aging-maven-plugin
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Esri Geometry API for Java 1.2
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.966 s
[INFO] Finished at: 2014-09-14T09:07:22+05:30
[INFO] Final Memory: 6M/140M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "build". You must specify a valid lifecycle phas
e or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-ar
tifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate,
initialize, generate-sources, process-sources, generate-resources, process-resou
rces, compile, process-classes, generate-test-sources, process-test-sources, gen
erate-test-resources, process-test-resources, test-compile, process-test-classes
, test, prepare-package, package, pre-integration-test, integration-test, post-i
ntegration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site
, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhase
NotFoundException
    D:\lib\geometry-api-java-master>mvn jar
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-st
aging-maven-plugin
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Esri Geometry API for Java 1.2
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.670 s
[INFO] Finished at: 2014-09-14T09:08:26+05:30
[INFO] Final Memory: 6M/140M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "jar". You must specify a valid lifecycle phase
or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-arti
fact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, in
itialize, generate-sources, process-sources, generate-resources, process-resourc
es, compile, process-classes, generate-test-sources, process-test-sources, gener
ate-test-resources, process-test-resources, test-compile, process-test-classes,
test, prepare-package, package, pre-integration-test, integration-test, post-int
egration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site,
site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhase
NotFoundException
D:\lib\geometry api java master>mvn构建
[信息]正在扫描项目。。。
[信息]正在检查总共1个模块的生成。。。
[信息]安装Nexus暂存功能:
[信息]。。。用nexus st替换的maven deploy插件共执行1次
老化maven插件
[信息]
[信息]------------------------------------------------------------------------
[信息]为Java 1.2构建Esri Geometry API
[信息]------------------------------------------------------------------------
[信息]------------------------------------------------------------------------
[信息]生成失败
[信息]------------------------------------------------------------------------
[信息]总时间:2.966秒
[信息]完成时间:2014-09-14T09:07:22+05:30
[信息]最终内存:6M/140M
[信息]------------------------------------------------------------------------
[错误]未知的生命周期阶段“构建”。必须指定有效的生命周期PHA
或格式为:或[:]的目标。可用的生命周期阶段包括:验证,
初始化、生成源、流程源、生成资源、流程资源
rces、编译、处理类、生成测试源、处理测试源、gen
操作测试资源、流程测试资源、测试编译、流程测试类
、测试、准备包、包、集成前测试、集成测试、集成后测试
集成测试、验证、安装、部署、预清理、清理、清理后、现场前
,站点,发布站点,站点部署。->[帮助1]
[错误]
[错误]要查看错误的完整堆栈跟踪,请使用-e swit重新运行Maven
中国。
[错误]使用-X开关重新运行Maven以启用完整调试日志记录。
[错误]
[错误]有关错误和可能的解决方案的更多信息,请重试
d以下条款:
[错误][帮助1]http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhase
NotFoundException
我也试过:

    D:\lib\geometry-api-java-master>mvn build
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-st
aging-maven-plugin
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Esri Geometry API for Java 1.2
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.966 s
[INFO] Finished at: 2014-09-14T09:07:22+05:30
[INFO] Final Memory: 6M/140M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "build". You must specify a valid lifecycle phas
e or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-ar
tifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate,
initialize, generate-sources, process-sources, generate-resources, process-resou
rces, compile, process-classes, generate-test-sources, process-test-sources, gen
erate-test-resources, process-test-resources, test-compile, process-test-classes
, test, prepare-package, package, pre-integration-test, integration-test, post-i
ntegration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site
, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhase
NotFoundException
    D:\lib\geometry-api-java-master>mvn jar
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-st
aging-maven-plugin
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Esri Geometry API for Java 1.2
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.670 s
[INFO] Finished at: 2014-09-14T09:08:26+05:30
[INFO] Final Memory: 6M/140M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "jar". You must specify a valid lifecycle phase
or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-arti
fact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, in
itialize, generate-sources, process-sources, generate-resources, process-resourc
es, compile, process-classes, generate-test-sources, process-test-sources, gener
ate-test-resources, process-test-resources, test-compile, process-test-classes,
test, prepare-package, package, pre-integration-test, integration-test, post-int
egration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site,
site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhase
NotFoundException
D:\lib\geometry api java master>mvn jar
[信息]正在扫描项目。。。
[信息]正在检查总共1个模块的生成。。。
[信息]安装Nexus暂存功能:
[信息]。。。用nexus st替换的maven deploy插件共执行1次
老化maven插件
[信息]
[信息]------------------------------------------------------------------------
[信息]为Java 1.2构建Esri Geometry API
[信息]------------------------------------------------------------------------
[信息]------------------------------------------------------------------------
[信息]生成失败
[信息]------------------------------------------------------------------------
[信息]总时间:2.670秒
[信息]完成时间:2014-09-14T09:08:26+05:30
[信息]最终内存:6M/140M
[信息]------------------------------------------------------------------------
[错误]未知的生命周期阶段“jar”。必须指定有效的生命周期阶段
或格式为:或[:]的目标。可用的生命周期阶段包括:验证,在
初始化、生成源、流程源、生成资源、流程资源
es、编译、处理类、生成测试源、处理测试源、gener
ate测试资源、过程测试资源、测试编译、过程测试类、,
测试、准备包、包、集成前测试、集成测试、集成后测试
废气排放测试、验证、安装、部署、预清洁、清洁、后清洁、预现场、,
站点、发布站点、站点部署。->[帮助1]
[错误]
[错误]要查看错误的完整堆栈跟踪,请使用-e swit重新运行Maven
中国。
[错误]使用-X开关重新运行Maven以启用完整调试日志记录。
[错误]
[错误]有关错误和可能的解决方案的更多信息,请重试
d以下条款:
[错误][帮助1]http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhase
NotFoundException

如果pom.xml中有此配置<