Yeah, that was that :-)))) <layout>legacy</layout> and now
ewerything is OK.

Many thanks!
Pawel


---- Wiadomość Oryginalna ----
Od: Napoleon Esmundo Ramirez <[EMAIL PROTECTED]>
Do: Maven Users List <users@maven.apache.org>
Data: Fri, 6 Jan 2006 10:19:11 +0800
Temat: Re: m2: local repo is not working?

> Hello!
> 
> The way you installed the artifact in your local repository is
correct.
> However, you declared your local repository as a legacy repository
which
> tells maven to find for the artifact in a maven1 fashion.  That's
why maven
> can't find the artifact.  Try removing <layout>legacy</layout>. :)
> 
> The reason your maven can't download the jdom artifact from the
central repo
> (http://repo1.ibiblio.org/maven2) is because jdom is installed as
jdom:jdom:
> 1.0, not org:jdom:1.0.
> 
> Hope it helps.
> Nap
> 
> On 1/6/06, Tim Davies <[EMAIL PROTECTED]> wrote:
> >
> > 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]
> >
> >
> 


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

Reply via email to