aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-core/httpserver/pom.xml
diff options
context:
space:
mode:
authorhuangjian <huang.jian12@zte.com.cn>2016-08-18 18:39:15 +0800
committerhuangjian <huang.jian12@zte.com.cn>2016-08-18 18:39:15 +0800
commit49302058ca6f43eb04d5cd5287aba012d489ebff (patch)
tree44821024078cd9030c33be696cc44e8b65c468eb /catalog-core/httpserver/pom.xml
parent4b3c4eb9633bb2481920202e37bcffd3face6580 (diff)
1. Adjust the directory hierarchy 2. Fix the compile issue 3.Fix the licences check warning
Change-Id: I0b9326d2dcdf08ced160ebe367b4b88e292137ee Signed-off-by: huangjian <huang.jian12@zte.com.cn>
Diffstat (limited to 'catalog-core/httpserver/pom.xml')
-rw-r--r--catalog-core/httpserver/pom.xml112
1 files changed, 112 insertions, 0 deletions
diff --git a/catalog-core/httpserver/pom.xml b/catalog-core/httpserver/pom.xml
new file mode 100644
index 00000000..b1ead67a
--- /dev/null
+++ b/catalog-core/httpserver/pom.xml
@@ -0,0 +1,112 @@
+<!--
+
+ Copyright 2016 [ZTE] and others.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <groupId>org.openo.commontosca.catalog</groupId>
+ <artifactId>catalog-core-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>httpserver</artifactId>
+ <name>openo/commontosca/catalog/httpserver</name>
+ <packaging>pom</packaging>
+
+ <properties>
+ <tomcat.version>7.0.62</tomcat.version>
+ <packagename>http-server</packagename>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack-tomcat</id>
+ <phase>package</phase>
+ <goals>
+ <goal>unpack-dependencies</goal>
+ </goals>
+ <configuration>
+ <includeGroupIds>org.apache.tomcat</includeGroupIds>
+ <includeArtifactIds>tomcat</includeArtifactIds>
+ <outputDirectory>
+ target/assembly/
+ </outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>zip</id>
+ <phase>package</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks name="${project.artifactId}">
+ <move todir="target/assembly/tomcat">
+ <fileset dir="target/assembly/apache-tomcat-${tomcat.version}"/>
+ </move>
+ <copydir src="src/main/assembly/" dest="target/assembly"/>
+ <zip destfile="target/${packagename}-${project.version}.zip" update="true">
+ <zipfileset dir="target/assembly" includes="**" />
+ </zip>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-artifacts</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>target/${packagename}-${project.version}.zip</file>
+ <type>zip</type>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>tomcat</artifactId>
+ <version>${tomcat.version}</version>
+ <type>zip</type>
+ </dependency>
+ </dependencies>
+</project> \ No newline at end of file