Git Product home page Git Product logo

maven-snapshots's Introduction

This repository keeps my Maven SNAPSHOT artifacts so that people can use:

      <pluginRepositories>
        <pluginRepository>
          <id>duns-maven-snapshots</id>
          <name>Duns' Maven Snapshots</name>
          <releases>
            <enabled>false</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
          <url>http://github.com/duns/maven-snapshots/raw/gh-pages</url>
        </pluginRepository>
      </pluginRepositories>

in their settings.xml or pom.xml

Below the steps to setup a Nexus server to proxy the nar plugin repository hosted over on github.

1) In Nexus, I created a new Proxy Repository, and chose an arbitrary ID and name for it. ("github-duns")
2) I made sure to select "Snapshot" as the repository policy.
3) The url I used as the remote storage location is:
http://github.com/duns/maven-snapshots/raw/gh-pages
4) I made sure to have the "download remote indexes" option set to False.
5) I set all the expiration settings to 2 minutes while I was playing around with things so any changes I made took effect quickly.
6) The other settings for the new repository I left as the defaults.
7) I have a repository group called "public" which is what all of the pom.xml files for my actual builds refer to, so I adjusted that group and added the newly created "github-duns" repository to the list.

Note the /raw/ instead /tree/ in the url. I had thought I used a similar url before, but it wasn't working initially. I then ended up playing around with it, doing things like adding "/org" on to the end, until I noticed that I could actually browse the remote files through Nexus. Once that started working, I stripped off the extra subdirectory paths, and I was able to browse things from the top directory.

I am now able to successfully use the nar plugin from machines within my firewall.

(thanks to Eric Hawicz for this procedure)

Mark Donszelmann

maven-snapshots's People

Contributors

duns avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.