Skip to content
Snippets Groups Projects
Commit a08d7dce authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

add standalone assembly

parent 0a481aec
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,6 @@ ...@@ -72,7 +72,6 @@
<dependency> <dependency>
<groupId>net.java.dev.jna</groupId> <groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId> <artifactId>jna</artifactId>
<scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>net.java.dev.jna</groupId> <groupId>net.java.dev.jna</groupId>
...@@ -181,6 +180,27 @@ ...@@ -181,6 +180,27 @@
<silent>true</silent> <silent>true</silent>
<includeScope>runtime</includeScope> <includeScope>runtime</includeScope>
<excludeScope>test</excludeScope> <excludeScope>test</excludeScope>
<excludeGroupIds>org.elasticsearch,net.java.dev.jna,com.google.guava</excludeGroupIds>
<excludeArtifactIds>elasticsearch,jna,guava</excludeArtifactIds>
</configuration>
</execution>
<execution>
<id>unpack-dependencies</id>
<goals>
<goal>unpack</goal>
</goals>
<phase>prepare-package</phase>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.elasticsearch.distribution.zip</groupId>
<artifactId>elasticsearch</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}</outputDirectory>
<silent>true</silent>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
...@@ -199,12 +219,12 @@ ...@@ -199,12 +219,12 @@
<attach>true</attach> <attach>true</attach>
<finalName>${bundlePrefix}</finalName> <finalName>${bundlePrefix}</finalName>
<descriptors> <descriptors>
<!--descriptor>
${basedir}/src/main/assembly/standalone.xml
</descriptor-->
<descriptor> <descriptor>
${basedir}/src/main/assembly/plugin.xml ${basedir}/src/main/assembly/plugin.xml
</descriptor> </descriptor>
<descriptor>
${basedir}/src/main/assembly/standalone.xml
</descriptor>
</descriptors> </descriptors>
</configuration> </configuration>
</execution> </execution>
......
# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
# Before you set out to tweak and tune the configuration, make sure you
# understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please see the documentation for further information on configuration options:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
# cluster.name: my-application
cluster.name: duniter4j-elasticsearch
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
# node.name: node-1
#
# Add custom attributes to the node:
#
# node.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
# path.data: /path/to/data
#
# Path to log files:
#
# path.logs: /path/to/logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
# bootstrap.mlockall: true
#
# Make sure that the `ES_HEAP_SIZE` environment variable is set to about half the memory
# available on the system and that the owner of the process is allowed to use this limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
# network.host: 192.168.0.1
#
# Set a custom port for HTTP:
#
# http.port: 9200
http.cors.enabled: false
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html>
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
# discovery.zen.ping.unicast.hosts: ["host1", "host2"]
#
# Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1):
#
# discovery.zen.minimum_master_nodes: 3
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html>
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
# gateway.recover_after_nodes: 3
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html>
#
# ---------------------------------- Various -----------------------------------
#
# Disable starting multiple nodes on a single system:
#
# node.max_local_storage_nodes: 1
#
# Require explicit names when deleting indices:
#
# action.destructive_requires_name: true
security.manager.enabled: false
#duniter.disable: true
duniter.host: cgeek.fr
duniter.port: 9330
duniter.string.analyzer: french
#duniter.indices.reload: true
#duniter.dev.enable: true
#script.groovy.sandbox.enabled: true
# Security token prefix (default: 'duniter-')
#duniter.auth.token.prefix: duniter-
# Token validity duration, in seconds (default: 600)
duniter.auth.tokenValidityDuration: 3600 # = 1hour
\ No newline at end of file
...@@ -34,69 +34,68 @@ ...@@ -34,69 +34,68 @@
<fileSets> <fileSets>
<fileSet> <fileSet>
<directory>target</directory> <directory>target/elasticsearch-${elasticsearch.version}</directory>
<outputDirectory/> <outputDirectory/>
<includes> <excludes>
<include>${project.build.finalName}.${project.packaging}</include> <exclude>config/elasticsearch.yml</exclude>
</includes> </excludes>
</fileSet> </fileSet>
<!-- default configuration file -->
<fileSet> <fileSet>
<directory>target/lib</directory> <directory>src/main/assembly/config</directory>
<outputDirectory>lib</outputDirectory> <outputDirectory>config</outputDirectory>
<includes> <includes>
<include>*.jar</include> <include>elasticsearch.yml</include>
</includes> </includes>
<excludes>
<exclude>junit-*.jar</exclude>
</excludes>
</fileSet> </fileSet>
<!-- mapper attachment plugin -->
<fileSet> <fileSet>
<directory>src/main/assembly/min</directory> <directory>src/test/es-home</directory>
<outputDirectory/> <outputDirectory/>
<filtered>true</filtered>
<fileMode>0755</fileMode>
<includes> <includes>
<include>duniter4j-elasticsearch.sh</include> <include>plugins/mapper-attachments/**/*.*</include>
<include>duniter4j-elasticsearch.bat</include>
<include>version.appup</include>
<include>README*</include>
</includes> </includes>
</fileSet> </fileSet>
<!-- configuration file -->
<fileSet> <fileSet>
<directory>src/main/assembly/min</directory> <directory>target</directory>
<outputDirectory/> <outputDirectory>plugins/${project.artifactId}</outputDirectory>
<includes> <includes>
<include>duniter4j.config</include> <include>${project.build.finalName}.${project.packaging}</include>
</includes> </includes>
</fileSet> </fileSet>
<!-- I18N component -->
<fileSet> <fileSet>
<directory>target/classes/META-INF</directory> <directory>src/main/filtered-resources</directory>
<outputDirectory>i18n</outputDirectory> <outputDirectory>plugins/${project.artifactId}</outputDirectory>
<filtered>true</filtered>
<includes> <includes>
<include>duniter4j-elasticsearch-i18n*.properties</include> <include>plugin-descriptor.properties</include>
<include>duniter4j-elasticsearch-i18n*.csv</include>
</includes> </includes>
</fileSet> </fileSet>
<fileSet> <fileSet>
<directory>src/main/assembly/min</directory> <directory>target/lib</directory>
<outputDirectory>i18n</outputDirectory> <outputDirectory>plugins/${project.artifactId}</outputDirectory>
<filtered>true</filtered>
<includes> <includes>
<include>version.appup</include> <include>*.jar</include>
</includes> </includes>
<excludes>
<exclude>guava-*.jar</exclude>
<exclude>jna-4.1.0.jar</exclude>
<exclude>jackson-core-*.jar</exclude>
</excludes>
</fileSet> </fileSet>
<fileSet> <fileSet>
<outputDirectory>plugins/${project.artifactId}</outputDirectory>
<includes> <includes>
<include>LICENSE*</include> <include>LICENSE</include>
</includes> </includes>
</fileSet> </fileSet>
</fileSets> </fileSets>
</assembly> </assembly>
package org.duniter.elasticsearch.exception; package org.duniter.elasticsearch.exception;
/*
* #%L
* Duniter4j :: ElasticSearch Plugin
* %%
* Copyright (C) 2014 - 2016 EIS
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import org.elasticsearch.ElasticsearchException; import org.elasticsearch.ElasticsearchException;
/** /**
......
package org.duniter.elasticsearch.rest; package org.duniter.elasticsearch.rest;
/*
* #%L
* Duniter4j :: ElasticSearch Plugin
* %%
* Copyright (C) 2014 - 2016 EIS
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import org.elasticsearch.common.io.stream.BytesStreamOutput; import org.elasticsearch.common.io.stream.BytesStreamOutput;
import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentFactory; import org.elasticsearch.common.xcontent.XContentFactory;
......
package org.duniter.elasticsearch.rest; package org.duniter.elasticsearch.rest;
/*
* #%L
* Duniter4j :: ElasticSearch Plugin
* %%
* Copyright (C) 2014 - 2016 EIS
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.rest.BytesRestResponse; import org.elasticsearch.rest.BytesRestResponse;
import org.elasticsearch.rest.RestRequest; import org.elasticsearch.rest.RestRequest;
......
package org.duniter.elasticsearch.rest; package org.duniter.elasticsearch.rest;
/*
* #%L
* Duniter4j :: ElasticSearch Plugin
* %%
* Copyright (C) 2014 - 2016 EIS
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import org.duniter.elasticsearch.exception.DuniterElasticsearchException; import org.duniter.elasticsearch.exception.DuniterElasticsearchException;
import org.elasticsearch.ElasticsearchException; import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentBuilder;
......
...@@ -16,6 +16,8 @@ logger: ...@@ -16,6 +16,8 @@ logger:
org.apache.http: INFO org.apache.http: INFO
org.duniter: DEBUG
# gateway # gateway
#gateway: DEBUG #gateway: DEBUG
#index.gateway: DEBUG #index.gateway: DEBUG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment