| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <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>org.apache.openmeetings</groupId> |
| <artifactId>openmeetings-parent</artifactId> |
| <version>3.2.0-SNAPSHOT</version> |
| <relativePath>..</relativePath> |
| </parent> |
| <artifactId>openmeetings-screenshare</artifactId> |
| <packaging>jar</packaging> |
| <name>Openmeetings Screen Sharing applet</name> |
| <description>A File to grab a screen and send it to a Server</description> |
| <properties> |
| <keystore.location>${project.build.directory}/screensharing_sign.keystore</keystore.location> |
| <key.password>secret</key.password> |
| <keystore.password>secret</keystore.password> |
| <keystore.type>jks</keystore.type> |
| <key.alias>screen</key.alias> |
| <site.basedir>${project.parent.basedir}</site.basedir> |
| <skip.site.copy>false</skip.site.copy> |
| <jnlp.out.dir>${project.build.directory}/jnlp</jnlp.out.dir> |
| </properties> |
| <dependencies> |
| <dependency> |
| <groupId>org.red5</groupId> |
| <artifactId>red5-client</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.mina</groupId> |
| <artifactId>mina-core</artifactId> |
| <version>${mina.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-core</artifactId> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>create-template</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}</outputDirectory> |
| <resources> |
| <resource> |
| <directory>${project.basedir}/src/main/jnlp/templates</directory> |
| <includes> |
| <include>*.jnlp</include> |
| </includes> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| <execution> |
| <id>copy-icons</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${jnlp.out.dir}</outputDirectory> |
| <resources> |
| <resource> |
| <directory>${project.basedir}/src/main/jnlp/resources</directory> |
| <includes> |
| <include>*.png</include> |
| </includes> |
| <filtering>false</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>generate-resources</phase> |
| <configuration> |
| <target> |
| <copy file="${project.build.directory}/template.jnlp" tofile="${jnlp.out.dir}/APPLICATION.jnlp" overwrite="true" force="true" /> |
| </target> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>keytool-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals><goal>generateKeyPair</goal></goals> |
| <phase>generate-resources</phase> |
| <configuration> |
| <keystore>${keystore.location}</keystore> |
| <storepass>${keystore.password}</storepass> |
| <keypass>${key.password}</keypass> |
| <alias>${key.alias}</alias> |
| <dname>cn=Sebastian Wagner, ou=technolog, o=openmeetings.apache.org, c=DE</dname> |
| <ext></ext> |
| <validity>365</validity> |
| <keyalg>RSA</keyalg> |
| <keysize>4096</keysize> |
| <storetype>${keystore.type}</storetype> |
| <skip>${jarsigner.skip}</skip> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>make-screen-sharing</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>src/main/assembly/assembly.xml</descriptor> |
| </descriptors> |
| <outputDirectory>${jnlp.out.dir}</outputDirectory> |
| <archive> |
| <manifest> |
| <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> |
| <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| <mainClass>org.apache.openmeetings.screen.webstart.CoreScreenShare</mainClass> |
| </manifest> |
| <manifestEntries> |
| <Application-Name>${project.name}</Application-Name> |
| <Built-By>OpenMeetings - http://openmeetings.apache.org</Built-By> |
| <Built-On>${maven.build.timestamp}</Built-On> |
| <Svn-Revision>${buildNumber}</Svn-Revision> |
| <Product-Version>${project.version}</Product-Version> |
| <Permissions>all-permissions</Permissions> |
| <Trusted-Only>true</Trusted-Only> |
| <Codebase>*</Codebase> |
| <Crypto-Strength>unlimited</Crypto-Strength> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-bcprov</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${jnlp.out.dir}</outputDirectory> |
| <includeArtifactIds>bcprov-jdk15on</includeArtifactIds> |
| <overWriteReleases>true</overWriteReleases> |
| <overWriteSnapshots>true</overWriteSnapshots> |
| <overWriteIfNewer>true</overWriteIfNewer> |
| <excludeTransitive>false</excludeTransitive> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jarsigner-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>sign-applet</id> |
| <phase>package</phase> |
| <goals><goal>sign</goal></goals> |
| <configuration> |
| <archiveDirectory>${jnlp.out.dir}</archiveDirectory> |
| <keystore>${keystore.location}</keystore> |
| <keypass>${key.password}</keypass> |
| <storepass>${keystore.password}</storepass> |
| <storetype>${keystore.type}</storetype> |
| <alias>${key.alias}</alias> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| <pluginManagement> |
| <plugins> |
| <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> |
| <plugin> |
| <groupId>org.eclipse.m2e</groupId> |
| <artifactId>lifecycle-mapping</artifactId> |
| <version>1.0.0</version> |
| <configuration> |
| <lifecycleMappingMetadata> |
| <pluginExecutions> |
| <pluginExecution> |
| <pluginExecutionFilter> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <versionRange>[2.8,)</versionRange> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| </pluginExecutionFilter> |
| <action> |
| <ignore></ignore> |
| </action> |
| </pluginExecution> |
| <pluginExecution> |
| <pluginExecutionFilter> |
| <groupId>com.google.code.maven-replacer-plugin</groupId> |
| <artifactId>replacer</artifactId> |
| <versionRange>[1.5.3,)</versionRange> |
| <goals> |
| <goal>replace</goal> |
| </goals> |
| </pluginExecutionFilter> |
| <action> |
| <ignore></ignore> |
| </action> |
| </pluginExecution> |
| <pluginExecution> |
| <pluginExecutionFilter> |
| <groupId> |
| org.apache.maven.plugins |
| </groupId> |
| <artifactId> |
| maven-antrun-plugin |
| </artifactId> |
| <versionRange> |
| [1.8,) |
| </versionRange> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </pluginExecutionFilter> |
| <action> |
| <ignore></ignore> |
| </action> |
| </pluginExecution> |
| <pluginExecution> |
| <pluginExecutionFilter> |
| <groupId> |
| org.codehaus.mojo |
| </groupId> |
| <artifactId> |
| keytool-maven-plugin |
| </artifactId> |
| <versionRange> |
| [1.5,) |
| </versionRange> |
| <goals> |
| <goal>generateKeyPair</goal> |
| </goals> |
| </pluginExecutionFilter> |
| <action> |
| <ignore></ignore> |
| </action> |
| </pluginExecution> |
| </pluginExecutions> |
| </lifecycleMappingMetadata> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| </project> |
| |