Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compare maven settings of Jenkins (christian vs fabric8) #21

Open
cmoulliard opened this issue Jun 3, 2015 · 2 comments
Open

Compare maven settings of Jenkins (christian vs fabric8) #21

cmoulliard opened this issue Jun 3, 2015 · 2 comments

Comments

@cmoulliard
Copy link
Collaborator

Christian

...
        <server>
            <id>nexus.internal.repo</id>
            <username>admin</username>
            <password>admin123</password>
        </server>
        <server>
            <id>fabric8.upload.repo</id>
            <username>__FABRIC8_REPO_USERNAME__</username>
            <password>__FABRIC8_REPO_PASSWORD__</password>
        </server>
    </servers>

...
<profile>
            <id>nexus</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <repositories>
                <repository>
                    <id>nexus-repo</id>
                    <name>Internal Nexus</name>
                    <url>http://__NEXUS_IP__:__NEXUS_PORT__/nexus/content/groups/public/</url>
                    <layout>default</layout>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <id>nexus-repo</id>
                    <url>http://__NEXUS_IP__:__NEXUS_PORT__/nexus/content/groups/public/</url>
                    <releases><enabled>true</enabled></releases>
                    <snapshots><enabled>true</enabled></snapshots>
                </pluginRepository>
            </pluginRepositories>
        </profile>
...

Fabric8

<settings>
  <!--This sends everything else to /public -->
  <mirrors>
    <mirror>
      <id>nexus</id>
      <mirrorOf>external:*</mirrorOf>
      <url>http://${env.NEXUS_SERVICE_HOST}:${env.NEXUS_SERVICE_PORT}/content/groups/public</url>
    </mirror>
  </mirrors>

  <!-- lets disable the download progress indicator that fills up logs -->
  <interactiveMode>false</interactiveMode>

<servers>
  <server>
    <id>local-nexus</id>
    <username>${env.NEXUS_USERNAME}</username>
    <password>${env.NEXUS_PASSWORD}</password>
  </server>
  <server>
    <id>nexus</id>
    <username>${env.NEXUS_USERNAME}</username>
    <password>${env.NEXUS_PASSWORD}</password>
  </server>
  <server>
    <id>docker-registry</id>
    <username>${env.DOCKER_REGISTRY_USERNAME}</username>
    <password>${env.DOCKER_REGISTRY_PASSWORD}</password>
  </server>
</servers>


  <profiles>
    <profile>
      <id>nexus</id>
      <properties>
        <altDeploymentRepository>local-nexus::default::http://${env.NEXUS_SERVICE_HOST}:${env.NEXUS_SERVICE_PORT}/content/repositories/staging/</altDeploymentRepository>
        <altReleaseDeploymentRepository>local-nexus::default::http://${env.NEXUS_SERVICE_HOST}:${env.NEXUS_SERVICE_PORT}/content/repositories/staging/</altReleaseDeploymentRepository>
        <altSnapshotDeploymentRepository>local-nexus::default::http://${env.NEXUS_SERVICE_HOST}:${env.NEXUS_SERVICE_PORT}/content/repositories/snapshots/</altSnapshotDeploymentRepository>

      </properties>

      <!--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>
@cmoulliard cmoulliard changed the title Compare maven settings(christian vs fabric8) Compare maven settings of Jenkins (christian vs fabric8) Jun 3, 2015
@christian-posta
Copy link
Owner

Yah, we can take a look. out of the box, the settings.xml point to the nexus repo, so that's good. some of the other stuff i had was for fabric8 v1 stuff... will evaluate this

@cmoulliard
Copy link
Collaborator Author

@christian-posta : So we can use the file of fabric8/jenkins ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants