Include the agent into `dist`
This commit is contained in:
parent
6ba42f364a
commit
710cce162b
|
|
@ -9,3 +9,4 @@ target/
|
|||
*~
|
||||
packages/
|
||||
**/dependency-reduced-pom.xml
|
||||
/skywalking-agent/
|
||||
|
|
|
|||
|
|
@ -14,6 +14,11 @@
|
|||
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.skywalking</groupId>
|
||||
<artifactId>apm-agent-core</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.skywalking</groupId>
|
||||
<artifactId>apm-collector-boot</artifactId>
|
||||
|
|
@ -63,9 +68,9 @@
|
|||
<configuration>
|
||||
<tasks>
|
||||
<copy file="${project.build.directory}/skywalking-backend.tar.gz"
|
||||
tofile="${project.basedir}/../packages/skywalking-backend.tar.gz" overwrite="true"/>
|
||||
tofile="${project.basedir}/../dist/skywalking-backend.tar.gz" overwrite="true"/>
|
||||
<copy file="${project.build.directory}/skywalking-backend.zip"
|
||||
tofile="${project.basedir}/../packages/skywalking-backend.zip" overwrite="true"/>
|
||||
tofile="${project.basedir}/../dist/skywalking-backend.zip" overwrite="true"/>
|
||||
</tasks>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
|
@ -47,6 +47,12 @@
|
|||
<directory>${project.basedir}/../apm-collector/apm-collector-boot/target/skywalking-collector-assembly/skywalking-collector/libs</directory>
|
||||
<outputDirectory>/collector-libs</outputDirectory>
|
||||
</fileSet>
|
||||
|
||||
<!-- Agent repackage into the dist -->
|
||||
<fileSet>
|
||||
<directory>${project.basedir}/../packages/skywalking-agent</directory>
|
||||
<outputDirectory>/agent</outputDirectory>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
<files>
|
||||
<file>
|
||||
|
|
@ -108,13 +108,13 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<tasks>
|
||||
<mkdir dir="${project.basedir}/../../packages/skywalking-agent"/>
|
||||
<mkdir dir="${project.basedir}/../../skywalking-agent"/>
|
||||
<copy file="${project.build.directory}/skywalking-agent.jar"
|
||||
tofile="${project.basedir}/../../packages/skywalking-agent/skywalking-agent.jar" overwrite="true"/>
|
||||
<mkdir dir="${project.basedir}/../../packages/skywalking-agent/config"/>
|
||||
<mkdir dir="${project.basedir}/../../packages/skywalking-agent/logs"/>
|
||||
tofile="${project.basedir}/../../skywalking-agent/skywalking-agent.jar" overwrite="true"/>
|
||||
<mkdir dir="${project.basedir}/../../skywalking-agent/config"/>
|
||||
<mkdir dir="${project.basedir}/../../skywalking-agent/logs"/>
|
||||
<copydir src="${project.basedir}/../config"
|
||||
dest="${project.basedir}/../../packages/skywalking-agent/config" forceoverwrite="true"/>
|
||||
dest="${project.basedir}/../../skywalking-agent/config" forceoverwrite="true"/>
|
||||
</tasks>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@
|
|||
<shade.net.bytebuddy.source>net.bytebuddy</shade.net.bytebuddy.source>
|
||||
<shade.net.bytebuddy.target>${shade.package}.${shade.net.bytebuddy.source}</shade.net.bytebuddy.target>
|
||||
|
||||
<agent.package.dest.dir>${project.build.directory}${sdk.plugin.related.dir}/../../../../packages/skywalking-agent</agent.package.dest.dir>
|
||||
<agent.package.dest.dir>${project.build.directory}${sdk.plugin.related.dir}/../../../../skywalking-agent</agent.package.dest.dir>
|
||||
<plugin.dest.dir>${agent.package.dest.dir}/plugins</plugin.dest.dir>
|
||||
</properties>
|
||||
|
||||
|
|
|
|||
|
|
@ -120,9 +120,9 @@
|
|||
<if>
|
||||
<equals arg1="${project.packaging}" arg2="jar"/>
|
||||
<then>
|
||||
<mkdir dir="${project.build.directory}/../../../../packages/skywalking-agent/plugins"/>
|
||||
<mkdir dir="${project.build.directory}/../../../../skywalking-agent/plugins"/>
|
||||
<copy file="${project.build.directory}/${project.artifactId}-${project.version}.jar"
|
||||
tofile="${project.build.directory}/../../../../packages/skywalking-agent/activations/${project.artifactId}-${project.version}.jar" overwrite="true"/>
|
||||
tofile="${project.build.directory}/../../../../skywalking-agent/activations/${project.artifactId}-${project.version}.jar" overwrite="true"/>
|
||||
</then>
|
||||
</if>
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
<artifactId>optional-spring-plugins</artifactId>
|
||||
<properties>
|
||||
<plugin.dest.dir>${project.build.directory}/../../../../../packages/skywalking-agent/optional-plugins</plugin.dest.dir>
|
||||
<plugin.dest.dir>${project.build.directory}/../../../../../skywalking-agent/optional-plugins</plugin.dest.dir>
|
||||
</properties>
|
||||
|
||||
<modules>
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
<shade.net.bytebuddy.source>net.bytebuddy</shade.net.bytebuddy.source>
|
||||
<shade.net.bytebuddy.target>${shade.package}.${shade.net.bytebuddy.source}</shade.net.bytebuddy.target>
|
||||
|
||||
<plugin.dest.dir>${project.build.directory}/../../../../packages/skywalking-agent/optional-plugins</plugin.dest.dir>
|
||||
<plugin.dest.dir>${project.build.directory}/../../../../skywalking-agent/optional-plugins</plugin.dest.dir>
|
||||
</properties>
|
||||
|
||||
<modules>
|
||||
|
|
|
|||
Loading…
Reference in New Issue