oqt-maven-plugin-sample
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>net.sf.oqt.test</groupId> <artifactId>oqt-maven-plugin-sample</artifactId> <version>0.3</version> </dependency>
<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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>net.sf.oqt.test</groupId> <artifactId>oqt-maven-plugin-test</artifactId> <version>0.3</version> </parent> <groupId>net.sf.oqt.test</groupId> <artifactId>oqt-maven-plugin-sample</artifactId> <name>Maven OQT Sample Build</name> <description>This is a sample pom to build and debug the mojo's</description> <version>0.3</version> <dependencies> <dependency> <groupId>org.apache.openjpa</groupId> <artifactId>apache-openjpa</artifactId> <type>pom</type> </dependency> <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> </dependency> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> </dependency> <dependency> <groupId>org.apache.derby</groupId> <artifactId>derby</artifactId> </dependency> <dependency> <groupId>org.hsqldb</groupId> <artifactId>hsqldb</artifactId> </dependency> <dependency> <groupId>org.easytesting</groupId> <artifactId>fest-assert</artifactId> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-core</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.sonatype.aether</groupId> <artifactId>aether-impl</artifactId> </dependency> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-container-default</artifactId> </dependency> <dependency> <groupId>org.apache.maven.plugin-testing</groupId> <artifactId>maven-plugin-testing-harness</artifactId> </dependency> <dependency> <groupId>net.sf.oqt</groupId> <artifactId>oqt-maven-plugin</artifactId> <version>0.3</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>unpack-tests</id> <phase>generate-sources</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>net.sf.oqt</groupId> <artifactId>oqt-maven-plugin</artifactId> <version>${project.version}</version> <classifier>test-sources</classifier> </artifactItem> </artifactItems> <outputDirectory>${project.build.testSourceDirectory}</outputDirectory> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifactId> <configuration> <goal>clean</goal> <filesets> <fileset> <directory>src/test/java/</directory> </fileset> <fileset> <directory>db</directory> </fileset> </filesets> </configuration> </plugin> <plugin> <groupId>net.sf.oqt</groupId> <artifactId>oqt-maven-plugin</artifactId> <version>0.3</version> <configuration> <dictionary>derby</dictionary> <!-- Required --> <driverName>org.apache.derby.jdbc.EmbeddedDriver</driverName> <!-- Required --> <!-- org.apache.derby.jdbc.EmbeddedDriver --> <packageNames> <!-- At least 1 required. Must be at least a.b.c --> <packageName>net.sf.oqt.test.model</packageName> </packageNames> <url>jdbc:h2:db/test/derby;create=true;databaseName=example</url> <!-- Required --> <username /> <!-- Not required --> <password /> <!-- Not required --> <skipValidation>true</skipValidation> <reportTypes> <reportTypes>sql</reportTypes> <reportTypes>jpql</reportTypes> </reportTypes> </configuration> <dependencies> <dependency> <!-- Mandatory--> <groupId>org.apache.openjpa</groupId> <artifactId>apache-openjpa</artifactId> <version>2.2.1</version> <type>pom</type> </dependency> <dependency> <!-- Not mandatory is plugin is launched inside the model project--> <groupId>net.sf.oqt.test</groupId> <artifactId>oqt-maven-plugin-it-model</artifactId> <version>${project.version}</version> </dependency> <dependency> <!-- Mandatory, depends on driverName --> <groupId>org.apache.derby</groupId> <artifactId>derby</artifactId> <version>10.9.1.0</version> </dependency> <dependency> <!-- Mandatory --> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> </dependency> </dependencies> </plugin> <plugin> <groupId>net.sf.oqt</groupId> <artifactId>oqt-maven-plugin</artifactId> <version>0.3</version> <executions> <execution> <goals> <goal>validate</goal> </goals> </execution> </executions> <configuration> <packageNames> <!-- At least 1 required. Must be at least a.b.c --> <packageName>net.sf.oqt.test.model</packageName> </packageNames> <skipValidation>true</skipValidation> </configuration> <dependencies> <dependency> <!-- Mandatory--> <groupId>org.apache.openjpa</groupId> <artifactId>apache-openjpa</artifactId> <version>2.2.1</version> <type>pom</type> </dependency> <dependency> <!-- Not mandatory is plugin is launched inside the model project--> <groupId>net.sf.oqt.test</groupId> <artifactId>oqt-maven-plugin-it-model</artifactId> <version>${project.version}</version> </dependency> <dependency> <!-- Mandatory --> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> </dependency> </dependencies> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupId>net.sf.oqt</groupId> <artifactId>oqt-maven-plugin</artifactId> <version>0.3</version> </plugin> </plugins> </reporting> <repositories> <repository> <id>apache-snapshots</id> <url>http://people.apache.org/repo/m2-incubating-repository</url> </repository> </repositories> </project>