Skip to content

Commit

Permalink
Merge pull request #2 from yetsun/master
Browse files Browse the repository at this point in the history
1. modify pom.xml package to run the program. 2. change the jar version from b...
  • Loading branch information
Mac Luq committed Nov 24, 2014
2 parents def4512 + f9764f2 commit ccb6a42
Show file tree
Hide file tree
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
Expand Up @@ -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
Expand Up @@ -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 ccb6a42

Please sign in to comment.