Corporate repository

View: New views
9 Messages — Rating Filter:   Alert me  

Corporate repository

by Exposito Aguilera, Francisco :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Suppose I use the same computer for server and client, right now.

 

I've created a Hosted repository in Nexus, where the repository path is http://localhost:8081/nexus/content/repositories/ISS

 

 

Then I've used the embedded maven installation inside eclipse and defined the user settings like that:

 

<settings>

  <mirrors>

    <mirror>

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

        <url>http://localhost:8081/nexus/content/repositories/ISS/</url>

    </mirror>

  </mirrors>

  <profiles>

    <profile>

      <id>nexus</id>

      <repositories>

        <repository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </repository>

      </repositories>

     <pluginRepositories>

        <pluginRepository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </pluginRepository>

      </pluginRepositories>

    </profile>

  </profiles>

  <activeProfiles>

    <activeProfile>nexus</activeProfile>

  </activeProfiles>

</settings>

 

But when I try to use an artefact which is not in that repository, it is not downloaded from anywhere.

 

And if I add this URL to a group repository (where central repository is added), the artefact is downloaded from the central to the local repository, not to the ISS repository.

 

What I am doing wrong?

 

I've tried Archiva and in order to solve it I had to add a proxy connector to ISS repository. But I don't know how to do it in Nexus.

 

The other option is to use Archiva, but I like too much from Nexus that I can search in all remote repositories if I activate "Download Remote Indexes". And I haven't found this option in Archiva...

 

Thanks in advance.

 

 


De: anders.g.hammar@... [mailto:anders.g.hammar@...] En nombre de Anders Hammar
Enviado el: miércoles, 04 de noviembre de 2009 12:43
Para: nexus-user@...
Asunto: Re: [nexus-user] Configuring repositories with Maven, Eclipse and Nexus

 

To me, this sounds as a question for the m2eclipse mailing list. Post your question there and you'll address the m2eclipse community.

/Anders

On Wed, Nov 4, 2009 at 08:47, Exposito Aguilera, Francisco <francisco.exposito@...> wrote:

Hello,

 

I want to configure Maven, Eclipse and Nexus, but I am doing something wrong.

 

 

1) I have Eclipse 3.5

2) I've installed Maven 2.2.1 and configured a local repository in

settings.xml:

 

<localRepository>C:\Archivos de programa\Apache Software Foundation\iss-maven-repository</localRepository>

 

3) I´ve installed m2eclipse

4) I have installed Nexus Sonatype 1.4.0 and I've downloaded remote indexes from Nexus repositories.

 

Then I open eclipse and it begins to update indexes (maybe because of the embedded maven):

 

Updating index http://repo1.maven.org/maven2/ Downloading central : nexus-maven-repository-index.gz

 

When it finishes this upload (about 15 minutes), I add the maven installation in Window-->Preferences and I modify the C:\Documents and Settings\...\.m2\settings.xml like that:

 

<settings>

  <mirrors>

    <mirror>

      <!--This sends everything else to /public -->

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

      <url>http://localhost:8081/nexus/content/groups/public</url>

    </mirror>

  </mirrors>

  <profiles>

    <profile>

      <id>nexus</id>

      <!--Enable snapshots for the built in central repo to direct -->

      <!--all requests to nexus via the mirror -->

      <repositories>

        <repository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </repository>

      </repositories>

     <pluginRepositories>

        <pluginRepository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </pluginRepository>

      </pluginRepositories>

    </profile>

  </profiles>

  <activeProfiles>

    <!--make the profile active all the time -->

    <activeProfile>nexus</activeProfile>

  </activeProfiles>

</settings>

 

 

And I click on Reindex local repository. I receive the error:

 

3/11/09 17:09:45 CET: [WARN] Error scanning context: local Cannot delete C:\Workspaces\ISS_maven2\.metadata\.plugins\org.maven.ide.eclipse\nexus\loca

l\_4.cfs

3/11/09 17:09:45 CET: Unable to reindex local repository

 

Then I remove the http://repo1.maven.org/maven2 index from eclipse view "Maven Indexes", restart Eclipse and in "Maven Indexes" I update the local index properly.

 

But now, if I want to create a new maven project, nothing appears in Nexus Indexer. And if I create a project and convert it to maven and try to add a dependency, nothing appears.

 

Only appear dependencies and artifacts when I add the maven index http://repo1.maven.org/maven2.

 

Could you help me, please?

 

Thanks a lot.

 

 


Re: Corporate repository

by Brian Demers-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.


You should add your ISS repository to a group, and then use the group in the mirror sections.  By default nexus has a group called 'public' which includes a proxy repository to 'central'.  You can either put your 'ISS'  in public group or create a new one.  Only this group would need to go in your settings.xml file.

-Brian



On Nov 5, 2009, at 2:56 AM, Exposito Aguilera, Francisco wrote:

Suppose I use the same computer for server and client, right now.

 

I've created a Hosted repository in Nexus, where the repository path is http://localhost:8081/nexus/content/repositories/ISS

 

 

Then I've used the embedded maven installation inside eclipse and defined the user settings like that:

 

<settings>

  <mirrors>

    <mirror>

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

        <url>http://localhost:8081/nexus/content/repositories/ISS/</url>

    </mirror>

  </mirrors>

  <profiles>

    <profile>

      <id>nexus</id>

      <repositories>

        <repository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </repository>

      </repositories>

     <pluginRepositories>

        <pluginRepository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </pluginRepository>

      </pluginRepositories>

    </profile>

  </profiles>

  <activeProfiles>

    <activeProfile>nexus</activeProfile>

  </activeProfiles>

</settings>

 

But when I try to use an artefact which is not in that repository, it is not downloaded from anywhere.

 

And if I add this URL to a group repository (where central repository is added), the artefact is downloaded from the central to the local repository, not to the ISS repository.

 

What I am doing wrong?

 

I've tried Archiva and in order to solve it I had to add a proxy connector to ISS repository. But I don't know how to do it in Nexus.

 

The other option is to use Archiva, but I like too much from Nexus that I can search in all remote repositories if I activate "Download Remote Indexes". And I haven't found this option in Archiva...

 

Thanks in advance.

 

 


De: anders.g.hammar@... [mailto:anders.g.hammar@...] En nombre de Anders Hammar
Enviado el: miércoles, 04 de noviembre de 2009 12:43
Para: nexus-user@...
Asunto: Re: [nexus-user] Configuring repositories with Maven, Eclipse and Nexus

 

To me, this sounds as a question for the m2eclipse mailing list. Post your question there and you'll address the m2eclipse community.

/Anders

On Wed, Nov 4, 2009 at 08:47, Exposito Aguilera, Francisco <francisco.exposito@...> wrote:

Hello,

 

I want to configure Maven, Eclipse and Nexus, but I am doing something wrong.

 

 

1) I have Eclipse 3.5

2) I've installed Maven 2.2.1 and configured a local repository in

settings.xml:

 

<localRepository>C:\Archivos de programa\Apache Software Foundation\iss-maven-repository</localRepository>

 

3) I´ve installed m2eclipse

4) I have installed Nexus Sonatype 1.4.0 and I've downloaded remote indexes from Nexus repositories.

 

Then I open eclipse and it begins to update indexes (maybe because of the embedded maven):

 

Updating index http://repo1.maven.org/maven2/ Downloading central : nexus-maven-repository-index.gz

 

When it finishes this upload (about 15 minutes), I add the maven installation in Window-->Preferences and I modify the C:\Documents and Settings\...\.m2\settings.xml like that:

 

<settings>

  <mirrors>

    <mirror>

      <!--This sends everything else to /public -->

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

      <url>http://localhost:8081/nexus/content/groups/public</url>

    </mirror>

  </mirrors>

  <profiles>

    <profile>

      <id>nexus</id>

      <!--Enable snapshots for the built in central repo to direct -->

      <!--all requests to nexus via the mirror -->

      <repositories>

        <repository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </repository>

      </repositories>

     <pluginRepositories>

        <pluginRepository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </pluginRepository>

      </pluginRepositories>

    </profile>

  </profiles>

  <activeProfiles>

    <!--make the profile active all the time -->

    <activeProfile>nexus</activeProfile>

  </activeProfiles>

</settings>

 

 

And I click on Reindex local repository. I receive the error:

 

3/11/09 17:09:45 CET: [WARN] Error scanning context: local Cannot delete C:\Workspaces\ISS_maven2\.metadata\.plugins\org.maven.ide.eclipse\nexus\loca

l\_4.cfs

3/11/09 17:09:45 CET: Unable to reindex local repository

 

Then I remove the http://repo1.maven.org/maven2 index from eclipse view "Maven Indexes", restart Eclipse and in "Maven Indexes" I update the local index properly.

 

But now, if I want to create a new maven project, nothing appears in Nexus Indexer. And if I create a project and convert it to maven and try to add a dependency, nothing appears.

 

Only appear dependencies and artifacts when I add the maven index http://repo1.maven.org/maven2.

 

Could you help me, please?

 

Thanks a lot.

 

 



Parent Message unknown RE: Corporate repository

by Exposito Aguilera, Francisco :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I’ve added the ISS repository to Public Repository http://localhost:8081/nexus/content/groups/public/

 

Also I’ve modified my settings.xml to:

 

<settings>

  <mirrors>

    <mirror>

      <!--This sends everything else to /public -->

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

      <url>http://localhost:8081/nexus/content/groups/public/</url>             

    </mirror>

  </mirrors> 

</settings>

 

 

But if I download some artifacts, they are not downloaded to ISS repository. They are downloaded directly to local repository.

 

What I’m doing wrong?

 

 


De: Brian Demers [mailto:bdemers@...]
Enviado el: jueves, 05 de noviembre de 2009 14:54
Para: nexus-user@...
Asunto: Re: [nexus-user] Corporate repository

 

 

 

You should add your ISS repository to a group, and then use the group in the mirror sections.  By default nexus has a group called 'public' which includes a proxy repository to 'central'.  You can either put your 'ISS'  in public group or create a new one.  Only this group would need to go in your settings.xml file.

 

-Brian

 

 

 

On Nov 5, 2009, at 2:56 AM, Exposito Aguilera, Francisco wrote:



Suppose I use the same computer for server and client, right now.

 

I've created a Hosted repository in Nexus, where the repository path is http://localhost:8081/nexus/content/repositories/ISS

 

 

Then I've used the embedded maven installation inside eclipse and defined the user settings like that:

 

<settings>

  <mirrors>

    <mirror>

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

        <url>http://localhost:8081/nexus/content/repositories/ISS/</url>

    </mirror>

  </mirrors>

  <profiles>

    <profile>

      <id>nexus</id>

      <repositories>

        <repository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </repository>

      </repositories>

     <pluginRepositories>

        <pluginRepository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </pluginRepository>

      </pluginRepositories>

    </profile>

  </profiles>

  <activeProfiles>

    <activeProfile>nexus</activeProfile>

  </activeProfiles>

</settings>

 

But when I try to use an artefact which is not in that repository, it is not downloaded from anywhere.

 

And if I add this URL to a group repository (where central repository is added), the artefact is downloaded from the central to the local repository, not to the ISS repository.

 

What I am doing wrong?

 

I've tried Archiva and in order to solve it I had to add a proxy connector to ISS repository. But I don't know how to do it in Nexus.

 

The other option is to use Archiva, but I like too much from Nexus that I can search in all remote repositories if I activate "Download Remote Indexes". And I haven't found this option in Archiva...

 

Thanks in advance.

 

 


De: anders.g.hammar@... [mailto:anders.g.hammar@...] En nombre de Anders Hammar
Enviado el: miércoles, 04 de noviembre de 2009 12:43
Para: nexus-user@...
Asunto: Re: [nexus-user] Configuring repositories with Maven, Eclipse and Nexus

 

To me, this sounds as a question for the m2eclipse mailing list. Post your question there and you'll address the m2eclipse community.

/Anders

On Wed, Nov 4, 2009 at 08:47, Exposito Aguilera, Francisco <francisco.exposito@...> wrote:

Hello,

 

I want to configure Maven, Eclipse and Nexus, but I am doing something wrong.

 

 

1) I have Eclipse 3.5

2) I've installed Maven 2.2.1 and configured a local repository in

settings.xml:

 

<localRepository>C:\Archivos de programa\Apache Software Foundation\iss-maven-repository</localRepository>

 

3) I´ve installed m2eclipse

4) I have installed Nexus Sonatype 1.4.0 and I've downloaded remote indexes from Nexus repositories.

 

Then I open eclipse and it begins to update indexes (maybe because of the embedded maven):

 

Updating index http://repo1.maven.org/maven2/ Downloading central : nexus-maven-repository-index.gz

 

When it finishes this upload (about 15 minutes), I add the maven installation in Window-->Preferences and I modify the C:\Documents and Settings\...\.m2\settings.xml like that:

 

<settings>

  <mirrors>

    <mirror>

      <!--This sends everything else to /public -->

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

      <url>http://localhost:8081/nexus/content/groups/public</url>

    </mirror>

  </mirrors>

  <profiles>

    <profile>

      <id>nexus</id>

      <!--Enable snapshots for the built in central repo to direct -->

      <!--all requests to nexus via the mirror -->

      <repositories>

        <repository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </repository>

      </repositories>

     <pluginRepositories>

        <pluginRepository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </pluginRepository>

      </pluginRepositories>

    </profile>

  </profiles>

  <activeProfiles>

    <!--make the profile active all the time -->

    <activeProfile>nexus</activeProfile>

  </activeProfiles>

</settings>

 

 

And I click on Reindex local repository. I receive the error:

 

3/11/09 17:09:45 CET: [WARN] Error scanning context: local Cannot delete C:\Workspaces\ISS_maven2\.metadata\.plugins\org.maven.ide.eclipse\nexus\loca

l\_4.cfs

3/11/09 17:09:45 CET: Unable to reindex local repository

 

Then I remove the http://repo1.maven.org/maven2 index from eclipse view "Maven Indexes", restart Eclipse and in "Maven Indexes" I update the local index properly.

 

But now, if I want to create a new maven project, nothing appears in Nexus Indexer. And if I create a project and convert it to maven and try to add a dependency, nothing appears.

 

Only appear dependencies and artifacts when I add the maven index http://repo1.maven.org/maven2.

 

Could you help me, please?

 

Thanks a lot.

 

 

 


Re: Corporate repository

by Brian Demers-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I don't understand what your asking.  Can you explain what your ISS repository is? Is it a proxy repo or a hosted repo?  Are you downloading artifacts that are expected to be in the ISS repo?

-Brian


On Nov 5, 2009, at 10:20 AM, Exposito Aguilera, Francisco wrote:

I’ve added the ISS repository to Public Repository http://localhost:8081/nexus/content/groups/public/

 

Also I’ve modified my settings.xml to:

 

