You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Rüdiger Gubler <rg...@init-ka.de> on 2009/04/17 13:56:12 UTC

can't access snapshots

Hi,

I can't access snapshots in my artifactory.

The jat is deployed with mvn deploy
...
Uploading:
http://pc489:80/artifactory/libs-local/com/initka/bprocess/gisinterface/0.0.1-SNAPSHOT/gisinterface-0.0.1-20090417.113758-2.jar
...

in an other module i have the following entry

    <dependency>
      <groupId>com.initka.bprocess</groupId>
      <artifactId>gisinterface</artifactId>
      <version>0.0.1-SNAPSHOT</version>
    </dependency>

If my local repository is empty i get the following error

[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) com.initka.bprocess:gisinterface:jar:0.0.1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.initka.bprocess
-DartifactId=gisinterface -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
there:
      mvn deploy:deploy-file -DgroupId=com.initka.bprocess
-DartifactId=gisinterface -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) com.initka.bprocess:giskernel:jar:0.0.1
        2) com.initka.bprocess:gisinterface:jar:0.0.1-SNAPSHOT


My settings contains 

  <mirrors>
    <mirror>
      <id>artifactory</id>
      <mirrorOf>*</mirrorOf>
      <url>http://pc489/artifactory/repo</url>
      <name>artifactory</name>
    </mirror>
  </mirrors>


The libs-local repository is configured to handle releases and snapshots.
I also tried separate repositories for releases and snapshots. 
If I deploy a release of the jar it is found.

What is going wrong?


-- 
View this message in context: http://www.nabble.com/can%27t-access-snapshots-tp23096088p23096088.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: can't access snapshots

Posted by Rüdiger Gubler <rg...@init-ka.de>.
Hello,

yeah, thats it.  


Thanks Rüdiger



Yoav  Landman wrote:
> 
> Please follow the instructions at
> http://wiki.jfrog.org/confluence/display/RTF/Configuring+Artifacts+Resolution
> and
> you'll be fine.
> Mirror-any by itself without a repository definition is not enough for
> overriding snapshot resolution.
> 
> Yoav
> 
> 

-- 
View this message in context: http://www.nabble.com/can%27t-access-snapshots-tp23096088p23097422.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: can't access snapshots

Posted by Yoav Landman <yl...@gmail.com>.
Please follow the instructions at
http://wiki.jfrog.org/confluence/display/RTF/Configuring+Artifacts+Resolutionand
you'll be fine.
Mirror-any by itself without a repository definition is not enough for
overriding snapshot resolution.

Yoav

On Fri, Apr 17, 2009 at 2:56 PM, Rüdiger Gubler <rg...@init-ka.de> wrote:

>
> Hi,
>
> I can't access snapshots in my artifactory.
>
> The jat is deployed with mvn deploy
> ...
> Uploading:
>
> http://pc489:80/artifactory/libs-local/com/initka/bprocess/gisinterface/0.0.1-SNAPSHOT/gisinterface-0.0.1-20090417.113758-2.jar
> ...
>
> in an other module i have the following entry
>
>    <dependency>
>      <groupId>com.initka.bprocess</groupId>
>      <artifactId>gisinterface</artifactId>
>      <version>0.0.1-SNAPSHOT</version>
>    </dependency>
>
> If my local repository is empty i get the following error
>
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) com.initka.bprocess:gisinterface:jar:0.0.1-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=com.initka.bprocess
> -DartifactId=gisinterface -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file
>
>  Alternatively, if you host your own repository you can deploy the file
> there:
>      mvn deploy:deploy-file -DgroupId=com.initka.bprocess
> -DartifactId=gisinterface -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
>  Path to dependency:
>        1) com.initka.bprocess:giskernel:jar:0.0.1
>        2) com.initka.bprocess:gisinterface:jar:0.0.1-SNAPSHOT
>
>
> My settings contains
>
>  <mirrors>
>    <mirror>
>      <id>artifactory</id>
>      <mirrorOf>*</mirrorOf>
>      <url>http://pc489/artifactory/repo</url>
>      <name>artifactory</name>
>    </mirror>
>  </mirrors>
>
>
> The libs-local repository is configured to handle releases and snapshots.
> I also tried separate repositories for releases and snapshots.
> If I deploy a release of the jar it is found.
>
> What is going wrong?
>
>
> --
> View this message in context:
> http://www.nabble.com/can%27t-access-snapshots-tp23096088p23096088.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
>
>