Skip to content

Commit

Permalink
Merge pull request #2 from adjam/issue-1
Browse files Browse the repository at this point in the history
Allow building via Maven
  • Loading branch information
billdueber authored Mar 19, 2018
2 parents 7c09d87 + c543f05 commit 32b32a5
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/
40 changes: 39 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,45 @@

<groupId>groupId</groupId>
<artifactId>umich_solr_library_filters</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.1-SNAPSHOT</version>

<properties>
<solr.version>7.2.1</solr.version>
</properties>


<dependencies>
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-core</artifactId>
<version>${solr.version}</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<finalName>lucene-umich-solr-filters-${solr.version}.${project.version}</finalName>
<sourceDirectory>src/java</sourceDirectory>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>


</project>
3 changes: 1 addition & 2 deletions src/java/edu/umich/lib/solr_filters/LCCallNoFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.umich.lib.solr.analysis;
package edu.umich.lib.solr_filters;

import edu.umich.lib.normalizers.LCCallNumberNormalizer;
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
import org.apache.lucene.analysis.TokenFilter;
import org.apache.lucene.analysis.Token;
import org.apache.lucene.analysis.TokenStream;
import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* and open the template in the editor.
*/

package edu.umich.lib.solr.analysis;
package edu.umich.lib.solr_filters;
import java.util.Map;
import org.apache.lucene.analysis.util.TokenFilterFactory;
import org.apache.lucene.analysis.TokenStream;
Expand Down
1 change: 0 additions & 1 deletion src/java/org/solrmarc/callnum/LCCallNumber.java
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ protected void init() {
/**
* This parse can be used in conjunction with the empty constructor
*/
@Override
public void parse(String call) {
init();
this.rawCallNum = call;
Expand Down

0 comments on commit 32b32a5

Please sign in to comment.