You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2008/09/15 18:28:41 UTC
svn commit: r695534 - in /maven/plugins/trunk/maven-ejb-plugin: ./ src/it/
src/it/default/ src/it/default/src/ src/it/default/src/main/
src/it/default/src/main/java/ src/it/default/src/main/java/org/
src/it/default/src/main/java/org/apache/ src/it/defa...
Author: bentmann
Date: Mon Sep 15 09:28:40 2008
New Revision: 695534
URL: http://svn.apache.org/viewvc?rev=695534&view=rev
Log:
o Migrated core IT 0017 over to the corresponding plugin project
Added:
maven/plugins/trunk/maven-ejb-plugin/src/it/
maven/plugins/trunk/maven-ejb-plugin/src/it/default/
maven/plugins/trunk/maven-ejb-plugin/src/it/default/pom.xml (with props)
maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/
maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/
maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/java/
maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/java/org/
maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/java/org/apache/
maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/java/org/apache/maven/
maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/java/org/apache/maven/it0017/
maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/java/org/apache/maven/it0017/Person.java (with props)
maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/resources/
maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/resources/META-INF/
maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/resources/META-INF/ejb-jar.xml (with props)
maven/plugins/trunk/maven-ejb-plugin/src/it/default/verify.bsh (with props)
maven/plugins/trunk/maven-ejb-plugin/src/it/settings.xml (with props)
Modified:
maven/plugins/trunk/maven-ejb-plugin/pom.xml
Modified: maven/plugins/trunk/maven-ejb-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ejb-plugin/pom.xml?rev=695534&r1=695533&r2=695534&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ejb-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-ejb-plugin/pom.xml Mon Sep 15 09:28:40 2008
@@ -77,20 +77,28 @@
<build>
<plugins>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
+ <artifactId>maven-invoker-plugin</artifactId>
+ <configuration>
+ <debug>true</debug>
+ <projectsDirectory>src/it</projectsDirectory>
+ <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
+ <pomIncludes>
+ <pomInclude>*/pom.xml</pomInclude>
+ </pomIncludes>
+ <preBuildHookScript>setup.bsh</preBuildHookScript>
+ <postBuildHookScript>verify.bsh</postBuildHookScript>
+ <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
+ <settingsFile>src/it/settings.xml</settingsFile>
+ <goals>
+ <goal>clean</goal>
+ <goal>package</goal>
+ </goals>
+ </configuration>
<executions>
<execution>
<id>integration-test</id>
- <phase>integration-test</phase>
- <configuration>
- <tasks>
- <echo/><echo/><echo/><echo/><echo/>
- <echo level="warning">NO INTEGRATION TESTS DEFINED</echo>
- <echo/><echo/><echo/><echo/><echo/>
- </tasks>
- </configuration>
<goals>
+ <goal>install</goal>
<goal>run</goal>
</goals>
</execution>
Added: maven/plugins/trunk/maven-ejb-plugin/src/it/default/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ejb-plugin/src/it/default/pom.xml?rev=695534&view=auto
==============================================================================
--- maven/plugins/trunk/maven-ejb-plugin/src/it/default/pom.xml (added)
+++ maven/plugins/trunk/maven-ejb-plugin/src/it/default/pom.xml Mon Sep 15 09:28:40 2008
@@ -0,0 +1,49 @@
+<?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>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.its.it0017</groupId>
+ <artifactId>maven-it-it0017</artifactId>
+ <version>1.0</version>
+ <packaging>ejb</packaging>
+
+ <name>Maven Integration Test :: it0017</name>
+ <description>Test an EJB generation</description>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-ejb-plugin</artifactId>
+ <version>@project.version@</version>
+ <configuration>
+ <generateClient>true</generateClient>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: maven/plugins/trunk/maven-ejb-plugin/src/it/default/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-ejb-plugin/src/it/default/pom.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/java/org/apache/maven/it0017/Person.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/java/org/apache/maven/it0017/Person.java?rev=695534&view=auto
==============================================================================
--- maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/java/org/apache/maven/it0017/Person.java (added)
+++ maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/java/org/apache/maven/it0017/Person.java Mon Sep 15 09:28:40 2008
@@ -0,0 +1,16 @@
+package org.apache.maven.it0017;
+
+public class Person
+{
+ private String name;
+
+ public void setName( String name )
+ {
+ this.name = name;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+}
Propchange: maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/java/org/apache/maven/it0017/Person.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/java/org/apache/maven/it0017/Person.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/resources/META-INF/ejb-jar.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/resources/META-INF/ejb-jar.xml?rev=695534&view=auto
==============================================================================
--- maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/resources/META-INF/ejb-jar.xml (added)
+++ maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/resources/META-INF/ejb-jar.xml Mon Sep 15 09:28:40 2008
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ejb-jar>
+ <enterprise-beans>
+ <session>
+ <ejb-name>Hello</ejb-name>
+ <home>org.apache.maven.it0017.HelloHome</home>
+ <remote>org.apache.maven.it0017.Hello</remote>
+ <ejb-class>org.apache.maven.it0017.HelloBean</ejb-class>
+ <session-type>Stateless</session-type>
+ <transaction-type>Container</transaction-type>
+ </session>
+ </enterprise-beans>
+ <assembly-descriptor>
+ <container-transaction>
+ <method>
+ <ejb-name>Hello</ejb-name>
+ <method-name>*</method-name>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ </assembly-descriptor>
+</ejb-jar>
\ No newline at end of file
Propchange: maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/resources/META-INF/ejb-jar.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-ejb-plugin/src/it/default/src/main/resources/META-INF/ejb-jar.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/plugins/trunk/maven-ejb-plugin/src/it/default/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ejb-plugin/src/it/default/verify.bsh?rev=695534&view=auto
==============================================================================
--- maven/plugins/trunk/maven-ejb-plugin/src/it/default/verify.bsh (added)
+++ maven/plugins/trunk/maven-ejb-plugin/src/it/default/verify.bsh Mon Sep 15 09:28:40 2008
@@ -0,0 +1,40 @@
+import java.io.*;
+import java.util.*;
+import java.util.jar.*;
+import java.util.regex.*;
+
+try
+{
+ File jarFile = new File( basedir, "target/maven-it-it0017-1.0.jar" );
+ System.out.println( "Checking for existence of " + jarFile );
+ if ( !jarFile.isFile() )
+ {
+ System.out.println( "FAILURE!" );
+ return false;
+ }
+
+ JarFile jar = new JarFile( jarFile );
+
+ String[] includedEntries = {
+ "META-INF/ejb-jar.xml",
+ "org/apache/maven/it0017/Person.class",
+ };
+ for ( String included : includedEntries )
+ {
+ System.out.println( "Checking for existence of " + included );
+ if ( jar.getEntry( included ) == null )
+ {
+ System.out.println( "FAILURE!" );
+ return false;
+ }
+ }
+
+ jar.close();
+}
+catch( Throwable t )
+{
+ t.printStackTrace();
+ return false;
+}
+
+return true;
Propchange: maven/plugins/trunk/maven-ejb-plugin/src/it/default/verify.bsh
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-ejb-plugin/src/it/default/verify.bsh
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/plugins/trunk/maven-ejb-plugin/src/it/settings.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ejb-plugin/src/it/settings.xml?rev=695534&view=auto
==============================================================================
--- maven/plugins/trunk/maven-ejb-plugin/src/it/settings.xml (added)
+++ maven/plugins/trunk/maven-ejb-plugin/src/it/settings.xml Mon Sep 15 09:28:40 2008
@@ -0,0 +1,66 @@
+<?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.
+-->
+
+<settings>
+ <profiles>
+ <profile>
+ <id>it-repo</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <repositories>
+ <repository>
+ <id>local.central</id>
+ <url>file:///@localRepository@</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>apache.snapshots</id>
+ <name>Apache Snapshot Repository</name>
+ <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>local.central</id>
+ <url>file:///@localRepository@</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+ </profile>
+ </profiles>
+</settings>
Propchange: maven/plugins/trunk/maven-ejb-plugin/src/it/settings.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-ejb-plugin/src/it/settings.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision