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, the artefact is downloaded 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.

-----Mensaje original-----
De: Exposito Aguilera, Francisco 
Enviado el: miércoles, 04 de noviembre de 2009 14:36
Para: 'Maven Users List'
Asunto: RE: Maven Configuration in Eclipse

How can I create the corporate repository? 

Is it a new web project in Tomcat? How must I define it?


-----Mensaje original-----
De: news [mailto:[email protected]] En nombre de Jörg Schaible
Enviado el: miércoles, 04 de noviembre de 2009 13:03
Para: [email protected]
Asunto: RE: Maven Configuration in Eclipse

Hi,

fist you have to understand that you cannot really share the settings.xml.
All you can do is, that you provide a template that can be copied by the
users and should be stored in the default location "<userhome>/.m2/".

Exposito Aguilera, Francisco wrote at Mittwoch, 4. November 2009 12:30:

> I'm a little bit lost (and new in Maven)... Maybe I explain what I finally
> want...
> 
> 1) Linux server:
> 
> - Apache Maven
> - Nexus
> - A new corporate repository in order to have the jars we use in all
> projects.
> 
> 2) Windows
> - Eclipse with m2eclipse
> 
> 
> Functionality:
> 
> 1) All eclipse developers needs to access only to corporate repository.

This can be achieved by the mirror configuration in the settings.xml as
already pointed out with your Nexus installation as replacement for
central.

> 2) If they add in the pom a dependency which is not in the corporate
> repository, then Nexus must copy it to the corporate repository and then
> the user will have access to it.

With the local settings above, it will work this way.
 
> Is it possible? If it is... could you explain the steps to do it (more or
> less)
> 
> Also I don't know if my idea of this corporate repository is the same as
> the local repository

No. The corporate repo is managed by Nexus only.

> or if there is a local repository for every 
> developer...

Yes, and it cannot be shared. A user should be able to delete his local repo
at any time and get anything again from Nexus again.

> I am open to other ideas.

Cheers,
Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to