我正在尝试使用程序员参考将 i.lon100 与 JAVA 连接起来。带有程序员参考的 pom.xml 和 .pdf 文件可以从以下页面下载:http: //home.elka.pw.edu.pl/~mkolasin/
我的日食版本是:
面向 Web 开发人员的 Eclipse Java EE IDE。
版本:Juno Service Release 2
版本号:20130225-0426
Maven 版本:2.2.1(在程序员参考中推荐)
a) 首先,我在安装 Maven Embedder 和 Maven Integration for Eclipse 时遇到了第 22-6 页的问题,因为我假设http://m2eclipse.sonatype.org/update/页面不存在。那么,我的第一个问题是:还有其他网站可以使用 eclipse 下载这些软件吗?
B)我从 Eclipse 市场安装:Eclipse 的 Maven 集成,但我找不到 Maven Embedder。现在我可以右键单击项目:RUN AS - Maven Built 而不是 Run AS - maven package 还可以吗?
c) 当我尝试执行另一个步骤时,第 22-13 页“在 Project Explorer 视图中,右键单击 ilon-ws 文件夹,指向 Run As,然后单击 Maven Package。这会生成 java 代理类并构建 jar 。” 我在控制台中遇到错误,我不知道如何修复它。
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org...ticLoggerBinder for further details.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.echelon.es:ilon-ws:jar:4.03-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:jaxws-maven-plugin is missing. @ line 71, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 113, column 23
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 124, column 23
[WARNING] 'repositories.repository.layout' for java.net uses the unsupported value 'legacy', artifact resolution might fail. @ line 36, 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] ------------------------------------------------------------------------
[INFO] Building ECHELON i.LON SmartServer 4.03-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.985s
[INFO] Finished at: Tue Jun 04 20:20:25 CEST 2013
[INFO] Final Memory: 4M/105M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ilon-ws: Could not resolve dependencies for project com.echelon.es:ilon-ws:jar:4.03-SNAPSHOT: Failed to collect dependencies for [com.sun.xml.ws:jaxws-rt:jar:2.2 (compile)]: Failed to read artifact descriptor for woodstox:wstx-asl:jar:3.2.1: Could not transfer artifact woodstox:wstx-asl:pom:3.2.1 from/to java.net (http://download.java.net/maven/1/): No connector available to access repository java.net (http://download.java.net/maven/1/) of type legacy using the available factories AsyncRepositoryConnectorFactory, WagonRepositoryConnectorFactory -> [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....lutionException
我尝试将 slf4j-nop-1.7.5.jar 文件添加到 buildpath 并且没有任何改变。
请给我任何建议或帮助,因为最近几天我无法处理它,而且我不知道在哪里可以找到答案。
问候, 科拉塔