<settings>

  <mirrors>

    <mirror>

      <!--This sends everything else to /public -->

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

      <url>http://localhost:8081/nexus/content/groups/public/</url>             

    </mirror>

  </mirrors> 

</settings>

 

 

But if I download some artifacts, they are not downloaded to ISS repository. They are downloaded directly to local repository.

 

What I’m doing wrong?

 

 


De: Brian Demers [mailto:bdemers@...]
Enviado el: jueves, 05 de noviembre de 2009 14:54
Para: nexus-user@...
Asunto: Re: [nexus-user] Corporate repository

 

 

 

You should add your ISS repository to a group, and then use the group in the mirror sections.  By default nexus has a group called 'public' which includes a proxy repository to 'central'.  You can either put your 'ISS'  in public group or create a new one.  Only this group would need to go in your settings.xml file.

 

-Brian

 

 

 

On Nov 5, 2009, at 2:56 AM, Exposito Aguilera, Francisco wrote:



Suppose I use the same computer for server and client, right now.

 

I've created a Hosted repository in Nexus, where the repository path is http://localhost:8081/nexus/content/repositories/ISS

 

 

Then I've used the embedded maven installation inside eclipse and defined the user settings like that:

 

<settings>

  <mirrors>

    <mirror>

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

        <url>http://localhost:8081/nexus/content/repositories/ISS/</url>

    </mirror>

  </mirrors>

  <profiles>

    <profile>

      <id>nexus</id>

      <repositories>

        <repository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </repository>

      </repositories>

     <pluginRepositories>

        <pluginRepository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </pluginRepository>

      </pluginRepositories>

    </profile>

  </profiles>

  <activeProfiles>

    <activeProfile>nexus</activeProfile>

  </activeProfiles>

</settings>

 

But when I try to use an artefact which is not in that repository, it is not downloaded from anywhere.

 

And if I add this URL to a group repository (where central repository is added), the artefact is downloaded from the central to the local repository, not to the ISS repository.

 

What I am doing wrong?

 

I've tried Archiva and in order to solve it I had to add a proxy connector to ISS repository. But I don't know how to do it in Nexus.

 

The other option is to use Archiva, but I like too much from Nexus that I can search in all remote repositories if I activate "Download Remote Indexes". And I haven't found this option in Archiva...

 

Thanks in advance.

 

 


De: anders.g.hammar@... [mailto:anders.g.hammar@...] En nombre de Anders Hammar
Enviado el: miércoles, 04 de noviembre de 2009 12:43
Para: nexus-user@...
Asunto: Re: [nexus-user] Configuring repositories with Maven, Eclipse and Nexus

 

To me, this sounds as a question for the m2eclipse mailing list. Post your question there and you'll address the m2eclipse community.

/Anders

On Wed, Nov 4, 2009 at 08:47, Exposito Aguilera, Francisco <francisco.exposito@...> wrote:

Hello,

 

I want to configure Maven, Eclipse and Nexus, but I am doing something wrong.

 

 

1) I have Eclipse 3.5

2) I've installed Maven 2.2.1 and configured a local repository in

settings.xml:

 

<localRepository>C:\Archivos de programa\Apache Software Foundation\iss-maven-repository</localRepository>

 

3) I´ve installed m2eclipse

4) I have installed Nexus Sonatype 1.4.0 and I've downloaded remote indexes from Nexus repositories.

 

Then I open eclipse and it begins to update indexes (maybe because of the embedded maven):

 

Updating index http://repo1.maven.org/maven2/ Downloading central : nexus-maven-repository-index.gz

 

When it finishes this upload (about 15 minutes), I add the maven installation in Window-->Preferences and I modify the C:\Documents and Settings\...\.m2\settings.xml like that:

 

<settings>

  <mirrors>

    <mirror>

      <!--This sends everything else to /public -->

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

      <url>http://localhost:8081/nexus/content/groups/public</url>

    </mirror>

  </mirrors>

  <profiles>

    <profile>

      <id>nexus</id>

      <!--Enable snapshots for the built in central repo to direct -->

      <!--all requests to nexus via the mirror -->

      <repositories>

        <repository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </repository>

      </repositories>

     <pluginRepositories>

        <pluginRepository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </pluginRepository>

      </pluginRepositories>

    </profile>

  </profiles>

  <activeProfiles>

    <!--make the profile active all the time -->

    <activeProfile>nexus</activeProfile>

  </activeProfiles>

</settings>

 

 

And I click on Reindex local repository. I receive the error:

 

3/11/09 17:09:45 CET: [WARN] Error scanning context: local Cannot delete C:\Workspaces\ISS_maven2\.metadata\.plugins\org.maven.ide.eclipse\nexus\loca

l\_4.cfs

3/11/09 17:09:45 CET: Unable to reindex local repository

 

Then I remove the http://repo1.maven.org/maven2 index from eclipse view "Maven Indexes", restart Eclipse and in "Maven Indexes" I update the local index properly.

 

But now, if I want to create a new maven project, nothing appears in Nexus Indexer. And if I create a project and convert it to maven and try to add a dependency, nothing appears.

 

Only appear dependencies and artifacts when I add the maven index http://repo1.maven.org/maven2.

 

Could you help me, please?

 

Thanks a lot.

 

 

 



Parent Message unknown RE: Corporate repository

by Exposito Aguilera, Francisco :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

ISS Repository is a hosted repository created in Nexus. Then I’ve added it to the Public repository group.

 

The public repository group is made up of:

 

1)       ISS Repository (hosted)

2)       Maven central repository (proxy)

3)       Releases repository (proxy)

4)       Apache Snapshots repository (proxy)

 

 

Then, I download the artifacts which are not in the ISS repository (they are downloaded from Maven Central). And I want that these artifacts will be copied in ISS Repository and in my local repository.

 

I hope I’ve explained better than before.

 


De: Brian Demers [mailto:bdemers@...]
Enviado el: jueves, 05 de noviembre de 2009 17:16
Para: nexus-user@...
Asunto: Re: [nexus-user] Corporate repository

 

 

I don't understand what your asking.  Can you explain what your ISS repository is? Is it a proxy repo or a hosted repo?  Are you downloading artifacts that are expected to be in the ISS repo?

 

-Brian

 

 

On Nov 5, 2009, at 10:20 AM, Exposito Aguilera, Francisco wrote:



I’ve added the ISS repository to Public Repository http://localhost:8081/nexus/content/groups/public/

 

Also I’ve modified my settings.xml to:

 

<settings>

  <mirrors>

    <mirror>

      <!--This sends everything else to /public -->

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

      <url>http://localhost:8081/nexus/content/groups/public/</url>             

    </mirror>

  </mirrors> 

</settings>

 

 

But if I download some artifacts, they are not downloaded to ISS repository. They are downloaded directly to local repository.

 

What I’m doing wrong?

 

 


De: Brian Demers [mailto:bdemers@...]
Enviado el: jueves, 05 de noviembre de 2009 14:54
Para: nexus-user@...
Asunto: Re: [nexus-user] Corporate repository

 

 

 

You should add your ISS repository to a group, and then use the group in the mirror sections.  By default nexus has a group called 'public' which includes a proxy repository to 'central'.  You can either put your 'ISS'  in public group or create a new one.  Only this group would need to go in your settings.xml file.

 

-Brian

 

 

 

On Nov 5, 2009, at 2:56 AM, Exposito Aguilera, Francisco wrote:




Suppose I use the same computer for server and client, right now.

 

