Skip to content

Commit

Permalink
添加assembly maven插件、测试jquery.proxy方法
Browse files Browse the repository at this point in the history
  • Loading branch information
fu.wei committed Jan 25, 2017
1 parent 651d3c2 commit ae7d4db
Show file tree
Hide file tree
Showing 6 changed files with 697 additions and 3 deletions.
38 changes: 38 additions & 0 deletions boot/build/assembly.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>bin</id>
<formats>
<format>tar.gz</format>
<format>dir</format>
</formats>
<files>
<file>
<source>build/build.json</source>
<outputDirectory></outputDirectory>
<filtered>true</filtered>
</file>
<file>
<source>build/pom.properties</source>
<outputDirectory></outputDirectory>
<filtered>true</filtered>
</file>
</files>
<fileSets>
<fileSet>
<directory>src/main/resources</directory>
<outputDirectory></outputDirectory>
<filtered>true</filtered>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<useProjectArtifact>true</useProjectArtifact>
<scope>runtime</scope>
<outputDirectory>lib</outputDirectory>
<outputFileNameMapping>${artifact.artifactId}-${artifact.baseVersion}.${artifact.extension}
</outputFileNameMapping>
</dependencySet>
</dependencySets>
</assembly>
11 changes: 11 additions & 0 deletions boot/build/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"productVersion": "${project.version}",
"scmRevision": "${git.commit.id}",
"scmBranch": "${git.branch}",
"scmUser": "${git.commit.user.name}",
"scmMessage": "${git.commit.message.short}",
"scmTime": "${git.commit.time}",
"buildAt": "${git.build.time}",
"buildBy": "${user.name}",
"buildOn": "${git.build.host}"
}
3 changes: 3 additions & 0 deletions boot/build/pom.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version=${project.version}
groupId=${project.groupId}
artifactId=${project.artifactId}
19 changes: 17 additions & 2 deletions boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,23 @@
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix/>
<mainClass>boot.ApplicationBootstrap</mainClass>
<!-- avoid manifest classpath snapshot problem ,for example,in manifest,api-common-1.0-20160308.075022-79.jar -->
<useUniqueVersions>false</useUniqueVersions>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
</plugins>
</build>
Expand Down
Loading

0 comments on commit ae7d4db

Please sign in to comment.