72 lines
3.1 KiB
XML
72 lines
3.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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>test</groupId>
|
|
<artifactId>parent</artifactId>
|
|
<version>${revision}${sha1}${changelist}</version>
|
|
</parent>
|
|
|
|
<artifactId>test-model</artifactId>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.cayenne</groupId>
|
|
<artifactId>cayenne-lifecycle</artifactId>
|
|
<version>${cayenne.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.cayenne.plugins</groupId>
|
|
<artifactId>cayenne-maven-plugin</artifactId>
|
|
<version>${cayenne.version}</version>
|
|
<configuration>
|
|
<map>${project.basedir}/src/main/resources/test/test.map.xml</map>
|
|
<superPkg>test.cayenne.auto</superPkg>
|
|
<dataSource>
|
|
<driver>com.mysql.cj.jdbc.Driver</driver>
|
|
<url>${env.JDBC_TEST_JDBCURL}</url>
|
|
<username>root</username>
|
|
<password>test</password>
|
|
</dataSource>
|
|
<dbImport>
|
|
<defaultPackage>test.cayenne</defaultPackage>
|
|
<catalog>
|
|
<name>test</name>
|
|
<excludeTable>databasechangelog.*</excludeTable>
|
|
</catalog>
|
|
</dbImport>
|
|
<overwriteExisting>true</overwriteExisting>
|
|
<meaningfulPk>true</meaningfulPk>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>default-cli</id>
|
|
<goals>
|
|
<!-- To perform reverse engineering, explicitly run 'mvn cayenne:cdbimport' -->
|
|
<!-- To perform class generation, explicitly run 'mvn cayenne:cgen' -->
|
|
<!-- Start up the modeler from the command-line 'mvn cayenne-modeler:run' -->
|
|
<goal>cgen</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<!-- 3rdParty deps-->
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<version>${mysql.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
</project> |