|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + |
| 6 | + <parent> |
| 7 | + <groupId>com.github.containersolutions</groupId> |
| 8 | + <artifactId>java-operator-sdk-samples</artifactId> |
| 9 | + <version>0.3.10-SNAPSHOT</version> |
| 10 | + </parent> |
| 11 | + |
| 12 | + <artifactId>mysql-schema-sample</artifactId> |
| 13 | + <name>Operator SDK - Samples - MySQL Schema</name> |
| 14 | + <description>Provisions new Schemas in a MySQL database</description> |
| 15 | + <packaging>jar</packaging> |
| 16 | + |
| 17 | + <properties> |
| 18 | + <java.version>8</java.version> |
| 19 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 20 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 21 | + </properties> |
| 22 | + |
| 23 | + <dependencies> |
| 24 | + <dependency> |
| 25 | + <groupId>com.github.containersolutions</groupId> |
| 26 | + <artifactId>operator-framework</artifactId> |
| 27 | + <version>${project.version}</version> |
| 28 | + </dependency> |
| 29 | + <dependency> |
| 30 | + <groupId>org.junit.jupiter</groupId> |
| 31 | + <artifactId>junit-jupiter-engine</artifactId> |
| 32 | + <version>5.4.2</version> |
| 33 | + </dependency> |
| 34 | + <dependency> |
| 35 | + <groupId>org.apache.logging.log4j</groupId> |
| 36 | + <artifactId>log4j-slf4j-impl</artifactId> |
| 37 | + <version>2.11.2</version> |
| 38 | + </dependency> |
| 39 | + <dependency> |
| 40 | + <groupId>org.takes</groupId> |
| 41 | + <artifactId>takes</artifactId> |
| 42 | + <version>1.17</version> |
| 43 | + </dependency> |
| 44 | + <dependency> |
| 45 | + <groupId>mysql</groupId> |
| 46 | + <artifactId>mysql-connector-java</artifactId> |
| 47 | + <version>8.0.18</version> |
| 48 | + </dependency> |
| 49 | + </dependencies> |
| 50 | + |
| 51 | + <build> |
| 52 | + <plugins> |
| 53 | + <plugin> |
| 54 | + <groupId>org.apache.maven.plugins</groupId> |
| 55 | + <artifactId>maven-compiler-plugin</artifactId> |
| 56 | + <version>3.8.1</version> |
| 57 | + </plugin> |
| 58 | + <plugin> |
| 59 | + <groupId>com.spotify</groupId> |
| 60 | + <artifactId>dockerfile-maven-plugin</artifactId> |
| 61 | + <version>1.4.12</version> |
| 62 | + <configuration> |
| 63 | + <repository>mysql-schema-operator</repository> |
| 64 | + <tag>latest</tag> |
| 65 | + <buildArgs> |
| 66 | + <JAR_FILE>${project.build.finalName}.jar</JAR_FILE> |
| 67 | + </buildArgs> |
| 68 | + </configuration> |
| 69 | + </plugin> |
| 70 | + <plugin> |
| 71 | + <groupId>org.apache.maven.plugins</groupId> |
| 72 | + <artifactId>maven-shade-plugin</artifactId> |
| 73 | + <version>2.4.3</version> |
| 74 | + <executions> |
| 75 | + <execution> |
| 76 | + <phase>package</phase> |
| 77 | + <goals> |
| 78 | + <goal>shade</goal> |
| 79 | + </goals> |
| 80 | + <configuration> |
| 81 | + <createDependencyReducedPom>false</createDependencyReducedPom> |
| 82 | + <transformers> |
| 83 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| 84 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 85 | + <manifestEntries> |
| 86 | + <Main-Class>com.github.containersolutions.operator.sample.MySQLSchemaOperator</Main-Class> |
| 87 | + <Build-Number>1.0</Build-Number> |
| 88 | + <Multi-Release>true</Multi-Release> |
| 89 | + </manifestEntries> |
| 90 | + </transformer> |
| 91 | + </transformers> |
| 92 | + <filters> |
| 93 | + <filter> |
| 94 | + <artifact>io.fabric8:openshift-client</artifact> |
| 95 | + <excludes> |
| 96 | + <exclude>io/fabric8/kubernetes/client/Config*</exclude> |
| 97 | + </excludes> |
| 98 | + </filter> |
| 99 | + </filters> |
| 100 | + </configuration> |
| 101 | + </execution> |
| 102 | + </executions> |
| 103 | + </plugin> |
| 104 | + </plugins> |
| 105 | + </build> |
| 106 | + |
| 107 | +</project> |
0 commit comments