pom.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2024 Apollo Authors
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. ~
  17. -->
  18. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  20. <parent>
  21. <groupId>com.ctrip.framework.apollo</groupId>
  22. <artifactId>apollo</artifactId>
  23. <version>${revision}</version>
  24. <relativePath>../pom.xml</relativePath>
  25. </parent>
  26. <modelVersion>4.0.0</modelVersion>
  27. <artifactId>apollo-build-sql-converter</artifactId>
  28. <name>Apollo Build Sql Converter</name>
  29. <dependencies>
  30. <dependency>
  31. <groupId>org.freemarker</groupId>
  32. <artifactId>freemarker</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.h2database</groupId>
  36. <artifactId>h2</artifactId>
  37. <scope>test</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-jdbc</artifactId>
  42. <scope>test</scope>
  43. </dependency>
  44. </dependencies>
  45. <profiles>
  46. <profile>
  47. <id>sql-converter</id>
  48. <activation>
  49. <activeByDefault>false</activeByDefault>
  50. </activation>
  51. <build>
  52. <plugins>
  53. <plugin>
  54. <groupId>org.apache.maven.plugins</groupId>
  55. <artifactId>maven-compiler-plugin</artifactId>
  56. </plugin>
  57. <plugin>
  58. <groupId>org.codehaus.mojo</groupId>
  59. <artifactId>exec-maven-plugin</artifactId>
  60. <version>3.0.0</version>
  61. <executions>
  62. <execution>
  63. <id>sql-converter</id>
  64. <phase>compile</phase>
  65. <goals>
  66. <goal>java</goal>
  67. </goals>
  68. </execution>
  69. </executions>
  70. <configuration>
  71. <mainClass>com.ctrip.framework.apollo.build.sql.converter.ApolloSqlConverter</mainClass>
  72. </configuration>
  73. </plugin>
  74. </plugins>
  75. </build>
  76. </profile>
  77. </profiles>
  78. </project>