Author: pramirez Date: Wed Nov 9 05:45:54 2011 New Revision: 1199620 URL: http://svn.apache.org/viewvc?rev=1199620&view=rev Log: OODT-346 pcs ops ui archetype. Iniitial checkin.
To use this archetype while in development check out https://svn.apache.org/repos/asf/oodt/trunk/mvn/archetypes/opsui and run "mvn install". Then to use the archetype: mvn archetype:generate -Dcatalog=local This will present a prompt with ability to select an archetype. Here is an example of what you might see and the responses: Choose archetype: 1: local -> filemgr-archetype (filemgr-archetype) 2: local -> radix-archetype (RADiX Distribution of OODT) 3: local -> opsui-archetype (opsui-archetype) Choose a number: : 3 Define value for property 'groupId': : my.com Define value for property 'artifactId': : my-ops-ui Define value for property 'version': 1.0-SNAPSHOT: Define value for property 'package': my.com: Confirm properties configuration: groupId: my.com artifactId: my-ops-ui version: 1.0-SNAPSHOT package: my.com Y: y Now merely cd into "my-ops-ui" or whatever you designated as the artifactId and then type "mvn tomcat:run-war". You should then be able to head to http://localhost:8080/my-ops-ui and see the app running. You should of course set the variables in the src/main/webapp/META-INF/context.xml or have those environment variables set. If you would like to skin this new opsui merely follow the same structure as the opsui project in the OODT trunk. There will be a wiki to further describe this skinning process at some point. Added: oodt/trunk/mvn/archetypes/opsui/ oodt/trunk/mvn/archetypes/opsui/pom.xml (with props) oodt/trunk/mvn/archetypes/opsui/src/ oodt/trunk/mvn/archetypes/opsui/src/main/ oodt/trunk/mvn/archetypes/opsui/src/main/resources/ oodt/trunk/mvn/archetypes/opsui/src/main/resources/META-INF/ oodt/trunk/mvn/archetypes/opsui/src/main/resources/META-INF/maven/ oodt/trunk/mvn/archetypes/opsui/src/main/resources/META-INF/maven/archetype-metadata.xml (with props) oodt/trunk/mvn/archetypes/opsui/src/main/resources/archetype-resources/ oodt/trunk/mvn/archetypes/opsui/src/main/resources/archetype-resources/pom.xml (with props) oodt/trunk/mvn/archetypes/opsui/src/main/resources/archetype-resources/src/ oodt/trunk/mvn/archetypes/opsui/src/main/resources/archetype-resources/src/main/ oodt/trunk/mvn/archetypes/opsui/src/main/resources/archetype-resources/src/main/webapp/ oodt/trunk/mvn/archetypes/opsui/src/main/resources/archetype-resources/src/main/webapp/META-INF/ oodt/trunk/mvn/archetypes/opsui/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml (with props) oodt/trunk/mvn/archetypes/opsui/src/test/ oodt/trunk/mvn/archetypes/opsui/src/test/resources/ oodt/trunk/mvn/archetypes/opsui/src/test/resources/projects/ oodt/trunk/mvn/archetypes/opsui/src/test/resources/projects/basic/ oodt/trunk/mvn/archetypes/opsui/src/test/resources/projects/basic/archetype.properties (with props) oodt/trunk/mvn/archetypes/opsui/src/test/resources/projects/basic/goal.txt (with props) Added: oodt/trunk/mvn/archetypes/opsui/pom.xml URL: http://svn.apache.org/viewvc/oodt/trunk/mvn/archetypes/opsui/pom.xml?rev=1199620&view=auto ============================================================================== --- oodt/trunk/mvn/archetypes/opsui/pom.xml (added) +++ oodt/trunk/mvn/archetypes/opsui/pom.xml Wed Nov 9 05:45:54 2011 @@ -0,0 +1,31 @@ +<?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"> + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.oodt</groupId> + <artifactId>opsui-archetype</artifactId> + <version>0.4-SNAPSHOT</version> + <packaging>maven-archetype</packaging> + + <name>opsui-archetype</name> + + <build> + <extensions> + <extension> + <groupId>org.apache.maven.archetype</groupId> + <artifactId>archetype-packaging</artifactId> + <version>2.0-alpha-5</version> + </extension> + </extensions> + + <pluginManagement> + <plugins> + <plugin> + <artifactId>maven-archetype-plugin</artifactId> + <version>2.0-alpha-5</version> + <extensions>true</extensions> + </plugin> + </plugins> + </pluginManagement> + </build> +</project> Propchange: oodt/trunk/mvn/archetypes/opsui/pom.xml ------------------------------------------------------------------------------ svn:keywords = Id Revision Added: oodt/trunk/mvn/archetypes/opsui/src/main/resources/META-INF/maven/archetype-metadata.xml URL: http://svn.apache.org/viewvc/oodt/trunk/mvn/archetypes/opsui/src/main/resources/META-INF/maven/archetype-metadata.xml?rev=1199620&view=auto ============================================================================== --- oodt/trunk/mvn/archetypes/opsui/src/main/resources/META-INF/maven/archetype-metadata.xml (added) +++ oodt/trunk/mvn/archetypes/opsui/src/main/resources/META-INF/maven/archetype-metadata.xml Wed Nov 9 05:45:54 2011 @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="opsui" + xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <fileSets> + <fileSet filtered="true" encoding="UTF-8"> + <directory>src/main/webapp</directory> + <includes> + <include>**/*.xml</include> + </includes> + </fileSet> + </fileSets> +</archetype-descriptor> Propchange: oodt/trunk/mvn/archetypes/opsui/src/main/resources/META-INF/maven/archetype-metadata.xml ------------------------------------------------------------------------------ svn:keywords = Id Revision Added: oodt/trunk/mvn/archetypes/opsui/src/main/resources/archetype-resources/pom.xml URL: http://svn.apache.org/viewvc/oodt/trunk/mvn/archetypes/opsui/src/main/resources/archetype-resources/pom.xml?rev=1199620&view=auto ============================================================================== --- oodt/trunk/mvn/archetypes/opsui/src/main/resources/archetype-resources/pom.xml (added) +++ oodt/trunk/mvn/archetypes/opsui/src/main/resources/archetype-resources/pom.xml Wed Nov 9 05:45:54 2011 @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more contributor +license agreements. See the NOTICE.txt 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> + <groupId>${groupId}</groupId> + <artifactId>${artifactId}</artifactId> + <packaging>war</packaging> + <version>${version}</version> + <name>Ops UI</name> + + <build> + <sourceDirectory>src/main/java</sourceDirectory> + <testSourceDirectory>src/test</testSourceDirectory> + <outputDirectory>target/classes</outputDirectory> + + <resources> + <resource> + <directory>src/main/resources</directory> + </resource> + <resource> + <directory>src/main/java</directory> + <includes> + <include>**</include> + </includes> + <excludes> + <exclude>**/*.java</exclude> + </excludes> + </resource> + </resources> + + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-war-plugin</artifactId> + <version>2.1.1</version> + <configuration> + <overlays> + <overlay> + <groupId>org.apache.oodt</groupId> + <artifactId>pcs-opsui</artifactId> + </overlay> + </overlays> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>org.apache.oodt</groupId> + <artifactId>pcs-opsui</artifactId> + <version>0.4-SNAPSHOT</version> + <type>war</type> + </dependency> + </dependencies> + +</project> Propchange: oodt/trunk/mvn/archetypes/opsui/src/main/resources/archetype-resources/pom.xml ------------------------------------------------------------------------------ svn:keywords = Id Revision Added: oodt/trunk/mvn/archetypes/opsui/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml URL: http://svn.apache.org/viewvc/oodt/trunk/mvn/archetypes/opsui/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml?rev=1199620&view=auto ============================================================================== --- oodt/trunk/mvn/archetypes/opsui/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml (added) +++ oodt/trunk/mvn/archetypes/opsui/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml Wed Nov 9 05:45:54 2011 @@ -0,0 +1,52 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) +<?xml version='1.0' encoding='UTF-8'?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more contributor +license agreements. See the NOTICE.txt 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. +--> +<Context path="/opsui"> + + <Parameter name="filemgr.url" + value="[FILEMGR_URL]"/> + + <Parameter name="workflow.url" + value="[WORKFLOW_URL]"/> + + <Parameter name="resmgr.url" + value="[RESMGR_URL]"/> + + <Parameter name="org.apache.oodt.pcs.opsui.workflow.lifecycleFilePath" + value="[WORKFLOW_HOME]/policy/workflow-lifecycle.xml"/> + + <Parameter name="org.apache.oodt.pcs.opsui.winst.statuses" + value="QUEUED, RSUBMIT, BUILDING CONFIG FILE, PGE EXEC, CRAWLING, STAGING INPUT, FINISHED, STARTED, PAUSED"/> + + <Parameter name="org.apache.oodt.pcs.opsui.winst.metFields.filePath" + value="[WORKFLOW_HOME]/policy/workflow-instance-met.xml"/> + + <Parameter name="org.apache.oodt.pcs.health.crawler.conf.filePath" + value="[PCS_HOME]/aux/pcs/pcs-crawlers.xml"/> + + <Parameter name="org.apache.oodt.pcs.health.workflow.statuses.filePath" + value="[PCS_HOME]/aux/pcs/pcs-workflow-statuses.xml"/> + + <Parameter name="ganglia.url" value="[GANGLIA_URL]"/> + <Parameter name="contact.email" value="[email protected]"/> + + <Parameter name="opsui_skin" value="classic"/> + +</Context> Propchange: oodt/trunk/mvn/archetypes/opsui/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml ------------------------------------------------------------------------------ svn:keywords = Id Revision Added: oodt/trunk/mvn/archetypes/opsui/src/test/resources/projects/basic/archetype.properties URL: http://svn.apache.org/viewvc/oodt/trunk/mvn/archetypes/opsui/src/test/resources/projects/basic/archetype.properties?rev=1199620&view=auto ============================================================================== --- oodt/trunk/mvn/archetypes/opsui/src/test/resources/projects/basic/archetype.properties (added) +++ oodt/trunk/mvn/archetypes/opsui/src/test/resources/projects/basic/archetype.properties Wed Nov 9 05:45:54 2011 @@ -0,0 +1,4 @@ +#Tue Nov 08 21:23:35 PST 2011 +version=0.1-SNAPSHOT +groupId=archetype.it +artifactId=basic Propchange: oodt/trunk/mvn/archetypes/opsui/src/test/resources/projects/basic/archetype.properties ------------------------------------------------------------------------------ svn:keywords = Id Revision Added: oodt/trunk/mvn/archetypes/opsui/src/test/resources/projects/basic/goal.txt URL: http://svn.apache.org/viewvc/oodt/trunk/mvn/archetypes/opsui/src/test/resources/projects/basic/goal.txt?rev=1199620&view=auto ============================================================================== (empty) Propchange: oodt/trunk/mvn/archetypes/opsui/src/test/resources/projects/basic/goal.txt ------------------------------------------------------------------------------ svn:keywords = Id Revision
