You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jl...@apache.org on 2007/12/09 20:39:09 UTC
svn commit: r602728 - in /openejb/trunk/sandbox/openejb-maven-plugin: ./
pom.xml src/ src/main/ src/main/groovy/ src/main/groovy/ValidateMojo.groovy
src/main/resources/ src/site/ src/site/apt/ src/site/apt/index.apt
src/site/site.xml
Author: jlaskowski
Date: Sun Dec 9 11:39:08 2007
New Revision: 602728
URL: http://svn.apache.org/viewvc?rev=602728&view=rev
Log:
First attempt to provide openejb maven plugin so running ejb validation becomes easier
$ mvn clean install
$ mvn org.apache.openejb.plugins:openejb-maven-plugin::validate
More to come...
Added:
openejb/trunk/sandbox/openejb-maven-plugin/
openejb/trunk/sandbox/openejb-maven-plugin/pom.xml (with props)
openejb/trunk/sandbox/openejb-maven-plugin/src/
openejb/trunk/sandbox/openejb-maven-plugin/src/main/
openejb/trunk/sandbox/openejb-maven-plugin/src/main/groovy/
openejb/trunk/sandbox/openejb-maven-plugin/src/main/groovy/ValidateMojo.groovy (with props)
openejb/trunk/sandbox/openejb-maven-plugin/src/main/resources/
openejb/trunk/sandbox/openejb-maven-plugin/src/site/
openejb/trunk/sandbox/openejb-maven-plugin/src/site/apt/
openejb/trunk/sandbox/openejb-maven-plugin/src/site/apt/index.apt (with props)
openejb/trunk/sandbox/openejb-maven-plugin/src/site/site.xml (with props)
Added: openejb/trunk/sandbox/openejb-maven-plugin/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-plugin/pom.xml?rev=602728&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-plugin/pom.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-plugin/pom.xml Sun Dec 9 11:39:08 2007
@@ -0,0 +1,143 @@
+<?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.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<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">
+ <parent>
+ <artifactId>openejb</artifactId>
+ <groupId>org.apache.openejb</groupId>
+ <version>3.0.0-SNAPSHOT</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.openejb.plugins</groupId>
+ <artifactId>openejb-maven-plugin</artifactId>
+ <name>OpenEJB :: Tools :: OpenEJB Maven Plugin</name>
+ <packaging>maven-plugin</packaging>
+
+ <description>
+ OpenEJB plugin for Maven 2
+ </description>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.codehaus.mojo.groovy.runtime</groupId>
+ <artifactId>groovy-runtime-default</artifactId>
+ <version>1.0-beta-3</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.codehaus.mojo.groovy</groupId>
+ <artifactId>groovy-mojo-support</artifactId>
+ <version>1.0-beta-3</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-project</artifactId>
+ <version>2.0.5</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-artifact</artifactId>
+ <version>2.0.5</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.maven.shared</groupId>
+ <artifactId>file-management</artifactId>
+ <version>1.1</version>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <defaultGoal>install</defaultGoal>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo.groovy</groupId>
+ <artifactId>groovy-maven-plugin</artifactId>
+ <configuration>
+ <providerSelection>default</providerSelection>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo.groovy</groupId>
+ <artifactId>groovy-maven-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo.groovy</groupId>
+ <artifactId>groovy-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generateStubs</goal>
+ <goal>compile</goal>
+ <goal>generateTestStubs</goal>
+ <goal>testCompile</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <reporting>
+ <plugins>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jxr-plugin</artifactId>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <links>
+ <link>http://java.sun.com/j2ee/1.4/docs/api</link>
+ <link>http://java.sun.com/j2se/1.5.0/docs/api</link>
+ </links>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </reporting>
+
+</project>
Propchange: openejb/trunk/sandbox/openejb-maven-plugin/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: openejb/trunk/sandbox/openejb-maven-plugin/pom.xml
------------------------------------------------------------------------------
svn:executable = *
Propchange: openejb/trunk/sandbox/openejb-maven-plugin/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Rev Author Id Revision HeadURL
Propchange: openejb/trunk/sandbox/openejb-maven-plugin/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: openejb/trunk/sandbox/openejb-maven-plugin/src/main/groovy/ValidateMojo.groovy
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-plugin/src/main/groovy/ValidateMojo.groovy?rev=602728&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-plugin/src/main/groovy/ValidateMojo.groovy (added)
+++ openejb/trunk/sandbox/openejb-maven-plugin/src/main/groovy/ValidateMojo.groovy Sun Dec 9 11:39:08 2007
@@ -0,0 +1,15 @@
+package org.apache.openejb.plugins
+
+import org.apache.maven.plugin.AbstractMojo
+
+/**
+ * Validate EJBs using OpenEJB validate features
+ *
+ * @goal validate
+ */
+public class ValidateMojo extends AbstractMojo
+{
+ void execute() {
+ log.info('Go OpenEJB go!')
+ }
+}
Propchange: openejb/trunk/sandbox/openejb-maven-plugin/src/main/groovy/ValidateMojo.groovy
------------------------------------------------------------------------------
svn:keywords = Date Rev Author Id Revision HeadURL
Added: openejb/trunk/sandbox/openejb-maven-plugin/src/site/apt/index.apt
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-plugin/src/site/apt/index.apt?rev=602728&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-plugin/src/site/apt/index.apt (added)
+++ openejb/trunk/sandbox/openejb-maven-plugin/src/site/apt/index.apt Sun Dec 9 11:39:08 2007
@@ -0,0 +1,26 @@
+ ------
+ Introduction
+ ------
+ ------
+ $Rev$ $Date$
+
+~~
+~~ Copyright (C) 2006-2007 the original author or authors.
+~~
+~~ 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.
+~~
+
+Example Groovy Module
+
+ This is an exmaple of a Maven 2 module implemented in Groovy.
+
Propchange: openejb/trunk/sandbox/openejb-maven-plugin/src/site/apt/index.apt
------------------------------------------------------------------------------
svn:executable = *
Propchange: openejb/trunk/sandbox/openejb-maven-plugin/src/site/apt/index.apt
------------------------------------------------------------------------------
svn:keywords = Date Rev Author Id Revision HeadURL
Added: openejb/trunk/sandbox/openejb-maven-plugin/src/site/site.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-maven-plugin/src/site/site.xml?rev=602728&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-maven-plugin/src/site/site.xml (added)
+++ openejb/trunk/sandbox/openejb-maven-plugin/src/site/site.xml Sun Dec 9 11:39:08 2007
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (C) 2006-2007 the original author or authors.
+
+ 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.
+-->
+
+<!-- $Id$ -->
+
+<project name="Groovy Maven Archetype">
+ <body>
+ <menu name="Overview">
+ <item name="Introduction" href="index.html"/>
+ </menu>
+
+ ${reports}
+ </body>
+</project>
+
Propchange: openejb/trunk/sandbox/openejb-maven-plugin/src/site/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: openejb/trunk/sandbox/openejb-maven-plugin/src/site/site.xml
------------------------------------------------------------------------------
svn:executable = *
Propchange: openejb/trunk/sandbox/openejb-maven-plugin/src/site/site.xml
------------------------------------------------------------------------------
svn:keywords = Date Rev Author Id Revision HeadURL
Propchange: openejb/trunk/sandbox/openejb-maven-plugin/src/site/site.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml