simter-parent

Simter Parent

License

License

MIT
GroupId

GroupId

tech.simter
ArtifactId

ArtifactId

simter-parent
Last Version

Last Version

1.2.0
Release Date

Release Date

Type

Type

pom
Description

Description

simter-parent
Simter Parent
Project URL

Project URL

https://github.com/simter/simter-parent
Project Organization

Project Organization

simter
Source Code Management

Source Code Management

https://github.com/simter/simter-parent.git

Download simter-parent

Filename Size
simter-parent-1.2.0.pom 3 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/tech.simter/simter-parent/ -->
<dependency>
    <groupId>tech.simter</groupId>
    <artifactId>simter-parent</artifactId>
    <version>1.2.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/tech.simter/simter-parent/
implementation 'tech.simter:simter-parent:1.2.0'
// https://jarcasting.com/artifacts/tech.simter/simter-parent/
implementation ("tech.simter:simter-parent:1.2.0")
'tech.simter:simter-parent:pom:1.2.0'
<dependency org="tech.simter" name="simter-parent" rev="1.2.0">
  <artifact name="simter-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='tech.simter', module='simter-parent', version='1.2.0')
)
libraryDependencies += "tech.simter" % "simter-parent" % "1.2.0"
[tech.simter/simter-parent "1.2.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

simter-parent

Simter base maven dependencies manage. [中文]

Usage

<dependency>
  <groupId>tech.simter</groupId>
  <artifactId>simter-parent</artifactId>
  <version>0.3.0</version>
</dependency>

Requirement

  • Java 8+
  • UTF-8 for java source and compilation

Build

mvn clean package

Deploy

Deploy to LAN Nexus Repository

mvn clean deploy -Plan

Deploy to Sonatype Repository

mvn clean deploy -Psonatype

After deployed, login into https://oss.sonatype.org. Through Staging Repositories, search this package, then close and release it. After couple hours, it will be synced to Maven Central Repository.

Deploy to Bintray Repository

mvn clean deploy -Pbintray

Will deploy to https://api.bintray.com/maven/simter/maven/tech.simter:simter-parent/;publish=1. So first create a package https://bintray.com/simter/maven/tech.simter:simter-parent on Bintray. After deployed, check it from https://bintray.com/simter/maven/tech.simter:simter-parent.

LAN Development Configuration

You can ignore this configuration if you always use the internet to download all maven dependencies. Here is for LAN Development Configuration. It use Sonatype Nexus3+ to cache and share all maven dependency downloads.

Config settings.xml for developer

<settings>
  ...
  <mirrors>
    <!-- send all dependencies request to nexus public repository -->
    <mirror>
      <id>lan</id>
      <mirrorOf>*</mirrorOf>
      <!-- e.g. http://192.168.0.1:8080/nexus/repository/maven-public -->
      <url>http://[ip]:[port][/nexus-context-path]/repository/[public-repository-name]</url>
    </mirror>
  </mirrors>
  ...
</settings>

Config settings.xml for publisher

You need to config more things in settings.xml if you are a package publisher. Means you will run mvn deploy command.

<settings>
  ...
  <servers>
    <!-- The account and password for deploy to LAN nexus -->
    <server>
      <!-- id must be 'lan'-->
      <id>lan</id>
      <username>your-lan-nexus-account</username>
      <password>your-lan-nexus-password</password>
    </server>

    <!-- The account and password for deploy to sonatype (https://oss.sonatype.org) -->
    <server>
      <!-- id must be 'sonatype'-->
      <id>sonatype</id>
      <username>your-sonatype-account</username>
      <password>your-sonatype-password</password>
    </server>

    <!-- The account and api-key for deploy to bintray (https://bintray.com/simter/maven) -->
    <server>
      <!-- id must be 'bintray'-->
      <id>bintray</id>
      <username>your-bintray-account</username>
      <password>your-bintray-api-key</password>
    </server>
  </servers>

  <profiles>
    <profile>
      <id>lan</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <properties>
        <!-- The LAN nexus release url for deploy
          e.g. http://192.168.0.1:8080/nexus/repository/maven-release
        -->
        <lan-release-url>http://[ip]:[port][/nexus-context-path]/repository/[release-repository-name]</lan-release-url>

        <!-- The LAN nexus snapshot url for deploy
          e.g. http://192.168.0.1:8080/nexus/repository/maven-snapshot
        -->
        <lan-snapshot-url>http://[ip]:[port][/nexus-context-path]/repository/[snapshot-repository-name]</lan-snapshot-url>
      </properties>
    </profile>
  </profiles>
</settings>
tech.simter

Versions

Version
1.2.0
1.1.0
1.0.1
1.0.0
0.4.0
0.3.0
0.2.0
0.1.0