|
1 | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
2 | 2 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
3 | 3 | <modelVersion>4.0.0</modelVersion> |
4 | | - <groupId>com.linecorp.bot</groupId> |
| 4 | + <groupId>org.openapitools</groupId> |
5 | 5 | <artifactId>line-bot-sdk-php-generator</artifactId> |
6 | | - <packaging>pom</packaging> |
| 6 | + <packaging>jar</packaging> |
7 | 7 | <name>line-bot-sdk-php-generator</name> |
8 | 8 | <version>1.0.0</version> |
9 | 9 | <build> |
10 | 10 | <plugins> |
11 | 11 | <plugin> |
12 | 12 | <groupId>org.apache.maven.plugins</groupId> |
13 | | - <artifactId>maven-dependency-plugin</artifactId> |
14 | | - <version>3.11.0</version> |
| 13 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 14 | + <version>3.6.3</version> |
| 15 | + <executions> |
| 16 | + <execution> |
| 17 | + <id>enforce-maven</id> |
| 18 | + <goals> |
| 19 | + <goal>enforce</goal> |
| 20 | + </goals> |
| 21 | + <configuration> |
| 22 | + <rules> |
| 23 | + <requireMavenVersion> |
| 24 | + <version>2.2.0</version> |
| 25 | + </requireMavenVersion> |
| 26 | + </rules> |
| 27 | + </configuration> |
| 28 | + </execution> |
| 29 | + </executions> |
| 30 | + </plugin> |
| 31 | + <plugin> |
| 32 | + <groupId>org.apache.maven.plugins</groupId> |
| 33 | + <artifactId>maven-surefire-plugin</artifactId> |
| 34 | + <version>3.5.6</version> |
| 35 | + <configuration> |
| 36 | + <systemProperties> |
| 37 | + <property> |
| 38 | + <name>loggerPath</name> |
| 39 | + <value>conf/log4j.properties</value> |
| 40 | + </property> |
| 41 | + </systemProperties> |
| 42 | + <argLine>-Xms512m -Xmx1500m</argLine> |
| 43 | + <parallel>methods</parallel> |
| 44 | + <forkMode>pertest</forkMode> |
| 45 | + </configuration> |
| 46 | + </plugin> |
| 47 | + |
| 48 | + <plugin> |
| 49 | + <groupId>org.apache.maven.plugins</groupId> |
| 50 | + <artifactId>maven-jar-plugin</artifactId> |
| 51 | + <version>3.5.0</version> |
| 52 | + <executions> |
| 53 | + <execution> |
| 54 | + <id>default-jar</id> |
| 55 | + <goals> |
| 56 | + <goal>jar</goal> |
| 57 | + </goals> |
| 58 | + </execution> |
| 59 | + </executions> |
| 60 | + <configuration> |
| 61 | + </configuration> |
| 62 | + </plugin> |
| 63 | + |
| 64 | + <plugin> |
| 65 | + <groupId>org.codehaus.mojo</groupId> |
| 66 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 67 | + <version>3.6.1</version> |
| 68 | + <executions> |
| 69 | + <execution> |
| 70 | + <id>add_sources</id> |
| 71 | + <phase>generate-sources</phase> |
| 72 | + <goals> |
| 73 | + <goal>add-source</goal> |
| 74 | + </goals> |
| 75 | + <configuration> |
| 76 | + <sources> |
| 77 | + <source> |
| 78 | + src/main/java |
| 79 | + </source> |
| 80 | + </sources> |
| 81 | + </configuration> |
| 82 | + </execution> |
| 83 | + <execution> |
| 84 | + <id>add_test_sources</id> |
| 85 | + <phase>generate-test-sources</phase> |
| 86 | + <goals> |
| 87 | + <goal>add-test-source</goal> |
| 88 | + </goals> |
| 89 | + <configuration> |
| 90 | + <sources> |
| 91 | + <source> |
| 92 | + src/test/java |
| 93 | + </source> |
| 94 | + </sources> |
| 95 | + </configuration> |
| 96 | + </execution> |
| 97 | + </executions> |
| 98 | + </plugin> |
| 99 | + <plugin> |
| 100 | + <groupId>org.apache.maven.plugins</groupId> |
| 101 | + <artifactId>maven-compiler-plugin</artifactId> |
| 102 | + <version>3.15.0</version> |
| 103 | + <configuration> |
| 104 | + <source>1.8</source> |
| 105 | + <target>1.8</target> |
| 106 | + </configuration> |
| 107 | + </plugin> |
| 108 | + <plugin> |
| 109 | + <groupId>org.apache.maven.plugins</groupId> |
| 110 | + <artifactId>maven-shade-plugin</artifactId> |
| 111 | + <version>3.6.2</version> |
15 | 112 | <executions> |
16 | 113 | <execution> |
17 | | - <id>copy-openapi-generator-cli</id> |
18 | 114 | <phase>package</phase> |
19 | 115 | <goals> |
20 | | - <goal>copy</goal> |
| 116 | + <goal>shade</goal> |
21 | 117 | </goals> |
22 | 118 | <configuration> |
23 | | - <artifactItems> |
24 | | - <artifactItem> |
25 | | - <groupId>org.openapitools</groupId> |
26 | | - <artifactId>openapi-generator-cli</artifactId> |
27 | | - <version>${openapi-generator-version}</version> |
28 | | - <type>jar</type> |
29 | | - <destFileName>openapi-generator-cli.jar</destFileName> |
30 | | - <outputDirectory>${project.build.directory}</outputDirectory> |
31 | | - </artifactItem> |
32 | | - </artifactItems> |
| 119 | + <createDependencyReducedPom>false</createDependencyReducedPom> |
| 120 | + <transformers> |
| 121 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
| 122 | + </transformers> |
| 123 | + <filters> |
| 124 | + <filter> |
| 125 | + <artifact>*:*</artifact> |
| 126 | + <excludes> |
| 127 | + <exclude>META-INF/*.SF</exclude> |
| 128 | + <exclude>META-INF/*.DSA</exclude> |
| 129 | + <exclude>META-INF/*.RSA</exclude> |
| 130 | + </excludes> |
| 131 | + </filter> |
| 132 | + </filters> |
33 | 133 | </configuration> |
34 | 134 | </execution> |
35 | 135 | </executions> |
36 | 136 | </plugin> |
37 | 137 | </plugins> |
38 | 138 | </build> |
| 139 | + <dependencies> |
| 140 | + <dependency> |
| 141 | + <groupId>org.openapitools</groupId> |
| 142 | + <artifactId>openapi-generator</artifactId> |
| 143 | + <version>${openapi-generator-version}</version> |
| 144 | + <scope>provided</scope> |
| 145 | + </dependency> |
| 146 | + <dependency> |
| 147 | + <groupId>org.openapitools</groupId> |
| 148 | + <artifactId>openapi-generator-cli</artifactId> |
| 149 | + <version>${openapi-generator-version}</version> |
| 150 | + </dependency> |
| 151 | + <dependency> |
| 152 | + <groupId>io.pebbletemplates</groupId> |
| 153 | + <artifactId>pebble</artifactId> |
| 154 | + <version>4.1.2</version> |
| 155 | + </dependency> |
| 156 | + <dependency> |
| 157 | + <groupId>org.junit.jupiter</groupId> |
| 158 | + <artifactId>junit-jupiter-api</artifactId> |
| 159 | + <version>6.1.0</version> |
| 160 | + <scope>test</scope> |
| 161 | + </dependency> |
| 162 | + <dependency> |
| 163 | + <groupId>org.junit.jupiter</groupId> |
| 164 | + <artifactId>junit-jupiter-engine</artifactId> |
| 165 | + <version>6.1.0</version> |
| 166 | + <scope>test</scope> |
| 167 | + </dependency> |
| 168 | + </dependencies> |
39 | 169 | <properties> |
40 | 170 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
41 | | - <openapi-generator-version>7.11.0</openapi-generator-version> |
| 171 | + <openapi-generator-version>7.23.0</openapi-generator-version> |
| 172 | + <maven-plugin-version>1.0.0</maven-plugin-version> |
42 | 173 | </properties> |
43 | 174 | </project> |
0 commit comments