In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you "how to package zip for maven to include startup scripts under bin", which is easy to understand and well-organized, hoping to help you solve your doubts. Let me lead you to study and learn this article "how to package zip for maven including startup scripts under bin".
Maven package zip contains a startup script under bin, which is tested to be valid on idea:
Pom.xml packing
Src/main/scala src/test/scala src/main/resources * * / * .properties * * / .xml Net.alchim31.maven scala-maven-plugin 3.2.1 scala-compile-first process-resources Add-source compile org.apache.maven.plugins maven-compiler-plugin 3.1 1.8 1.8 UTF-8 compile compile Org.apache.maven.plugins maven-jar-plugin 2.4 * .properties * .xml * .txt false True lib/ com.swordfall.restserver.base.WebServer Conf/ org.apache.maven.plugins maven-assembly-plugin 2.4 Src/main/assembly/assembly.xml make-assembly package Single
Assembly.xml Packaging zip Settings
Assembly.xml bin false zip false lib false ${project.build. Directory} * .jar ${project.basedir} / src/main/bin bin * .sh
Ps: let's take a look at maven, package zip and include bin and docs folders
Maven plug-in:
Maven-assembly-plugin false src/main/resources/assembly.xml make-assembly package single
Assembly.xml
Package zip false ${project.parent.basedir} / bin\ bin ${project.parent.basedir} / db\ db ${project.parent.basedir} / docs\ docs ${project.parent .basedir}\ readme.md release-notes ${project.build.directory}\ *. The above jar is all the contents of the article "how to package zip with a startup script under bin" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.