-
Notifications
You must be signed in to change notification settings - Fork 23
/
pom.xml
98 lines (89 loc) · 4.21 KB
/
pom.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
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>com.backbase.oss.boat.example</groupId>
<artifactId>boat-generate</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>angular</artifactId>
<packaging>jar</packaging>
<name>BOAT :: Generate :: Angular Module</name>
<properties>
<codegen.outputFile>target/generated-sources</codegen.outputFile>
<codegen.libFolder>target/lib</codegen.libFolder>
<codegen.npmPackage.name>@boat/petstore-http-ang</codegen.npmPackage.name>
<codegen.buildDist>dist/libs/petstore-http-ang</codegen.buildDist>
<codegen.npmPackage.version>2.2.0</codegen.npmPackage.version>
<codegen.generateMocks>false</codegen.generateMocks>
<codegen.apiModulePrefix>PetStore</codegen.apiModulePrefix>
<codegen.serviceSuffix>HttpService</codegen.serviceSuffix>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.backbase.oss</groupId>
<artifactId>boat-maven-plugin</artifactId>
<executions>
<execution>
<id>angular</id>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore-expanded.yaml</inputSpec>
<generatorName>boat-angular</generatorName>
<output>${project.basedir}/target/http-module</output>
<reservedWordsMappings>delete=delete,function=function,new=new</reservedWordsMappings>
<additionalProperties>npmName=${codegen.npmPackage.name},npmVersion=${codegen.npmPackage.version},withMocks=${codegen.generateMocks},buildDist=${codegen.buildDist},serviceSuffix=${codegen.serviceSuffix},apiModulePrefix=${codegen.apiModulePrefix}</additionalProperties>
<configOptions>
<ngVersion>13.0.0</ngVersion>
</configOptions>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.12.1</version>
<configuration>
<workingDirectory>${project.basedir}/target/http-module</workingDirectory>
</configuration>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>v16.15.1</nodeVersion>
</configuration>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<phase>verify</phase>
<id>npm run-script build</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run-script build</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>