-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40a34ad
commit c6be1f0
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
# Maven | ||
|
||
Prepara os arquivos do projeto. | ||
Lista de Archetypes: https://maven.apache.org/archetypes/index.html | ||
|
||
``` | ||
cd system | ||
../dependencies/apache-maven-3.9.7/bin/mvn archetype:generate \ | ||
-DgroupId=microservice \ | ||
-DartifactId=microservice \ | ||
-DarchetypeArtifactId=maven-archetype-quickstart \ | ||
-DarchetypeVersion=1.4 \ | ||
-DinteractiveMode=false | ||
``` | ||
|
||
Configura versão do projeto. | ||
|
||
``` | ||
cd system/microservice | ||
../../dependencies/apache-maven-3.9.7/bin/mvn versions:set -DnewVersion=1.0.0 -DprocessAllModules -DgenerateBackupPoms=false | ||
../../dependencies/apache-maven-3.9.7/bin/mvn versions:commit | ||
``` | ||
|
||
Preparação do Maven Wrapper. | ||
|
||
``` | ||
../../dependencies/apache-maven-3.9.7/bin/mvn wrapper:wrapper -Dtype=source | ||
``` | ||
|
||
Geração de pacote Java, e execução do mesmo. | ||
|
||
``` | ||
./mvnw clean package | ||
java -cp target/microservice-1.0.0.jar microservice.Microservice | ||
``` | ||
|
||
|