java - Maven jar dependency issue package not found on OpenShift server -
i'm getting dependency issue jar i'm attempting use. receive following error
remote: [error] failed 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 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
here offending java file.
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(); } }
i've added following dependency pom.xml
<dependency> <groupid>com.github.koraktor</groupid> <artifactid>steam-condenser</artifactid> <version>1.3.9</version> </dependency>
i've added following action_hook pre_build script
mvn install:install-file -dfile=./app-root/repo/steam-condenser.jar -dgroupid=com.github.koraktor -dartifactid=steam-condenser -dversion=1.3.9 -dpackaging=jar
here's github project https://github.com/koraktor/steam-condenser-java , website http://koraktor.de/steam-condenser/usage/
any ideas? lost. appreciated.
since including jar file in project already, trying manage dependency maven seems overkill. should able put jar file in project's lib directory this article describes. won't need configure dependency in maven @ all.
i use maven dependencies want download @ time application being built. jar files checking project shouldn't need configured in maven.
Comments
Post a Comment