It is currently Sat Nov 26, 2011 8:18 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Maven can't resolve JDIC or JavaExtensions
PostPosted: Thu Oct 06, 2011 3:11 am 
Offline

Joined: Thu Oct 06, 2011 3:03 am
Posts: 2
I am trying to build Ted from source and maven can't resolve these two dependencies:
Code:
<dependency>
          <groupId>org.jdesktop</groupId>
          <artifactId>JDIC</artifactId>
          <version>0.8.4</version>
          <type>jar</type>
          <optional>false</optional>
       </dependency>
       <dependency>
          <groupId>com.apple</groupId>
          <artifactId>JavaExtensions</artifactId>
          <version>1.0</version>
          <type>jar</type>
          <optional>false</optional>
       </dependency>

Is there a repository I need to add in the POM or something? (this is why I despise Maven)

I am trying to fix this NullPointerException and I think I know how to fix it, or at least a dirty hack fix, but need to be able to build it first (the underlying problem seems to be a race condition in TedConfig where it tries to access privateTrackers before it has been assigned, IMHO this is why you always initialize empty collections rather than leave them null, then just add to them).

Quote:
java.lang.NullPointerException
[0x0-0x9b29b2].ted[84302]: at ted.TedConfig.isPrivateTracker(TedConfig.java:837)
[0x0-0x9b29b2].ted[84302]: at ted.TedParser.checkIfBest(TedParser.java:791)
[0x0-0x9b29b2].ted[84302]: at ted.TedParser.ParseItem(TedParser.java:466)
[0x0-0x9b29b2].ted[84302]: at ted.TedParser.parseFeeds(TedParser.java:320)
[0x0-0x9b29b2].ted[84302]: at ted.TedParser.run(TedParser.java:146)


Top
 Profile  
 
 Post subject: Re: Maven can't resolve JDIC or JavaExtensions
PostPosted: Thu Oct 06, 2011 3:29 am 
Offline

Joined: Thu Oct 06, 2011 3:03 am
Posts: 2
I was able to get trunk to build, it looks like the JDIC and JavaExtension classes/jars are available in lib in trunk. However, I can't get the ted0972 branch to build as those classes aren't in there. I tried copying them from trunk to the branch but Maven still says it can't resolve them.

Any hints?


Top
 Profile  
 
 Post subject: Re: Maven can't resolve JDIC or JavaExtensions
PostPosted: Wed Oct 12, 2011 3:09 pm 
Offline

Joined: Wed Oct 12, 2011 2:10 pm
Posts: 2
thank you for the source code. I will use it for my future projects.

_________________
Buy meridia - Buy Filagra


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group