Skip to content

Commit

Permalink
geosolutions-it#1137 Added precooked geostore database to binary release
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandinand committed Feb 3, 2017
1 parent 18b8d98 commit d917a2b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 20 deletions.
26 changes: 11 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
<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">
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>it.geosolutions.mapstore</groupId>
<artifactId>mapstore-root</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<name>MapStore 2</name>
<url>http://www.geo-solutions.it</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>



<dependencies>


</dependencies>

<build>
</build>

<profiles>
<profile>
<id>default</id>
Expand All @@ -31,23 +30,20 @@
<modules>
<module>web</module>
</modules>

</profile>
<profile>
<id>release</id>
<activation>
<property>
<name>release</name>
</property>
<property>
<name>release</name>
</property>
</activation>
<modules>
<module>release</module>
<module>release</module>
</modules>
</profile>
</profiles>





</project>
14 changes: 11 additions & 3 deletions release/bin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,18 @@
<fileSets>
<fileSet>
<!-- the main webapp -->
<directory>../web/target</directory>
<outputDirectory>mapstore2/webapps</outputDirectory>
<directory>../web/target/mapstore</directory>
<outputDirectory>mapstore2/webapps/mapstore</outputDirectory>
<includes>
<include>mapstore.war</include>
<include>**/*</include>
</includes>
</fileSet>
<fileSet>
<!-- the main database -->
<directory>target</directory>
<outputDirectory>mapstore2/webapps/mapstore</outputDirectory>
<includes>
<include>geostore.h2.db</include>
</includes>
</fileSet>
<fileSet>
Expand Down
Binary file added release/data/geostore.h2.db
Binary file not shown.
6 changes: 4 additions & 2 deletions release/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,15 @@
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>untar-jre</id>
<id>untar-jre-copy-db</id>
<phase>package</phase>
<configuration>
<tasks>
<echo message="Untar JRE" />
<echo message="Untar JRE..." />
<gunzip src="jre/jre.tar.gz" dest="${project.build.directory}/jre.tar" />
<untar src="${project.build.directory}/jre.tar" dest="${project.build.directory}/jre" />
<echo message="Copy Database..." />
<copyfile src="data/geostore.h2.db" dest="${project.build.directory}/geostore.h2.db" />
</tasks>
</configuration>
<goals>
Expand Down

0 comments on commit d917a2b

Please sign in to comment.