-
Notifications
You must be signed in to change notification settings - Fork 527
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
fix: assemble executable jar for pd and store #2289
Conversation
could also refer the toolchain PR: (Although not same) |
hugegraph-pd/hg-pd-service/pom.xml
Outdated
<classifier>spring-boot</classifier> | ||
<mainClass> | ||
org.apache.hugegraph.pd.boot.HugePDServer | ||
</mainClass> | ||
</configuration> | ||
<goals> | ||
<goal>repackage</goal> | ||
</goals> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need some comment here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refer to docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/#packaging
fine, better to add url refer for it in future, currently leave this in PR context
hugegraph-pd/hg-pd-dist/src/assembly/static/bin/start-hugegraph-pd.sh
Outdated
Show resolved
Hide resolved
@@ -114,8 +114,8 @@ fi | |||
echo "Starting HugeGraphPDServer..." | |||
|
|||
# Turn on security check | |||
exec ${JAVA} ${JAVA_OPTIONS} -jar -Dspring.config.location=${CONF}/application.yml \ | |||
${LIB}/hugegraph-pd-*.jar >> ${OUTPUT} 2>&1 & | |||
exec ${JAVA} -Dname="HugeGraphPd" ${JAVA_OPTIONS} -jar \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exec ${JAVA} -Dname="HugeGraphPd" ${JAVA_OPTIONS} -jar \ | |
exec ${JAVA} -Dname="HugeGraphPD" ${JAVA_OPTIONS} -jar \ |
TODO:
@VGalaxies we could better get the jar
version for the suffix of name, like HugeGraphServer-1.0
| HugeGraphPD-1.5
to let users know the version directly
Purpose of the PR
fix #2275
refer to https://hugegraph.feishu.cn/wiki/UfL0w2m8Aiekl9kHsedc8jQKnN7#QuiKdmz2ZoY3WMxqkiaczvc6nKb
Main Changes
Due to the change of
hugegraph-pd
's parent fromspring-boot-starter-parent
tohugegraph
, andhugegraph
's parent beingapache
, along with modifications to theartifactId
of certain sub-modules (for example,hugegraph-pd
tohg-pd-service
), the following steps need to be taken:maven-assembly-plugin
, which involves adjusting the collected jar package names accordingly.hugegraph-pd
is started using Spring Boot, thespring-boot-maven-plugin
needs to be reconfigured.Verifying these changes
Does this PR potentially affect the following parts?
Documentation Status
Doc - TODO
Doc - Done
Doc - No Need