Skip to content

Commit

Permalink
Create a "lightweight" profile
Browse files Browse the repository at this point in the history
with persistence disabled

see #109
  • Loading branch information
bertfrees committed Dec 15, 2017
1 parent e3304a0 commit 84402b2
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
68 changes: 68 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1962,6 +1962,17 @@
<arg value="prefix=frontend" />
<arg value="localRepository=${settings.localRepository}" />
</java>
</target>
</configuration>
</execution>
<execution>
<id>generate-fileinstall-cfg-files-persistence</id>
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<java classname="net.sf.saxon.Transform">
<arg value="target/tmp/effective-pom.xml" />
<arg value="src/main/xslt/pom-to-fileinstall-config.xsl" />
Expand Down Expand Up @@ -2917,6 +2928,63 @@ rm -rf /opt/daisy-pipeline2/cli
</build>
</profile>

<!--
disable persistence
-->
<profile>
<id>lightweight</id>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-persistence-libs-bundles</id>
<phase>none</phase>
</execution>
<execution>
<id>copy-persistence-pipeline-bundles</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<!--
Note that the persistence libs are not disabled because they are set statically in
etc/webservice/org.apache.felix.fileinstall-libs-persistence.cfg
-->
<execution>
<id>generate-fileinstall-cfg-files-persistence</id>
<phase>none</phase>
</execution>
<execution>
<id>generate-fileinstall-cfg-files-volatile</id>
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<java classname="net.sf.saxon.Transform">
<arg value="target/tmp/effective-pom.xml" />
<arg value="src/main/xslt/pom-to-fileinstall-config.xsl" />
<arg value="id=copy-volatile-pipeline-bundles" />
<arg value="startLevel=100" />
<arg value="dest=${project.baseUri}/target/generated-resources/etc/webservice" />
<arg value="prefix=frontend" />
<arg value="localRepository=${settings.localRepository}" />
</java>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

</profiles>
<repositories>
<!--
Expand Down
2 changes: 2 additions & 0 deletions src/main/assembly/dev.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<exclude>gui/org.apache.felix.fileinstall-framework-volatile.cfg</exclude>
<exclude>webservice/org.apache.felix.fileinstall-frontend.cfg</exclude>
<exclude>webservice/org.apache.felix.fileinstall-framework-persistance.cfg</exclude>
<exclude>webservice/org.apache.felix.fileinstall-framework-volatile.cfg</exclude>
</excludes>
<outputDirectory>/etc</outputDirectory>
<filtered>false</filtered>
Expand Down Expand Up @@ -51,6 +52,7 @@
<excludes>
<exclude>org.apache.felix.fileinstall-frontend.cfg</exclude>
<exclude>org.apache.felix.fileinstall-framework-persistance.cfg</exclude>
<exclude>org.apache.felix.fileinstall-framework-volatile.cfg</exclude>
</excludes>
<outputDirectory>/etc/webservice</outputDirectory>
<filtered>true</filtered>
Expand Down

0 comments on commit 84402b2

Please sign in to comment.