Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?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>org.nuiton</groupId>
    <artifactId>wikitty</artifactId>
    <version>3.12.1</version>
  </parent>

  <groupId>org.nuiton.wikitty</groupId>
  <artifactId>wikitty-api</artifactId>

  <name>Wikitty :: api</name>
  <description>Public wikitty API</description>
  <inceptionYear>2009</inceptionYear>

  <dependencies>

    <!-- COMPILE -->

    <!-- needed to mutualise some util method (tagValueToString) -->
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>wikitty-generators</artifactId>
      <version>${project.version}</version>
    </dependency>

    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
    </dependency>

    <!-- pour le parser de requete -->
    <dependency>
      <groupId>org.parboiled</groupId>
      <artifactId>parboiled-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.parboiled</groupId>
      <artifactId>parboiled-java</artifactId>
    </dependency>

    <!-- pour la communication client/serveur et la notification sur protocole cajo -->
    <dependency>
      <groupId>gnu.cajo</groupId>
      <artifactId>cajo</artifactId>
    </dependency>

    <!-- cache implementation -->
    <dependency>
      <groupId>org.apache.jcs</groupId>
      <artifactId>jcs</artifactId>
    </dependency>

    <!-- base64 encoder/decoder used for binary type -->
    <dependency>
      <groupId>net.iharder</groupId>
      <artifactId>base64</artifactId>
    </dependency>

    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
    </dependency>

    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
    </dependency>

    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-lang3</artifactId>
    </dependency>

    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
    </dependency>

    <dependency>
      <groupId>commons-beanutils</groupId>
      <artifactId>commons-beanutils</artifactId>
    </dependency>

    <dependency>
      <groupId>org.nuiton</groupId>
      <artifactId>nuiton-utils</artifactId>
    </dependency>

    <dependency>
      <groupId>org.nuiton</groupId>
      <artifactId>nuiton-config</artifactId>
    </dependency>


    <dependency>
      <groupId>org.nuiton.i18n</groupId>
      <artifactId>nuiton-i18n</artifactId>
    </dependency>

    <dependency>
      <groupId>xpp3</groupId>
      <artifactId>xpp3</artifactId>
    </dependency>

    <dependency>
      <groupId>net.sf.opencsv</groupId>
      <artifactId>opencsv</artifactId>
    </dependency>

    <!-- JTA -->
    <dependency>
      <groupId>org.jboss.jbossts</groupId>
      <artifactId>jbossjta</artifactId>
    </dependency>

    <dependency>
      <groupId>javax.transaction</groupId>
      <artifactId>jta</artifactId>
    </dependency>

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
    </dependency>

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
    </dependency>

    <!-- for event serialization -->
    <dependency>
      <groupId>com.thoughtworks.xstream</groupId>
      <artifactId>xstream</artifactId>
    </dependency>

    <!-- Cache -->
    <dependency>
      <groupId>org.igniterealtime.smack</groupId>
      <artifactId>smack</artifactId>
    </dependency>

    <dependency>
      <groupId>org.igniterealtime.smack</groupId>
      <artifactId>smackx</artifactId>
    </dependency>

    <!-- pour l'evaluation d'expression mathematique, lors de la conversion d'une chaine en nombre -->
    <dependency>
        <groupId>net.objecthunter</groupId>
        <artifactId>exp4j</artifactId>
    </dependency>

    <!-- TEST -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
    </dependency>
  </dependencies>

  <build>
    <resources>
      <resource>
        <directory>${project.basedir}/src/main/resources</directory>
      </resource>
      <resource>
        <directory>${project.build.directory}/generated-sources/models</directory>
        <includes>
          <include>*.objectmodel</include>
          <include>*.properties</include>
        </includes>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <groupId>org.nuiton.eugene</groupId>
        <artifactId>eugene-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>api-generation</id>
            <phase>generate-sources</phase>
            <configuration>
              <inputs>
                <input>zargo</input>
              </inputs>
              <fullPackagePath>org.nuiton.wikitty.entities</fullPackagePath>
              <defaultPackage>org.nuiton.wikitty.entities</defaultPackage>
              <extractedPackages>org.nuiton.wikitty.entities</extractedPackages>
              <templates>org.nuiton.wikitty.generator.WikittyMetaGenerator</templates>
            </configuration>
            <goals>
              <goal>smart-generate</goal>
            </goals>
          </execution>
          <execution>
            <id>test-generation</id>
            <phase>generate-test-sources</phase>
            <configuration>
              <inputs>
                <input>zargo</input>
                <input>classpath:model:/:wikitty.objectmodel</input>
              </inputs>
              <fullPackagePath>org.nuiton.wikitty.test</fullPackagePath>
              <defaultPackage>org.nuiton.wikitty.test</defaultPackage>
              <generatedPackages>org.nuiton.wikitty.test</generatedPackages>
              <extractedPackages>org.nuiton.wikitty</extractedPackages>
              <templates>org.nuiton.wikitty.generator.WikittyMetaGenerator</templates>
              <outputDirectory>target/generated-test-sources</outputDirectory>
              <testPhase>true</testPhase>
            </configuration>
            <goals>
              <goal>smart-generate</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <!-- Creates and deploy also tests classifier -->
      <!-- Needed for wikitty-solr-impl tests -->
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-test</id>
            <goals>
              <goal>test-jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <!-- perform only on a release stage when using the maven-release-plugin -->
    <profile>
      <id>release-profile</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>

      <build>
        <plugins>

          <!-- always compute tests source jar -->
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-test-sources</id>
                <goals>
                  <goal>test-jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>

          <!-- always compute tests source jar -->
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-test-javadoc</id>
                <goals>
                  <goal>test-jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>

        </plugins>
      </build>
    </profile>

    <profile>
      <id>run-its</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>
      <build>
        <defaultGoal>integration-test</defaultGoal>
        <plugins>
          <plugin>
            <artifactId>maven-invoker-plugin</artifactId>
            <configuration>
              <pomIncludes>
                <pomInclude>generation/pom.xml</pomInclude>
              </pomIncludes>
              <postBuildHookScript>verify</postBuildHookScript>
              <localRepositoryPath>
                ${basedir}/target/local-repo
              </localRepositoryPath>
              <settingsFile>src/it/settings.xml</settingsFile>
              <cloneProjectsTo>${project.build.directory}/its</cloneProjectsTo>
              <debug>${maven.verbose}</debug>
            </configuration>
            <executions>
              <execution>
                <id>integration-test</id>
                <goals>
                  <goal>install</goal>
                  <goal>run</goal>
                </goals>
                <phase>integration-test</phase>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

  </profiles>
</project>
New to GrepCode? Check out our FAQ X