|
@@ -198,135 +198,79 @@
|
|
|
</dependencies>
|
|
</dependencies>
|
|
|
<build>
|
|
<build>
|
|
|
<finalName>platform-b2b</finalName>
|
|
<finalName>platform-b2b</finalName>
|
|
|
- <pluginManagement>
|
|
|
|
|
- <plugins>
|
|
|
|
|
- <plugin>
|
|
|
|
|
- <groupId>org.eclipse.m2e</groupId>
|
|
|
|
|
- <artifactId>lifecycle-mapping</artifactId>
|
|
|
|
|
- <version>1.0.0</version>
|
|
|
|
|
- <configuration>
|
|
|
|
|
- <lifecycleMappingMetadata>
|
|
|
|
|
- <pluginExecutions>
|
|
|
|
|
- <pluginExecution>
|
|
|
|
|
- <pluginExecutionFilter>
|
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
- <artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
|
- <versionRange>[1.0,)</versionRange>
|
|
|
|
|
- <goals>
|
|
|
|
|
- <goal>run</goal>
|
|
|
|
|
- </goals>
|
|
|
|
|
- </pluginExecutionFilter>
|
|
|
|
|
- <action>
|
|
|
|
|
- <ignore />
|
|
|
|
|
- </action>
|
|
|
|
|
- </pluginExecution>
|
|
|
|
|
- <pluginExecution>
|
|
|
|
|
- <pluginExecutionFilter>
|
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
- <artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
|
- <versionRange>[1.0,)</versionRange>
|
|
|
|
|
- <goals>
|
|
|
|
|
- <goal>copy</goal>
|
|
|
|
|
- </goals>
|
|
|
|
|
- </pluginExecutionFilter>
|
|
|
|
|
- <action>
|
|
|
|
|
- <ignore />
|
|
|
|
|
- </action>
|
|
|
|
|
- </pluginExecution>
|
|
|
|
|
- </pluginExecutions>
|
|
|
|
|
- </lifecycleMappingMetadata>
|
|
|
|
|
- </configuration>
|
|
|
|
|
- </plugin>
|
|
|
|
|
- </plugins>
|
|
|
|
|
- </pluginManagement>
|
|
|
|
|
<plugins>
|
|
<plugins>
|
|
|
- <plugin>
|
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
- <configuration>
|
|
|
|
|
- <source>1.7</source>
|
|
|
|
|
- <target>1.7</target>
|
|
|
|
|
- </configuration>
|
|
|
|
|
- </plugin>
|
|
|
|
|
|
|
+ <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
+ <configuration> <source>1.7</source> <target>1.7</target> </configuration>
|
|
|
|
|
+ </plugin> -->
|
|
|
<!-- <plugin> <groupId>org.jboss.as.plugins</groupId> <artifactId>jboss-as-maven-plugin</artifactId>
|
|
<!-- <plugin> <groupId>org.jboss.as.plugins</groupId> <artifactId>jboss-as-maven-plugin</artifactId>
|
|
|
<version>7.6.Final</version> <executions> <execution> 下面部分是让执行 mvn install
|
|
<version>7.6.Final</version> <executions> <execution> 下面部分是让执行 mvn install
|
|
|
时 自动执行jboss-as:deploy <phase>install</phase> <goals> <goal>deploy</goal>
|
|
时 自动执行jboss-as:deploy <phase>install</phase> <goals> <goal>deploy</goal>
|
|
|
</goals> 远程服务器的相关配置 <configuration> <hostname>60.host</hostname> <port>9999</port>
|
|
</goals> 远程服务器的相关配置 <configuration> <hostname>60.host</hostname> <port>9999</port>
|
|
|
用户名和密码为jboss as 中添加的用户名和密码 <username>administrator</username> <password>select111***</password>
|
|
用户名和密码为jboss as 中添加的用户名和密码 <username>administrator</username> <password>select111***</password>
|
|
|
</configuration> </execution> </executions> </plugin> -->
|
|
</configuration> </execution> </executions> </plugin> -->
|
|
|
- <!-- <plugin>
|
|
|
|
|
- <groupId>org.apache.tomcat.maven</groupId>
|
|
|
|
|
- <artifactId>tomcat7-maven-plugin</artifactId>
|
|
|
|
|
- <version>2.2</version>
|
|
|
|
|
- <executions> <execution> <phase>install</phase> <goals> <goal>deploy</goal>
|
|
|
|
|
- </goals> <configuration> <url>http://60.host:9090/manager/text</url> <username>administrator</username>
|
|
|
|
|
- <password>select111***</password> <path>/platform-b2b</path> <update>true</update>
|
|
|
|
|
- </configuration> </execution> </executions>
|
|
|
|
|
- </plugin> -->
|
|
|
|
|
|
|
+ <!-- <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId>
|
|
|
|
|
+ <version>2.2</version> <executions> <execution> <phase>install</phase> <goals>
|
|
|
|
|
+ <goal>deploy</goal> </goals> <configuration> <url>http://60.host:9090/manager/text</url>
|
|
|
|
|
+ <username>administrator</username> <password>select111***</password> <path>/platform-b2b</path>
|
|
|
|
|
+ <update>true</update> </configuration> </execution> </executions> </plugin> -->
|
|
|
<plugin>
|
|
<plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
- <artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
|
- <version>2.4</version>
|
|
|
|
|
|
|
+ <groupId>com.samaxes.maven</groupId>
|
|
|
|
|
+ <artifactId>minify-maven-plugin</artifactId>
|
|
|
|
|
+ <version>1.7.4</version>
|
|
|
<executions>
|
|
<executions>
|
|
|
<execution>
|
|
<execution>
|
|
|
- <phase>validate</phase>
|
|
|
|
|
- <goals>
|
|
|
|
|
- <goal>copy</goal>
|
|
|
|
|
- </goals>
|
|
|
|
|
|
|
+ <id>default-minify</id>
|
|
|
|
|
+ <phase>prepare-package</phase>
|
|
|
<configuration>
|
|
<configuration>
|
|
|
- <artifactItems>
|
|
|
|
|
- <artifactItem>
|
|
|
|
|
- <groupId>com.google.javascript</groupId>
|
|
|
|
|
- <artifactId>closure-compiler</artifactId>
|
|
|
|
|
- <version>v20150505</version>
|
|
|
|
|
- <type>jar</type>
|
|
|
|
|
- <overWrite>true</overWrite>
|
|
|
|
|
- <outputDirectory>${project.build.directory}/compressor</outputDirectory>
|
|
|
|
|
- <destFileName>closure-compiler.jar</destFileName>
|
|
|
|
|
- </artifactItem>
|
|
|
|
|
- <artifactItem>
|
|
|
|
|
- <groupId>com.yahoo.platform.yui</groupId>
|
|
|
|
|
- <artifactId>yuicompressor</artifactId>
|
|
|
|
|
- <version>2.4.8</version>
|
|
|
|
|
- <type>jar</type>
|
|
|
|
|
- <overWrite>true</overWrite>
|
|
|
|
|
- <outputDirectory>${project.build.directory}/compressor</outputDirectory>
|
|
|
|
|
- <destFileName>yuicompressor.jar</destFileName>
|
|
|
|
|
- </artifactItem>
|
|
|
|
|
- </artifactItems>
|
|
|
|
|
|
|
+ <charset>UTF-8</charset>
|
|
|
|
|
+ <skipMerge>true</skipMerge>
|
|
|
|
|
+ <closureLanguage>ECMASCRIPT5</closureLanguage>
|
|
|
|
|
+ <closureAngularPass>true</closureAngularPass>
|
|
|
|
|
+ <nosuffix>true</nosuffix>
|
|
|
|
|
+ <webappTargetDir>${project.build.directory}/minify</webappTargetDir>
|
|
|
|
|
+ <cssSourceDir>resources/css</cssSourceDir>
|
|
|
|
|
+ <cssEngine>YUI</cssEngine>
|
|
|
|
|
+ <jsSourceDir>resources/js</jsSourceDir>
|
|
|
|
|
+ <jsEngine>CLOSURE</jsEngine>
|
|
|
|
|
+ <cssSourceIncludes>
|
|
|
|
|
+ <cssSourceInclude>**/*.css</cssSourceInclude>
|
|
|
|
|
+ </cssSourceIncludes>
|
|
|
|
|
+ <cssSourceExcludes>
|
|
|
|
|
+ <cssSourceExclude>**/*.min.css</cssSourceExclude>
|
|
|
|
|
+ </cssSourceExcludes>
|
|
|
|
|
+ <jsSourceIncludes>
|
|
|
|
|
+ <jsSourceInclude>**/*.js</jsSourceInclude>
|
|
|
|
|
+ </jsSourceIncludes>
|
|
|
|
|
+ <jsSourceExcludes>
|
|
|
|
|
+ <jsSourceExclude>**/*.min.js</jsSourceExclude>
|
|
|
|
|
+ </jsSourceExcludes>
|
|
|
</configuration>
|
|
</configuration>
|
|
|
|
|
+ <goals>
|
|
|
|
|
+ <goal>minify</goal>
|
|
|
|
|
+ </goals>
|
|
|
</execution>
|
|
</execution>
|
|
|
</executions>
|
|
</executions>
|
|
|
</plugin>
|
|
</plugin>
|
|
|
<plugin>
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
|
- <version>1.7</version>
|
|
|
|
|
- <executions>
|
|
|
|
|
- <execution>
|
|
|
|
|
- <phase>install</phase>
|
|
|
|
|
- <configuration>
|
|
|
|
|
- <tasks>
|
|
|
|
|
- <property name="project.build.directory" value="${project.build.directory}" />
|
|
|
|
|
- <property name="project.build.finalName" value="${project.build.finalName}" />
|
|
|
|
|
- <ant antfile="build.xml" />
|
|
|
|
|
- </tasks>
|
|
|
|
|
- </configuration>
|
|
|
|
|
- <goals>
|
|
|
|
|
- <goal>run</goal>
|
|
|
|
|
- </goals>
|
|
|
|
|
- </execution>
|
|
|
|
|
- </executions>
|
|
|
|
|
- <dependencies>
|
|
|
|
|
- <dependency>
|
|
|
|
|
- <groupId>org.apache.ant</groupId>
|
|
|
|
|
- <artifactId>ant-launcher</artifactId>
|
|
|
|
|
- <version>1.8.2</version>
|
|
|
|
|
- </dependency>
|
|
|
|
|
- </dependencies>
|
|
|
|
|
|
|
+ <artifactId>maven-war-plugin</artifactId>
|
|
|
|
|
+ <version>2.4</version>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <webResources>
|
|
|
|
|
+ <resource>
|
|
|
|
|
+ <directory>${project.build.directory}/minify</directory>
|
|
|
|
|
+ </resource>
|
|
|
|
|
+ </webResources>
|
|
|
|
|
+ </configuration>
|
|
|
</plugin>
|
|
</plugin>
|
|
|
</plugins>
|
|
</plugins>
|
|
|
</build>
|
|
</build>
|
|
|
|
|
+ <properties>
|
|
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
+ <maven.compiler.source>1.7</maven.compiler.source>
|
|
|
|
|
+ <maven.compiler.target>1.7</maven.compiler.target>
|
|
|
|
|
+ <skipTests>true</skipTests>
|
|
|
|
|
+ </properties>
|
|
|
<distributionManagement>
|
|
<distributionManagement>
|
|
|
<!-- 发布release仓库 -->
|
|
<!-- 发布release仓库 -->
|
|
|
<repository>
|
|
<repository>
|