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 Fri, 23 Dec 2011 03:22:18 GMT
Cool, you're welcome ;)

On Fri, Dec 23, 2011 at 11:19 AM, Chris Mylonas <chris@opencsta.org> wrote:

> Thank you Deng,
>
> Further to this, I hadn't allowed the guest user to be an observer of the
> new repository.
>
> So...
>
> Downloading:
> http://repo.opencsta.org:8080/archiva/repository/internal-3rdparty/log4j/log4j/1.2.15/log4j-1.2.15.jar
> Downloading:
> http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar
> Downloading:
> http://repo1.maven.org/maven2/log4j/log4j/1.2.15/log4j-1.2.15.jar
> Downloaded:
> http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar (119 KB
> at 50.9 KB/sec)
> Downloaded:
> http://repo1.maven.org/maven2/log4j/log4j/1.2.15/log4j-1.2.15.jar (383 KB
> at 83.9 KB/sec)
>
> The opencsta internal-3rdparty repo was not able to serve up the log4j jar
> without a username/password - I've since updated my configs and it seems to
> work.
>
>
>
> Seems to be doing what I want now, thanks once again.
>
> CM
>
>
>
>
>
>
> On 22/12/2011, at 3:25 PM, Deng Ching wrote:
>
> > 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