Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/52north/maven-parents
Parent POM's for 52°North
https://github.com/52north/maven-parents
maven parent-pom
Last synced: about 7 hours ago
JSON representation
Parent POM's for 52°North
- Host: GitHub
- URL: https://github.com/52north/maven-parents
- Owner: 52North
- License: apache-2.0
- Created: 2015-09-15T13:45:38.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-20T04:59:35.000Z (over 1 year ago)
- Last Synced: 2024-11-19T10:08:13.485Z (about 7 hours ago)
- Topics: maven, parent-pom
- Homepage:
- Size: 428 KB
- Stars: 5
- Watchers: 10
- Forks: 6
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Parent POM's for 52°North [![Build Status](https://travis-ci.org/52North/maven-parents.svg?branch=master)](https://travis-ci.org/52North/maven-parents) [![Maven Central](https://img.shields.io/maven-central/v/org.n52/parent.svg)](https://search.maven.org/#search|gav|1|g:org.n52%20AND%20a:parent)
## Usage
To apply the 52°North parent pom in your project, add the following to your project's `pom.xml` file.
```xmlorg.n52
parent
24```
### Define additional repositories in your pom file
```xmlorg.apache.maven.plugins
maven-enforcer-plugin
enforce
false
true
repo ids
```
### Ignore specific dependencies from analysis
If you use only constants from a dependency, you may have to declare it explicitly as used:
```xml
org.apache.maven.plugins
maven-dependency-plugin
${groupId}:${artifactId}
```
### Unused listed dependencies
If you have dependencies that are used only at runtime, e.g. SAXON XSLT processor or a logging framework such as log4j encapsuled by slf4j, then you must include these dependencies as `runtime` as shown in the example below. Otherwise the enforcer plugin will complain about unused dependencies.
```xml
[..]org.apache.logging.log4j
log4j-slf4j-impl
${version.log4j}
runtimenet.sf.saxon
Saxon-HE
9.6.0-7
runtime[..]
```## Deployment
Put your [Sonatype OSS](https://oss.sonatype.org/) credentials into your `.m2/settings.xml` like this:
```xml
sonatype-nexus-releases
$username
$password
sonatype-nexus-snapshots
$username
$password
```
### Snapshot
Shouldn't be needed in most cases, as `master` is automatically deployed, but just in case:
```sh
mvn deploy
```### Release
```sh
mvn release:prepare
mvn release:perform
```