123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331 |
- <?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <packaging>war</packaging>
- <groupId>com.liangjian</groupId>
- <artifactId>ljlucene</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <name>LJLucene</name>
- <description>亮剑搜索引擎</description>
- <properties>
- <maven.compiler.target>1.8</maven.compiler.target>
- <maven.compiler.source>1.8</maven.compiler.source>
- <tomcat.version>8.5.5</tomcat.version>
- </properties>
- <dependencies>
- <!-- 百度aip -->
- <dependency>
- <groupId>com.baidu.aip</groupId>
- <artifactId>java-sdk</artifactId>
- <version>4.1.1</version>
- </dependency>
- <!-- base64 -->
- <dependency>
- <groupId>net.iharder</groupId>
- <artifactId>base64</artifactId>
- <version>2.3.7</version>
- </dependency>
- <!-- commons-beanutils -->
- <dependency>
- <groupId>commons-beanutils</groupId>
- <artifactId>commons-beanutils</artifactId>
- <version>1.7.0</version>
- </dependency>
- <!-- commons-codec -->
- <dependency>
- <groupId>commons-codec</groupId>
- <artifactId>commons-codec</artifactId>
- <version>1.8</version>
- </dependency>
- <!-- commons-collections4 (原来的是collections-3.2.1) -->
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-collections4</artifactId>
- <version>4.4</version>
- </dependency>
- <!-- commons-fileupload -->
- <dependency>
- <groupId>commons-fileupload</groupId>
- <artifactId>commons-fileupload</artifactId>
- <version>1.3</version>
- </dependency>
- <!-- commons-httpclient -->
- <dependency>
- <groupId>commons-httpclient</groupId>
- <artifactId>commons-httpclient</artifactId>
- <version>3.1</version>
- </dependency>
- <!-- commons-io -->
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- <version>1.2</version>
- </dependency>
- <!-- commons-lang -->
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>2.3</version>
- </dependency>
- <!-- commons-logging -->
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>1.1.1</version>
- </dependency>
- <!-- hamcrest-core -->
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-core</artifactId>
- <version>1.3</version>
- <scope>test</scope>
- </dependency>
- <!-- ezmorph -->
- <dependency>
- <groupId>net.sf.ezmorph</groupId>
- <artifactId>ezmorph</artifactId>
- <version>1.0.3</version>
- </dependency>
- <!-- httpclient -->
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpclient</artifactId>
- <version>4.5</version>
- </dependency>
- <!-- httpcore -->
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpcore</artifactId>
- <version>4.4.1</version>
- </dependency>
- <!-- ik-analyzer(原来是IKAnalzer6.5.0, maven仓库中找不到该依赖,而且GitHub项目已经归档,故选择maven仓库上有的。) -->
- <dependency>
- <groupId>com.github.magese</groupId>
- <artifactId>ik-analyzer</artifactId>
- <version>7.4.0</version>
- </dependency>
- <!-- javax.servlet-api -->
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>javax.servlet-api</artifactId>
- <version>3.1.0</version>
- <scope>provided</scope>
- </dependency>
- <!-- javax.websocket-api -->
- <dependency>
- <groupId>javax.websocket</groupId>
- <artifactId>javax.websocket-api</artifactId>
- <version>1.1</version>
- <scope>provided</scope>
- </dependency>
- <!-- org.json/json -->
- <dependency>
- <groupId>org.json</groupId>
- <artifactId>json</artifactId>
- <version>20160810</version>
- </dependency>
- <!-- net.sf.json-lib/json-lib -->
- <dependency>
- <groupId>net.sf.json-lib</groupId>
- <artifactId>json-lib</artifactId>
- <version>2.4</version>
- <classifier>jdk15</classifier>
- </dependency>
- <!-- https://mvnrepository.com/artifact/junit/junit -->
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.12</version>
- <scope>test</scope>
- </dependency>
- <!-- log4j/log4j -->
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.17</version>
- </dependency>
- <!-- lucene-core -->
- <dependency>
- <groupId>org.apache.lucene</groupId>
- <artifactId>lucene-analyzers-common</artifactId>
- <version>5.3.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.lucene</groupId>
- <artifactId>lucene-analyzers-smartcn</artifactId>
- <version>5.3.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.lucene</groupId>
- <artifactId>lucene-core</artifactId>
- <version>5.3.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.lucene</groupId>
- <artifactId>lucene-highlighter</artifactId>
- <version>5.3.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.lucene</groupId>
- <artifactId>lucene-join</artifactId>
- <version>5.3.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.lucene</groupId>
- <artifactId>lucene-memory</artifactId>
- <version>5.3.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.lucene</groupId>
- <artifactId>lucene-queries</artifactId>
- <version>5.3.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.lucene</groupId>
- <artifactId>lucene-queryparser</artifactId>
- <version>5.3.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.lucene</groupId>
- <artifactId>lucene-sandbox</artifactId>
- <version>5.3.1</version>
- </dependency>
- <!-- mp3spi -->
- <dependency>
- <groupId>com.googlecode.soundlibs</groupId>
- <artifactId>mp3spi</artifactId>
- <version>1.9.5-1</version>
- </dependency>
- <!-- 科大讯飞的包,在maven中实在找不到,读本地包 -->
- <dependency>
- <groupId>com.iflytek</groupId>
- <artifactId>MSC</artifactId>
- <scope>system</scope>
- <systemPath>${project.basedir}/lib/Msc.jar</systemPath>
- <version>1.0</version>
- </dependency>
- <!-- nlp-lang -->
- <dependency>
- <groupId>org.nlpcn</groupId>
- <artifactId>nlp-lang</artifactId>
- <version>1.7.7</version>
- </dependency>
- <!-- pinyin4j -->
- <dependency>
- <groupId>com.belerweb</groupId>
- <artifactId>pinyin4j</artifactId>
- <version>2.5.0</version>
- </dependency>
- <!-- solr的拼音分词包? 在maven中也是找不到,直接读本地包 -->
- <dependency>
- <groupId>utn.index</groupId>
- <artifactId>pinyinAnaylyzer</artifactId>
- <scope>system</scope>
- <systemPath>${project.basedir}/lib/pinyinAnaylyzer.jar</systemPath>
- <version>1.0</version>
- </dependency>
- <!-- mssql-jdbc -->
- <dependency>
- <groupId>com.microsoft.sqlserver</groupId>
- <artifactId>mssql-jdbc</artifactId>
- <version>7.4.1.jre8</version>
- </dependency>
- </dependencies>
- <build>
- <!-- 把resource文件也打包进classes -->
- <resources>
- <resource>
- <directory>${project.basedir}/src/main/resource</directory>
- <includes>
- <include>**/*.*</include>
- </includes>
- <excludes>
- <!-- 这个web配置在war配置里配置了 -->
- <exclude>WEB-INF/web.xml</exclude>
- </excludes>
- <filtering>false</filtering>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.6.1</version>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- </configuration>
- </plugin>
- <!-- war打包插件 -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <version>2.1.1</version>
- <configuration>
- <webResources>
- <resource>
- <!-- this is relative to the pom.xml directory -->
- <directory>src/main/resource</directory>
- </resource>
- </webResources>
- </configuration>
- </plugin>
- <!-- cargo 插件运行tomcat -->
- <plugin>
- <groupId>org.codehaus.cargo</groupId>
- <artifactId>cargo-maven2-plugin</artifactId>
- <configuration>
- <container>
- <containerId>tomcat8x</containerId>
- <artifactInstaller>
- <groupId>org.apache.tomcat</groupId>
- <artifactId>tomcat</artifactId>
- <version>${tomcat.version}</version>
- </artifactInstaller>
- </container>
- <configuration>
- <type>standalone</type>
- <home>
- ${project.build.directory}/apache-tomcat-${tomcat.version}
- </home>
- <properties>
- <cargo.servlet.port>8080</cargo.servlet.port>
- <cargo.tomcat.uriencoding>UTF-8</cargo.tomcat.uriencoding>
- <cargo.logging>high</cargo.logging>
- <!-- 开启debug,上生产时可以注释掉,不注释也行,只是监听5005端口 -->
- <cargo.jvmargs>
- -Xmx2048m
- -Xms512m
- -Xdebug
- -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
- -Xnoagent
- -Djava.compiler=NONE
- </cargo.jvmargs>
- </properties>
- </configuration>
- <deployables>
- <deployable>
- <groupId>${project.groupId}</groupId>
- <artifactId>${project.artifactId}</artifactId>
- <type>war</type>
- <properties>
- <context>/</context>
- </properties>
- </deployable>
- </deployables>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>
|