I've created a Hosted repository in Nexus, where the repository path is http://localhost:8081/nexus/content/repositories/ISS

 

 

Then I've used the embedded maven installation inside eclipse and defined the user settings like that:

 

<settings>

  <mirrors>

    <mirror>

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

        <url>http://localhost:8081/nexus/content/repositories/ISS/</url>

    </mirror>

  </mirrors>

  <profiles>

    <profile>

      <id>nexus</id>

      <repositories>

        <repository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </repository>

      </repositories>

     <pluginRepositories>

        <pluginRepository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </pluginRepository>

      </pluginRepositories>

    </profile>

  </profiles>

  <activeProfiles>

    <activeProfile>nexus</activeProfile>

  </activeProfiles>

</settings>

 

But when I try to use an artefact which is not in that repository, it is not downloaded from anywhere.

 

And if I add this URL to a group repository (where central repository is added), the artefact is downloaded from the central to the local repository, not to the ISS repository.

 

What I am doing wrong?

 

I've tried Archiva and in order to solve it I had to add a proxy connector to ISS repository. But I don't know how to do it in Nexus.

 

The other option is to use Archiva, but I like too much from Nexus that I can search in all remote repositories if I activate "Download Remote Indexes". And I haven't found this option in Archiva...

 

Thanks in advance.

 

 


De: anders.g.hammar@... [mailto:anders.g.hammar@...] En nombre de Anders Hammar
Enviado el: miércoles, 04 de noviembre de 2009 12:43
Para: nexus-user@...
Asunto: Re: [nexus-user] Configuring repositories with Maven, Eclipse and Nexus

 

To me, this sounds as a question for the m2eclipse mailing list. Post your question there and you'll address the m2eclipse community.

/Anders

On Wed, Nov 4, 2009 at 08:47, Exposito Aguilera, Francisco <francisco.exposito@...> wrote:

Hello,

 

I want to configure Maven, Eclipse and Nexus, but I am doing something wrong.

 

 

1) I have Eclipse 3.5

2) I've installed Maven 2.2.1 and configured a local repository in

settings.xml:

 

<localRepository>C:\Archivos de programa\Apache Software Foundation\iss-maven-repository</localRepository>

 

3) I´ve installed m2eclipse

4) I have installed Nexus Sonatype 1.4.0 and I've downloaded remote indexes from Nexus repositories.

 

Then I open eclipse and it begins to update indexes (maybe because of the embedded maven):

 

Updating index http://repo1.maven.org/maven2/ Downloading central : nexus-maven-repository-index.gz

 

When it finishes this upload (about 15 minutes), I add the maven installation in Window-->Preferences and I modify the C:\Documents and Settings\...\.m2\settings.xml like that:

 

<settings>

  <mirrors>

    <mirror>

      <!--This sends everything else to /public -->

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

      <url>http://localhost:8081/nexus/content/groups/public</url>

    </mirror>

  </mirrors>

  <profiles>

    <profile>

      <id>nexus</id>

      <!--Enable snapshots for the built in central repo to direct -->

      <!--all requests to nexus via the mirror -->

      <repositories>

        <repository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </repository>

      </repositories>

     <pluginRepositories>

        <pluginRepository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </pluginRepository>

      </pluginRepositories>

    </profile>

  </profiles>

  <activeProfiles>

    <!--make the profile active all the time -->

    <activeProfile>nexus</activeProfile>

  </activeProfiles>

</settings>

 

 

And I click on Reindex local repository. I receive the error:

 

3/11/09 17:09:45 CET: [WARN] Error scanning context: local Cannot delete C:\Workspaces\ISS_maven2\.metadata\.plugins\org.maven.ide.eclipse\nexus\loca

l\_4.cfs

3/11/09 17:09:45 CET: Unable to reindex local repository

 

Then I remove the http://repo1.maven.org/maven2 index from eclipse view "Maven Indexes", restart Eclipse and in "Maven Indexes" I update the local index properly.

 

But now, if I want to create a new maven project, nothing appears in Nexus Indexer. And if I create a project and convert it to maven and try to add a dependency, nothing appears.

 

Only appear dependencies and artifacts when I add the maven index http://repo1.maven.org/maven2.

 

Could you help me, please?

 

Thanks a lot.

 

 

 

 


Re: Corporate repository

by Brian Fox :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Nexus has clear separation between hosted and proxy repos. Hosted
repos are for serving files on disk locally, generally these are the
things you create from your builds. Proxies are intended for
downloading and caching artifacts from remote repositories. You
typically have multiple hosted and proxy repos and these are
aggregated by a group.

Archiva has a completely different concept where you can have a single
repository and pull artifacts from multiple sources but this makes it
difficult to manage when you munge everything together.

On Thu, Nov 5, 2009 at 8:28 AM, Exposito Aguilera, Francisco
<francisco.exposito@...> wrote:

