Commit 9a16f0dc authored by Guus der Kinderen's avatar Guus der Kinderen Committed by daryl herzmann

OF-546 Add install4j support to the Maven build. (#992)

* Add install4j support to the Maven build.

Using the 'install4j' profile on a server that has a suitable install4j and JREs, Maven can now
generate install4j builds, using: mvn -P install4j clean package

Note that Maven, even without the install4j profile, will no longer output the build artifacts
in /target. Instead, these are now outputted into /distribution/target/distribution-base/

* Make Ant build work with changed Maven structure.
parent 09bf59de
......@@ -44,7 +44,7 @@
<property name="spank.dir" value="${src.dir}/spank"/>
<property name="lib.ant.dir" value="${basedir}/build/lib/ant"/>
<property name="lib.build.dir" value="${basedir}/build/lib"/>
<property name="lib.build.installer.dir" value="${basedir}/build/installer"/>
<property name="lib.build.installer.dir" value="${basedir}/distribution/src/installer"/>
<property name="lib.merge.dir" value="${lib.build.dir}/merge"/>
<property name="lib.dist.dir" value="${lib.build.dir}/dist"/>
<property name="lib.web.dir" value="${web.dir}/WEB-INF/lib"/>
......@@ -104,7 +104,7 @@
<property name="copy.dbscripts" value="true"/>
<property name="installer.install4j.home" value="/home/bamboo/install4j"/>
<property name="installer.src" value="${basedir}/build/installer"/>
<property name="installer.src" value="${basedir}/distribution/src/installer"/>
<property name="installer.dest.dir" value="${release.dest.dir}"/>
<property name="installer.install4j.srcfile" value="${installer.src}/openfire.install4j"/>
<property name="installer.app_name" value="Openfire"/>
......
<?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/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>parent</artifactId>
<groupId>org.igniterealtime.openfire</groupId>
<version>4.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>distribution</artifactId>
<name>Distribution</name>
<description>Provides Openfire distributables.</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<releaseDirectory>${project.build.directory}/release</releaseDirectory>
<openfireSource>${releaseDirectory}/openfire_src</openfireSource>
</properties>
<build>
<finalName>distribution</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<descriptors>
<descriptor>src/assembly/basic-distribution.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<!-- Generates the platform-specific installers. -->
<profile>
<id>install4j</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.install4j</groupId>
<artifactId>install4j-maven-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<id>compile-installers</id>
<phase>package</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<projectFile>${project.basedir}/src/installer/openfire.install4j</projectFile>
<variables>
<sys.version>${project.version}</sys.version>
<maven-build-directory>${project.build.directory}</maven-build-directory>
</variables>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<repositories>
<repository>
<id>ej-technologies</id>
<url>https://maven.ej-technologies.com/repository/</url>
</repository>
</repositories>
</project>
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
<id>base</id>
<formats>
<format>dir</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<moduleSets>
<moduleSet>
<useAllReactorProjects>true</useAllReactorProjects>
<includes>
<include>${project.groupId}:dbutil</include>
<include>${project.groupId}:i18n</include>
<include>${project.groupId}:webadmintld</include>
<include>${project.groupId}:xmppserver</include>
</includes>
<binaries>
<includeDependencies>true</includeDependencies>
<outputDirectory>lib</outputDirectory>
<unpack>false</unpack>
</binaries>
</moduleSet>
<moduleSet>
<useAllReactorProjects>true</useAllReactorProjects>
<includes>
<include>${project.groupId}:starter</include>
</includes>
<binaries>
<includeDependencies>true</includeDependencies>
<outputDirectory>lib</outputDirectory>
<unpack>false</unpack>
<outputFileNameMapping>startup.jar</outputFileNameMapping>
</binaries>
</moduleSet>
<moduleSet>
<useAllReactorProjects>true</useAllReactorProjects>
<includes>
<include>${project.groupId}:webadmin</include>
</includes>
<binaries>
<includeDependencies>false</includeDependencies>
<outputDirectory>plugins/admin/webapp</outputDirectory>
<unpack>true</unpack>
</binaries>
</moduleSet>
</moduleSets>
<files>
<!-- Copy the admin console plugin.xml -->
<file>
<source>${project.basedir}/../src/plugins/admin/plugin.xml</source>
<outputDirectory>plugins/admin</outputDirectory>
</file>
</files>
<fileSets>
<!-- Copy the conf directory to conf -->
<fileSet>
<directory>${project.basedir}/../src/conf</directory>
<outputDirectory>conf</outputDirectory>
</fileSet>
<!-- Copy the bin directory to ${openfireHome}/bin -->
<fileSet>
<directory>${project.basedir}/../src/bin</directory>
<outputDirectory>bin</outputDirectory>
<fileMode>0755</fileMode>
</fileSet>
<!-- Copy log4j.xml to lib -->
<fileSet>
<directory>${project.basedir}/../build/lib/dist</directory>
<includes>
<include>log4j.xml</include>
</includes>
<outputDirectory>lib</outputDirectory>
</fileSet>
<!-- Copy the spank directory to resources -->
<fileSet>
<directory>${project.basedir}/../src/spank</directory>
<outputDirectory>resources/spank</outputDirectory>
</fileSet>
<!-- Copy the nativeAuth directory to resources -->
<fileSet>
<directory>${project.basedir}/../src/resources/nativeAuth</directory>
<outputDirectory>resources/nativeAuth</outputDirectory>
</fileSet>
<!-- Copy the database directory to resources -->
<fileSet>
<directory>${project.basedir}/../src/database</directory>
<outputDirectory>resources/database</outputDirectory>
</fileSet>
<!-- Copy the security directory to resources -->
<fileSet>
<directory>${project.basedir}/../src/security</directory>
<outputDirectory>resources/security</outputDirectory>
</fileSet>
<!-- Copy the documentation/docs directory to documentation -->
<fileSet>
<directory>${project.basedir}/../documentation/docs</directory>
<outputDirectory>documentation</outputDirectory>
</fileSet>
<!-- Copy the documentation/dist directory to the root folder -->
<fileSet>
<directory>${project.basedir}/../documentation/dist</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
<!-- Copy the documentation/docs directory to dist -->
<fileSet>
<directory>${project.basedir}/../documentation/docs</directory>
<outputDirectory>documentation</outputDirectory>
<filtered>true</filtered>
</fileSet>
</fileSets>
</assembly>
<?xml version="1.0" encoding="UTF-8"?>
<install4j version="7.0.3" transformSequenceNumber="7">
<install4j version="7.0.2" transformSequenceNumber="7">
<directoryPresets config="${compiler:RELEASE_FULL_PATH}/resources/security/truststore" />
<application name="${compiler:APP_NAME}" distributionSourceDir="" applicationId="${compiler:APPLICATION_ID}" mediaDir="../../target/release" mediaFilePattern="${compiler:FILE_PREFIX}_${compiler:VERSION_MAJOR}_${compiler:VERSION_MINOR}_${compiler:VERSION_REVISION}" compression="9" lzmaCompression="true" pack200Compression="false" excludeSignedFromPacking="true" commonExternalFiles="false" createMd5Sums="true" shrinkRuntime="true" shortName="${compiler:APP_SHORT_NAME}" publisher="${compiler:PUBLISHER}" publisherWeb="${compiler:PUBLISHER_URL}" version="${compiler:VERSION_MAJOR}.${compiler:VERSION_MINOR}.${compiler:VERSION_REVISION}" allPathsRelative="true" backupOnSave="false" autoSave="true" convertDotsToUnderscores="true" macSignature="????" macVolumeId="419a18ebe125f2bf" javaMinVersion="1.7" javaMaxVersion="" allowBetaVM="true" jdkMode="runtimeJre" jdkName="">
<application name="${compiler:APP_NAME}" distributionSourceDir="" applicationId="${compiler:APPLICATION_ID}" mediaDir="../../target/distributions" mediaFilePattern="${compiler:FILE_PREFIX}_${compiler:sys.version}" compression="9" lzmaCompression="true" pack200Compression="false" excludeSignedFromPacking="true" commonExternalFiles="false" createMd5Sums="true" shrinkRuntime="true" shortName="${compiler:APP_SHORT_NAME}" publisher="${compiler:PUBLISHER}" publisherWeb="${compiler:PUBLISHER_URL}" version="undefined" allPathsRelative="true" backupOnSave="false" autoSave="true" convertDotsToUnderscores="true" macSignature="????" macVolumeId="419a18ebe125f2bf" javaMinVersion="1.7" javaMaxVersion="" allowBetaVM="true" jdkMode="runtimeJre" jdkName="">
<languages skipLanguageSelection="false" languageSelectionInPrincipalLanguage="false">
<principalLanguage id="en" customLocalizationFile="" />
<additionalLanguages>
......@@ -21,17 +21,14 @@
<envVar name="JDK_HOME" />
</searchSequence>
<variables>
<variable name="VERSION_MAJOR" value="3" description="" category="" />
<variable name="VERSION_MINOR" value="7" description="" category="" />
<variable name="VERSION_REVISION" value="1" description="" category="" />
<variable name="APP_NAME" value="Openfire" description="" category="" />
<variable name="APP_SHORT_NAME" value="openfire" description="" category="" />
<variable name="PRODUCT_NAME" value="openfire" description="" category="" />
<variable name="PUBLISHER" value="Ignite Realtime RTC Community" description="" category="" />
<variable name="PUBLISHER_URL" value="www.igniterealtime.org" description="" category="" />
<variable name="RELEASE_DIR" value="openfire" description="" category="" />
<variable name="RELEASE_ROOT_PATH" value="..\..\target\release" description="" category="" />
<variable name="RELEASE_FULL_PATH" value="${compiler:RELEASE_ROOT_PATH}/${compiler:RELEASE_DIR}" description="" category="" />
<variable name="RELEASE_DIR" value="distribution-base" description="" category="" />
<variable name="RELEASE_ROOT_PATH" value="..${compiler:sys.fileSeparator}..${compiler:sys.fileSeparator}target" description="" category="" />
<variable name="RELEASE_FULL_PATH" value="${compiler:RELEASE_ROOT_PATH}${compiler:sys.fileSeparator}${compiler:RELEASE_DIR}" description="" category="" />
<variable name="FILE_PREFIX" value="${compiler:APP_SHORT_NAME}" description="" category="" />
<variable name="APPLICATION_ID" value="6886-9911-0474-3571" description="" category="" />
<variable name="UNIX_INSTALL_DIR" value="openfire" description="" category="" />
......@@ -1537,7 +1534,7 @@ return console.askYesNo(message, true);
<customAttributes />
</autoUpdate>
</windows>
<linuxRPM name="Linux RPM" id="18" customizedId="" mediaFileName="" installDir="/opt/${compiler:UNIX_INSTALL_DIR}" overridePrincipalLanguage="true" jreBitType="all" runPostProcessor="false" postProcessor="" failOnPostProcessorError="false" useLegacyMediaFileIds="false" legacyMediaFileIds="" downloadURL="" includeAllDownloadableComponents="true" includedJRE="linux-x86-1.8.0_152" manualJREEntry="false" overwriteNeverAsConfigFiles="false" os="linux" arch="i386">
<linuxRPM name="Linux RPM" id="18" customizedId="" mediaFileName="" installDir="/opt/${compiler:UNIX_INSTALL_DIR}" overridePrincipalLanguage="true" jreBitType="all" runPostProcessor="false" postProcessor="" failOnPostProcessorError="false" useLegacyMediaFileIds="false" legacyMediaFileIds="" downloadURL="" includeAllDownloadableComponents="true" includedJRE="" manualJREEntry="false" overwriteNeverAsConfigFiles="false" os="linux" arch="i386">
<excludedComponents />
<includedDownloadableComponents />
<excludedLaunchers>
......@@ -1614,7 +1611,7 @@ return console.askYesNo(message, true);
<customAttributes />
</autoUpdate>
</windowsArchive>
<windows name="Windows x64" id="1354" customizedId="" mediaFileName="${compiler:FILE_PREFIX}_${compiler:VERSION_MAJOR}_${compiler:VERSION_MINOR}_${compiler:VERSION_REVISION}_x64" installDir="${compiler:WINDOWS_INSTALL_DIR}" overridePrincipalLanguage="true" jreBitType="64" runPostProcessor="false" postProcessor="" failOnPostProcessorError="false" useLegacyMediaFileIds="false" legacyMediaFileIds="" downloadURL="" includeAllDownloadableComponents="false" includedJRE="" manualJREEntry="false" bundleType="1" jreURL="" jreShared="false" directDownload="false" installOnlyIfNecessary="false" customInstallBaseDir="" contentFilesType="1" verifyIntegrity="true">
<windows name="Windows x64" id="1354" customizedId="" mediaFileName="${compiler:FILE_PREFIX}_${compiler:sys.version}_x64" installDir="${compiler:WINDOWS_INSTALL_DIR}" overridePrincipalLanguage="true" jreBitType="64" runPostProcessor="false" postProcessor="" failOnPostProcessorError="false" useLegacyMediaFileIds="false" legacyMediaFileIds="" downloadURL="" includeAllDownloadableComponents="false" includedJRE="" manualJREEntry="false" bundleType="1" jreURL="" jreShared="false" directDownload="false" installOnlyIfNecessary="false" customInstallBaseDir="" contentFilesType="1" verifyIntegrity="true">
<excludedComponents />
<includedDownloadableComponents />
<excludedLaunchers>
......@@ -1635,7 +1632,7 @@ return console.askYesNo(message, true);
<customAttributes />
</autoUpdate>
</windows>
<windows name="Windows Bundled JRE x86" id="1394" customizedId="" mediaFileName="${compiler:FILE_PREFIX}_${compiler:VERSION_MAJOR}_${compiler:VERSION_MINOR}_${compiler:VERSION_REVISION}_bundledJRE" installDir="${compiler:WINDOWS_INSTALL_DIR}" overridePrincipalLanguage="true" jreBitType="32" runPostProcessor="false" postProcessor="" failOnPostProcessorError="false" useLegacyMediaFileIds="false" legacyMediaFileIds="" downloadURL="" includeAllDownloadableComponents="false" includedJRE="windows-x86-1.8.0_152" manualJREEntry="false" bundleType="1" jreURL="" jreShared="false" directDownload="false" installOnlyIfNecessary="false" customInstallBaseDir="" contentFilesType="1" verifyIntegrity="true">
<windows name="Windows Bundled JRE x86" id="1394" customizedId="" mediaFileName="${compiler:FILE_PREFIX}_${compiler:sys.version}_bundledJRE" installDir="${compiler:WINDOWS_INSTALL_DIR}" overridePrincipalLanguage="true" jreBitType="32" runPostProcessor="false" postProcessor="" failOnPostProcessorError="false" useLegacyMediaFileIds="false" legacyMediaFileIds="" downloadURL="" includeAllDownloadableComponents="false" includedJRE="windows-x86-1.8.0_152" manualJREEntry="false" bundleType="1" jreURL="" jreShared="false" directDownload="false" installOnlyIfNecessary="false" customInstallBaseDir="" contentFilesType="1" verifyIntegrity="true">
<excludedComponents />
<includedDownloadableComponents />
<excludedLaunchers>
......@@ -1656,7 +1653,7 @@ return console.askYesNo(message, true);
<customAttributes />
</autoUpdate>
</windows>
<windows name="Windows Bundled JRE x64" id="1396" customizedId="" mediaFileName="${compiler:FILE_PREFIX}_${compiler:VERSION_MAJOR}_${compiler:VERSION_MINOR}_${compiler:VERSION_REVISION}_bundledJRE_x64" installDir="${compiler:WINDOWS_INSTALL_DIR}" overridePrincipalLanguage="true" jreBitType="64" runPostProcessor="false" postProcessor="" failOnPostProcessorError="false" useLegacyMediaFileIds="false" legacyMediaFileIds="" downloadURL="" includeAllDownloadableComponents="false" includedJRE="windows-amd64-1.8.0_152" manualJREEntry="false" bundleType="1" jreURL="" jreShared="false" directDownload="false" installOnlyIfNecessary="false" customInstallBaseDir="" contentFilesType="1" verifyIntegrity="true">
<windows name="Windows Bundled JRE x64" id="1396" customizedId="" mediaFileName="${compiler:FILE_PREFIX}_${compiler:sys.version}_bundledJRE_x64" installDir="${compiler:WINDOWS_INSTALL_DIR}" overridePrincipalLanguage="true" jreBitType="64" runPostProcessor="false" postProcessor="" failOnPostProcessorError="false" useLegacyMediaFileIds="false" legacyMediaFileIds="" downloadURL="" includeAllDownloadableComponents="false" includedJRE="windows-amd64-1.8.0_152" manualJREEntry="false" bundleType="1" jreURL="" jreShared="false" directDownload="false" installOnlyIfNecessary="false" customInstallBaseDir="" contentFilesType="1" verifyIntegrity="true">
<excludedComponents />
<includedDownloadableComponents />
<excludedLaunchers>
......@@ -1678,6 +1675,6 @@ return console.askYesNo(message, true);
</autoUpdate>
</windows>
</mediaSets>
<buildIds buildAll="false" />
<buildIds buildAll="true" />
<buildOptions verbose="false" faster="false" disableSigning="false" disableJreBundling="false" debug="false" />
</install4j>
......@@ -11,7 +11,7 @@
<div id="pageHeader">
<div id="logo"></div>
<h1>Openfire @version@</h1>
<h1>Openfire ${project.version}</h1>
</div>
<div class="navigation">
</div>
......
......@@ -18,6 +18,7 @@
<module>src/plugins</module>
<module>webadmin</module>
<module>webadmintld</module>
<module>distribution</module>
</modules>
<organization>
......@@ -117,9 +118,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<openfireHome>${project.build.directory}/openfire</openfireHome>
<releaseDirectory>${project.build.directory}/release</releaseDirectory>
<openfireSource>${releaseDirectory}/openfire_src</openfireSource>
<!-- Versions -->
<jetty.version>9.2.14.v20151106</jetty.version>
<mina.version>2.0.7</mina.version>
......@@ -139,6 +138,7 @@
</properties>
</profile>
<!-- Generates artifacts required for uploading to Sonatypes Maven repository. -->
<profile>
<id>release</id>
<build>
......@@ -261,73 +261,6 @@
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<inherited>false</inherited>
<executions>
<execution>
<id>Copy directories</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${openfireHome}</outputDirectory>
<resources>
<!-- Copy the conf directory to ${openfireHome}/conf -->
<resource>
<directory>src/conf</directory>
<targetPath>conf</targetPath>
</resource>
<!-- Copy the bin directory to ${openfireHome}/bin -->
<resource>
<directory>src/bin</directory>
<targetPath>bin</targetPath>
</resource>
<!-- Copy log4j.xml to ${openfireHome}/lib -->
<resource>
<directory>build/lib/dist</directory>
<includes>
<include>log4j.xml</include>
</includes>
<targetPath>lib</targetPath>
</resource>
<!-- Copy the spank directory to ${openfireHome}/resources -->
<resource>
<directory>src/spank</directory>
<targetPath>resources/spank</targetPath>
</resource>
<!-- Copy the nativeAuth directory to ${openfireHome}/resources -->
<resource>
<directory>src/resources/nativeAuth</directory>
<targetPath>resources/nativeAuth</targetPath>
</resource>
<!-- Copy the database directory to ${openfireHome}/resources -->
<resource>
<directory>src/database</directory>
<targetPath>resources/database</targetPath>
</resource>
<!-- Copy the security directory to ${openfireHome}/resources -->
<resource>
<directory>src/security</directory>
<targetPath>resources/security</targetPath>
</resource>
<!-- Copy the documentation/docs directory to ${openfireHome}/documentation -->
<resource>
<directory>documentation/docs</directory>
<targetPath>documentation</targetPath>
</resource>
<!-- Copy the documentation/docs directory to ${openfireHome}/dist -->
<resource>
<directory>documentation/dist</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
......
......@@ -10,7 +10,6 @@
<name>Starter for Openfire</name>
<description>Starts Openfire and also launches the web admin interface in a web browser</description>
<properties>
<openfireHome>${project.parent.build.directory}/openfire</openfireHome>
</properties>
<build>
<plugins>
......@@ -19,7 +18,6 @@
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<finalName>startup</finalName>
<outputDirectory>${openfireHome}/lib</outputDirectory>
<archive>
<manifest>
<addClasspath>true</addClasspath>
......
......@@ -11,40 +11,23 @@
<packaging>war</packaging>
<properties>
<openfireHome>${project.parent.build.directory}/openfire</openfireHome>
<warSourceDirectory>${project.basedir}/../src/web</warSourceDirectory>
</properties>
<build>
<plugins>
<!-- Create the (exploded) web archive in the ${openfireHome}/plugins/admin/webapp directory -->
<!-- Create the admin console web archive. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<!-- Copy the webapp folder directly to the admin plugin -->
<webappDirectory>${openfireHome}/plugins/admin/webapp</webappDirectory>
<!-- Exclude JSP files, they will be compiled -->
<warSourceExcludes>**/*.jsp,**/*.jspf,WEB-INF/lib/*.*</warSourceExcludes>
<warSourceDirectory>${warSourceDirectory}</warSourceDirectory>
<!-- Use the web.xml, which contains the generated servlet declarations from the jetty-jspc-maven-plugin -->
<webXml>${project.build.directory}/web.xml</webXml>
</configuration>
<executions>
<!-- Skip the creation of a *.war file, we don't need it -->
<execution>
<id>default-war</id>
<phase>none</phase>
</execution>
<!-- Only create the exploded webapp folder -->
<execution>
<phase>prepare-package</phase>
<goals>
<goal>exploded</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Compile the JSP pages -->
......@@ -82,38 +65,6 @@
</dependencies>
</plugin>
<!-- We don't generate a war file (only the exploded directory), so there's no artifact to install -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<!-- Copy the plugin.xml -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>Copy plugin.xml</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${openfireHome}/plugins/admin</outputDirectory>
<resources>
<resources>
<directory>${project.basedir}/../src/plugins/admin</directory>
</resources>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
......
......@@ -8,9 +8,6 @@
</parent>
<artifactId>xmppserver</artifactId>
<name>Core XMPP Server</name>
<properties>
<openfireHome>${project.parent.build.directory}/openfire</openfireHome>
</properties>
<build>
<plugins>
......@@ -46,47 +43,6 @@
<extensions>true</extensions>
</plugin>
<!-- Copy all dependencies to ${openfireHome}/lib -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>copy</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<type>${project.packaging}</type>
</artifactItem>
</artifactItems>
<outputDirectory>${openfireHome}/lib</outputDirectory>
</configuration>
</execution>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${openfireHome}/lib</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
<includeScope>runtime</includeScope>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<!-- TODO: Use default Maven directories src/main/java, src/main/resource and src/test/java -->
<sourceDirectory>../src/java</sourceDirectory>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment