Skip to content

Commit

Permalink
Fix the problem that it cannot start on the linux platform (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
liugddx authored Jul 10, 2023
1 parent 6b29389 commit ff4692a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
9 changes: 9 additions & 0 deletions datasophon-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,15 @@
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<excludes>
<exclude>db/**</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
Expand Down
5 changes: 2 additions & 3 deletions datasophon-api/src/main/resources/datasophon-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ pid=$DDH_PID_DIR/$command.pid
cd $DDH_HOME

if [ "$command" = "api" ]; then
LOG_FILE="-Dlogging.config=classpath:logback-api.xml -Dspring.profiles.active=api"
CLASS=com.datasophon.api.DDHApplicationServer
JMX="-javaagent:$DDH_HOME/jmx/jmx_prometheus_javaagent-0.16.1.jar=8586:$DDH_HOME/jmx/jmx_exporter_config.yaml"
HEAP_OPTS="-Xms1g -Xmx1g -Xmn512m"
Expand All @@ -107,7 +106,7 @@ case $startStop in

echo starting $command, logging to $log

exec_command="$LOG_FILE $DDH_OPTS -classpath $DDH_CONF_DIR:$DDH_LIB_JARS $CLASS"
exec_command="$DDH_OPTS -classpath $DDH_CONF_DIR:$DDH_LIB_JARS $CLASS"

echo "nohup $JAVA $exec_command > $log 2>&1 &"
nohup $JAVA $exec_command > $log 2>&1 &
Expand Down Expand Up @@ -161,7 +160,7 @@ case $startStop in
fi
echo starting $command, logging to $log

exec_command="$LOG_FILE $DDH_OPTS -classpath $DDH_CONF_DIR:$DDH_LIB_JARS $CLASS"
exec_command="$DDH_OPTS -classpath $DDH_CONF_DIR:$DDH_LIB_JARS $CLASS"

echo "nohup $JAVA $exec_command > $log 2>&1 &"
nohup $JAVA $exec_command > $log 2>&1 &
Expand Down
14 changes: 14 additions & 0 deletions datasophon-dao/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,18 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<excludes>
<exclude>mapper/**</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>

</project>

0 comments on commit ff4692a

Please sign in to comment.