Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bugfix]Fix the problem that it cannot start on the linux platform #328

Merged
merged 1 commit into from
Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

liugddx marked this conversation as resolved.
Show resolved Hide resolved
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>