archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deng Ching <och...@apache.org>
Subject Re: 2 repositories
Date Thu, 22 Dec 2011 04:25:43 GMT
Hi Chris,

You can flag which repositories Maven will look at for snapshots and
releases by adding this in your repositories config:

<repository>
...
   <releases>
     <enabled>true</enabled> // set to true if your repo contains releases
   </releases>
   <snapshots>
       <enabled>false</enabled> // set to true if your repo contains
snapshots
     </snapshots>
</repository>

Thanks,
Deng

On Thu, Dec 22, 2011 at 12:18 PM, Chris Mylonas <chris@opencsta.org> wrote:

> hi archiva users,
>
> i've just created an "internal-3rdparty" repository to put the version of
> log4j my app uses.
>
> So my maven pom looks like this:
>
>  <repositories>
>    <repository>
>      <id>opencsta-snapshots</id>
>      <url>http://repo.opencsta.org:8080/archiva/repository/snapshots</url>
>    </repository>
>    <repository>
>      <id>internal-3rdparty</id>
>      <url>
> http://repo.opencsta.org:8080/archiva/repository/internal-3rdparty</url>
>    </repository>
>  </repositories>
>
>
> When doing a mvn clean package, my snapshot repository is ignored.  one of
> my own jars are trying to be fetched from "internal-3rdparty" rather than
> "snapshots".
>
> Downloading:
> http://repo.opencsta.org:8080/archiva/repository/internal-3rdparty/org/opencsta/stack/2.0-SNAPSHOT/maven-metadata.xml
> [WARNING] Could not transfer metadata
> org.opencsta:stack:2.0-SNAPSHOT/maven-metadata.xml from/to
> internal-3rdparty (
> http://repo.opencsta.org:8080/archiva/repository/internal-3rdparty):
> Access denied to:
> http://repo.opencsta.org:8080/archiva/repository/internal-3rdparty/org/opencsta/stack/2.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://repo.opencsta.org:8080/archiva/repository/internal-3rdparty/org/opencsta/communications/2.0-SNAPSHOT/maven-metadata.xml
> [WARNING] Could not transfer metadata
> org.opencsta:communications:2.0-SNAPSHOT/maven-metadata.xml from/to
> internal-3rdparty (
> http://repo.opencsta.org:8080/archiva/repository/internal-3rdparty):
> Access denied to:
> http://repo.opencsta.org:8080/archiva/repository/internal-3rdparty/org/opencsta/communications/2.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://repo.opencsta.org:8080/archiva/repository/internal-3rdparty/org/opencsta/stack/2.0-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://repo.opencsta.org:8080/archiva/repository/internal-3rdparty/org/opencsta/communications/2.0-SNAPSHOT/maven-metadata.xml
> [WARNING] Could not transfer metadata
> org.opencsta:communications:2.0-SNAPSHOT/maven-metadata.xml from/to
> internal-3rdparty (
> http://repo.opencsta.org:8080/archiva/repository/internal-3rdparty):
> Access denied to:
> http://repo.opencsta.org:8080/archiva/repository/internal-3rdparty/org/opencsta/communications/2.0-SNAPSHOT/maven-metadata.xml
> [WARNING] Could not transfer metadata
> org.opencsta:stack:2.0-SNAPSHOT/maven-metadata.xml from/to
> internal-3rdparty (
> http://repo.opencsta.org:8080/archiva/repository/internal-3rdparty):
> Access denied to:
> http://repo.opencsta.org:8080/archiva/repository/internal-3rdparty/org/opencsta/stack/2.0-SNAPSHOT/maven-metadata.xml
>
>
> The dependencies in my pom look like this:
>
>  <dependencies>
>    <dependency>
>      <groupId>junit</groupId>
>      <artifactId>junit</artifactId>
>      <version>3.8.1</version>
>      <scope>test</scope>
>    </dependency>
>    <dependency>
>        <groupId>log4j</groupId>
>        <artifactId>log4j</artifactId>
>        <version>1.2.15</version>
>        <scope>provided</scope>
>        <exclusions>
>            <exclusion>
>              <groupId>javax.mail</groupId>
>              <artifactId>mail</artifactId>
>            </exclusion>
>            <exclusion>
>              <groupId>javax.jms</groupId>
>              <artifactId>jms</artifactId>
>            </exclusion>
>            <exclusion>
>              <groupId>com.sun.jdmk</groupId>
>              <artifactId>jmxtools</artifactId>
>            </exclusion>
>            <exclusion>
>              <groupId>com.sun.jmx</groupId>
>              <artifactId>jmxri</artifactId>
>            </exclusion>
>          </exclusions>
>    </dependency>
>    <dependency>
>        <groupId>org.opencsta</groupId>
>        <artifactId>stack</artifactId>
>        <version>2.0-SNAPSHOT</version>
>    </dependency>
>    <dependency>
>        <groupId>org.opencsta</groupId>
>        <artifactId>communications</artifactId>
>        <version>2.0-SNAPSHOT</version>
>    </dependency>
>  </dependencies>
>
> Any and all help would be great!
>
> thanks,
> chris

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message