Commit ebe3824e authored by guus's avatar guus

OF-555: broadcast plugin modifications (Maven builds a functional plugin based...

OF-555: broadcast plugin modifications (Maven builds a functional plugin based on the changes in this commit)

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches/maven-externalsbased@13095 b35dd754-fafc-0310-a699-88a17e54d16e
parent c782e93f
......@@ -15,29 +15,6 @@
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.3</version>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>openfire-plugin-assembly-descriptor</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<!-- This is where we use our shared assembly descriptor -->
<descriptorRefs>
<descriptorRef>openfire-plugin-assembly</descriptorRef>
</descriptorRefs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
......
......@@ -8,19 +8,40 @@
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<!-- metadata files (plugin.xml, icons, etc). -->
<fileSet>
<useDefaultExcludes>true</useDefaultExcludes>
<outputDirectory>/</outputDirectory>
<directory>src/main/metadata</directory>
</fileSet>
<!-- the jar-file containing the compiled plugin code. -->
<!-- The jar-file containing the compiled plugin code. This is assembled
by the assembly descriptor "openfire-plugin-jar" -->
<fileSet>
<directory>${project.build.directory}</directory>
<outputDirectory>/</outputDirectory>
<outputDirectory>/lib</outputDirectory>
<includes>
<include>plugin-${project.artifactId}.jar</include>
</includes>
</fileSet>
<!-- The jar-file containing the pre-compiled JSP pages. This is assembled
by the assembly descriptor "openfire-plugin-jspc" -->
<fileSet>
<directory>${project.build.directory}</directory>
<outputDirectory>/lib</outputDirectory>
<includes>
<include>*.jar</include>
<include>plugin-${project.artifactId}-jspc.jar</include>
</includes>
</fileSet>
</fileSets>
<!-- Bundle the dependencies of this plugin -->
<dependencySets>
<dependencySet>
<outputDirectory>/lib</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
</dependencySet>
</dependencySets>
</assembly>
\ No newline at end of file
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>openfire-plugin-jar</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>${project.build.outputDirectory}</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
</assembly>
\ No newline at end of file
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>openfire-plugin-jar</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
</assembly>
\ No newline at end of file
......@@ -16,6 +16,71 @@
<module>broadcast</module>
</modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.3</version>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>openfire-plugin-assembly-descriptor</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>make-plugin-jar</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<finalName>plugin-${project.artifactId}</finalName>
<!-- This is where we use our shared assembly descriptor -->
<descriptorRefs>
<descriptorRef>openfire-plugin-jar</descriptorRef>
</descriptorRefs>
</configuration>
</execution>
<execution>
<id>make-plugin-jspc</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<finalName>plugin-${project.artifactId}</finalName>
<!-- This is where we use our shared assembly descriptor -->
<descriptorRefs>
<descriptorRef>openfire-plugin-jar</descriptorRef>
</descriptorRefs>
</configuration>
</execution>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<finalName>${project.artifactId}</finalName>
<!-- This is where we use our shared assembly descriptor -->
<descriptorRefs>
<descriptorRef>openfire-plugin-assembly</descriptorRef>
</descriptorRefs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>
<dependency>
<groupId>${project.parent.groupId}</groupId>
......
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