Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Struggling to import maven dependency from SourceForge

Trying to use a Project called simmetrics: http://sourceforge.net/projects/simmetrics/

Trying to add the project as a maven dependancy into the POM file as follows:

<dependency>
    <groupId>net.sf.simmetrics</groupId>
    <artifactId>simmetrics</artifactId>
    <version>1.6.2</version>
</dependency>

I've also added the repository as follows:

<repository> <id>simmetrics.website</id>
     <name>Simmetrics Website</name>
     <url>http://sourceforge.net/projects/simmetrics/</url>
</repository>  

Can anyone point me in the right direction, this seems rather silly.

Thanks for your time.

EDIT

Found it somewhere else, however I can't seem to access this either: https://dev-iesl.cs.umass.edu/nexus/content/groups/public/

 <repository>
      <id>IESL Releases</id>
      <name>IESL Repo</name>
      <url>https://dev-iesl.cs.umass.edu/nexus/content/groups/public</url>
 </repository>


 <dependency>
    <groupId>uk.ac.shef.wit.simmetrics</groupId>
    <artifactId>simmetrics</artifactId>
    <version>1.6.2</version>
</dependency>

In case some one is wondering yes I'm using various other maven dependencies, never experienced this before though.

like image 575
RST Avatar asked Jun 16 '14 11:06

RST


2 Answers

Almost every company/user that wants to post its source code as a maven project and allow others to depend on it do it by the following options:

  1. Publish it in the maven Central Repository (see maven central repository)
  2. Create its own repository, publish it, and add the dependency of the selected Jar to it

All the other options are simple, download the Jar and use it.

If this is your only option (download the Jar and use it), consider creating your own repository and add this Jar to it.

like image 79
raven99 Avatar answered Nov 15 '22 06:11

raven99


SimMetrics is available on Maven central. You can include it by adding this dependency to your pom.

<dependency>
    <groupId>com.github.mpkorstanje</groupId>
    <artifactId>simmetrics-core</artifactId>
    <version>3.1.0</version>
</dependency>

Full disclaimer: I seem to be the current maintainer.

like image 41
M.P. Korstanje Avatar answered Nov 15 '22 06:11

M.P. Korstanje