You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Lukin <is...@seznam.cz> on 2010/07/30 10:36:12 UTC

looks for manually installed in all remote repositories

Hi,
I have defined additional repositories in my settings.xml - works OK.
I have manually installed one dependency - OK (it is in my .m2 directory).
Problem is, that this dependency is always looked for in all of those
additional repositories and Maven complains "Unable to find resource ...". 

Build process is slow because of this.

Can I tell Maven not to look for this dependency in remote repositories?
Anyway, I thought, Maven searches local repository first and it should find
it there.

Thank you for any help,

Lukas
-- 
View this message in context: http://maven.40175.n5.nabble.com/looks-for-manually-installed-in-all-remote-repositories-tp2259297p2259297.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: looks for manually installed in all remote repositories

Posted by Ron Wheeler <rw...@artifact-software.com>.
  If you are going to be doing your development with Maven and want to 
speed things up and make your life a lot better install Nexus.
It make not make the sex or the beer better but you will have more time 
to pursue them.

Ron


On 30/07/2010 6:40 AM, Lukin wrote:
> Solved!
> Thank you for assistance. I have probably made some mistake when I was
> experimenting with Maven for the first time. You pointed me to the right
> direction - the jar was not very well installed. The problem was, that in
> .m2\repository\com\microsoft\sqljdbc4\2\  was missing .pom file.
>
> I just have created  sqljdbc4-2.pom  with
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project>
>    <modelVersion>4.0.0</modelVersion>
>    <groupId>com.microsoft</groupId>
>    <artifactId>sqljdbc4</artifactId>
>    <version>2</version>
> </project>
>
> and that was IT.
> Thank to all for help


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: looks for manually installed in all remote repositories

Posted by Lukin <is...@seznam.cz>.
Solved!
Thank you for assistance. I have probably made some mistake when I was
experimenting with Maven for the first time. You pointed me to the right
direction - the jar was not very well installed. The problem was, that in
.m2\repository\com\microsoft\sqljdbc4\2\  was missing .pom file.

I just have created  sqljdbc4-2.pom  with

<?xml version="1.0" encoding="UTF-8"?>
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.microsoft</groupId>
  <artifactId>sqljdbc4</artifactId>
  <version>2</version>
</project>

and that was IT.
Thank to all for help
-- 
View this message in context: http://maven.40175.n5.nabble.com/looks-for-manually-installed-in-all-remote-repositories-tp2259297p2259404.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: looks for manually installed in all remote repositories

Posted by Anders Hammar <an...@hammar.net>.
How did you install it in your local repo? Wit install:install-file or
manually? I'm guessing here, but could it be that the local metadata files
don't include this version of the artifact and therefore Maven will go
remote?

/Anders

On Fri, Jul 30, 2010 at 11:18, Lukin <is...@seznam.cz> wrote:

>
> Thank you for your reply.
>
> It is not snapshot,
> I have defined it this way:
>
>        <dependency>
>            <groupId>com.microsoft</groupId>
>            <artifactId>sqljdbc4</artifactId>
>            <version>2</version>
>        </dependency>
>
> it is located in my .m2\repository\com\microsoft\sqljdbc4\2\sqljdbc4-2.jar
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/looks-for-manually-installed-in-all-remote-repositories-tp2259297p2259343.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: looks for manually installed in all remote repositories

Posted by Lukin <is...@seznam.cz>.
Thank you for your reply.

It is not snapshot,
I have defined it this way:

        <dependency>
            <groupId>com.microsoft</groupId>
            <artifactId>sqljdbc4</artifactId>
            <version>2</version>
        </dependency>

it is located in my .m2\repository\com\microsoft\sqljdbc4\2\sqljdbc4-2.jar 
-- 
View this message in context: http://maven.40175.n5.nabble.com/looks-for-manually-installed-in-all-remote-repositories-tp2259297p2259343.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: looks for manually installed in all remote repositories

Posted by Aleksey Didik <di...@magenta-technology.ru>.
  Hi, Likin.

Is this dependency SNAPSHOT or not?

Aleksey.

30.07.2010 12:36, Lukin пишет:
> Hi,
> I have defined additional repositories in my settings.xml - works OK.
> I have manually installed one dependency - OK (it is in my .m2 directory).
> Problem is, that this dependency is always looked for in all of those
> additional repositories and Maven complains "Unable to find resource ...".
>
> Build process is slow because of this.
>
> Can I tell Maven not to look for this dependency in remote repositories?
> Anyway, I thought, Maven searches local repository first and it should find
> it there.
>
> Thank you for any help,
>
> Lukas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org