> ISS Repository is a hosted repository created in Nexus. Then I’ve added it
> to the Public repository group.
>
>
>
> The public repository group is made up of:
>
>
>
> 1)       ISS Repository (hosted)
>
> 2)       Maven central repository (proxy)
>
> 3)       Releases repository (proxy)
>
> 4)       Apache Snapshots repository (proxy)
>
>
>
>
>
> Then, I download the artifacts which are not in the ISS repository (they are
> downloaded from Maven Central). And I want that these artifacts will be
> copied in ISS Repository and in my local repository.
>
>
>
> I hope I’ve explained better than before.
>
>
>
> ________________________________
>
> De: Brian Demers [mailto:bdemers@...]
> Enviado el: jueves, 05 de noviembre de 2009 17:16
> Para: nexus-user@...
> Asunto: Re: [nexus-user] Corporate repository
>
>
>
>
>
> I don't understand what your asking.  Can you explain what your ISS
> repository is? Is it a proxy repo or a hosted repo?  Are you downloading
> artifacts that are expected to be in the ISS repo?
>
>
>
> -Brian
>
>
>
>
>
> On Nov 5, 2009, at 10:20 AM, Exposito Aguilera, Francisco wrote:
>
> I’ve added the ISS repository to Public Repository
> http://localhost:8081/nexus/content/groups/public/
>
>
>
> Also I’ve modified my settings.xml to:
>
>
>
> <settings>
>
>   <mirrors>
>
>     <mirror>
>
>       <!--This sends everything else to /public -->
>
>       <id>nexus</id>
>
>       <mirrorOf>*</mirrorOf>
>
>
> <url>http://localhost:8081/nexus/content/groups/public/</url>
>
>     </mirror>
>
>   </mirrors>
>
> </settings>
>
>
>
>
>
> But if I download some artifacts, they are not downloaded to ISS repository.
> They are downloaded directly to local repository.
>
>
>
> What I’m doing wrong?
>
>
>
>
>
> ________________________________
>
> De: Brian Demers [mailto:bdemers@...]
> Enviado el: jueves, 05 de noviembre de 2009 14:54
> Para: nexus-user@...
> Asunto: Re: [nexus-user] Corporate repository
>
>
>
>
>
>
>
> You should add your ISS repository to a group, and then use the group in the
> mirror sections.  By default nexus has a group called 'public' which
> includes a proxy repository to 'central'.  You can either put your 'ISS'  in
> public group or create a new one.  Only this group would need to go in your
> settings.xml file.
>
>
>
> -Brian
>
>
>
>
>
>
>
> On Nov 5, 2009, at 2:56 AM, Exposito Aguilera, Francisco wrote:
>
>
> Suppose I use the same computer for server and client, right now.
>
>
>
> I've created a Hosted repository in Nexus, where the repository path is
> http://localhost:8081/nexus/content/repositories/ISS
>
>
>
>
>
> Then I've used the embedded maven installation inside eclipse and defined
> the user settings like that:
>
>
>
> <settings>
>
>   <mirrors>
>
>     <mirror>
>
>       <id>nexus</id>
>
>       <mirrorOf>*</mirrorOf>
>
>         <url>http://localhost:8081/nexus/content/repositories/ISS/</url>
>
>     </mirror>
>
>   </mirrors>
>
>   <profiles>
>
>     <profile>
>
>       <id>nexus</id>
>
>       <repositories>
>
>         <repository>
>
>           <id>central</id>
>
>           <url>http://central</url>
>
>           <releases><enabled>true</enabled></releases>
>
>           <snapshots><enabled>true</enabled></snapshots>
>
>         </repository>
>
>       </repositories>
>
>      <pluginRepositories>
>
>         <pluginRepository>
>
>           <id>central</id>
>
>           <url>http://central</url>
>
>           <releases><enabled>true</enabled></releases>
>
>           <snapshots><enabled>true</enabled></snapshots>
>
>         </pluginRepository>
>
>       </pluginRepositories>
>
>     </profile>
>
>   </profiles>
>
>   <activeProfiles>
>
>     <activeProfile>nexus</activeProfile>
>
>   </activeProfiles>
>
> </settings>
>
>
>
> But when I try to use an artefact which is not in that repository, it is not
> downloaded from anywhere.
>
>
>
> And if I add this URL to a group repository (where central repository is
> added), the artefact is downloaded from the central to the local repository,
> not to the ISS repository.
>
>
>
> What I am doing wrong?
>
>
>
> I've tried Archiva and in order to solve it I had to add a proxy connector
> to ISS repository. But I don't know how to do it in Nexus.
>
>
>
> The other option is to use Archiva, but I like too much from Nexus that I
> can search in all remote repositories if I activate "Download Remote
> Indexes". And I haven't found this option in Archiva...
>
>
>
> Thanks in advance.
>
>
>
>
>
> ________________________________
>
> De: anders.g.hammar@... [mailto:anders.g.hammar@...] En nombre
> de Anders Hammar
> Enviado el: miércoles, 04 de noviembre de 2009 12:43
> Para: nexus-user@...
> Asunto: Re: [nexus-user] Configuring repositories with Maven, Eclipse and
> Nexus
>
>
>
> To me, this sounds as a question for the m2eclipse mailing list. Post your
> question there and you'll address the m2eclipse community.
>
> /Anders
>
> On Wed, Nov 4, 2009 at 08:47, Exposito Aguilera, Francisco
> <francisco.exposito@...> wrote:
>
> Hello,
>
>
>
> I want to configure Maven, Eclipse and Nexus, but I am doing something
> wrong.
>
>
>
>
>
> 1) I have Eclipse 3.5
>
> 2) I've installed Maven 2.2.1 and configured a local repository in
>
> settings.xml:
>
>
>
> <localRepository>C:\Archivos de programa\Apache Software
> Foundation\iss-maven-repository</localRepository>
>
>
>
> 3) I´ve installed m2eclipse
>
> 4) I have installed Nexus Sonatype 1.4.0 and I've downloaded remote indexes
> from Nexus repositories.
>
>
>
> Then I open eclipse and it begins to update indexes (maybe because of the
> embedded maven):
>
>
>
> Updating index http://repo1.maven.org/maven2/ Downloading central :
> nexus-maven-repository-index.gz
>
>
>
> When it finishes this upload (about 15 minutes), I add the maven
> installation in Window-->Preferences and I modify the C:\Documents and
> Settings\...\.m2\settings.xml like that:
>
>
>
> <settings>
>
>   <mirrors>
>
>     <mirror>
>
>       <!--This sends everything else to /public -->
>
>       <id>nexus</id>
>
>       <mirrorOf>*</mirrorOf>
>
>       <url>http://localhost:8081/nexus/content/groups/public</url>
>
>     </mirror>
>
>   </mirrors>
>
>   <profiles>
>
>     <profile>
>
>       <id>nexus</id>
>
>       <!--Enable snapshots for the built in central repo to direct -->
>
>       <!--all requests to nexus via the mirror -->
>
>       <repositories>
>
>         <repository>
>
>           <id>central</id>
>
>           <url>http://central</url>
>
>           <releases><enabled>true</enabled></releases>
>
>           <snapshots><enabled>true</enabled></snapshots>
>
>         </repository>
>
>       </repositories>
>
>      <pluginRepositories>
>
>         <pluginRepository>
>
>           <id>central</id>
>
>           <url>http://central</url>
>
>           <releases><enabled>true</enabled></releases>
>
>           <snapshots><enabled>true</enabled></snapshots>
>
>         </pluginRepository>
>
>       </pluginRepositories>
>
>     </profile>
>
>   </profiles>
>
>   <activeProfiles>
>
>     <!--make the profile active all the time -->
>
>     <activeProfile>nexus</activeProfile>
>
>   </activeProfiles>
>
> </settings>
>
>
>
>
>
> And I click on Reindex local repository. I receive the error:
>
>
>
> 3/11/09 17:09:45 CET: [WARN] Error scanning context: local Cannot delete
> C:\Workspaces\ISS_maven2\.metadata\.plugins\org.maven.ide.eclipse\nexus\loca
>
> l\_4.cfs
>
> 3/11/09 17:09:45 CET: Unable to reindex local repository
>
>
>
> Then I remove the http://repo1.maven.org/maven2 index from eclipse view
> "Maven Indexes", restart Eclipse and in "Maven Indexes" I update the local
> index properly.
>
>
>
> But now, if I want to create a new maven project, nothing appears in Nexus
> Indexer. And if I create a project and convert it to maven and try to add a
> dependency, nothing appears.
>
>
>
> Only appear dependencies and artifacts when I add the maven index
> http://repo1.maven.org/maven2.
>
>
>
> Could you help me, please?
>
>
>
> Thanks a lot.
>
>
>
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: nexus-user-unsubscribe@...
For additional commands, e-mail: nexus-user-help@...


Re: Corporate repository

by Brian Demers-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I think i get it now.

Artifacts from other repositories will not be copied into your ISS repository.  The artifacts that are deployed to ISS will be there.

If you browse your central proxy repo you will see the artifacts there.  We specifically isolate the repositories (and provide a way to aggregate them with groups)

In a basic setup you would have two repositories (releases and snapshots) for in house development, and any proxy repositories included in a group.

Your developers settings.xml files only point to the group and nexus handles everything else.


Why do you want your central artifacts to go into your hosted ISS repository?

-Brian
 


On Nov 5, 2009, at 11:28 AM, Exposito Aguilera, Francisco wrote:

ISS Repository is a hosted repository created in Nexus. Then I’ve added it to the Public repository group.

 

The public repository group is made up of:

 

1)       ISS Repository (hosted)

2)       Maven central repository (proxy)

3)       Releases repository (proxy)

4)       Apache Snapshots repository (proxy)

 

 

Then, I download the artifacts which are not in the ISS repository (they are downloaded from Maven Central). And I want that these artifacts will be copied in ISS Repository and in my local repository.

 

I hope I’ve explained better than before.

 


De: Brian Demers [mailto:bdemers@...]
Enviado el: jueves, 05 de noviembre de 2009 17:16
Para: nexus-user@...
Asunto: Re: [nexus-user] Corporate repository

 

 

