poc-archetype

POC Archetype

License

License

GroupId

GroupId

de.dbck.poc
ArtifactId

ArtifactId

poc-archetype
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

poc-archetype
POC Archetype
Project URL

Project URL

https://github.com/dbck/poc-archetype
Project Organization

Project Organization

dbck
Source Code Management

Source Code Management

https://github.com/dbck/poc-archetype

Download poc-archetype

How to add to project

<!-- https://jarcasting.com/artifacts/de.dbck.poc/poc-archetype/ -->
<dependency>
    <groupId>de.dbck.poc</groupId>
    <artifactId>poc-archetype</artifactId>
    <version>0.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/de.dbck.poc/poc-archetype/
implementation 'de.dbck.poc:poc-archetype:0.0.2'
// https://jarcasting.com/artifacts/de.dbck.poc/poc-archetype/
implementation ("de.dbck.poc:poc-archetype:0.0.2")
'de.dbck.poc:poc-archetype:jar:0.0.2'
<dependency org="de.dbck.poc" name="poc-archetype" rev="0.0.2">
  <artifact name="poc-archetype" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.dbck.poc', module='poc-archetype', version='0.0.2')
)
libraryDependencies += "de.dbck.poc" % "poc-archetype" % "0.0.2"
[de.dbck.poc/poc-archetype "0.0.2"]

Dependencies

compile (3)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.30
ch.qos.logback : logback-classic jar 1.2.3
org.junit.jupiter : junit-jupiter jar

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.18.16

test (4)

Group / Artifact Type Version
org.assertj : assertj-core jar 3.18.0
org.mockito : mockito-core jar 3.6.0
org.mockito : mockito-inline jar 3.6.0
org.mockito : mockito-junit-jupiter jar 3.6.0

Project Modules

There are no modules declared in this project.

Generate project from archetype

export ARCHETYPE_VERSION="0.0.2" # CHOOSE ARCHTETYPE VERSION
export GIT_USER_NAME="" # INSERT GIT USER NAME HERE IF NOT ALREADY GLOBAL SET
export GIT_USER_EMAIL="" # INSERT GIT USER EMAIL HERE IF NOT ALREADY GLOBAL SET
export GROUP_ID="de.dbck.poc" # SET GROUP ID OF GENERATED PROJECT
export ARTIFACT_ID="poc-artifactid" # SET ARCHITYPE ID OF GENERATED PROJECT
mvn archetype:generate -DinteractiveMode=false \
                       -DarchetypeGroupId=de.dbck.poc \
                       -DarchetypeArtifactId=poc-archetype \
                       -DarchetypeVersion=${ARCHETYPE_VERSION} \
                       -DgroupdId=${GROUP_ID} \
                       -DartifactId=${ARTIFACT_ID} \
                       -Dpackage=${GROUP_ID}.$(sed -e's/-//g' <<< ${ARTIFACT_ID})
cd ${ARTIFACT_ID}
mv .gitignore_ .gitignore
git init
[ ! -z ${GIT_USER_NAME} ] && git config user.name "${GIT_USER_NAME}"
[ ! -z ${GIT_USER_EMAIL} ] && git config user.email "${GIT_USER_EMAIL}"
git config push.ff only
git config pull.ff only
git config merge.ff false
git checkout -b main
git add .
git commit -m "Initial"
mvn compile
git remote add origin https://github.com/dbck/${ARTIFACT_ID}.git
git push --set-upstream origin main

Usage

mvn clean install archetype:update-local-catalog
mvn archetype:crawl

Deploy

mvn deploy

or

mvn deploy -Pgithub

or

mvn deploy -Dregistry=https://maven.pkg.github.com/dbck -Dtoken=GH_TOKEN

Debug profiles

mvn help:active-profiles

Maintenance

mvn versions:display-dependency-updates
mvn versions:display-plugin-updates

Versions

Version
0.0.2
0.0.1