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

Developer Forum » Unresolved Dependencies building jforum 2.4.1 with Maven

發表人: Udusimus
7 年 前
Hi, I just did a fresh checkout of jforum 2.4.1 and tried to compile with maven. After a couple of minutes it exits with the following error:


[ERROR] Failed to execute goal on project jforum: Could not resolve dependencies for project net.jforum:jforum:war:2.5: 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): Failed to transfer file: http://forge.octo.com/archiva/repository/3rd-party/com/jhlabs/imaging/01012005/imaging-01012005.pom. Return code is: 503 , ReasonPhrase:Service Unavailable. -> [Help 1]


I'm not all too familiar with maven but the site forge.octo.com not being available seems to be the problem. Any idea how to work around this?

Can I manually download the com.octo.captcha:jcaptcha:jar:1.0 and manuallly put it in my local maven repository cache? I this is possible, how do I do it.

Help would be greatly appreciated.

Cheers!

發表人: Udusimus
7 年 前
ok, not the most elegant but this workaround did it for me:

I downloaded and unpacked the jforum 2.4.1 war and referenced the jcaptcha and jcaptcha-api jars in the pom.

just replace the following lines in the pom.xml


<dependency>
<groupId>com.octo.captcha</groupId>
<artifactId>jcaptcha</artifactId>
<version>1.0</version>
<type>jar</type>
<scope>compile</scope>
</dependency>


with the following:


<dependency>
<groupId>com.octo.captcha</groupId>
<artifactId>jcaptcha</artifactId>
<version>1.0</version>
<type>jar</type>
<scope>system</scope>
<systemPath>/YOUR-OWN-FULLY-QUALIFIED-PATH-TO/jforum-2.4.1/WEB-INF/lib/jcaptcha-1.0.jar</systemPath>
</dependency>
<dependency>
<groupId>com.octo.captcha</groupId>
<artifactId>jcaptcha-api</artifactId>
<version>1.0</version>
<type>jar</type>
<scope>system</scope>
<systemPath>/YOUR-OWN-FULLY-QUALIFIED-PATH-TO/jforum-2.4.1/WEB-INF/lib/jcaptcha-api-1.0.jar</systemPath>
</dependency>

發表人: andowson
7 年 前
You can download the attachment imaging.zip and unzip it into your local .m2 repository com/jhlabs directory.
The path should be like: C:\Users\%username%\.m2\repository\com\jhlabs

檔案名稱 imaging.zip
描述 com/jhlabs/imaging jar and pom files
檔案大小 90 Kbytes
下載次數 26961 次
[Disk] 下載





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