Author: [email protected] Date: Wed Oct 12 12:58:17 2011 New Revision: 1490
Log: AMDATU-427 Initial commit of the demo assembly Added: trunk/amdatu-release-demo/ (props changed) trunk/amdatu-release-demo/pom.xml trunk/amdatu-release-demo/src/ trunk/amdatu-release-demo/src/main/ trunk/amdatu-release-demo/src/main/assembly/ trunk/amdatu-release-demo/src/main/assembly/bin-component.xml trunk/amdatu-release-demo/src/main/assembly/bin-release.xml trunk/amdatu-release-demo/src/main/assembly/dev-server.xml Added: trunk/amdatu-release-demo/pom.xml ============================================================================== --- (empty file) +++ trunk/amdatu-release-demo/pom.xml Wed Oct 12 12:58:17 2011 @@ -0,0 +1,381 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (c) 2010, 2011 The Amdatu Foundation + + Licensed 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.verning 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.amdatu</groupId> + <artifactId>amdatu</artifactId> + <version>4-SNAPSHOT</version> + <relativePath>../amdatu-parent/pom.xml</relativePath> + </parent> + <groupId>org.amdatu.release</groupId> + <artifactId>org.amdatu.release.demo</artifactId> + <packaging>pom</packaging> + <version>0.0.1-SNAPSHOT</version> + <name>Amdatu Demo release</name> + + <properties> + <org.amdatu.release.version>0.2.1-SNAPSHOT</org.amdatu.release.version> + <org.amdatu.cassandra.version>0.2.1-SNAPSHOT</org.amdatu.cassandra.version> + <org.amdatu.auth.version>0.2.1-SNAPSHOT</org.amdatu.auth.version> + <org.amdatu.opensocial.version>0.2.0-SNAPSHOT</org.amdatu.opensocial.version> + <org.amdatu.semanticweb.version>0.2.0-SNAPSHOT</org.amdatu.semanticweb.version> + + <!--Temporarily defined here--> + <server.hostname>localhost</server.hostname> + <server.port>3337</server.port> + + <amdatu.http.hostname>localhost</amdatu.http.hostname> + <amdatu.http.port>8080</amdatu.http.port> + <amdatu.https.port>8045</amdatu.https.port> + <amdatu.log.level>INFO</amdatu.log.level> + + </properties> + + <repositories> + <repository> + <id>amdatu.releases</id> + <name>Amdatu Release Repository</name> + <url>http://repository.amdatu.org/releases</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + <repository> + <id>amdatu.snapshots</id> + <name>Amdatu Snapshot Repository</name> + <url>http://repository.amdatu.org/snapshots</url> + <releases> + <enabled>false</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </repository> + </repositories> + + + <dependencies> + <dependency> + <groupId>org.amdatu</groupId> + <artifactId>org.amdatu.release</artifactId> + <version>${org.amdatu.release.version}</version> + <scope>compile</scope> + <type>zip</type> + </dependency> + + <!-- Add all the Cassandra dependencies --> + <dependency> + <groupId>org.amdatu.cassandra</groupId> + <artifactId>org.amdatu.cassandra.application</artifactId> + <version>${org.amdatu.cassandra.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.cassandra</groupId> + <artifactId>org.amdatu.cassandra.store.gadget</artifactId> + <version>${org.amdatu.cassandra.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.cassandra</groupId> + <artifactId>org.amdatu.cassandra.listener</artifactId> + <version>${org.amdatu.cassandra.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.cassandra</groupId> + <artifactId>org.amdatu.cassandra.persistencemanager</artifactId> + <version>${org.amdatu.cassandra.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.cassandra</groupId> + <artifactId>org.amdatu.cassandra.persistencemanager.hector</artifactId> + <version>${org.amdatu.cassandra.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.cassandra</groupId> + <artifactId>org.amdatu.cassandra.store.consumer</artifactId> + <version>${org.amdatu.cassandra.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.cassandra</groupId> + <artifactId>org.amdatu.cassandra.store.token</artifactId> + <version>${org.amdatu.cassandra.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.cassandra</groupId> + <artifactId>org.amdatu.cassandra.store.useradmin</artifactId> + <version>${org.amdatu.cassandra.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.cassandra</groupId> + <artifactId>org.amdatu.cassandra.config</artifactId> + <version>${org.amdatu.cassandra.version}</version> + <scope>compile</scope> + </dependency> + + <!-- Add the nec. Auth dependencies --> + <dependency> + <groupId>org.amdatu.auth</groupId> + <artifactId>org.amdatu.auth.login.gadget</artifactId> + <version>${org.amdatu.auth.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.auth</groupId> + <artifactId>org.amdatu.auth.login.service</artifactId> + <version>${org.amdatu.auth.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.auth</groupId> + <artifactId>org.amdatu.auth.oauth.api</artifactId> + <version>${org.amdatu.auth.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.auth</groupId> + <artifactId>org.amdatu.auth.oauth.client</artifactId> + <version>${org.amdatu.auth.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.auth</groupId> + <artifactId>org.amdatu.auth.oauth.consumerregistry</artifactId> + <version>${org.amdatu.auth.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.auth</groupId> + <artifactId>org.amdatu.auth.oauth.server</artifactId> + <version>${org.amdatu.auth.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.auth</groupId> + <artifactId>org.amdatu.auth.tokenprovider</artifactId> + <version>${org.amdatu.auth.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.auth</groupId> + <artifactId>org.amdatu.auth.useradmin.gadget</artifactId> + <version>${org.amdatu.auth.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.auth</groupId> + <artifactId>org.amdatu.auth.useradmin.rest</artifactId> + <version>${org.amdatu.auth.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.auth</groupId> + <artifactId>org.amdatu.auth.config</artifactId> + <version>${org.amdatu.auth.version}</version> + <scope>compile</scope> + </dependency> + + + <!-- Add the OpenSocial dependencies --> + <dependency> + <groupId>org.amdatu.opensocial</groupId> + <artifactId>org.amdatu.opensocial.dashboard</artifactId> + <version>${org.amdatu.opensocial.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.opensocial</groupId> + <artifactId>org.amdatu.opensocial.gadgetmanagement</artifactId> + <version>${org.amdatu.opensocial.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.opensocial</groupId> + <artifactId>org.amdatu.opensocial.profile</artifactId> + <version>${org.amdatu.opensocial.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.opensocial</groupId> + <artifactId>org.amdatu.opensocial.shindig</artifactId> + <version>${org.amdatu.opensocial.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.opensocial</groupId> + <artifactId>org.amdatu.opensocial.config</artifactId> + <version>${org.amdatu.opensocial.version}</version> + <scope>compile</scope> + </dependency> + + <!-- Add the Sesame dependencies --> + <dependency> + <groupId>org.amdatu.semanticweb</groupId> + <artifactId>rdf2go.api</artifactId> + <version>${org.amdatu.semanticweb.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.semanticweb</groupId> + <artifactId>rdf2go.sesamebridge</artifactId> + <version>${org.amdatu.semanticweb.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.semanticweb</groupId> + <artifactId>sesame</artifactId> + <version>${org.amdatu.semanticweb.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.amdatu.semanticweb</groupId> + <artifactId>sparqlendpoint</artifactId> + <version>${org.amdatu.semanticweb.version}</version> + <scope>compile</scope> + </dependency> + </dependencies> + + + <build> + <defaultGoal>package</defaultGoal> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <version>2.2-beta-5</version> + <configuration> + <appendAssemblyId>true</appendAssemblyId> + </configuration> + </plugin> + <plugin> + <groupId>org.mortbay.jetty</groupId> + <artifactId>jetty-maven-plugin</artifactId> + <version>7.3.1.v20110307</version> + </plugin> + </plugins> + </pluginManagement> + <plugins> + <plugin> + <!-- Usage: mvn -P build-war package jetty:run-war --> + <groupId>org.mortbay.jetty</groupId> + <artifactId>jetty-maven-plugin</artifactId> + <configuration> + <webApp>${project.build.directory}/${project.build.finalName}.war</webApp> + <webAppConfig> + <contextPath>/amdatu</contextPath> + </webAppConfig> + <connectors> + <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> + <port>${amdatu.http.port}</port> + <maxIdleTime>60000</maxIdleTime> + </connector> + </connectors> + <systemProperties> + <systemProperty> + <name>amdatu.dir</name> + <value>${project.build.directory}/amdatu-war</value> + </systemProperty> + </systemProperties> + </configuration> + </plugin> + </plugins> + </build> + <profiles> + <!-- + This profile is active by default and only assembles the dev server. + However it will be overruled by the release profile below unless that one + is deactivated. + --> + <profile> + <id>development</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <id>create-release</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + <configuration> + <appendAssemblyId>false</appendAssemblyId> + <descriptors> + <descriptor>src/main/assembly/dev-server.xml</descriptor> + </descriptors> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + <profile> + <!-- + The release profile by default generates all binary, source, + javadoc and assemblies + --> + <id>release</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <id>create-release</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + <configuration> + <appendAssemblyId>false</appendAssemblyId> + <descriptors> + <descriptor>src/main/assembly/dev-server.xml</descriptor> + <descriptor>src/main/assembly/bin-release.xml</descriptor> + </descriptors> + + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> +</project> Added: trunk/amdatu-release-demo/src/main/assembly/bin-component.xml ============================================================================== --- (empty file) +++ trunk/amdatu-release-demo/src/main/assembly/bin-component.xml Wed Oct 12 12:58:17 2011 @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<component xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.0 view-source:http://maven.apache.org/xsd/component-1.1.0.xsd"> + <dependencySets> + <dependencySet> + <outputDirectory>.</outputDirectory> + <includes> + <include>org.amdatu:org.amdatu.release</include> + </includes> + <unpack>true</unpack> + <useTransitiveDependencies>false</useTransitiveDependencies> + </dependencySet> + + <dependencySet> + <outputDirectory>deploy</outputDirectory> + <includes> + <include>org.amdatu.cassandra:*</include> + <include>org.amdatu.auth:*</include> + <include>org.amdatu.opensocial:*</include> + <include>org.amdatu.semanticweb:*</include> + </includes> + <excludes> + <exclude>*:*.config</exclude> + </excludes> + + <unpack>false</unpack> + <useTransitiveDependencies>false</useTransitiveDependencies> + </dependencySet> + + <!--Unpack the the config files to deploy directory--> + <dependencySet> + <outputDirectory>deploy</outputDirectory> + <includes> + <include>*:*.config</include> + </includes> + <unpack>true</unpack> + <useTransitiveDependencies>false</useTransitiveDependencies> + </dependencySet> + + </dependencySets> + <fileSets> + <fileSet> + <directory>src/main/resources/config</directory> + <outputDirectory>deploy</outputDirectory> + <filtered>true</filtered> + <includes> + <include>*.jar</include> + </includes> + </fileSet> + </fileSets> +</component> \ No newline at end of file Added: trunk/amdatu-release-demo/src/main/assembly/bin-release.xml ============================================================================== --- (empty file) +++ trunk/amdatu-release-demo/src/main/assembly/bin-release.xml Wed Oct 12 12:58:17 2011 @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd"> + <id>bin</id> + <formats> + <format>tar.gz</format> + <format>zip</format> + </formats> + <includeBaseDirectory>false</includeBaseDirectory> + <componentDescriptors> + <componentDescriptor>src/main/assembly/bin-component.xml</componentDescriptor> + </componentDescriptors> +</assembly> \ No newline at end of file Added: trunk/amdatu-release-demo/src/main/assembly/dev-server.xml ============================================================================== --- (empty file) +++ trunk/amdatu-release-demo/src/main/assembly/dev-server.xml Wed Oct 12 12:58:17 2011 @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd"> + <id>dev</id> + <formats> + <format>dir</format> + </formats> + <includeBaseDirectory>false</includeBaseDirectory> + <componentDescriptors> + <componentDescriptor>src/main/assembly/bin-component.xml</componentDescriptor> + </componentDescriptors> +</assembly> \ No newline at end of file _______________________________________________ Amdatu-commits mailing list [email protected] http://lists.amdatu.org/mailman/listinfo/amdatu-commits
