This is an automated email from the ASF dual-hosted git repository.

xiatian pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/eventmesh-dashboard.git


The following commit(s) were added to refs/heads/main by this push:
     new 6ff9eb7  [ISSUE #132] Make Maven Wrapper executable (#133)
6ff9eb7 is described below

commit 6ff9eb7f32cae60ccb607038d568e219c768c504
Author: Pil0tXia <[email protected]>
AuthorDate: Thu Apr 18 16:37:50 2024 +0800

    [ISSUE #132] Make Maven Wrapper executable (#133)
    
    * Run `git update-index --chmod=+x`
    
    * Use mvnw
---
 .github/workflows/ci.yml                      |  2 +-
 deployment/auto-deploy-eventmesh-dashboard.sh | 12 ++++++------
 mvnw                                          |  0
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 52527d4..025bc90 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -61,4 +61,4 @@ jobs:
           cache: maven
 
       - name: Build with Maven
-        run: mvn -B package --file pom.xml
+        run: ./mvnw -B package --file pom.xml
diff --git a/deployment/auto-deploy-eventmesh-dashboard.sh 
b/deployment/auto-deploy-eventmesh-dashboard.sh
index 73a7b8f..993f37b 100644
--- a/deployment/auto-deploy-eventmesh-dashboard.sh
+++ b/deployment/auto-deploy-eventmesh-dashboard.sh
@@ -21,16 +21,16 @@
 REPO_PATH=~/service/eventmesh-dashboard
 
 # SpringBoot process ID file path
-PID_LOG=~/service/eventmesh-dashboard/deployment/eventmesh-dashboard-pid.log
+PID_LOG=$REPO_PATH/deployment/eventmesh-dashboard-pid.log
 
 # Automatic deployment shell script log file path
-AUTO_DEPLOY_LOG=~/service/eventmesh-dashboard/deployment/auto-deploy-eventmesh-dashboard.log
+AUTO_DEPLOY_LOG=$REPO_PATH/deployment/auto-deploy-eventmesh-dashboard.log
 
 # Jar file path
-JAR_FILE_PATH=~/service/eventmesh-dashboard/eventmesh-dashboard-console/target/eventmesh-dashboard-console-0.0.1-SNAPSHOT.jar
+JAR_FILE_PATH=$REPO_PATH/eventmesh-dashboard-console/target/eventmesh-dashboard-console-0.0.1-SNAPSHOT.jar
 
 # Load environment variables from external file
-ENV_FILE=~/service/eventmesh-dashboard/deployment/.env
+ENV_FILE=$REPO_PATH/deployment/.env
 source $ENV_FILE
 
 # Function to check if a process with given PID is running
@@ -67,7 +67,7 @@ if [ $LOCAL != $REMOTE ]; then
     fi
     
     # Compile and package the Jar file
-    ./mvnw clean package -DskipTests -Dcheckstyle.skip=true
+    $REPO_PATH/mvnw clean package -DskipTests -Dcheckstyle.skip=true
     
     # Start the springboot application and record the process id to pid.log 
file
     nohup java -DDB_ADDRESS=$DB_ADDRESS -DDB_USERNAME=$DB_USERNAME 
-DDB_PASSWORD=$DB_PASSWORD -jar $JAR_FILE_PATH > /dev/null 2>&1 &
@@ -83,7 +83,7 @@ else
     
     if [ ! -s $PID_LOG ] || ! is_process_running $(cat $PID_LOG); then
         # If the pid.log file does not exist or the process is not running, 
compile and package the Jar file
-        ./mvnw clean package -DskipTests -Dcheckstyle.skip=true
+        $REPO_PATH/mvnw clean package -DskipTests -Dcheckstyle.skip=true
 
         # Start the springboot application and record the process id to 
pid.log file
         nohup java -DDB_ADDRESS=$DB_ADDRESS -DDB_USERNAME=$DB_USERNAME 
-DDB_PASSWORD=$DB_PASSWORD -jar $JAR_FILE_PATH > /dev/null 2>&1 &
diff --git a/mvnw b/mvnw
old mode 100644
new mode 100755


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to