[Logo] JForum - Powering Communities
  [Search] 搜尋   [Recent Topics] 最新主題   [Hottest Topics] 熱門主題   [Top Downloads] 熱門下載   [Groups] 回首頁 
[Register] 會員註冊 /  [Login] 登入 


JForum 2.8.3 is out with various fixes and improvements. Read all about it here

Unresolved Dependencies building jforum 2.4.1 with Maven RSS feed
討論區首頁 » Developer Forum
發表人 內容
Udusimus


註冊時間: 2017/8/31
文章: 3
離線
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


註冊時間: 2017/8/31
文章: 3
離線
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


註冊時間: 2011/6/30
文章: 252
離線
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 [Disk] 下載
 描述 com/jhlabs/imaging jar and pom files
 檔案大小 90 Kbytes
 下載次數:  53776 次

 
討論區首頁 » Developer Forum
前往:   
行動版
Powered by JForum 2.8.3 © 2023 JForum Team • Maintained by Andowson Chang and Ulf Dittmer