I don't understand what your asking.  Can you explain what your ISS repository is? Is it a proxy repo or a hosted repo?  Are you downloading artifacts that are expected to be in the ISS repo?

 

-Brian

 

 

On Nov 5, 2009, at 10:20 AM, Exposito Aguilera, Francisco wrote:



I’ve added the ISS repository to Public Repository http://localhost:8081/nexus/content/groups/public/

 

Also I’ve modified my settings.xml to:

 

<settings>

  <mirrors>

    <mirror>

      <!--This sends everything else to /public -->

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

      <url>http://localhost:8081/nexus/content/groups/public/</url>             

    </mirror>

  </mirrors> 

</settings>

 

 

But if I download some artifacts, they are not downloaded to ISS repository. They are downloaded directly to local repository.

 

What I’m doing wrong?

 

 


De: Brian Demers [mailto:bdemers@...]
Enviado el: jueves, 05 de noviembre de 2009 14:54
Para: nexus-user@...
Asunto: Re: [nexus-user] Corporate repository

 

 

 

You should add your ISS repository to a group, and then use the group in the mirror sections.  By default nexus has a group called 'public' which includes a proxy repository to 'central'.  You can either put your 'ISS'  in public group or create a new one.  Only this group would need to go in your settings.xml file.

 

-Brian

 

 

 

On Nov 5, 2009, at 2:56 AM, Exposito Aguilera, Francisco wrote:




Suppose I use the same computer for server and client, right now.

 

I've created a Hosted repository in Nexus, where the repository path is http://localhost:8081/nexus/content/repositories/ISS

 

 

Then I've used the embedded maven installation inside eclipse and defined the user settings like that:

 

<settings>

  <mirrors>

    <mirror>

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

        <url>http://localhost:8081/nexus/content/repositories/ISS/</url>

    </mirror>

  </mirrors>

  <profiles>

    <profile>

      <id>nexus</id>

      <repositories>

        <repository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </repository>

      </repositories>

     <pluginRepositories>

        <pluginRepository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </pluginRepository>

      </pluginRepositories>

    </profile>

  </profiles>

  <activeProfiles>

    <activeProfile>nexus</activeProfile>

  </activeProfiles>

</settings>

 

But when I try to use an artefact which is not in that repository, it is not downloaded from anywhere.

 

And if I add this URL to a group repository (where central repository is added), the artefact is downloaded from the central to the local repository, not to the ISS repository.

 

What I am doing wrong?

 

I've tried Archiva and in order to solve it I had to add a proxy connector to ISS repository. But I don't know how to do it in Nexus.

 

The other option is to use Archiva, but I like too much from Nexus that I can search in all remote repositories if I activate "Download Remote Indexes". And I haven't found this option in Archiva...

 

Thanks in advance.

 

 


De: anders.g.hammar@... [mailto:anders.g.hammar@...] En nombre de Anders Hammar
Enviado el: miércoles, 04 de noviembre de 2009 12:43
Para: nexus-user@...
Asunto: Re: [nexus-user] Configuring repositories with Maven, Eclipse and Nexus

 

To me, this sounds as a question for the m2eclipse mailing list. Post your question there and you'll address the m2eclipse community.

/Anders

On Wed, Nov 4, 2009 at 08:47, Exposito Aguilera, Francisco <francisco.exposito@...> wrote:

Hello,

 

I want to configure Maven, Eclipse and Nexus, but I am doing something wrong.

 

 

1) I have Eclipse 3.5

2) I've installed Maven 2.2.1 and configured a local repository in

settings.xml:

 

<localRepository>C:\Archivos de programa\Apache Software Foundation\iss-maven-repository</localRepository>

 

3) I´ve installed m2eclipse

4) I have installed Nexus Sonatype 1.4.0 and I've downloaded remote indexes from Nexus repositories.

 

Then I open eclipse and it begins to update indexes (maybe because of the embedded maven):

 

Updating index http://repo1.maven.org/maven2/ Downloading central : nexus-maven-repository-index.gz

 

When it finishes this upload (about 15 minutes), I add the maven installation in Window-->Preferences and I modify the C:\Documents and Settings\...\.m2\settings.xml like that:

 

<settings>

  <mirrors>

    <mirror>

      <!--This sends everything else to /public -->

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

      <url>http://localhost:8081/nexus/content/groups/public</url>

    </mirror>

  </mirrors>

  <profiles>

    <profile>

      <id>nexus</id>

      <!--Enable snapshots for the built in central repo to direct -->

      <!--all requests to nexus via the mirror -->

      <repositories>

        <repository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </repository>

      </repositories>

     <pluginRepositories>

        <pluginRepository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </pluginRepository>

      </pluginRepositories>

    </profile>

  </profiles>

  <activeProfiles>

    <!--make the profile active all the time -->

    <activeProfile>nexus</activeProfile>

  </activeProfiles>

</settings>

 

 

And I click on Reindex local repository. I receive the error:

 

3/11/09 17:09:45 CET: [WARN] Error scanning context: local Cannot delete C:\Workspaces\ISS_maven2\.metadata\.plugins\org.maven.ide.eclipse\nexus\loca

l\_4.cfs

3/11/09 17:09:45 CET: Unable to reindex local repository

 

Then I remove the http://repo1.maven.org/maven2 index from eclipse view "Maven Indexes", restart Eclipse and in "Maven Indexes" I update the local index properly.

 

But now, if I want to create a new maven project, nothing appears in Nexus Indexer. And if I create a project and convert it to maven and try to add a dependency, nothing appears.

 

Only appear dependencies and artifacts when I add the maven index http://repo1.maven.org/maven2.

 

Could you help me, please?

 

Thanks a lot.

 

 

 

 



Parent Message unknown RE: Corporate repository

by Exposito Aguilera, Francisco :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

My idea was the next one (and as all of you say, I was wrong J):

 

All the developers have local and corporate repository added to eclipse in Maven Indexes.

In settings.xml only the corporate is configured (but with a proxy to remote repositories)

 

 

Then the process would be:

 

If I search an artefact and it is not in the local environment, then it is searched in the corporate repository. If it is not there, then goes to the remote repository and it is downloaded to the local and corporate repository.

Then, if any other developer try to download the same artefact, it is not necessary to go to the remote repository. It would go to the corporate only.

 

That was my idea.

 

Then, what do you think it should be the best approach using Nexus? Could the next be a good one?

 

To have in Maven Indexes the corporate repository and the maven central repository.

Configure in settings a group which contains corporate, central and some other repositories.

 

Or it is not a good idea to have the central one in the maven Indexes in Eclipse?

 

Thanks

 

Regards,

Paco

 


De: Brian Demers [mailto:bdemers@...]
Enviado el: jueves, 05 de noviembre de 2009 18:24
Para: nexus-user@...
Asunto: Re: [nexus-user] Corporate repository

 

 

I think i get it now.

 

Artifacts from other repositories will not be copied into your ISS repository.  The artifacts that are deployed to ISS will be there.

 

If you browse your central proxy repo you will see the artifacts there.  We specifically isolate the repositories (and provide a way to aggregate them with groups)

 

In a basic setup you would have two repositories (releases and snapshots) for in house development, and any proxy repositories included in a group.

 

Your developers settings.xml files only point to the group and nexus handles everything else.

 

 

Why do you want your central artifacts to go into your hosted ISS repository?

 

-Brian

 

 

 

On Nov 5, 2009, at 11:28 AM, Exposito Aguilera, Francisco wrote:



