Newer
Older
<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 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.codelibs.fess</groupId>
<artifactId>fess</artifactId>
<packaging>war</packaging>
<name>Fess</name>
<description>Fess is Full tExt Search System.</description>
<url>http://fess.codelibs.org/</url>
<inceptionYear>2009</inceptionYear>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<organization>
<name>CodeLibs</name>
</organization>
<issueManagement>
<url>https://github.com/codelibs/fess/issues</url>
</issueManagement>
<scm>
<connection>scm:git:git@github.com:codelibs/fess.git</connection>
<developerConnection>scm:git:git@github.com:codelibs/fess.git</developerConnection>
<url>https://github.com/codelibs/fess</url>
</scm>
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>9</version>
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<lastaflute.version>1.0.4</lastaflute.version>
<log4j.version>2.9.1</log4j.version>
<commons.fileupload.version>1.3.3</commons.fileupload.version>
<junit.jupiter.version>5.0.2</junit.jupiter.version>
<junit.vintage.version>${junit.version}.0</junit.vintage.version>
<junit.platform.version>1.0.0</junit.platform.version>
<crawler.version>2.1.0-SNAPSHOT</crawler.version>
<suggest.version>6.2.0-SNAPSHOT</suggest.version>
<elasticsearch.version>6.2.1</elasticsearch.version>
<elasticsearch.min.version>6.0.0</elasticsearch.min.version>
<cluster.runner.version>${elasticsearch.version}.0</cluster.runner.version>
<packaging.fess.home.dir>/usr/share/fess</packaging.fess.home.dir>
<packaging.fess.app.dir>${packaging.fess.home.dir}/app</packaging.fess.app.dir>
<packaging.fess.bin.dir>${packaging.fess.home.dir}/bin</packaging.fess.bin.dir>
<packaging.fess.conf.dir>/etc/fess</packaging.fess.conf.dir>
<packaging.fess.var.dir>/var/lib/fess</packaging.fess.var.dir>
<packaging.fess.lib.dir>${packaging.fess.home.dir}/lib</packaging.fess.lib.dir>
<packaging.fess.log.dir>/var/log/fess</packaging.fess.log.dir>
<packaging.fess.temp.dir>/var/tmp/fess</packaging.fess.temp.dir>
<packaging.fess.extension.dir>${packaging.fess.home.dir}/extension</packaging.fess.extension.dir>
<packaging.fess.user>fess</packaging.fess.user>
<packaging.fess.group>fess</packaging.fess.group>
<packaging.fess.pid.dir>/var/run/fess</packaging.fess.pid.dir>
<packaging.fess.systemd.dir>/usr/lib/systemd/system</packaging.fess.systemd.dir>
<packaging.fess.systemd.sysctl.dir>/usr/lib/sysctl.d</packaging.fess.systemd.sysctl.dir>
<packaging.fess.tmpfilesd.dir>/usr/lib/tmpfiles.d</packaging.fess.tmpfilesd.dir>
<packaging.fess.dictionary.dir>/var/lib/elasticsearch/config</packaging.fess.dictionary.dir>
<profiles>
<profile>
<id>build</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<test.include.path>**/*Test.java</test.include.path>
</properties>
</profile>
<profile>
<id>build-jdk9</id>
<activation>
<jdk>9</jdk>
</activation>
<properties>
<test.include.path>**/*Test.java</test.include.path>
<test.command.args>--add-modules java.xml.bind</test.command.args>
</properties>
</profile>
<profile>
<id>integrationTests</id>
<properties>
<test.include.path>**/*Tests.java</test.include.path>
</properties>
</profile>
</profiles>
<build>
<finalName>fess</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<!-- This file contains all the common properties used to build the different
packages (tar.gz, deb, rpm) using Maven resources plugin -->
<filters>
<filter>src/packaging/common/packaging.properties</filter>
</filters>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>source-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<directory>${project.build.directory}/${project.build.finalName}-compress</directory>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-provided</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeScope>provided</includeScope>
<outputDirectory>${project.build.directory}/tomcat-lib</outputDirectory>
<includes>**/*</includes>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<includes>
<include>${test.include.path}</include>
</includes>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-surefire-provider</artifactId>
<version>${junit.platform.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.jupiter.version}</version>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>${junit.vintage.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<docencoding>UTF-8</docencoding>
<charset>UTF-8</charset>
<locale>en_US</locale>
<windowtitle>Open Source Enterprise Search: Fess API</windowtitle>
<header><a href="http://fess.codelibs.org/" target="_blank">Enterprise Search Server: Fess</a></header>
<footer><a href="http://fess.codelibs.org/" target="_blank">Open Source Enterprise Search Server: Fess</a></footer>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.5</version>
<configuration>
<docTitle><a href="http://fess.codelibs.org/" target="_blank">Enterprise Search Server: Fess Reference</a></docTitle>
<windowTitle>Open Source Enterprise Search: Fess Source Code Reference</windowTitle>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<header>https://www.codelibs.org/assets/license/header.txt</header>
<includes>
<include>src/**/*.java</include>
</includes>
<encoding>UTF-8</encoding>
<headerDefinitions>
<headerDefinition>http://www.codelibs.org/assets/license/header-definition-2.xml</headerDefinition>
</headerDefinitions>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.revelc.code</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>0.5.2</version>
<executions>
<execution>
<goals>
<goal>format</goal>
</goals>
</execution>
</executions>
<configuration>
<configFile>${basedir}/src/main/config/eclipse/formatter/java.xml</configFile>
</configuration>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.5.1</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>compress</goal>
<goal>jslint</goal>
</goals>
</execution>
</executions>
<configuration>
<nosuffix>true</nosuffix>
<webappDirectory>${project.build.directory}/${project.build.finalName}-compress</webappDirectory>
<excludes>
<exclude>**/*min.js</exclude>
<exclude>**/form-validator/**/*.js</exclude>
<exclude>**/WEB-INF/site/**</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.dbflute</groupId>
<artifactId>dbflute-maven-plugin</artifactId>
<version>1.1.0</version>
<configuration>
<dbfluteVersion>${dbflute.version}</dbfluteVersion>
<packageBase>org.codelibs.fess.dbflute</packageBase>
<clientProject>fess</clientProject>
<dbfluteClientDir>${basedir}/dbflute_fess</dbfluteClientDir>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.9.6</version>
</dependency>
</dependencies>
<configuration>
<tasks>
<ant antfile="${basedir}/dbflute.xml" target="download.dbflute" />
<ant antfile="${basedir}/plugin.xml" target="install.plugins">
<property name="with.fess" value="true" />
</ant>
<ant antfile="deps.xml" target="install.jars" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
<execution>
<id>copy-resources-deb</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/generated-packaging/deb/</outputDirectory>
<filters>
<filter>${project.basedir}/src/packaging/common/packaging.properties</filter>
<filter>${project.basedir}/src/packaging/deb/packaging.properties</filter>
</filters>
<resources>
<resource>
<directory>src/packaging/common/</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
<excludes>
<exclude>packaging.properties</exclude>
</excludes>
</resource>
<resource>
<directory>src/packaging/deb/</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
<excludes>
<exclude>packaging.properties</exclude>
</excludes>
</resource>
<resource>
<directory>${project.basedir}</directory>
<filtering>true</filtering>
<includes>
<include>bin/fess</include>
<include>bin/fess.in.sh</include>
<include>bin/generate-thumbnail</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
<execution>
<id>copy-resources-rpm</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/generated-packaging/rpm/</outputDirectory>
<filters>
<filter>${project.basedir}/src/packaging/common/packaging.properties</filter>
<filter>${project.basedir}/src/packaging/rpm/packaging.properties</filter>
</filters>
<resources>
<resource>
<directory>src/packaging/common/</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
<excludes>
<exclude>packaging.properties</exclude>
</excludes>
</resource>
<resource>
<directory>src/packaging/rpm/</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
<excludes>
<exclude>packaging.properties</exclude>
</excludes>
</resource>
<resource>
<directory>${project.basedir}</directory>
<filtering>true</filtering>
<includes>
<include>bin/fess</include>
<include>bin/fess.in.sh</include>
<include>bin/generate-thumbnail</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<finalName>${project.artifactId}-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<outputDirectory>${project.build.directory}/releases/</outputDirectory>
<!-- descriptor>${basedir}/src/main/assemblies/targz-bin.xml</descriptor -->
<descriptor>${basedir}/src/main/assemblies/zip-bin.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- deb -->
<plugin>
<groupId>org.vafer</groupId>
<configuration>
<deb>${project.build.directory}/releases/${project.artifactId}-${project.version}.deb</deb>
<controlDir>${project.build.directory}/generated-packaging/deb/scripts</controlDir>
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
<!--
<signPackage>${deb.sign}</signPackage>
<keyring>${gpg.keyring}</keyring>
key>${gpg.key}</key>
<passphrase>${gpg.passphrase}</passphrase>
<signMethod>${deb.sign.method}</signMethod>
-->
<dataSet>
<!-- Add app directory -->
<data>
<type>directory</type>
<src>${project.build.directory}/fess</src>
<excludes>**/fess_config.properties,**/fess_env*.properties</excludes>
<mapper>
<type>perm</type>
<prefix>${packaging.fess.app.dir}</prefix>
<filemode>755</filemode>
<user>${packaging.fess.user}</user>
<group>${packaging.fess.group}</group>
</mapper>
</data>
<!-- Add libs -->
<data>
<type>directory</type>
<src>${project.build.directory}/tomcat-lib</src>
<mapper>
<type>perm</type>
<prefix>${packaging.fess.lib.dir}/classes</prefix>
<user>${packaging.fess.user}</user>
<group>${packaging.fess.group}</group>
</mapper>
</data>
<data>
<type>file</type>
<src>${project.build.directory}/fess/WEB-INF/classes/org/codelibs/fess/FessBoot.class</src>
<dst>${packaging.fess.lib.dir}/classes/org/codelibs/fess/FessBoot.class</dst>
<mapper>
<type>perm</type>
<user>${packaging.fess.user}</user>
<group>${packaging.fess.group}</group>
</mapper>
</data>
<!-- Add configuration files -->
<data>
<type>files</type>
<paths>
<path>${project.basedir}/src/main/assemblies/files/tomcat_config.properties</path>
<path>${project.basedir}/src/main/assemblies/files/logging.properties</path>
</paths>
<dst>${packaging.fess.conf.dir}</dst>
<mapper>
<type>perm</type>
<user>${packaging.fess.user}</user>
<group>${packaging.fess.group}</group>
</mapper>
</data>
<data>
<type>files</type>
<paths>
<path>${project.build.directory}/fess/WEB-INF/classes/fess_config.properties</path>
<path>${project.build.directory}/fess/WEB-INF/classes/fess_env_crawler.properties</path>
<path>${project.build.directory}/fess/WEB-INF/classes/fess_env_suggest.properties</path>
<path>${project.build.directory}/fess/WEB-INF/classes/fess_env_thumbnail.properties</path>
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
<path>${project.build.directory}/fess/WEB-INF/classes/fess_env_web.properties</path>
</paths>
<dst>${packaging.fess.conf.dir}</dst>
<mapper>
<type>perm</type>
<user>${packaging.fess.user}</user>
<group>${packaging.fess.group}</group>
</mapper>
</data>
<!-- Add extensions -->
<data>
<type>directory</type>
<src>${project.basedir}/src/main/assemblies/extension</src>
<mapper>
<type>perm</type>
<prefix>${packaging.fess.extension.dir}</prefix>
<user>${packaging.fess.user}</user>
<group>${packaging.fess.group}</group>
</mapper>
</data>
<!-- Add var directory -->
<data>
<type>template</type>
<paths>
<path>${packaging.fess.var.dir}</path>
</paths>
<mapper>
<type>perm</type>
<dirmode>755</dirmode>
<user>${packaging.fess.user}</user>
<group>${packaging.fess.group}</group>
</mapper>
</data>
<!-- Add bin directory -->
<data>
<type>files</type>
<paths>
<path>${project.basedir}/src/main/assemblies/files/fess</path>
<path>${project.basedir}/src/main/assemblies/files/fess.in.sh</path>
<path>${project.basedir}/src/main/assemblies/files/generate-thumbnail</path>
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
</paths>
<dst>${packaging.fess.bin.dir}</dst>
<mapper>
<type>perm</type>
<filemode>755</filemode>
<user>${packaging.fess.user}</user>
<group>${packaging.fess.group}</group>
</mapper>
</data>
<!-- Add log and temp directories -->
<data>
<type>template</type>
<paths>
<path>${packaging.fess.log.dir}</path>
<path>${packaging.fess.temp.dir}</path>
</paths>
<mapper>
<type>perm</type>
<user>${packaging.fess.user}</user>
<group>${packaging.fess.group}</group>
</mapper>
</data>
<!-- Add dictionary directory -->
<data>
<type>template</type>
<paths>
<path>${packaging.fess.dictionary.dir}</path>
</paths>
<mapper>
<type>perm</type>
<user>elasticsearch</user>
<group>elasticsearch</group>
</mapper>
</data>
<!-- Add elasicsearch plugins directory -->
<data>
<type>directory</type>
<src>${project.basedir}/plugins</src>
<mapper>
<type>perm</type>
<prefix>${packaging.fess.home.dir}/es/plugins</prefix>
<user>${packaging.fess.user}</user>
<group>${packaging.fess.group}</group>
</mapper>
</data>
<!-- Add environment vars file -->
<data>
<type>file</type>
<src>${project.build.directory}/generated-packaging/deb/env/fess</src>
<dst>/etc/default/fess</dst>
<mapper>
<type>perm</type>
<user>root</user>
<group>root</group>
</mapper>
</data>
<!-- Add init.d files -->
<data>
<type>file</type>
<src>${project.build.directory}/generated-packaging/deb/init.d/fess</src>
<dst>/etc/init.d/fess</dst>
<mapper>
<type>perm</type>
<filemode>755</filemode>
<user>root</user>
<group>root</group>
</mapper>
</data>
<!-- Adds systemd file -->
<data>
<type>file</type>
<src>${project.build.directory}/generated-packaging/deb/systemd/fess.service</src>
<dst>${packaging.fess.systemd.dir}/fess.service</dst>
</data>
<!-- Adds systemd/sysctl.d configuration file -->
<data>
<type>file</type>
<src>${project.build.directory}/generated-packaging/deb/systemd/sysctl/fess.conf</src>
<dst>${packaging.fess.systemd.sysctl.dir}/fess.conf</dst>
</data>
<!-- Adds systemd/tmpfiles.d configuration file -->
<data>
<type>file</type>
<src>${project.build.directory}/generated-packaging/deb/systemd/fess.conf</src>
<dst>${packaging.fess.tmpfilesd.dir}/fess.conf</dst>
</data>
<!-- Add lintian files -->
<data>
<type>directory</type>
<src>${project.build.directory}/generated-packaging/deb/lintian</src>
<excludes>.DS_Store</excludes>
<mapper>
<type>perm</type>
<prefix>/usr/share/lintian/overrides</prefix>
<user>${packaging.fess.user}</user>
<group>${packaging.fess.group}</group>
</mapper>
</data>
<!-- Add readme files -->
<data>
<type>files</type>
<paths>
<path>${project.basedir}/LICENSE</path>
<path>${project.basedir}/README.md</path>
</paths>
<dst>${packaging.fess.home.dir}</dst>
<mapper>
<type>perm</type>
<user>${packaging.fess.user}</user>
<group>${packaging.fess.group}</group>
</mapper>
</data>
<!-- Add license files -->
<data>
<type>file</type>
<src>${project.build.directory}/generated-packaging/deb/copyright</src>
<dst>/usr/share/doc/fess/copyright</dst>
</data>
<!-- Adds and sets permission on default directories -->
<data>
<type>template</type>
<paths>
<path>${packaging.fess.pid.dir}</path>
</paths>
<mapper>
<type>perm</type>
<user>${packaging.fess.user}</user>
<group>${packaging.fess.group}</group>
</mapper>
</data>
</dataSet>
<!-- rpm -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<configuration>
<distribution>Fess</distribution>
<group>Application/Internet</group>
<packager>CodeLibs</packager>
<prefix>/usr</prefix>
<needarch>noarch</needarch>
<targetOS>linux</targetOS>
<changelogFile>src/changelog</changelogFile>
<defineStatements>
<defineStatement>_unpackaged_files_terminate_build 0</defineStatement>
<defineStatement>_binaries_in_noarch_packages_terminate_build 0</defineStatement>
</defineStatements>
<defaultFilemode>644</defaultFilemode>
<defaultDirmode>755</defaultDirmode>
<defaultUsername>${packaging.fess.user}</defaultUsername>
<defaultGroupname>${packaging.fess.group}</defaultGroupname>
<!--
<keyname>${gpg.key}</keyname>
<keypath>${gpg.keyring}</keypath>
<keyPassphrase>
<passphrase>${gpg.passphrase}</passphrase>
</keyPassphrase>
-->
Shinsuke Sugaya
committed
<requires>
<require>elasticsearch >= ${elasticsearch.min.version}</require>
Shinsuke Sugaya
committed
</requires>
<directory>${packaging.fess.app.dir}</directory>
<filemode>755</filemode>
<sources>
<source>
<location>${project.build.directory}/fess</location>
<excludes>
<exclude>**/fess_config.properties</exclude>
<exclude>**/fess_env*.properties</exclude>
</excludes>
</source>
</sources>
</mapping>
<!-- lib -->
<mapping>
<directory>${packaging.fess.lib.dir}/classes</directory>
<sources>
<source>
<location>${project.build.directory}/tomcat-lib</location>
</source>
</sources>
</mapping>
<mapping>
<directory>${packaging.fess.lib.dir}/classes/org/codelibs/fess</directory>
<sources>
<source>
<location>${project.build.directory}/fess/WEB-INF/classes/org/codelibs/fess</location>
<includes>
<include>FessBoot**</include>
</includes>
</source>
</sources>
</mapping>
<mapping>
<directory>${packaging.fess.conf.dir}</directory>
<sources>
<source>
<location>${project.basedir}/src/main/assemblies/files</location>
<includes>
<include>logging.properties</include>
<include>tomcat_config.properties</include>
</includes>
</source>
<source>
<location>${project.build.directory}/fess/WEB-INF/classes</location>
<includes>
<include>fess_config.properties</include>
<include>fess_env_web.properties</include>
<include>fess_env_crawler.properties</include>
<include>fess_env_suggest.properties</include>
</includes>
</source>
<mapping>
<directory>${packaging.fess.extension.dir}</directory>
<sources>
<source>
<location>${project.basedir}/src/main/assemblies/extension</location>
</source>
</sources>
</mapping>
<mapping>
<directory>${packaging.fess.var.dir}</directory>
<filemode>755</filemode>
<username>${packaging.fess.user}</username>
<groupname>${packaging.fess.group}</groupname>
</mapping>
<directory>${packaging.fess.bin.dir}</directory>
<filemode>755</filemode>
<sources>
<source>
<location>${project.basedir}/src/main/assemblies/files</location>
<includes>
<include>fess</include>
<include>fess.in.sh</include>
</includes>
</source>
</sources>
</mapping>
<mapping>
<directory>${packaging.fess.bin.dir}</directory>
<filemode>644</filemode>
<sources>
<source>
<location>${project.basedir}</location>
<includes>
</includes>
</source>
</sources>
</mapping>
<!-- logs (empty) -->
<mapping>
<directory>${packaging.fess.log.dir}</directory>
<directory>${packaging.fess.temp.dir}</directory>
<!-- dictionary (empty) -->
<mapping>
<directory>${packaging.fess.dictionary.dir}</directory>
<username>elasticsearch</username>
<groupname>elasticsearch</groupname>
</mapping>
<!-- es/plugins -->
<mapping>
<directory>${packaging.fess.home.dir}/es/plugins</directory>
<sources>
<source>
<location>${project.basedir}/plugins</location>
</source>
</sources>
</mapping>
<!-- Add environment vars file -->
<mapping>
Shinsuke Sugaya
committed
<directory>/etc/sysconfig</directory>
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
<directoryIncluded>false</directoryIncluded>
<username>root</username>
<groupname>root</groupname>
<configuration>noreplace</configuration>
<sources>
<source>
<location>${project.build.directory}/generated-packaging/rpm/env/</location>
<includes>
<include>fess</include>
</includes>
</source>
</sources>
</mapping>
<!-- Add init.d files -->
<mapping>
<directory>/etc/init.d</directory>
<directoryIncluded>false</directoryIncluded>
<filemode>755</filemode>
<username>root</username>
<groupname>root</groupname>
<configuration>true</configuration>
<sources>
<source>
<location>${project.build.directory}/generated-packaging/rpm/init.d</location>
<includes>
<include>fess</include>
</includes>
</source>
</sources>
</mapping>
<!-- Adds systemd file -->
<mapping>
<directory>${packaging.fess.systemd.dir}</directory>
<directoryIncluded>false</directoryIncluded>
<username>root</username>
<groupname>root</groupname>
<configuration>true</configuration>
<sources>
<source>
<location>${project.build.directory}/generated-packaging/rpm/systemd</location>
<includes>
<include>fess.service</include>
</includes>
</source>
</sources>
</mapping>
<!-- Adds systemd/sysctl.d configuration file -->
<mapping>
<directory>${packaging.fess.systemd.sysctl.dir}</directory>
<directoryIncluded>false</directoryIncluded>
<username>root</username>
<groupname>root</groupname>
<configuration>true</configuration>
<sources>
<source>
<location>${project.build.directory}/generated-packaging/rpm/systemd/sysctl</location>
<includes>
<include>fess.conf</include>
</includes>
</source>
</sources>
</mapping>
<!-- Adds systemd/tmpfiles.d configuration file -->
<mapping>
<directory>${packaging.fess.tmpfilesd.dir}</directory>
<directoryIncluded>false</directoryIncluded>
<username>root</username>
<groupname>root</groupname>
<configuration>true</configuration>
<sources>
<source>
<location>${project.build.directory}/generated-packaging/rpm/systemd/</location>
<includes>
<include>fess.conf</include>
</includes>
</source>
</sources>
</mapping>
<!-- Add readme files -->
<mapping>
<directory>${packaging.fess.home.dir}</directory>
<sources>
<source>
<location>.</location>
<includes>
<include>LICENSE</include>
<include>README.md</include>
</includes>
</source>
</sources>
</mapping>
<!-- Add and sets permission on default directories -->
<mapping>
<directory>${packaging.fess.pid.dir}</directory>
<filemode>755</filemode>
<username>${packaging.fess.user}</username>
<groupname>${packaging.fess.group}</groupname>
</mapping>
</mappings>
<preinstallScriptlet>
<scriptFile>${project.build.directory}/generated-packaging/rpm/scripts/preinst</scriptFile>
<fileEncoding>utf-8</fileEncoding>
</preinstallScriptlet>
<postinstallScriptlet>
<scriptFile>${project.build.directory}/generated-packaging/rpm/scripts/postinst</scriptFile>
<fileEncoding>utf-8</fileEncoding>
</postinstallScriptlet>
<preremoveScriptlet>
<scriptFile>${project.build.directory}/generated-packaging/rpm/scripts/prerm</scriptFile>
<fileEncoding>utf-8</fileEncoding>
</preremoveScriptlet>
<postremoveScriptlet>
<scriptFile>${project.build.directory}/generated-packaging/rpm/scripts/postrm</scriptFile>
<fileEncoding>utf-8</fileEncoding>
</postremoveScriptlet>
</configuration>
</plugin>
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
net.revelc.code
</groupId>
<artifactId>
formatter-maven-plugin
</artifactId>
<versionRange>
[0.5.2,)
</versionRange>
<goals>
<goal>format</goal>
</goals>
</pluginExecutionFilter>
<action>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-dependency-plugin
</artifactId>
<versionRange>
[2.10,)
</versionRange>
<goals>
<goal>
unpack-dependencies
</goal>
</goals>
</pluginExecutionFilter>
<action>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<pluginRepositories>
<pluginRepository>
<id>codelibs.org</id>
<name>CodeLibs Repository</name>
<url>http://maven.codelibs.org/</url>
</pluginRepository>
<pluginRepository>
<id>oss.sonatype.org</id>
<name>oss.sonatype.org</name>
<url>https://oss.sonatype.org/content/groups/public/</url>
</pluginRepository>
</pluginRepositories>
<repositories>
<repository>
<id>codelibs.org</id>
<name>CodeLibs Repository</name>
<url>http://maven.codelibs.org/</url>
</repository>
<repository>
<id>oss.sonatype.org</id>
<name>oss.sonatype.org</name>
<url>https://oss.sonatype.org/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<!-- lastaflute -->
<dependency>
<groupId>org.lastaflute</groupId>
<artifactId>lastaflute</artifactId>
<version>${lastaflute.version}</version>
</dependency>
<dependency>
<artifactId>lasta-taglib</artifactId>
<version>${lasta.taglib.version}</version>
</dependency>
<!-- dbflute -->
<dependency>
<groupId>org.dbflute</groupId>
<artifactId>dbflute-runtime</artifactId>
<version>${dbflute.version}</version>
</dependency>
<!-- J2EE -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
<!-- contains taglibs.standard -->
<!-- <scope>provided</scope> -->
</dependency>
<dependency>
<groupId>javax.transaction</groupId>
<artifactId>javax.transaction-api</artifactId>
<version>1.2</version>
</dependency>
<!-- logging -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${log4j.version}</version>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${log4j.version}</version>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jcl</artifactId>
<version>${log4j.version}</version>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-1.2-api</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jul</artifactId>
<version>${log4j.version}</version>
<!-- elasticsearch -->
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
<version>${elasticsearch.version}</version>
</dependency>
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>transport</artifactId>
<version>${elasticsearch.version}</version>
<exclusions>
<exclusion>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>lang-mustache-client</artifactId>
</exclusion>
<exclusion>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>percolator-client</artifactId>
</exclusion>
<exclusion>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>reindex-client</artifactId>
</exclusion>
<exclusion>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>transport-netty3-client</artifactId>
</exclusion>
<exclusion>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>transport-netty4-client</artifactId>
</exclusion>
<exclusion>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>parent-join-client</artifactId>
</exclusion>
<exclusion>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>rank-eval-client</artifactId>
</exclusion>
<dependency>
<groupId>org.codelibs</groupId>
<artifactId>elasticsearch-cluster-runner</artifactId>
<version>${cluster.runner.version}</version>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-debug-all</artifactId>
</exclusion>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
<exclusion>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy</artifactId>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-util</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
<version>24.0-jre</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.j2objc</groupId>
<artifactId>j2objc-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>org.checkerframework</groupId>
<artifactId>checker-compat-qual</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.oauth-client</groupId>
<artifactId>google-oauth-client</artifactId>
<exclusions>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client-jackson2</artifactId>
<dependency>
<groupId>org.codelibs</groupId>
<artifactId>corelib</artifactId>
<dependency>
<groupId>org.codelibs</groupId>
<artifactId>spnego</artifactId>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<dependency>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j</artifactId>
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-analyticsreporting</artifactId>
<version>v4-rev118-1.23.0</version>
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava-jdk5</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- suggest library -->
<dependency>
<groupId>org.codelibs.fess</groupId>
<artifactId>fess-suggest</artifactId>
<!-- fileupload -->
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>${commons.fileupload.version}</version>
</dependency>
<!-- scheduler -->
<dependency>
<groupId>org.lastaflute.job</groupId>
<artifactId>lasta-job</artifactId>
<version>${lasta.job.version}</version>
</dependency>
<!-- mail -->
<dependency>
<groupId>org.dbflute.mail</groupId>
<artifactId>mailflute</artifactId>
<version>${mailflute.version}</version>
</dependency>
<!-- csv -->
<dependency>
<groupId>com.orangesignal</groupId>
<artifactId>orangesignal-csv</artifactId>
<version>2.2.1</version>
</dependency>
<groupId>org.codelibs.fess</groupId>
<artifactId>fess-crawler-lasta</artifactId>
<version>${crawler.version}</version>
<exclusions>
<exclusion>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</exclusion>
<exclusion>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</exclusion>
<groupId>org.codelibs.fess</groupId>
<artifactId>fess-crawler-es</artifactId>
<version>${crawler.version}</version>
</dependency>
<dependency>
<groupId>args4j</groupId>
<artifactId>args4j</artifactId>
</dependency>
<!-- json -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<!-- template -->
<dependency>
<groupId>com.github.jknack</groupId>
<artifactId>handlebars</artifactId>
</dependency>
<!-- groovy -->
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<groupId>org.dbflute.tomcat</groupId>
<artifactId>tomcat-boot</artifactId>
<version>${tomcat.boot.version}</version>
<!-- Disable scope at development on IDEA -->
<scope>provided</scope>
</dependency>
<dependency><!-- for jsp -->
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jasper</artifactId>
<version>${tomcat.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.tomcat</groupId>
</exclusion>
<exclusion>
<groupId>org.apache.tomcat</groupId>
</exclusion>
<exclusion>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-servlet-api</artifactId>
<exclusion>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-util-scan</artifactId>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.dbflute.utflute</groupId>
<artifactId>utflute-lastaflute</artifactId>
<version>${utflute.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<exclusions>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
</exclusions>