maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cintia Del Rio <miladyarte...@gmail.com>
Subject Re: Adding Atlassian repos but keeping maven central?
Date Fri, 06 Jun 2014 10:50:29 GMT
It's possible, of course.

The problem is that some dependencies from atlassian-public will have
dependencies in other proxied repositories (not necessarily central). So
you might ending up trying to find the original repositories, and adding
all of them in your settings.xml.

Doable, of course.


On 6 June 2014 20:46, Adrien Rivard <adrien.rivard@gmail.com> wrote:

> Still not exaclty what you asked, but I would avoid using any repository
> that proxy maven central.
>
> It's bettter to use directly
> https://maven.atlassian.com/content/repositories/atlassian-public/ , and
> maybe https://maven.atlassian.com/content/repositories/atlassian-3rdparty/
> and https://maven.atlassian.com/content/repositories/atlassian-contrib/
>
> see https://maven.atlassian.com/index.html#view-repositories for the list.
>
>
> On Fri, Jun 6, 2014 at 12:17 PM, Cintia Del Rio <miladyartemis@gmail.com>
> wrote:
>
> > It's not exactly what you asked, but atlassian-public (
> > https://maven.atlassian.com/content/groups/public/) should already proxy
> > central (with just a few exceptions if it conflicts with what we are
> > already hosting).
> >
> > I just use in the profile:
> >
> >           <activation>
> >                 <activeByDefault>true</activeByDefault>
> >             </activation>
> >
> >
> >
> >
> > On 6 June 2014 18:12, Steinar Bang <sb@dod.no> wrote:
> >
> > > If I add the atlassian repos (the SDK local disk repo and the
> > > https://maven.atlassian.com/repository/public repo to the
> settings.xml,
> > > will maven still fetch dependencies from maven central?
> > >
> > > I have tried googling for the behaviour here, and I have tried running
> > >  mvn help:active-profiles
> > > without becoming any wiser:
> > >  - With atlassian-profile in <activeProfiles> atlassian-profile is
> > >    listed as the only active profile
> > >  - With an empty <activeProfiles> element, no active profiles are
> listed
> > >  - With no <activeProfiles> element, no active profiles are listed
> > >
> > > Below is my ~/.m2/settings.xml file.
> > >
> > > Should I make the atlassian-profile activeByDefault, instead of listing
> > > it in <activeProfiles>? (the theory being that all activeByDefault
> > > profiles will be enabled which would include both the one with maven
> > > central, and atlassian-profile)
> > >
> > > Or shouldn't I worry about it, because maven central will always be
> > > used?
> > >
> > > Thanks!
> > >
> > >
> > > - Steinar
> > >
> > > My ~/.m2/settings.xml file:
> > >
> > > <settings>
> > >  <profiles>
> > >   <profile>
> > >    <id>atlassian-profile</id>
> > >    <repositories>
> > >     <repository>
> > >      <id>atlassian-public</id>
> > >      <url>https://maven.atlassian.com/repository/public</url>
> > >      <snapshots>
> > >       <enabled>true</enabled>
> > >       <updatePolicy>never</updatePolicy>
> > >       <checksumPolicy>warn</checksumPolicy>
> > >      </snapshots>
> > >      <releases>
> > >       <enabled>true</enabled>
> > >       <checksumPolicy>warn</checksumPolicy>
> > >      </releases>
> > >     </repository>
> > >     <repository>
> > >      <id>atlassian-plugin-sdk</id>
> > >      <url>file://${env.ATLAS_HOME}/repository</url>
> > >      <snapshots>
> > >       <enabled>true</enabled>
> > >      </snapshots>
> > >      <releases>
> > >       <enabled>true</enabled>
> > >       <checksumPolicy>warn</checksumPolicy>
> > >      </releases>
> > >     </repository>
> > >    </repositories>
> > >    <pluginRepositories>
> > >     <pluginRepository>
> > >      <id>atlassian-public</id>
> > >      <url>https://maven.atlassian.com/repository/public</url>
> > >      <snapshots>
> > >       <enabled>true</enabled>
> > >       <updatePolicy>never</updatePolicy>
> > >       <checksumPolicy>warn</checksumPolicy>
> > >      </snapshots>
> > >      <releases>
> > >       <enabled>true</enabled>
> > >       <checksumPolicy>warn</checksumPolicy>
> > >      </releases>
> > >     </pluginRepository>
> > >     <pluginRepository>
> > >      <id>atlassian-plugin-sdk</id>
> > >      <url>file://${env.ATLAS_HOME}/repository</url>
> > >      <snapshots>
> > >       <enabled>true</enabled>
> > >      </snapshots>
> > >      <releases>
> > >       <enabled>true</enabled>
> > >       <checksumPolicy>warn</checksumPolicy>
> > >      </releases>
> > >     </pluginRepository>
> > >    </pluginRepositories>
> > >   </profile>
> > >  </profiles>
> > >  <activeProfiles>
> > >   <activeProfile>default</activeProfile>
> > >   <activeProfile>atlassian-profile</activeProfile>
> > >  </activeProfiles>
> > > </settings>
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > -------
> > Sent from TARDIS. Typos might be a timey whyney thingy.
> > Enviado da TARDIS, podem existir erros devido à diferenças de
> espaço-tempo.
> >
> > Cintia Del Rio
> >
>
>
>
> --
> Adrien Rivard
>



-- 
-------
Sent from TARDIS. Typos might be a timey whyney thingy.
Enviado da TARDIS, podem existir erros devido à diferenças de espaço-tempo.

Cintia Del Rio

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