aboutsummaryrefslogtreecommitdiffstats
path: root/adapters/mso-sdnc-adapter/pom.xml
blob: 9a9a38079b6a656a9789708926c90a269c9bcd71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<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">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.onap.so</groupId>
		<artifactId>adapters</artifactId>
		<version>1.2.0-SNAPSHOT</version>
	</parent>
	<groupId>org.onap.so.adapters</groupId>
	<artifactId>mso-sdnc-adapter</artifactId>
	<packaging>war</packaging>
	<name>mso-sdnc-adapter</name>
	<description>mso sdnc adapter</description>

	<build>
		<finalName>${project.artifactId}-${project.version}</finalName>
		<plugins>

			<plugin>
				<artifactId>maven-war-plugin</artifactId>
				<version>2.4</version>
				<configuration>
					<warSourceDirectory>${basedir}/WebContent</warSourceDirectory>
					<failOnMissingWebXml>false</failOnMissingWebXml>
					<attachClasses>true</attachClasses>
				</configuration>
			</plugin>
<!-- 			<plugin> -->
<!-- 				<groupId>org.jboss.as.plugins</groupId> -->
<!-- 				<artifactId>jboss-as-maven-plugin</artifactId> -->
<!-- 				<version>7.6.Final</version> -->
<!-- 				<configuration> -->
<!-- 					<force>true</force> -->
<!-- 					<port>${jboss.port}</port> -->
<!-- 					<hostname>${jboss.hostname}</hostname> -->
<!-- 					<username>${jboss.username}</username> -->
<!-- 					<password>${jboss.password}</password> -->
<!-- 					<ignoreMissingDeployment>true</ignoreMissingDeployment> -->
<!-- 					<domain> -->
<!-- 						<server-groups> -->
<!-- 							<server-group>server-group-one</server-group> -->
<!-- 							<server-group>server-group-two</server-group> -->
<!-- 						</server-groups> -->
<!-- 					</domain> -->
<!-- 					<fileNames> -->
<!-- 						<fileName>target/${project.build.finalName}.${project.packaging}</fileName> -->
<!-- 					</fileNames> -->
<!-- 				</configuration> -->
<!-- 				<executions> -->
<!-- 					<execution> -->
<!-- 						<id>undeploy</id> -->
<!-- 						<phase>clean</phase> -->
<!-- 						<goals> -->
<!-- 							<goal>undeploy</goal> -->
<!-- 						</goals> -->
<!-- 					</execution> -->
<!-- 					<execution> -->
<!-- 						<id>deploy</id> -->
<!-- 						<phase>install</phase> -->
<!-- 						<goals> -->
<!-- 							<goal>deploy</goal> -->
<!-- 						</goals> -->
<!-- 					</execution> -->
<!-- 				</executions> -->
<!-- 			</plugin> -->
		</plugins>
	</build>
	<dependencies>
		<dependency>
			<groupId>org.onap.so.adapters</groupId>
			<artifactId>mso-adapter-utils</artifactId>
			<version>${project.version}</version>

		</dependency>
		<dependency>
			<groupId>javax</groupId>
			<artifactId>javaee-web-api</artifactId>
			<version>6.0</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.jboss.spec.javax.ejb</groupId>
			<artifactId>jboss-ejb-api_3.2_spec</artifactId>
			<version>1.0.0.Final</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.jboss.ejb3</groupId>
			<artifactId>jboss-ejb3-ext-api</artifactId>
			<version>2.2.0.Final</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.onap.so</groupId>
			<artifactId>status-control</artifactId>
			<version>${project.version}</version>
		</dependency>
        <dependency>
            <groupId>org.onap.so.adapters</groupId>
            <artifactId>mso-adapters-rest-interface</artifactId>
            <version>${project.version}</version>
        </dependency>
		<!-- For UriUtils which does URL encoding according to RFC 3986 Section 2 -->
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-web</artifactId>
			<version>4.3.2.RELEASE</version>
		</dependency>
	</dependencies>
</project>
span class="nt"><fileset dir="${project.build.directory}/dependency"/> <mapper type="flatten"/> </move> <!-- move to yang folder --> <copy todir="${project.build.directory}/yang" failonerror="false"> <fileset dir="${project.build.directory}/dependency" includes="**/*.yang"/> <mapper type="flatten"/> </copy> </tasks> </configuration> </plugin> <plugin> <groupId>org.opendaylight.yangtools</groupId> <artifactId>yang-maven-plugin</artifactId> <version>1.2.3</version> <dependencies> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.module</groupId> <artifactId>jackson-module-jaxb-annotations</artifactId> <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-base</artifactId> <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-json-provider</artifactId> <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.mrv.yangtools</groupId> <artifactId>swagger-maven-plugin</artifactId> <version>1.1.12</version> </dependency> <dependency> <groupId>com.github.romix</groupId> <artifactId>java-concurrent-hash-trie-map</artifactId> <version>0.2.23</version> </dependency> </dependencies> <executions> <execution> <id>yang2swagger-json</id> <goals> <goal>generate-sources</goal> </goals> <configuration> <codeGenerators> <generator> <codeGeneratorClass>com.mrv.yangtools.maven.gen.swagger.MavenSwaggerGenerator </codeGeneratorClass> <outputBaseDir>${project.basedir}/src/main/json</outputBaseDir> <resourceBaseDir>${project.build.directory}/yang</resourceBaseDir> <additionalConfiguration> <api-version>${project.version}</api-version> <base-module>${api.name}</base-module> <swagger-format>json</swagger-format> <path-format>rfc8040</path-format> <use-namespaces>false</use-namespaces> </additionalConfiguration> </generator> </codeGenerators> <inspectDependencies>false</inspectDependencies> <yangFilesRootDir>${project.build.directory}/yang</yangFilesRootDir> </configuration> </execution> <execution> <id>yang2swagger-yaml</id> <goals> <goal>generate-sources</goal> </goals> <configuration> <codeGenerators> <generator> <codeGeneratorClass>com.mrv.yangtools.maven.gen.swagger.MavenSwaggerGenerator </codeGeneratorClass> <outputBaseDir>${project.basedir}/src/main/yaml</outputBaseDir> <resourceBaseDir>${project.build.directory}/yang</resourceBaseDir> <additionalConfiguration> <api-version>${project.version}</api-version> <base-module>${api.name}</base-module> <swagger-format>yaml</swagger-format> <path-format>rfc8040</path-format> <use-namespaces>false</use-namespaces> </additionalConfiguration> </generator> </codeGenerators> <inspectDependencies>false</inspectDependencies> <yangFilesRootDir>${project.build.directory}/yang</yangFilesRootDir> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.2.1</version> <executions> <execution> <configuration> <executable>sh</executable> <arguments> <argument>${basedir}/fixModuleUri.sh</argument> <argument>GENERIC-RESOURCE-API</argument> <argument>src/main/yaml/generic-resource.yaml</argument> </arguments> </configuration> <id>fix-swagger-yaml</id> <phase>generate-resources</phase> <goals> <goal>exec</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.10</version> <executions> <execution> <id>attach-artifacts</id> <phase>package</phase> <goals> <goal>attach-artifact</goal> </goals> <configuration> <artifacts> <artifact> <file>src/main/json/${api.name}.json</file> <type>json</type> </artifact> <artifact> <file>src/main/yaml/${api.name}.yaml</file> <type>yaml</type> </artifact> </artifacts> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>