ISS Repository is a hosted repository created in Nexus. Then I’ve added it to the Public repository group.

 

The public repository group is made up of:

 

1)      ISS Repository (hosted)

2)      Maven central repository (proxy)

3)      Releases repository (proxy)

4)      Apache Snapshots repository (proxy)

 

 

Then, I download the artifacts which are not in the ISS repository (they are downloaded from Maven Central). And I want that these artifacts will be copied in ISS Repository and in my local repository.

 

I hope I’ve explained better than before.

 


De: Brian Demers [mailto:bdemers@...]
Enviado el: jueves, 05 de noviembre de 2009 17:16
Para: nexus-user@...
Asunto: Re: [nexus-user] Corporate repository

 

 

I don't understand what your asking.  Can you explain what your ISS repository is? Is it a proxy repo or a hosted repo?  Are you downloading artifacts that are expected to be in the ISS repo?

 

-Brian

 

 

On Nov 5, 2009, at 10:20 AM, Exposito Aguilera, Francisco wrote:




I’ve added the ISS repository to Public Repository http://localhost:8081/nexus/content/groups/public/

 

Also I’ve modified my settings.xml to:

 

<settings>

  <mirrors>

    <mirror>

      <!--This sends everything else to /public -->

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

      <url>http://localhost:8081/nexus/content/groups/public/</url>             

    </mirror>

  </mirrors> 

</settings>

 

 

But if I download some artifacts, they are not downloaded to ISS repository. They are downloaded directly to local repository.

 

What I’m doing wrong?

 

 


De: Brian Demers [mailto:bdemers@...]
Enviado el: jueves, 05 de noviembre de 2009 14:54
Para: nexus-user@...
Asunto: Re: [nexus-user] Corporate repository

 

 

 

You should add your ISS repository to a group, and then use the group in the mirror sections.  By default nexus has a group called 'public' which includes a proxy repository to 'central'.  You can either put your 'ISS'  in public group or create a new one.  Only this group would need to go in your settings.xml file.

 

-Brian

 

 

 

On Nov 5, 2009, at 2:56 AM, Exposito Aguilera, Francisco wrote:





Suppose I use the same computer for server and client, right now.

 

I've created a Hosted repository in Nexus, where the repository path is http://localhost:8081/nexus/content/repositories/ISS

 

 

Then I've used the embedded maven installation inside eclipse and defined the user settings like that:

 

<settings>

  <mirrors>

    <mirror>

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

        <url>http://localhost:8081/nexus/content/repositories/ISS/</url>

    </mirror>

  </mirrors>

  <profiles>

    <profile>

      <id>nexus</id>

      <repositories>

        <repository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </repository>

      </repositories>

     <pluginRepositories>

        <pluginRepository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </pluginRepository>

      </pluginRepositories>

    </profile>

  </profiles>

  <activeProfiles>

    <activeProfile>nexus</activeProfile>

  </activeProfiles>

</settings>

 

But when I try to use an artefact which is not in that repository, it is not downloaded from anywhere.

 

And if I add this URL to a group repository (where central repository is added), the artefact is downloaded from the central to the local repository, not to the ISS repository.

 

What I am doing wrong?

 

I've tried Archiva and in order to solve it I had to add a proxy connector to ISS repository. But I don't know how to do it in Nexus.

 

The other option is to use Archiva, but I like too much from Nexus that I can search in all remote repositories if I activate "Download Remote Indexes". And I haven't found this option in Archiva...

 

Thanks in advance.

 

 


De: anders.g.hammar@... [mailto:anders.g.hammar@...] En nombre de Anders Hammar
Enviado el: miércoles, 04 de noviembre de 2009 12:43
Para: nexus-user@...
Asunto: Re: [nexus-user] Configuring repositories with Maven, Eclipse and Nexus

 

To me, this sounds as a question for the m2eclipse mailing list. Post your question there and you'll address the m2eclipse community.

/Anders

On Wed, Nov 4, 2009 at 08:47, Exposito Aguilera, Francisco <francisco.exposito@...> wrote:

Hello,

 

I want to configure Maven, Eclipse and Nexus, but I am doing something wrong.

 

 

1) I have Eclipse 3.5

2) I've installed Maven 2.2.1 and configured a local repository in

settings.xml:

 

<localRepository>C:\Archivos de programa\Apache Software Foundation\iss-maven-repository</localRepository>

 

3) I´ve installed m2eclipse

4) I have installed Nexus Sonatype 1.4.0 and I've downloaded remote indexes from Nexus repositories.

 

Then I open eclipse and it begins to update indexes (maybe because of the embedded maven):

 

Updating index http://repo1.maven.org/maven2/ Downloading central : nexus-maven-repository-index.gz

 

When it finishes this upload (about 15 minutes), I add the maven installation in Window-->Preferences and I modify the C:\Documents and Settings\...\.m2\settings.xml like that:

 

<settings>

  <mirrors>

    <mirror>

      <!--This sends everything else to /public -->

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

      <url>http://localhost:8081/nexus/content/groups/public</url>

    </mirror>

  </mirrors>

  <profiles>

    <profile>

      <id>nexus</id>

      <!--Enable snapshots for the built in central repo to direct -->

      <!--all requests to nexus via the mirror -->

      <repositories>

        <repository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </repository>

      </repositories>

     <pluginRepositories>

        <pluginRepository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </pluginRepository>

      </pluginRepositories>

    </profile>

  </profiles>

  <activeProfiles>

    <!--make the profile active all the time -->

    <activeProfile>nexus</activeProfile>

  </activeProfiles>

</settings>

 

 

And I click on Reindex local repository. I receive the error:

 

3/11/09 17:09:45 CET: [WARN] Error scanning context: local Cannot delete C:\Workspaces\ISS_maven2\.metadata\.plugins\org.maven.ide.eclipse\nexus\loca

l\_4.cfs

3/11/09 17:09:45 CET: Unable to reindex local repository

 

Then I remove the http://repo1.maven.org/maven2 index from eclipse view "Maven Indexes", restart Eclipse and in "Maven Indexes" I update the local index properly.

 

But now, if I want to create a new maven project, nothing appears in Nexus Indexer. And if I create a project and convert it to maven and try to add a dependency, nothing appears.

 

Only appear dependencies and artifacts when I add the maven index http://repo1.maven.org/maven2.

 

Could you help me, please?

 

Thanks a lot.

 

 

 

 

 


Re: Corporate repository

by Brian Demers-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Just make sure you have your corporate repository first in your group.  Use the group index in eclipse (not both).
Then your settings.xml and your eclipse instances only need to worry about one repository.


On Nov 6, 2009, at 2:12 AM, Exposito Aguilera, Francisco wrote:

My idea was the next one (and as all of you say, I was wrong J):

 

All the developers have local and corporate repository added to eclipse in Maven Indexes.

In settings.xml only the corporate is configured (but with a proxy to remote repositories)

 

 

Then the process would be:

 

If I search an artefact and it is not in the local environment, then it is searched in the corporate repository. If it is not there, then goes to the remote repository and it is downloaded to the local and corporate repository.

Then, if any other developer try to download the same artefact, it is not necessary to go to the remote repository. It would go to the corporate only.

 

That was my idea.

 

Then, what do you think it should be the best approach using Nexus? Could the next be a good one?

 

To have in Maven Indexes the corporate repository and the maven central repository.

Configure in settings a group which contains corporate, central and some other repositories.

 

Or it is not a good idea to have the central one in the maven Indexes in Eclipse?

 

