-
-
国会のプラグインとは何ですか
国会プラグイン他のファイル要素、モジュール、ウェブサイトや単一のアーカイブファイルに保存されている他のドキュメントに依存するプロジェクトを提供することを目的とします。
#議会はアーカイブの種類をサポート
- ジップ
- tar.gz形式
- tar.bz2
- びん
- 君
- 戦争
#使用手順
こことしてパッケージ化プローブSkyWalkingに
tar.gz
ドッカー継続的インテグレーションを構築する準備の例は、ミラーリングされたときに遅く# POM
pom.xml
プラグイン構成の増加<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <executions> <!-- 配置执行器 --> <execution> <id>make-assembly</id> <!-- 绑定到 package 生命周期阶段上 --> <phase>package</phase> <goals> <!-- 只运行一次 --> <goal>single</goal> </goals> <configuration> <finalName>skywalking</finalName> <descriptors> <!-- 配置描述文件路径 --> <descriptor>src/main/resources/assembly.xml</descriptor> </descriptors> </configuration> </execution> </executions> </plugin> </plugins> </build>
# assembly.xml
作成し
src/main/resources/assembly.xml
たプロファイルを<assembly> <id>6.0.0-Beta</id> <formats> <!-- 打包的文件格式,支持 zip、tar.gz、tar.bz2、jar、dir、war --> <format>tar.gz</format> </formats> <!-- tar.gz 压缩包下是否生成和项目名相同的根目录,有需要请设置成 true --> <includeBaseDirectory>false</includeBaseDirectory> <dependencySets> <dependencySet> <!-- 是否把本项目添加到依赖文件夹下,有需要请设置成 true --> <useProjectArtifact>false</useProjectArtifact> <outputDirectory>lib</outputDirectory> <!-- 将 scope 为 runtime 的依赖包打包 --> <scope>runtime</scope> </dependencySet> </dependencySets> <fileSets> <fileSet> <!-- 设置需要打包的文件路径 --> <directory>agent</directory> <!-- 打包后的输出路径 --> <outputDirectory></outputDirectory> </fileSet> </fileSets> </assembly>
#パッキング
mvn clean package mvn clean install
- パッケージには:ターゲットに指定されたディレクトリを作成
skywalking-6.0.0-Beta.tar.gz
圧縮パッケージを - インストール:ローカルリポジトリで名前のディレクトリを作成
hello-spring-cloud-external-skywalking-1.0.0-SNAPSHOT-6.0.0-Beta.tar.gz
圧縮されたパッケージを
-
添付:Mavenのアセンブリのプラグイン
おすすめ
転載: www.cnblogs.com/snake107/p/11920877.html
ランキング