會員註冊 / 登入  |  電腦版  |  Jump to bottom of page

Developer Forum » Re:How to Setup JForum Development Environment

發表人: Raskolnikov
10 年 前
Yes, i did that :/ i used the mvn command and then tried copying the driver into the proper directory but now in both cases i'm getting the following error:

[INFO] Building JForum 2.3.5-snapshot

[INFO] ------------------------------------------------------------------------
Downloading: https://repository.jboss.org/nexus/content/groups/public/com/oracle/ojdbc14/10.2.0.4.0/ojdbc14-10.2.0.4.0.pom
Downloading: http://maven.jahia.org/maven2/com/oracle/ojdbc14/10.2.0.4.0/ojdbc14-10.2.0.4.0.pom
Downloading: http://repo.maven.apache.org/maven2/com/oracle/ojdbc14/10.2.0.4.0/ojdbc14-10.2.0.4.0.pom
Downloaded: http://repo.maven.apache.org/maven2/com/oracle/ojdbc14/10.2.0.4.0/ojdbc14-10.2.0.4.0.pom (903 B at 2.1 KB/sec)
Downloading: https://repository.jboss.org/nexus/content/groups/public/com/oracle/ojdbc14/10.2.0.4.0/ojdbc14-10.2.0.4.0.jar
Downloading: http://maven.jahia.org/maven2/com/oracle/ojdbc14/10.2.0.4.0/ojdbc14-10.2.0.4.0.jar
Downloading: http://repo.maven.apache.org/maven2/com/oracle/ojdbc14/10.2.0.4.0/ojdbc14-10.2.0.4.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.260s
[INFO] Finished at: Thu May 09 03:03:38 UYT 2013
[INFO] Final Memory: 8M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project jforum: Could not resolve dependencies for project net.jforum:jforum:war:2.3.5-snapshot: Could not find artifact com.oracle:ojdbc14:jar:10.2.0.4.0 in jboss (https://repository.jboss.org/nexus/content/groups/public/) -> [Help 1]


Thanks for your patience!

發表人: andowson
10 年 前
Try to locate your local m2 repository directory for ojdbc14.
For example, mine is under the C:\Users\Andowson\.m2\repository\com\oracle\ojdbc14\10.2.0.4.0 path.
And delete all the files except the ojdbc14-10.2.0.4.0.jar.
Run your maven build command and test if this works.

發表人: Raskolnikov
10 年 前
Negative, i get the same error as before smilie

發表人: andowson
10 年 前
Hi Raskolnikov,
In your case, just remove the following fragment from pom.xml:
<dependency>

<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.4.0</version>
<scope>compile</scope>
</dependency>

And copy the ojdbc14.jar file into src\main\webapp\WEB-INF\lib directory yourself.

發表人: Raskolnikov
10 年 前
It worked! Thank you andowson! smilie


發表人: andowson
10 年 前
Hi Raskolnikov,
Would you please add back the deleted part to the pom.xml and try the following command again:

mvn install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4.0 -Dpackaging=jar -DgeneratePom=true


The last parameter for generating a POM will save you from pom.xml warnings

And check if this works now?

Reference:
http://stackoverflow.com/questions/1074869/find-oracle-jdbc-driver-in-maven-repository

發表人: drake_yvntech
10 年 前
Hi, can I build jforum with glassfish server in Netbeans v8.0??

發表人: HootinHoller
8 年 前
Having trouble doing initial build from 2.4.1 source (build 501)

It appears that the captcha dependency has been hosed.

The error:

Failed to execute goal on project jforum: Could not resolve dependencies for project net.jforum:jforum:war:2.4.1: Failed to collect dependencies at com.octo.captcha:jcaptcha:jar:1.0 -> com.jhlabs:imaging:jar:01012005: Failed to read artifact descriptor for com.jhlabs:imaging:jar:01012005: Could not transfer artifact com.jhlabs:imaging:pom:01012005 from/to 3rd-party (http://forge.octo.com/archiva/repository/3rd-party): forge.octo.com: Unknown host forge.octo.com


Has anyone built this from a bare local repository lately?

發表人: Udusimus
7 年 前
 
HootinHoller wrote:Having trouble doing initial build from 2.4.1 source (build 501)

It appears that the captcha dependency has been hosed.

The error:

Failed to execute goal on project jforum: Could not resolve dependencies for project net.jforum:jforum:war:2.4.1: Failed to collect dependencies at com.octo.captcha:jcaptcha:jar:1.0 -> com.jhlabs:imaging:jar:01012005: Failed to read artifact descriptor for com.jhlabs:imaging:jar:01012005: Could not transfer artifact com.jhlabs:imaging:pom:01012005 from/to 3rd-party (http://forge.octo.com/archiva/repository/3rd-party): forge.octo.com: Unknown host forge.octo.com


Has anyone built this from a bare local repository lately?


experiencing exact the same problem. Mentioned this in a separate thread in this Forum




會員註冊 / 登入  |  電腦版  |  Jump to top of page