Skip to content

Commit

Permalink
Modified pom.xml to build an assembly. Still need to add scripts to l…
Browse files Browse the repository at this point in the history
…aunch symmetric. Also added a placeholder launch class.
  • Loading branch information
chenson42 committed Oct 21, 2007
1 parent 2c61a5f commit e2d2658
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 7 deletions.
47 changes: 40 additions & 7 deletions symmetric/pom.xml
Expand Up @@ -101,7 +101,7 @@
<role>designer</role>
</roles>
<timezone>-5</timezone>
</contributor>
</contributor>
</contributors>
<distributionManagement>
<site>
Expand All @@ -112,6 +112,18 @@
<build>
<finalName>symmetric-ds</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>org.jumpmind.symmetric.SymmetricLauncher</mainClass>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
Expand Down Expand Up @@ -154,19 +166,40 @@
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>bin</descriptorRef>
</descriptorRefs>
</configuration>
<version>2.1</version>
<executions>
<execution>
<id>make-assembly</id>
<id>bin</id>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
<configuration>
<descriptors>
<descriptor>
${basedir}/src/main/assembly/assembly-bin.xml
</descriptor>
</descriptors>
<finalName>symmetric-ds-${pom.version}</finalName>
</configuration>
</execution>
<!--
<execution>
<id>src</id>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
<configuration>
<descriptors>
<descriptor>
${basedir}/src/main/assembly/assembly-src.xml
</descriptor>
</descriptors>
<finalName>symmetric-ds-${pom.version}</finalName>
</configuration>
</execution>
-->
</executions>
</plugin>
<plugin>
Expand Down
28 changes: 28 additions & 0 deletions symmetric/src/main/assembly/assembly-bin.xml
@@ -0,0 +1,28 @@
<assembly>
<id>bin</id>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<directory>./</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>COPYING</include>
<include>COPYING.LESSER</include>
</includes>
</fileSet>
<fileSet>
<directory>src/main/deploy</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<outputDirectory>/lib</outputDirectory>
<outputFileNameMapping>${artifactId}-${version}.${extension}</outputFileNameMapping>
<unpack>false</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</assembly>
15 changes: 15 additions & 0 deletions symmetric/src/main/assembly/assembly-src.xml
@@ -0,0 +1,15 @@
<assembly>
<id>src</id>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<directory>..</directory>
<outputDirectory>/</outputDirectory>
<excludes>
<exclude>**/target/**</exclude>
</excludes>
</fileSet>
</fileSets>
</assembly>
@@ -0,0 +1,30 @@
/*
* SymmetricDS is an open source database synchronization solution.
*
* Copyright (C) Chris Henson <chenson42@users.sourceforge.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see
* <http://www.gnu.org/licenses/>.
*/
package org.jumpmind.symmetric;

/**
* This class is used to run Symmetric utilities and launch an embedded version of Symmetric.
*/
public class SymmetricLauncher {

public static void main(String[] args) throws Exception {
}

}

0 comments on commit e2d2658

Please sign in to comment.