resolve remaining todos
[yosql.git] / yosql-examples / yosql-examples-ant / pom.xml
blobafcac73683a77e42cfd2c19fddb5d43b63a36ad8
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
4   ~ directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
5   ~ including this file, may be copied, modified, propagated, or distributed except according to the terms contained
6   ~ in the LICENSE file.
7   -->
8 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9          xmlns="http://maven.apache.org/POM/4.0.0"
10          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11     <modelVersion>4.0.0</modelVersion>
13     <!-- ordering follows https://maven.apache.org/developers/conventions/code.html#POM_Code_Convention -->
15     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
16     <!--                                 PARENT                                  -->
17     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
18     <!-- https://maven.apache.org/pom.html#Inheritance -->
19     <parent>
20         <groupId>wtf.metio.yosql.examples</groupId>
21         <artifactId>yosql-examples</artifactId>
22         <version>0.0.0-SNAPSHOT</version>
23     </parent>
25     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
26     <!--                               COORDINATES                               -->
27     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
28     <!-- https://maven.apache.org/pom.html#Maven_Coordinates -->
30     <groupId>wtf.metio.yosql.examples.ant</groupId>
31     <artifactId>yosql-examples-ant</artifactId>
32     <packaging>pom</packaging>
34     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
35     <!--                               INFORMATIONS                              -->
36     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
37     <!-- https://maven.apache.org/pom.html#More_Project_Information -->
38     <name>YoSQL :: Examples :: Ant</name>
40     <dependencies>
41         <dependency>
42             <groupId>wtf.metio.yosql.tooling</groupId>
43             <artifactId>yosql-tooling-ant</artifactId>
44             <version>${project.version}</version>
45         </dependency>
46     </dependencies>
48     <build>
49         <plugins>
50             <plugin>
51                 <groupId>org.apache.maven.plugins</groupId>
52                 <artifactId>maven-antrun-plugin</artifactId>
53                 <executions>
54                     <execution>
55                         <id>first</id>
56                         <phase>verify</phase>
57                         <goals>
58                             <goal>run</goal>
59                         </goals>
60                         <configuration>
61                             <target>
62                                 <property name="runtime_classpath" refid="maven.runtime.classpath"/>
64                                 <taskdef name="yosql"
65                                          classname="wtf.metio.yosql.tooling.ant.YoSQLGenerateTask"
66                                          classpath="${runtime_classpath}"/>
68                                 <yosql>
69                                     <files inputBaseDirectory="../yosql-examples-common/src/main/yosql"
70                                            outputBaseDirectory="${project.build.directory}/first"
71                                            skipLines="6"/>
72                                     <repositories generateInterfaces="true"/>
73                                     <converter>
74                                         <rowConverters alias="itemConverter"
75                                                        converterType="wtf.metio.yosql.example.ant.converter.ToItemConverter"
76                                                        methodName="asUserType"
77                                                        resultType="wtf.metio.yosql.example.ant.model.Item"/>
78                                     </converter>
79                                 </yosql>
80                             </target>
81                         </configuration>
82                     </execution>
83                 </executions>
84             </plugin>
85         </plugins>
86     </build>
88 </project>