#593 config - Configuration for right packaging system using maven
4 files added
5 files modified
| .. | .. |
|---|
| 1 | +SeCuris client |
|---|
| 2 | +============== |
|---|
| 3 | + |
|---|
| 4 | +Updated doc: https://redmine.curistec.com/projects/securis/wiki/HowToSeCurisClient |
|---|
| 5 | + |
|---|
| 6 | +Creation of a request file |
|---|
| 7 | +For a manual activation, a request file should be sent to SeCuris administrator, to create a request file we can execute: |
|---|
| 8 | + |
|---|
| 9 | + $ ./securis.sh --gen_request --rfile=/tmp/curisapp.req |
|---|
| 10 | + |
|---|
| 11 | +Validate license file |
|---|
| 12 | + |
|---|
| 13 | + $ ./securis.sh --validate=/path/to/license/file/curisapp.lic |
|---|
| 14 | + |
|---|
| 15 | +Request a new license to server |
|---|
| 16 | + |
|---|
| 17 | + $ ./securis.sh --create=/path/to/license/file/curisapp.lic --server="http://server:0000/securis/api/create" |
|---|
| 18 | + |
|---|
| 19 | +Renew an existing license |
|---|
| 20 | + |
|---|
| 21 | + $ securis.sh --renew=/path/to/license/file/curisapp.lic --server="http://server:0000/securis/api/create" |
|---|
| .. | .. |
|---|
| 10 | 10 | <outputDirectory>output</outputDirectory> |
|---|
| 11 | 11 | </fileSet> |
|---|
| 12 | 12 | </fileSets> |
|---|
| 13 | + <sources> |
|---|
| 14 | + <excludes/> |
|---|
| 15 | + </sources> |
|---|
| 13 | 16 | </assembly> |
|---|
| .. | .. |
|---|
| 1 | +<?xml version="1.0" encoding="UTF-8"?>
|
|---|
| 2 | +<Configuration>
|
|---|
| 3 | + <Appenders>
|
|---|
| 4 | + <Console name="STDOUT" target="SYSTEM_OUT">
|
|---|
| 5 | + <PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/>
|
|---|
| 6 | + </Console>
|
|---|
| 7 | + </Appenders>
|
|---|
| 8 | + <Loggers>
|
|---|
| 9 | +
|
|---|
| 10 | + <Logger name="net.curisit" level="info"/>
|
|---|
| 11 | +
|
|---|
| 12 | + <Root level="debug">
|
|---|
| 13 | + <AppenderRef ref="STDOUT"/>
|
|---|
| 14 | + </Root>
|
|---|
| 15 | + </Loggers>
|
|---|
| 16 | +</Configuration>
|
|---|
| .. | .. |
|---|
| 1 | +######################################################################### |
|---|
| 2 | +# # |
|---|
| 3 | +# Modify the current file using the proper values for you environment # |
|---|
| 4 | +# # |
|---|
| 5 | +######################################################################### |
|---|
| 6 | + |
|---|
| 7 | +public.key.file = /Path/to/public/key/file/securis.pub |
|---|
| 8 | +app.code = AP01 |
|---|
| 9 | +customer.code = XX |
|---|
| .. | .. |
|---|
| 1 | +<?xml version="1.0" encoding="UTF-8"?>
|
|---|
| 2 | +<Configuration>
|
|---|
| 3 | + <Appenders>
|
|---|
| 4 | + <Console name="STDOUT" target="SYSTEM_OUT">
|
|---|
| 5 | + <PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/>
|
|---|
| 6 | + </Console>
|
|---|
| 7 | + </Appenders>
|
|---|
| 8 | + <Loggers>
|
|---|
| 9 | +
|
|---|
| 10 | + <Logger name="net.curisit" level="info"/>
|
|---|
| 11 | +
|
|---|
| 12 | + <Root level="debug">
|
|---|
| 13 | + <AppenderRef ref="STDOUT"/>
|
|---|
| 14 | + </Root>
|
|---|
| 15 | + </Loggers>
|
|---|
| 16 | +</Configuration>
|
|---|
| .. | .. |
|---|
| 6 | 6 | |
|---|
| 7 | 7 | public.key.file = /Path/to/public/key/file/securis.pub |
|---|
| 8 | 8 | app.code = AP01 |
|---|
| 9 | | -customer.code = XX |
|---|
| 9 | +customer.code = XX |
|---|
| .. | .. |
|---|
| 1 | 1 | #!/bin/bash |
|---|
| 2 | | -export CLASSPATH=libs/*.jar:config/securis-client.properties |
|---|
| 3 | | -java -cp $CLASSPATH -jar libs/securis-client-*.jar $@ |
|---|
| 2 | + |
|---|
| 3 | +export CLASSPATH="config:libs/*" |
|---|
| 4 | +java -cp "$CLASSPATH" net.curisit.securis.License $@ |
|---|
| .. | .. |
|---|
| 18 | 18 | <groupId>org.apache.maven.plugins</groupId> |
|---|
| 19 | 19 | <artifactId>maven-jar-plugin</artifactId> |
|---|
| 20 | 20 | <configuration> |
|---|
| 21 | | - <archive> |
|---|
| 22 | | - <manifest> |
|---|
| 23 | | - <mainClass>net.curisit.securis.License</mainClass> |
|---|
| 24 | | - </manifest> |
|---|
| 25 | | - </archive> |
|---|
| 21 | + <excludes> |
|---|
| 22 | + <exclude>*.properties</exclude> |
|---|
| 23 | + </excludes> |
|---|
| 26 | 24 | </configuration> |
|---|
| 27 | 25 | </plugin> |
|---|
| 28 | | - <plugin> |
|---|
| 26 | + <plugin> |
|---|
| 29 | 27 | <artifactId>maven-assembly-plugin</artifactId> |
|---|
| 30 | 28 | <version>2.4</version> |
|---|
| 31 | 29 | <configuration> |
|---|
| .. | .. |
|---|
| 73 | 71 | <version>2.0-rc1</version> |
|---|
| 74 | 72 | </dependency> |
|---|
| 75 | 73 | </dependencies> |
|---|
| 74 | + |
|---|
| 76 | 75 | <distributionManagement> |
|---|
| 77 | 76 | <!-- use the following if you're not using a snapshot version. --> |
|---|
| 78 | 77 | <repository> |
|---|
| .. | .. |
|---|
| 9 | 9 |
|
|---|
| 10 | 10 | <Logger name="net.curisit" level="info"/>
|
|---|
| 11 | 11 |
|
|---|
| 12 | | - <Root level="debug">
|
|---|
| 12 | + <Root level="info">
|
|---|
| 13 | 13 | <AppenderRef ref="STDOUT"/>
|
|---|
| 14 | 14 | </Root>
|
|---|
| 15 | 15 | </Loggers>
|
|---|