https://github.com/freelancer/nexus-repository-apt
A fork of https://github.com/sonatype-nexus-community/nexus-repository-apt
https://github.com/freelancer/nexus-repository-apt
Last synced: over 1 year ago
JSON representation
A fork of https://github.com/sonatype-nexus-community/nexus-repository-apt
- Host: GitHub
- URL: https://github.com/freelancer/nexus-repository-apt
- Owner: freelancer
- License: epl-1.0
- Created: 2018-11-01T03:49:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-16T01:28:54.000Z (over 7 years ago)
- Last Synced: 2025-01-11T08:28:50.646Z (over 1 year ago)
- Language: Java
- Size: 132 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Nexus repository APT plugin
[](https://travis-ci.org/sonatype-nexus-community/nexus-repository-apt) [](https://depshield.github.io)
Compatibility Matrix:
| Plugin Version | Nexus Repository Version |
|----------------|--------------------------|
| v1.0.2 | <3.9.0 |
| v1.0.5 | 3.9.0 |
| v1.0.7 | 3.11.0 |
| v1.0.8 | 3.13.0 |
| v1.0.9 | 3.14.0 |
### Build
* Clone the project:
`git clone https://github.com/sonatype-nexus-community/nexus-repository-apt`
* Build the plugin:
```
cd nexus-repository-apt
mvn
```
### Build with docker and create an image based on nexus repository 3
``` docker build -t nexus-repository-apt:3.14.0 .```
### Run a docker container from that image
``` docker run -d -p 8081:8081 --name nexus-repo nexus-repository-apt:3.14.0 ```
For further information like how to persist volumes check out [the GitHub Repo for the official Nexus Repository 3 Docker image](https://github.com/sonatype/docker-nexus3).
The application will now be available from your browser at http://localhost:8081
### Install
* Stop Nexus:
`service nexus stop`
or
```
cd /bin
./nexus stop
```
* Copy the bundle into `/system/net/staticsnow/nexus-repository-apt/1.0.9/nexus-repository-apt-1.0.9.jar`
* Make the following additions marked with + to `/system/org/sonatype/nexus/assemblies/nexus-core-feature/3.x.y/nexus-core-feature-3.x.y-features.xml`
```
nexus-repository-maven
+ nexus-repository-apt
```
And
```
+
+ net.staticsnow:nexus-repository-apt
+ mvn:net.staticsnow/nexus-repository-apt/1.0.9
+ mvn:org.apache.commons/commons-compress/1.18
+ mvn:org.tukaani/xz/1.8
+
```
This will cause the plugin to be loaded and started with each startup of Nexus Repository.
### Manually upload a package to a new created repo:
`curl -u user:pass -X POST -H "Content-Type: multipart/form-data" --data-binary "@package.deb" http://nexus_url:8081/repository/repo_name/`
### Create a snapshot of the current package lists for the repo that can be pulled from:
`curl -u user:pass -X MKCOL http://nexus_url:8081/repository/repo_name/snapshots/$SNAPSHOT_ID`
### Create gpg key required for signing apt-packages
See https://help.github.com/articles/generating-a-new-gpg-key/
## The Fine Print
It is worth noting that this is **NOT SUPPORTED** by Sonatype, and is a contribution of Mike Poindexter's
plus us to the open source community (read: you!)
Remember:
* Use this contribution at the risk tolerance that you have
* Do **NOT** file Sonatype support tickets related to APT support
* **DO** file issues here on GitHub, so that the community can pitch in
Phew, that was easier than I thought. Last but not least of all:
Have fun building and using this plugin on the Nexus platform, we are glad to have you here!
## Getting help
Looking to contribute to our code but need some help? There's a few ways to get information:
* Chat with us on [Gitter](https://gitter.im/sonatype/nexus-developers)
* Check out the [Nexus3](http://stackoverflow.com/questions/tagged/nexus3) tag on Stack Overflow
* Check out the [Nexus Repository User List](https://groups.google.com/a/glists.sonatype.com/forum/?hl=en#!forum/nexus-users)