Thanks

 

Regards,

Paco

 


De: Brian Demers [mailto:bdemers@...]
Enviado el: jueves, 05 de noviembre de 2009 18:24
Para: nexus-user@...
Asunto: Re: [nexus-user] Corporate repository

 

 

I think i get it now.

 

Artifacts from other repositories will not be copied into your ISS repository.  The artifacts that are deployed to ISS will be there.

 

If you browse your central proxy repo you will see the artifacts there.  We specifically isolate the repositories (and provide a way to aggregate them with groups)

 

In a basic setup you would have two repositories (releases and snapshots) for in house development, and any proxy repositories included in a group.

 

Your developers settings.xml files only point to the group and nexus handles everything else.

 

 

Why do you want your central artifacts to go into your hosted ISS repository?

 

-Brian

 

 

 

On Nov 5, 2009, at 11:28 AM, Exposito Aguilera, Francisco wrote:



ISS Repository is a hosted repository created in Nexus. Then I’ve added it to the Public repository group.

 

The public repository group is made up of:

 

1)      ISS Repository (hosted)

2)      Maven central repository (proxy)

3)      Releases repository (proxy)

4)      Apache Snapshots repository (proxy)

 

 

Then, I download the artifacts which are not in the ISS repository (they are downloaded from Maven Central). And I want that these artifacts will be copied in ISS Repository and in my local repository.

 

I hope I’ve explained better than before.

 


De: Brian Demers [mailto:bdemers@...]
Enviado el: jueves, 05 de noviembre de 2009 17:16
Para: nexus-user@...
Asunto: Re: [nexus-user] Corporate repository

 

 

I don't understand what your asking.  Can you explain what your ISS repository is? Is it a proxy repo or a hosted repo?  Are you downloading artifacts that are expected to be in the ISS repo?

 

-Brian

 

 

On Nov 5, 2009, at 10:20 AM, Exposito Aguilera, Francisco wrote:




I’ve added the ISS repository to Public Repository http://localhost:8081/nexus/content/groups/public/

 

Also I’ve modified my settings.xml to:

 

<settings>

  <mirrors>

    <mirror>

      <!--This sends everything else to /public -->

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

      <url>http://localhost:8081/nexus/content/groups/public/</url>             

    </mirror>

  </mirrors> 

</settings>

 

 

But if I download some artifacts, they are not downloaded to ISS repository. They are downloaded directly to local repository.

 

What I’m doing wrong?

 

 


De: Brian Demers [mailto:bdemers@...]
Enviado el: jueves, 05 de noviembre de 2009 14:54
Para: nexus-user@...
Asunto: Re: [nexus-user] Corporate repository

 

 

 

You should add your ISS repository to a group, and then use the group in the mirror sections.  By default nexus has a group called 'public' which includes a proxy repository to 'central'.  You can either put your 'ISS'  in public group or create a new one.  Only this group would need to go in your settings.xml file.

 

-Brian

 

 

 

On Nov 5, 2009, at 2:56 AM, Exposito Aguilera, Francisco wrote:





Suppose I use the same computer for server and client, right now.

 

I've created a Hosted repository in Nexus, where the repository path is http://localhost:8081/nexus/content/repositories/ISS

 

 

Then I've used the embedded maven installation inside eclipse and defined the user settings like that:

 

<settings>

  <mirrors>

    <mirror>

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

        <url>http://localhost:8081/nexus/content/repositories/ISS/</url>

    </mirror>

  </mirrors>

  <profiles>

    <profile>

      <id>nexus</id>

      <repositories>

        <repository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </repository>

      </repositories>

     <pluginRepositories>

        <pluginRepository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </pluginRepository>

      </pluginRepositories>

    </profile>

  </profiles>

  <activeProfiles>

    <activeProfile>nexus</activeProfile>

  </activeProfiles>

</settings>

 

But when I try to use an artefact which is not in that repository, it is not downloaded from anywhere.

 

And if I add this URL to a group repository (where central repository is added), the artefact is downloaded from the central to the local repository, not to the ISS repository.

 

What I am doing wrong?

 

I've tried Archiva and in order to solve it I had to add a proxy connector to ISS repository. But I don't know how to do it in Nexus.

 

The other option is to use Archiva, but I like too much from Nexus that I can search in all remote repositories if I activate "Download Remote Indexes". And I haven't found this option in Archiva...

 

Thanks in advance.

 

 


De: anders.g.hammar@... [mailto:anders.g.hammar@...] En nombre de Anders Hammar
Enviado el: miércoles, 04 de noviembre de 2009 12:43
Para: nexus-user@...
Asunto: Re: [nexus-user] Configuring repositories with Maven, Eclipse and Nexus

 

To me, this sounds as a question for the m2eclipse mailing list. Post your question there and you'll address the m2eclipse community.

/Anders

On Wed, Nov 4, 2009 at 08:47, Exposito Aguilera, Francisco <francisco.exposito@...> wrote:

Hello,

 

I want to configure Maven, Eclipse and Nexus, but I am doing something wrong.

 

 

1) I have Eclipse 3.5

2) I've installed Maven 2.2.1 and configured a local repository in

settings.xml:

 

<localRepository>C:\Archivos de programa\Apache Software Foundation\iss-maven-repository</localRepository>

 

3) I´ve installed m2eclipse

4) I have installed Nexus Sonatype 1.4.0 and I've downloaded remote indexes from Nexus repositories.

 

Then I open eclipse and it begins to update indexes (maybe because of the embedded maven):

 

Updating index http://repo1.maven.org/maven2/ Downloading central : nexus-maven-repository-index.gz

 

When it finishes this upload (about 15 minutes), I add the maven installation in Window-->Preferences and I modify the C:\Documents and Settings\...\.m2\settings.xml like that:

 

<settings>

  <mirrors>

    <mirror>

      <!--This sends everything else to /public -->

      <id>nexus</id>

      <mirrorOf>*</mirrorOf>

      <url>http://localhost:8081/nexus/content/groups/public</url>

    </mirror>

  </mirrors>

  <profiles>

    <profile>

      <id>nexus</id>

      <!--Enable snapshots for the built in central repo to direct -->

      <!--all requests to nexus via the mirror -->

      <repositories>

        <repository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </repository>

      </repositories>

     <pluginRepositories>

        <pluginRepository>

          <id>central</id>

          <url>http://central</url>

          <releases><enabled>true</enabled></releases>

          <snapshots><enabled>true</enabled></snapshots>

        </pluginRepository>

      </pluginRepositories>

    </profile>

  </profiles>

  <activeProfiles>

    <!--make the profile active all the time -->

    <activeProfile>nexus</activeProfile>

  </activeProfiles>

</settings>

 

 

And I click on Reindex local repository. I receive the error:

 

3/11/09 17:09:45 CET: [WARN] Error scanning context: local Cannot delete C:\Workspaces\ISS_maven2\.metadata\.plugins\org.maven.ide.eclipse\nexus\loca

l\_4.cfs

3/11/09 17:09:45 CET: Unable to reindex local repository

 

Then I remove the http://repo1.maven.org/maven2 index from eclipse view "Maven Indexes", restart Eclipse and in "Maven Indexes" I update the local index properly.

 

But now, if I want to create a new maven project, nothing appears in Nexus Indexer. And if I create a project and convert it to maven and try to add a dependency, nothing appears.

 

Only appear dependencies and artifacts when I add the maven index http://repo1.maven.org/maven2.

 

Could you help me, please?

 

Thanks a lot.