Oops sorry, just noticed that matches your groupid in your install command.

Not sure in that case.

Tim Davies wrote:

Your groupid in your dependencies tag should be org.jdom.

For info when you install an artifact it is installed to your local repository, which is \.m2\repository. When you use the repository tag then you are telling the pom to look for the artifact in your remote repository.

Wasnt sure if that was understood from what you wrote.

Hope this helps. :-)

[EMAIL PROTECTED] wrote:

Hi,

I have a following problem:

I installed a few artefacts with a command (for example):

mvn install:install-file -Dfile=./jdom-1.0.zip -DgroupId=org
-DartifactId=jdom -Dversion=1.0 -Dpackaging=jar

Now I have a structure:
\.m2\repository\org\jdom\1.0\jdom-1.0.jar

In my POM.xml there is:

...
<repositories>
   <repository>
     <snapshots>
       <enabled>true</enabled>
     </snapshots>
     <id>my-m1-repository</id>
     <name>Maven 1.x Repository</name>
     <url>http://192.168.1.60:8080/maven</url>
     <layout>legacy</layout>
   </repository>
 </repositories>
...

and

...
<dependencies>
...
<dependency>
   <groupId>org</groupId>
     <artifactId>jdom</artifactId>
     <version>1.0</version>
     <scope>compile</scope>
</dependency>
...
</dependencies>
...

When I try: mvn compile, it says:

Downloading: http://192.168.1.60:8080/maven/org/poms/jdom-1.0.pom
[WARNING] Unable to get resource from repository my-m1-repository
(http://192.168.1.60:8080/maven)
Downloading: http://repo1.maven.org/maven2/org/jdom/1.0/jdom-1.0.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)

and the operation takes much time (a couple of minutes). I didn't
changed anything in my settings.xml or other files.

Is it possible that my local repository isn't working?

Thanks for any suggestions,
Pawel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Tim Davies
Analyst Developer

KTS PLC: Service you can bank on
8th Floor, Finsbury Tower,
103-105 Bunhill Row,
London  EC1Y 8LZ
tel: +44 (0)20 7256 2300
fax: +44 (0)20 7256 2301

email: [EMAIL PROTECTED]
web: http://www.ktsplc.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to