Skip to content

Commit

Permalink
modify pom.xml package to runt he program, change the jar verison fro…
Browse files Browse the repository at this point in the history
…m beta to non-beta. update the README
yetsun committed Oct 14, 2014
1 parent def4512 commit f9764f2
Showing 2 changed files with 41 additions and 6 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -2,3 +2,8 @@ HelloLucene
===========

Mavenized version of Kelvin Tan's example (http://www.lucenetutorial.com/lucene-in-5-minutes.html)

Use the following command to run the program:
```
$ mvn package -q
```
42 changes: 36 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -6,33 +6,63 @@
<name>Hello Lucene</name>
<description>Mavenized version of Kelvin Tan's example</description>


<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.2</version>
<executions>
<execution>
<id>ex</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath />
<argument>HelloLucene.HelloLucene</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>



<dependencies>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<version>4.0.0-BETA</version>
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-queries</artifactId>
<version>4.0.0-BETA</version>
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-test-framework</artifactId>
<version>4.0.0-BETA</version>
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analyzers-common</artifactId>
<version>4.0.0-BETA</version>
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-queryparser</artifactId>
<version>4.0.0-BETA</version>
<version>4.0.0</version>
</dependency>
</dependencies>

<url>http://www.lucenetutorial.com/lucene-in-5-minutes.html</url>
</project>
</project>

0 comments on commit f9764f2

Please sign in to comment.