configuring jars dependencies in pom [message #911265] |
Tue, 11 September 2012 09:11 |
MeJ MeJ Messages: 9 Registered: July 2012 |
Junior Member |
|
|
hi,
I have a project developed in java using eclipse. This project is using a set of jars. We are trying to execute now this project using maven.
I have configured the pom file for every jar dependecy smth like:
<dependency>
<groupId>org.eclipse.uml2</groupId>
<artifactId>uml</artifactId>
<version>3.2.1</version>
</dependency>
I am trying to use same version of libraries we have in the project.
I am facing two problems:
1. If i just specify the library just like this it gives me error that it can not download from the default repository that maven is using.
2. if i specify the repository in my pom smth like:
<i><repositories>
<repository>
<id>Indigo Release</id>
<url>https: //raw.github.com/eclipse/acceleo/master/maven/repository/releases/indigo</url>
</repository>
<repository>
<id>Juno Release</id>
<url>https: //raw.github.com/eclipse/acceleo/master/maven/repository/releases/juno</url>
</repository>
<repository>
<id>Snapshots</id>
<url>https: //raw.github.com/eclipse/acceleo/master/maven/repository/snapshots</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>Indigo Release</id>
<url>https: //raw.github.com/eclipse/acceleo/master/maven/repository/releases/indigo</url>
</pluginRepository>
<pluginRepository>
<id>Juno Release</id>
<url>https: //raw.github.com/eclipse/acceleo/master/maven/repository/releases/juno</url>
</pluginRepository>
<pluginRepository>
<id>Snapshots</id>
<url>https: //raw.github.com/eclipse/acceleo/master/maven/repository/snapshots</url>
</pluginRepository>
</pluginRepositories></i>
than the version which is in this repositories is not the one i want to download.
I tried to download libraries manually in mz local repository but its a lot of work. Isnt there any simple way to do this ?
Thank you in advance
|
|
|
Powered by
FUDForum. Page generated in 0.03018 seconds