invar-example
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>com.struqt</groupId>
<artifactId>invar-example</artifactId>
<version>1.0.15</version>
</dependency><?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>
<artifactId>invar</artifactId>
<groupId>com.struqt</groupId>
<version>1.0.15</version>
</parent>
<artifactId>invar-example</artifactId>
<packaging>jar</packaging>
<properties>
<path.example.code>${project.basedir}/target/generated-sources/example/
</path.example.code>
<path.example.snippet>
${project.basedir}/../invar-core/src/main/resources/snippet
</path.example.snippet>
</properties>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>invar-lib</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>invar-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- http://www.mojohaus.org/exec-maven-plugin/ -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
<phase>generate-sources</phase>
</execution>
</executions>
<configuration>
<classpathScope>test</classpathScope>
<mainClass>invar.Invar</mainClass>
<arguments>
<argument>-rule</argument>
<argument>${project.basedir}/example/rule</argument>
<argument>-snippet</argument>
<argument>${path.example.snippet}/</argument>
<argument>-xsd</argument>
<argument>${path.example.code}/xsd</argument>
<argument>-java</argument>
<argument>${path.example.code}/java</argument>
<argument>-csharp</argument>
<argument>${path.example.code}/csharp</argument>
<argument>-objc</argument>
<argument>${path.example.code}/objc</argument>
<argument>-php</argument>
<argument>${path.example.code}/php</argument>
<argument>-python</argument>
<argument>${path.example.code}/python</argument>
</arguments>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${path.example.code}/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<!-- http://maven.apache.org/components/plugins/maven-source-plugin/ -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<phase>post-integration-test</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- http://maven.apache.org/components/plugins/maven-javadoc-plugin/ -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>post-integration-test</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>