Skip to content

Commit

Permalink
统一assembly插件写法
Browse files Browse the repository at this point in the history
  • Loading branch information
calvin1978 committed Sep 5, 2018
1 parent 14ccca2 commit 1802429
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
6 changes: 4 additions & 2 deletions vjmap/src/main/assembly/distribution.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">

<id>zip</id>
<formats>
<format>zip</format>
</formats>
<baseDirectory>${project.artifactId}</baseDirectory>

<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
Expand All @@ -17,6 +18,7 @@
<outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
</dependencySet>
</dependencySets>

<files>
<file>
<source>src/main/assembly/vjmap.sh</source>
Expand Down
5 changes: 3 additions & 2 deletions vjmxcli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<version>2.6</version>
<configuration>
<descriptors>
<descriptor>src/main/assembly/zip.xml</descriptor>
<descriptor>src/main/assembly/distribution.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
Expand Down Expand Up @@ -101,6 +101,7 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
Expand Down Expand Up @@ -158,7 +159,7 @@
</scm>

<developers>
<!--not noly me, write a name here just for sonatype requirement -->
<!--not just me, write a name here just for sonatype requirement -->
<developer>
<id>calvin</id>
<name>Calvin Xiao</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">

<id>zip</id>
<baseDirectory>${project.build.finalName}</baseDirectory>
<baseDirectory>${project.artifactId}</baseDirectory>
<formats>
<format>zip</format>
</formats>
Expand All @@ -28,12 +28,16 @@
<filtered>true</filtered>
<lineEnding>unix</lineEnding>
</file>
<file>
<source>src/main/assembly/vjmxcli.sh</source>
<outputDirectory>/</outputDirectory>
<lineEnding>windows</lineEnding>
</file>
<file>
<source>README.md</source>
<outputDirectory>/</outputDirectory>
<destName>README.md</destName>
<lineEnding>unix</lineEnding>
</file>

</files>
</assembly>

0 comments on commit 1802429

Please sign in to comment.