我越來越依賴問題,有一個罐子裏,我嘗試使用上沒有發現。 我收到以下錯誤Maven的JAR依賴問題包OpenShift服務器
remote: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project sparq: Compilation failure: Compilation failure:
remote: [ERROR] /var/lib/openshift/55846322500446673d000007/app-root/runtime/repo/src/main/java/ServerQuery.java:[3,0] error: package com.github.koraktor.steamcondenser does not exist
remote: [ERROR] /var/lib/openshift/55846322500446673d000007/app-root/runtime/repo/src/main/java/ServerQuery.java:[8,8] error: cannot find symbol
remote: [ERROR] class ServerQuery
remote: [ERROR] /var/lib/openshift/55846322500446673d000007/app-root/runtime/repo/src/main/java/ServerQuery.java:[8,34] error: cannot find symbol
這裏是有問題的Java文件。
package helpers;
import com.github.koraktor.steamcondenser.*;
public class ServerQuery {
public static String getPlayers() {
SourceServer server = new SourceServer("66.150.155.152",27015);
server.initialize();
return server.toString();
}
}
我已經添加了以下依賴於我的pom.xml
<dependency>
<groupId>com.github.koraktor</groupId>
<artifactId>steam-condenser</artifactId>
<version>1.3.9</version>
</dependency>
我還添加以下action_hook pre_build腳本
mvn install:install-file -Dfile=./app-root/repo/steam-condenser.jar -DgroupId=com.github.koraktor -DartifactId=steam-condenser -Dversion=1.3.9 -Dpackaging=jar
這裏是GitHub上的項目 https://github.com/koraktor/steam-condenser-java 和網站爲它 http://koraktor.de/steam-condenser/usage/
有什麼想法?完全失去。非常感謝。
是的,不幸的是我已經讀過,並已經嘗試過。 Eclipse也沒有給我任何包找不到問題。只有當我嘗試部署到服務器時。我想我必須問OpenShift。 –
你已經試過了,它沒有工作?究竟發生了什麼? –
它給了我相同的包未找到錯誤。 –