<?xml version="1.0" encoding="UTF-8"?>
<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>
 
  <parent>
    <groupId>com.tourgeek.config</groupId>
    <artifactId>tourgeek-config-reactor</artifactId>
    <version>0.8.5</version>
  </parent>

  <artifactId>com.tourgeek.config.main</artifactId>
  <packaging>bundle</packaging>
  <name>tourgeek-config-app - Run standalone tourgeek</name>
  
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<extensions>true</extensions>
				<configuration>
					<instructions>
						<Bundle-ManifestVersion>2</Bundle-ManifestVersion>
						<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
						<Export-Package>com.tourgeek;version=${project.version}</Export-Package>
						<Import-Package>
   							*;resolution:=optional,
                            com.tourgeek.tour.acctpay.screen.vendor;resolution:=optional,
                            com.tourgeek.tour.acctpay.air.ticket;resolution:=optional,
                            com.tourgeek.tour.acctpay.report;resolution:=optional,
                            com.tourgeek.tour.acctrec.report.cashplan;resolution:=optional,
                            com.tourgeek.tour.acctrec.screen.misc;resolution:=optional,
                            com.tourgeek.tour.assetdr.screen;resolution:=optional,
                            com.tourgeek.tour.assetdr.report;resolution:=optional,
                            com.tourgeek.tour.assetdr.process;resolution:=optional,
                            com.tourgeek.tour.booking.report.voucher;resolution:=optional,
                            com.tourgeek.tour.booking.entry.base;resolution:=optional,
                            <!-- com.tourgeek.tour.booking.remote.lookup;resolution:=optional, -->
                            com.tourgeek.tour.genled.screen.misc;resolution:=optional,
                            com.tourgeek.tour.genled.report;resolution:=optional,
                            com.tourgeek.tour.payroll.screen.misc;resolution:=optional,
                            com.tourgeek.tour.payroll.report.payroll;resolution:=optional,
                            com.tourgeek.tour.product.base.screen;resolution:=optional,
                            com.tourgeek.tour.profile.screen;resolution:=optional,
                            com.tourgeek.tour.request.report;resolution:=optional,
                            <!-- com.tourgeek.tour.request.request.thread;resolution:=optional, -->
						</Import-Package>
						<!-- Bundle-Activator>com.tourgeek.Main</Bundle-Activator -->
					</instructions>
				</configuration>
			</plugin>
		</plugins>
	</build>
  <profiles>
    <profile>
      <id>switch</id>
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
      <properties>
          <menu>Switch</menu>
      </properties>
    </profile>
    <profile>
      <id>import</id>
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
      <build>
        <plugins>      
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <executions>
              <execution>
                <goals>
                  <goal>java</goal>
                </goals>
              </execution>
            </executions>
            <configuration> <!-- This plugin populates the databases: mvn -P import exec:java -->
            <mainClass>org.jbundle.base.db.xmlutil.XmlInOut</mainClass>
            <arguments>
              <argument>allFiles=true</argument>
              <argument>loadInitialData=false</argument>
              <argument>archiveDir=/home/dcorley/workspace/workspace/jbundle/jbundle/res/data/data/src/main/resources/org/jbundle/res/data/initial_data/current_initial_data,
          /home/dcorley/workspace/workspace/jbundle/jbundle/res/data/test/src/main/resources/org/jbundle/res/data/initial_data/current_initial_data,
          /home/dcorley/workspace/workspace/jbundle/jbundle/res/data/app/src/main/resources/org/jbundle/res/data/initial_data/current_initial_data,
          /home/dcorley/workspace/workspace/app/tourgeek/res/data/data/src/main/resources/com/tourgeek/res/data/initial_data/current_initial_data,
          /home/dcorley/workspace/workspace/app/tourgeek/res/data/dev/src/main/resources/org/jbundle/res/data/initial_data/current_initial_data</argument>
              <!-- argument>connectionType=proxy</argument>
        <argument>remotehost=${jbundle.server}</argument>
        <argument>codebase=${jbundle.codebase}</argument -->
        <argument>local=${jbundle.db.local}</argument>
        <argument>remote=${jbundle.db.remote}</argument>
        <argument>table=${jbundle.db.table}</argument>
        <argument>messageserver=false</argument>
		<!-- argument>databaseproduct=derby</argument -->
            </arguments>
          <systemProperties>
            <systemProperty>
              <key>myproperty</key>
              <value>myvalue</value>
            </systemProperty>
          </systemProperties>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
      <profile>
          <id>export</id>
          <activation>
              <activeByDefault>false</activeByDefault>
          </activation>
          <build>
              <plugins>
                  <plugin>
                      <groupId>org.codehaus.mojo</groupId>
                      <artifactId>exec-maven-plugin</artifactId>
                      <executions>
                          <execution>
                              <goals>
                                  <goal>java</goal>
                              </goals>
                          </execution>
                      </executions>
                      <configuration> <!-- This plugin populates the databases: mvn -P import exec:java -->
                          <mainClass>org.jbundle.base.db.xmlutil.XmlInOut</mainClass>
                          <arguments>
                              <argument>transferMode=export</argument>
                              <argument>loadInitialData=false</argument>
                              <argument>sourcePrefix=/home/dcorley/workspace/workspace/jbundle/jbundle/res/data/data/src/main/resources/org/jbundle/res/data/</argument>
<!--                              <argument>sourceDir=initial_data/current_initial_data</argument>-->
<!--                              <argument>database=test</argument>-->
                              <argument>record=.app.program.db.LogicFile</argument>
                              <argument>export=/home/dcorley/workspace/workspace/jbundle/jbundle/res/data/data/src/main/resources/org/jbundle/res/data/initial_data/current_initial_data/program_base_shared/org/jbundle/app/program/db/LogicFile.xml</argument>
                              <argument>mainSharedDBName=main_base</argument>
                              <argument>mainUserDBName=mainUserDBName</argument>
                              <argument>programSharedDBName=program_base</argument>
                              <argument>local=${jbundle.db.local}</argument>
                              <argument>remote=${jbundle.db.remote}</argument>
                              <argument>table=${jbundle.db.table}</argument>
                              <argument>messageserver=false</argument>
                              <!-- argument>databaseproduct=derby</argument -->
                          </arguments>
                          <systemProperties>
                              <systemProperty>
                                  <key>myproperty</key>
                                  <value>myvalue</value>
                              </systemProperty>
                          </systemProperties>
                      </configuration>
                  </plugin>
              </plugins>
          </build>
      </profile>
  </profiles>
  
  <dependencies>
    <dependency>
        <groupId>com.tourgeek.config</groupId>
        <artifactId>tourgeek-config-dep-all</artifactId>
        <version>0.8.5</version>
        <type>pom</type>
    </dependency>
  </dependencies>

</project>
