[Logo] JForum - Powering Communities
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 


The final version of JForum 2.8.1 has been released with various fixes and improvements. Read all about it here

Unresolved Dependencies building jforum 2.4.1 with Maven RSS feed
Forum Index » Developer Forum
Author Message
Udusimus


Joined: 2017/8/31
Messages: 3
Offline
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


Joined: 2017/8/31
Messages: 3
Offline
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


Joined: 2011/6/30
Messages: 236
Offline
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

 Filename imaging.zip [Disk] Download
 Description com/jhlabs/imaging jar and pom files
 Filesize 90 Kbytes
 Downloaded:  10010 time(s)

 
Forum Index » Developer Forum
Go to:   
Mobile view
Powered by JForum 2.8.1 © 2022 JForum Team • Maintained by Andowson Chang and Ulf Dittmer