Source

juast / demo / pom.xml

Full commit
<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>
  <groupId>juast</groupId>
  <artifactId>demo</artifactId>
  <version>0.2-SNAPSHOT</version>
  <description>Standalone project for demonstrate how to use juast with maven</description>
  <properties>
    <juast.version>0.2-SNAPSHOT</juast.version>
  </properties>
  <dependencies>
    <dependency>
      <!-- Add juast lib to classpath -->
      <groupId>juast</groupId>
      <artifactId>juast</artifactId>
      <version>${juast.version}</version>
      <scope>provided</scope> <!-- only use while compilation. no runtime dependency -->
    </dependency>
    <dependency>
      <!-- juast annotations to annotate your code -->
      <groupId>juast</groupId>
      <artifactId>annotations</artifactId>
      <version>${juast.version}</version>
    </dependency>
  </dependencies>
  <build>
    <sourceDirectory>src</sourceDirectory>
    <pluginManagement>
      <plugins>
        <plugin>
          <!-- Compiler configuration -->
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>2.5.1</version>
          <configuration>
            <!-- Annotation processing works only on JDK 1.6+ -->
            <source>1.7</source>
            <target>1.7</target>
            <!-- Show warnings produced by juast -->
            <showWarnings>true</showWarnings>
            <!-- juast configuration -->
            <compilerArguments>
              <Avcs>git</Avcs>
              <Ajuast.process>juast.processors.SystemOutPrintlnProcessor,juast.processors.EnsureCloseProcessor,juast.processors.OperatorOverload,juast.processors.EnsureCharSet,juast.processors.SafeProcessor,juast.processors.VCSProcessor</Ajuast.process>
            </compilerArguments>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
  <repositories>
    <repository>
      <!-- for juast libs -->
      <id>juast</id>
      <url>https://bitbucket.org/amelentev/mvnrepo/raw/tip/</url>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <!-- for corrected maven-compiler-plugin 2.3.2-fix62 -->
      <id>juast</id>
      <url>https://bitbucket.org/amelentev/mvnrepo/raw/tip/</url>
    </pluginRepository>
  </pluginRepositories>
</project>