Last active
October 29, 2021 03:31
-
-
Save neverkas/180a7e8cfb095c656900a4caf37c99b0 to your computer and use it in GitHub Desktop.
Compilar+Ejecutar proyecto java con maven
This file contains hidden or 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
| PACKAGE = server | |
| MAIN_CLASS = Server | |
| MIGRATION_CLASS = Bootstrap | |
| #MAVEN_CMD=mvn exec:java | |
| .PHONY: all | |
| all: build run | |
| .PHONY: build | |
| build: | |
| @echo "MAVEN: Compilando proyecto.." | |
| @mvn package | |
| .PHONY: run | |
| run: | |
| @echo "MAVEN: Ejecutando Main.." | |
| @mvn exec:java -Dexec.mainClass="$(PACKAGE).$(MAIN_CLASS)" | |
| # bash -c "exec -a programitaenjava $(MAVEN_CMD)" | |
| .PHONY: migration | |
| migration: | |
| @echo "MAVEN: Ejecutando Migración.." | |
| @mvn exec:java -Dexec.mainClass="$(PACKAGE).$(MIGRATION_CLASS)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment