optimus-archetype-java

a maven archetype for the microService of java

Лицензия

Лицензия

Категории

Категории

Java Языки программирования
Группа

Группа

com.github.donhac
Идентификатор

Идентификатор

optimus-archetype-java
Последняя версия

Последняя версия

1.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

optimus-archetype-java
a maven archetype for the microService of java
Ссылка на сайт

Ссылка на сайт

https://github.com/donhac/optimus-archetype-java
Система контроля версий

Система контроля версий

https://github.com/donhac/optimus-archetype-java.git

Скачать optimus-archetype-java

Как подключить последнюю версию

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

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

optimus-archetype-java

a maven archetype for optimus service.

generate project from archetype

使用案例

with interactive mode

mvn archetype:generate                             \
  -DarchetypeGroupId=com.github.donhac             \
  -DarchetypeArtifactId=optimus-archetype-java  \
  -DarchetypeVersion=1.0.0

you will required to input groupId, artifactId for your new project.

without interactive mode

mvn archetype:generate                             \
  -DarchetypeGroupId=com.github.donhac             \
  -DarchetypeArtifactId=optimus-archetype-java  \
  -DarchetypeVersion=1.0.0                         \
  -DgroupId=x.y                                    \
  -DartifactId=a                                   \
  -DarchetypeCatalog=local

this process should be slow, but if you had already run once successfully, to speed up, add this param:

-DarchetypeCatalog=local

Setting up Zookeeper

in src/main/resources/dubbo.properties

modify following line:

dubbo.registry.address=zookeeper://127.0.0.1:2181

Setting up zookeeper in MacOS

brew install zookeeper

then start zookeeper by run:

zkServer start

or using the LaunchRocket GUI.

run

mvn spring-boot:run

deploy service client jar to repository

setup the login and password required to authenticate to this server in ~/.m2/settings.xml file:

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                          https://maven.apache.org/xsd/settings-1.0.0.xsd">
  <servers>
    <server>
      <id>moria-snapshots</id>
      <username>username</username>
      <password>password</password>
    </server>
    <server>
      <id>moria-release</id>
      <username>username</username>
      <password>password</password>
    </server>
  </servers>
</settings>

deploy artifact:

mvn deploy

reference

Версии библиотеки

Версия
1.1.0