ted
https://ted.nu/forum/

Maven can't resolve JDIC or JavaExtensions
https://ted.nu/forum/viewtopic.php?f=5&t=40982
Page 1 of 1

Author:  jokerswild [ Thu Oct 06, 2011 3:11 am ]
Post subject:  Maven can't resolve JDIC or JavaExtensions

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)

Author:  jokerswild [ Thu Oct 06, 2011 3:29 am ]
Post subject:  Re: Maven can't resolve JDIC or JavaExtensions

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?

Author:  terry [ Wed Oct 12, 2011 3:09 pm ]
Post subject:  Re: Maven can't resolve JDIC or JavaExtensions

thank you for the source code. I will use it for my future projects.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/