Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
melchisedech333 committed Jun 12, 2024
1 parent 40a34ad commit c6be1f0
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions maven/README.md
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
```


0 comments on commit c6be1f0

Please sign in to comment.