This is the official git repository for the Artificer project. Artificer is an metadata and software artifact repository comprised of a common data model, multiple interfaces, powerful tools, and exensibility. It implements the OASIS S-RAMP specification which defines the data model, query language, and an Atom REST binding. In addition to implementing the spec, Artificer provides a suite of powerful, flexible, and extensible capabilities. Artificer is 100% open source -- contributions are welcome!
The easiest way to get started with the code is to create your own fork of this repository, then clone it locally:
$ git clone https://github.com/<you>/artificer.git
$ cd artificer
$ git remote add upstream https://github.com/ArtificerRepo/artificer.git
At any time, you can pull changes from upstream and merge them onto your master:
$ git checkout master # switches to the 'master' branch
$ git pull upstream master # fetches all 'upstream' changes and merges 'upstream/master' onto your 'master' branch
$ git push origin # pushes all the updates to your fork, which should be in-sync with 'upstream'
The general idea is to keep your 'master' branch in-sync with the 'upstream/master'.
We use Maven 3.x to build our software. The following command compiles all the code, installs the JARs into your local Maven repository, and runs all of the unit tests:
$ mvn clean install
Artificer includes an "dev-server" module that runs the server and UI in an embedded Jetty app server. It's great for local development, providing a fast and lightweight means for testing your bug fixes or new features. Use the following command to start it up:
$ mvn clean test -pl dev-server -P run
Then, test your changes through http://localhost:8080/artificer-ui/index.html or http://localhost:8080/artificer-server. Note that the dev server uses a dummy, basic authentication facade. If prompted by the UI or server, enter any username and password.
Artificer is open source and we welcome anyone who wants to participate and contribute!
If you want to fix a bug or create a new feature, please log an issue in the Artificer JIRA describing the task. Then we highly recommend making the changes on a topic branch named with the JIRA issue number. For example, this command creates a branch for the ARTIF-1234 issue:
$ git checkout -b artificer-1234
After you're happy with your changes and a full build (with unit tests) runs successfully, commit your changes on your topic branch. Please ensure that the comment is descriptive and starts with the JIRA code (e.g. "ARTIF-1234 Added the feature to ….."). Then it's time to pull any recent changes that were made in the official repository. The following fetches all 'upstream' changes and reapplies your changes on top (i.e., the latest from master will be the new base for your changes).
$ git pull --rebase upstream master
If the pull grabbed a lot of changes, you should rerun your build to ensure your changes are still good. You can then push your topic branch and its changes into your public fork repository
$ git push origin artificer-1234 # pushes your topic branch into your public fork of Artificer
We prefer pull-requests over patches because we can review the proposed changes, comment on them, discuss them with you, and likely merge the changes right into the official repository.
Please also read the guidelines for contributors: https://github.com/Governance/overlord/wiki/Contributor-Guidelines