- <execution>
- <id>copy-dependencies</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>copy-dependencies</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
- <includeArtifactIds>org.apache.aries.proxy.impl</includeArtifactIds>
- <overWriteReleases>false</overWriteReleases>
- <overWriteSnapshots>true</overWriteSnapshots>
- <overWriteIfNewer>true</overWriteIfNewer>
- <useRepositoryLayout>true</useRepositoryLayout>
- <addParentPoms>true</addParentPoms>
- <copyPom>true</copyPom>
- </configuration>
- </execution>
-
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <phase>prepare-package</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <chmod perm="755">
- <fileset dir="${project.build.directory}/assembly/bin">
- <include name="karaf"/>
- <include name="instance"/>
- <include name="start"/>
- <include name="stop"/>
- <include name="status"/>
- <include name="client"/>
- <include name="shell"/>
- </fileset>
- </chmod>
- <!-- Remove this once Karaf provides a new-enough version of Aries Proxy -->
- <replace dir="${project.build.directory}/assembly/etc"
- token="org.apache.aries.proxy.impl/1.0.4"
- value="org.apache.aries.proxy.impl/1.0.5">
- <include name="startup.properties"/>
- </replace>
-
- <!-- BUG-5917, BUG-5943: remove overrides for platform factories and neuter Xalan's services-->
- <replace dir="${project.build.directory}/assembly/etc" token="javax.xml.parsers.DocumentBuilderFactory="
- value="# BUG-5943: javax.xml.parsers.DocumentBuilderFactory=">
- <include name="system.properties"/>
- </replace>
- <replace dir="${project.build.directory}/assembly/etc" token="javax.xml.transform.TransformerFactory="
- value="# BUG-5917: javax.xml.transform.TransformerFactory=">
- <include name="system.properties"/>
- </replace>
- <jar destfile="${project.build.directory}/assembly/lib/endorsed/odl-org.apache.servicemix.bundles.xalan-2.7.2_2_odl.jar">
- <zipfileset src="${project.build.directory}/assembly/lib/endorsed/org.apache.servicemix.bundles.xalan-2.7.2_2.jar"
- excludes="META-INF/services/javax.xml.*" erroronmissingarchive="false"/>
- </jar>
- <delete file="${project.build.directory}/assembly/lib/endorsed/org.apache.servicemix.bundles.xalan-2.7.2_2.jar" />
-
- </tasks>
- </configuration>
- </execution>