Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added profiles for the different tasks

  • Loading branch information...
commit 03b52fdb0b049170de043e2c26e4cbfa76542a61 1 parent ecba8f3
@mkristian authored
Showing with 214 additions and 10 deletions.
  1. +214 −10 pom.xml
View
224 pom.xml
@@ -26,32 +26,236 @@
<scope>provided</scope>
</dependency>
<dependency>
- <groupId>org.apache.solr</groupId>
- <artifactId>solr-core</artifactId>
- <version>3.3.0</version>
- <type>jar</type>
- <scope>compile</scope>
+ <groupId>org.apache.solr</groupId>
+ <artifactId>solr-core</artifactId>
+ <version>3.3.0</version>
</dependency>
</dependencies>
<properties>
<jetty.version>7.4.2.v20110526</jetty.version>
+ <mirror.dir>${basedir}/solr/tipitaka</mirror.dir>
+ <script>romn,deva</script>
</properties>
<build>
- <finalName>tipitaka-search</finalName>
+ <finalName>tipitaka</finalName>
</build>
<profiles>
<profile>
- <id>package</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
+ <id>package6</id>
<dependencies>
+ <!-- needed for deployment since
+ production jetty has an old version -->
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-util</artifactId>
<version>6.1H.22</version>
</dependency>
</dependencies>
+ <build>
+ <defaultGoal>package</defaultGoal>
+ <finalName>tipitaka6</finalName>
+ </build>
+ </profile>
+ <profile>
+ <id>setup</id>
+ <dependencies>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-servlets</artifactId>
+ <version>${jetty.version}</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <defaultGoal>integration-test</defaultGoal>
+ <plugins>
+ <!-- start local jetty to run the index update against it -->
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty-maven-plugin</artifactId>
+ <version>${jetty.version}</version>
+ <configuration>
+ <stopKey>foo</stopKey>
+ <stopPort>9999</stopPort>
+ <webAppConfig>
+ <overrideDescriptor>${basedir}/src/main/webapp/WEB-INF/web-overlay.xml</overrideDescriptor>
+ </webAppConfig>
+ </configuration>
+ <executions>
+ <execution>
+ <id>start-jetty</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <daemon>true</daemon>
+ </configuration>
+ </execution>
+ <execution>
+ <id>stop-jetty</id>
+ <phase>post-integration-test</phase>
+ <goals>
+ <goal>stop</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+ <execution>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <mainClass>org.tipitaka.search.Main</mainClass>
+ <arguments>
+ <argument>mirror</argument>
+ <argument>${mirror.dir}</argument>
+ <argument>${script}</argument>
+ <argument>index</argument>
+ <argument>${mirror.dir}</argument>
+ <argument>${script}</argument>
+ </arguments>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>index-run</id>
+ <dependencies>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-servlets</artifactId>
+ <version>${jetty.version}</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <defaultGoal>integration-test</defaultGoal>
+ <plugins>
+ <!-- start local jetty to run the index update against it -->
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty-maven-plugin</artifactId>
+ <version>${jetty.version}</version>
+ <configuration>
+ <stopKey>foo</stopKey>
+ <stopPort>9999</stopPort>
+ <webAppConfig>
+ <overrideDescriptor>${basedir}/src/main/webapp/WEB-INF/web-overlay.xml</overrideDescriptor>
+ </webAppConfig>
+ </configuration>
+ <executions>
+ <execution>
+ <id>start-jetty</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <daemon>true</daemon>
+ </configuration>
+ </execution>
+ <execution>
+ <id>stop-jetty</id>
+ <phase>post-integration-test</phase>
+ <goals>
+ <goal>stop</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+ <execution>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <mainClass>org.tipitaka.search.Main</mainClass>
+ <arguments>
+ <argument>index</argument>
+ <argument>${mirror.dir}</argument>
+ <argument>${script}</argument>
+ </arguments>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>mirror-run</id>
+ <build>
+ <defaultGoal>exec:java</defaultGoal>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.1</version>
+ <configuration>
+ <mainClass>org.tipitaka.search.Main</mainClass>
+ <arguments>
+ <argument>mirror</argument>
+ <argument>${mirror.dir}</argument>
+ <argument>${script}</argument>
+ </arguments>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>directory-structure</id>
+ <build>
+ <defaultGoal>exec:java</defaultGoal>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.1</version>
+ <configuration>
+ <mainClass>org.tipitaka.search.Main</mainClass>
+ <arguments>
+ <argument>directory-structure</argument>
+ <argument>${mirror.dir}</argument>
+ </arguments>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>directory-transcribe</id>
+ <build>
+ <defaultGoal>exec:java</defaultGoal>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.1</version>
+ <configuration>
+ <mainClass>org.tipitaka.search.Main</mainClass>
+ <arguments>
+ <argument>directory-transcribe</argument>
+ <argument>${mirror.dir}</argument>
+ <argument>${script}</argument>
+ </arguments>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</profile>
<profile>
<id>jetty-run</id>
Please sign in to comment.
Something went wrong with that request. Please try again.