radio
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>io.joynr.javascript.apps</groupId>
<artifactId>radio</artifactId>
<version>0.9.3</version>
</dependency><?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>radio</artifactId>
<groupId>io.joynr.javascript.apps</groupId>
<packaging>war</packaging>
<name>${project.groupId}:${project.artifactId}</name>
<description>joynr JavaScript Radio App</description>
<parent>
<groupId>io.joynr.javascript</groupId>
<artifactId>apps</artifactId>
<version>0.9.3</version>
</parent>
<dependencies>
<dependency>
<groupId>io.joynr.javascript</groupId>
<artifactId>libjoynr-js</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/main/webapp</sourceDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/webapp</directory>
</resource>
<resource>
<directory>src/main/generated</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>src/main/generated</directory>
<includes>
<include>**</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>io.joynr.tools.generator</groupId>
<artifactId>joynr-generator-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<model>radio.fidl</model>
<generationLanguage>javascript</generationLanguage>
<outputPath>${basedir}/src/main/generated/js</outputPath>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>io.joynr.javascript</groupId>
<artifactId>js-generator</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.joynr.examples</groupId>
<artifactId>radio-app</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</plugin>
<!-- Unpack JavaScript dependencies -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>unpack-joynr</id>
<goals>
<goal>unpack</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<artifactItems>
<artifactItem>
<groupId>io.joynr.javascript</groupId>
<artifactId>libjoynr-js</artifactId>
<version>${project.version}</version>
<type>jar</type>
</artifactItem>
</artifactItems>
<outputDirectory>target/dependencies/lib/joynr</outputDirectory>
</configuration>
</execution>
<execution>
<id>copy-backend-wars</id>
<phase>initialize</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>io.joynr.java.messaging.bounceproxy</groupId>
<artifactId>single-bounceproxy</artifactId>
<version>${project.version}</version>
<type>war</type>
<outputDirectory>${project.build.directory}</outputDirectory>
<destFileName>bounceproxy.war</destFileName>
</artifactItem>
<artifactItem>
<groupId>io.joynr.java.backend-services</groupId>
<artifactId>domain-access-controller-servlet</artifactId>
<version>${project.version}</version>
<type>war</type>
<outputDirectory>${project.build.directory}</outputDirectory>
<destFileName>accesscontrol.war</destFileName>
</artifactItem>
<artifactItem>
<groupId>io.joynr.java.backend-services</groupId>
<artifactId>discovery-directory-servlet</artifactId>
<version>${project.version}</version>
<type>war</type>
<outputDirectory>${project.build.directory}</outputDirectory>
<destFileName>discovery.war</destFileName>
</artifactItem>
</artifactItems>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>copy-libs</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}/js/</outputDirectory>
<resources>
<resource>
<directory>${basedir}/target/dependencies/lib/joynr/js</directory>
<includes>
<include>joynr.js</include>
<include>joynr.websocket.js</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>create.distribution</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!-- Maven eclipse plugin for better eclipse integration -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<additionalProjectnatures>
<projectnature>org.eclipse.wst.jsdt.core.jsNature</projectnature>
</additionalProjectnatures>
</configuration>
</plugin>
<!-- jslint-ing src/main/js -->
<plugin>
<groupId>com.googlecode.jslint4java</groupId>
<artifactId>jslint4java-maven-plugin</artifactId>
<executions>
<execution>
<id>lint-project</id>
<phase>process-sources</phase>
</execution>
</executions>
</plugin>
<!-- Configure war plugin for all apps to point ot the correct directories -->
<plugin>
<artifactId>maven-war-plugin</artifactId>
<executions>
<execution>
<id>default-war</id>
<phase>package</phase>
<goals>
<goal>war</goal>
</goals>
</execution>
</executions>
<configuration>
<scanInterval>1000</scanInterval>
<webResources>
<resource>
<!-- this is relative to the pom.xml directory -->
<directory>target/classes/</directory>
</resource>
</webResources>
<packagingExcludes>WEB-INF/*</packagingExcludes>
<webXml>${project.build.sourceDirectory}/WEB-INF/web.xml</webXml>
<warSourceDirectory>${project.build.sourceDirectory}</warSourceDirectory>
<archiveClasses>false</archiveClasses>
<attachClasses>false</attachClasses>
</configuration>
</plugin>
</plugins>
<!-- use for deployment to joynr servers -->
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>1.0</version>
</extension>
</extensions>
</build>
<profiles>
<profile>
<id>deploy to joynr servers</id>
<activation>
<property>
<name>deploy.server</name>
</property>
</activation>
<build>
<plugins>
<!-- reading credentials from credentials.properties file -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>${basedir}/credentials.properties</file>
</files>
<quiet>true</quiet>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>1.0-beta-4</version>
<executions>
<execution>
<id>upload.to.${deploy.server}.server</id>
<goals>
<goal>upload</goal>
</goals>
<phase>deploy</phase>
<configuration>
<excludes>generator.properties,WEB-INF/**</excludes>
<fromDir>${project.build.outputDirectory}</fromDir>
<toDir>/www/joynr/htdocs/radio/</toDir>
<url>scp://${credentials.server.username}:${credentials.server.password}@${deploy.server}</url>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>