2

I'm working on a project on Eclipse IDE that requires jfugue. How do I add this dependency to my project, using Maven?

I tried to:

  1. Right click to the project name->Maven->Add Dependency;
  2. I added a dependency from pom.xml form:

    <dependency>
     <groupId>org</groupId>
     <artifactId>jfugue</artifactId>
     <version>4.1.0</version>
     <type>java-source</type>
    </dependency>
    
  3. I added the repository:

    <repository>
     <id>jfugue-repo</id>
     <url>http://jfugue.googlecode.com/svn/trunk/jfugue/</url>
    </repository>
    
  4. It search files with a broken link but I can't see it because it not appear for more than one second in the Progress View.

How can I fix this? Thanks for your help.

UPDATE 1 jfugue pom.xml is this. Mine pom.xml is this.

Davide Pastore
  • 8,678
  • 10
  • 39
  • 53

1 Answers1

3

It seems that the pom.xml doesn't have remote repositories. Use the following link to figure out how to install jar into the local repository. You have also remove <repository tag from your project's pom.xml.

Roman C
  • 49,761
  • 33
  • 66
  • 176
  • Thanks Roman for you answer. How can I do the same thing with m2e? – Davide Pastore Jan 20 '13 at 13:31
  • After you have installed the jar to the local repository you can add dependency using m2e editor of pom.xml or by action wizard. – Roman C Jan 20 '13 at 13:58
  • Yes but I don't use maven in command line. I have only m2e plugin for Eclipse. Is there a way to install the jar in the local repository? – Davide Pastore Jan 20 '13 at 14:40
  • Now the problem is solved. I used [this](http://stackoverflow.com/a/4324057/1992780) to create a custom command line run to import the jar in the local repository and [this](http://www.mkyong.com/maven/how-to-include-library-manully-into-maven-local-repository/) to include the jar in my project. – Davide Pastore Jan 20 '13 at 15:06
  • 1
    @DavidePastore I like that you solved the problem. Note, it seems you like to play with eclipse, but be aware that eclipse itself if a good tool but not all the problems you could solve with it. If you are working with maven first thing you should do is install maven and configure it to run from the command line, it's my suggestions and always read original docs from the maven site. However, it regards to all Apache projects. Happy that helped you. – Roman C Jan 20 '13 at 15:56