Skip to content

Ano-Tech-Computers/Warehouse14

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Warehouse 14

Supernatural artifacts collected by Ano-Tech Computers.

Adding the warehouse to your POM

You can add the warehouse to your Maven POM as a repository for automatic dependency resolution.

<repositories>
  <repository>
    <id>warehouse14</id>
    <url>https://raw.githubusercontent.com/Ano-Tech-Computers/Warehouse14/maven</url>
  </repository>
</repositories>

Adding your artifact to the warehouse

For an artifact to be supernatural, its POM must inherit from our super POM no.atc:super-pom, either directly or indirectly. For direct inheritance, you can add this parent declaration to your POM:

<parent>
  <groupId>no.atc</groupId>
  <artifactId>super-pom</artifactId>
  <version>1.0</version>
</parent>

Our super POM binds deployment to the warehouse to the deploy phase. It uses Github Site Plugin to commit the artifact to the warehouse automatically.

Configuration

The only configuration required is authentication. A server entry with the ID warehouse14 in your Maven settings should contain your authentication credentials. See the example below and the Github Site Plugin documentation for more information on storing your credentials for Github Site Plugin.

<servers>
  <server>
    <id>warehouse14</id>
    <password>Insert personal access (OAuth2) token here</password>
  </server>
</servers>

For more information on personal access tokens, see this GitHub Help page. The token will need the public_repo scope. It is also recommended that you encrypt your Maven settings.

Indirect inheritance

The warehouse also provides some useful base POMs to simplify specific types of projects. They all inherit our super POM, and can be found in the no.atc group under names starting with super-pom-.

For Maven to resolve our base POMs (including our super POM), you will also have to add the warehouse to your POM.

Releases

No releases published

Packages

No packages published