Author: tremes
Date: 2013-06-04 02:09:08 -0400 (Tue, 04 Jun 2013)
New Revision: 15537
Added:
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/java/
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/java/org/
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/java/org/jboss/
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/java/org/jboss/seam/
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/java/org/jboss/seam/example/
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/java/org/jboss/seam/example/itext/
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/java/org/jboss/seam/example/itext/test/
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/java/org/jboss/seam/example/itext/test/Deployments.java
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/java/org/jboss/seam/example/itext/test/DocumentTest.java
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/arquillian.xml
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/components.xml
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/ejb-jar.xml
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/jboss-deployment-structure.xml
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/persistence.xml
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/seam.properties
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/web.xml
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/whyseam.xhtml
Removed:
branches/enterprise/WFK-2_1/examples/itext/itext-tests/pom.xml
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/java/org/jboss/seam/example/itext/test/DocumentTest.java
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/java/org/jboss/seam/example/itext/test/selenium/SeleniumItextTest.java
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/resources-ftest/testng.xml
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/resources-integration/arquillian.xml
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/resources-integration/web.xml
Modified:
branches/enterprise/WFK-2_1/examples/itext/itext-ear/pom.xml
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/pom.xml
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/main/java/org/jboss/seam/example/pdf/JFreeData.java
branches/enterprise/WFK-2_1/examples/itext/itext-web/pom.xml
branches/enterprise/WFK-2_1/examples/itext/pom.xml
Log:
itext example migrated
Modified: branches/enterprise/WFK-2_1/examples/itext/itext-ear/pom.xml
===================================================================
--- branches/enterprise/WFK-2_1/examples/itext/itext-ear/pom.xml 2013-06-03 20:39:42 UTC
(rev 15536)
+++ branches/enterprise/WFK-2_1/examples/itext/itext-ear/pom.xml 2013-06-04 06:09:08 UTC
(rev 15537)
@@ -52,6 +52,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
+ <version>${version.ear.plugin}</version>
<configuration>
<version>6</version>
<defaultLibBundleDir>lib</defaultLibBundleDir>
Modified: branches/enterprise/WFK-2_1/examples/itext/itext-ejb/pom.xml
===================================================================
--- branches/enterprise/WFK-2_1/examples/itext/itext-ejb/pom.xml 2013-06-03 20:39:42 UTC
(rev 15536)
+++ branches/enterprise/WFK-2_1/examples/itext/itext-ejb/pom.xml 2013-06-04 06:09:08 UTC
(rev 15537)
@@ -79,6 +79,132 @@
<groupId>jfree</groupId>
<artifactId>jfreechart</artifactId>
</dependency>
+
+ <!-- Test dependencies -->
+ <dependency>
+ <groupId>org.jboss.shrinkwrap.resolver</groupId>
+ <artifactId>shrinkwrap-resolver-depchain</artifactId>
+ <type>pom</type>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.arquillian.junit</groupId>
+ <artifactId>arquillian-junit-container</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.arquillian.protocol</groupId>
+ <artifactId>arquillian-protocol-servlet</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-pdf</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>com.lowagie</groupId>
+ <artifactId>itext</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.lowagie</groupId>
+ <artifactId>itext-rtf</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.spec.javax.el</groupId>
+ <artifactId>jboss-el-api_2.2_spec</artifactId>
+ <scope>test</scope>
+ </dependency>
</dependencies>
+
+ <profiles>
+ <profile>
+ <id>integration-tests</id>
+ <activation>
+ <property>
+ <name>arquillian</name>
+ </property>
+ </activation>
+ <properties>
+ <jndiPattern>java:app/seam-itext/#{ejbName}</jndiPattern>
+ <distributable>false</distributable>
+ </properties>
+ <build>
+ <testResources>
+ <testResource>
+ <directory>src/test/resources</directory>
+ <filtering>true</filtering>
+ </testResource>
+ </testResources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skip>false</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>arq-jbossas-7-managed</id>
+ <activation>
+ <property>
+ <name>arquillian</name>
+ <value>jbossas-managed-7</value>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.as</groupId>
+ <artifactId>jboss-as-arquillian-container-managed</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+
+ <profile>
+ <id>arq-jbossas-7-remote</id>
+ <activation>
+ <property>
+ <name>arquillian</name>
+ <value>jbossas-remote-7</value>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.as</groupId>
+ <artifactId>jboss-as-arquillian-container-remote</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+
+ <build>
+ <plugins>
+ <!-- Skip tests by default -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
Modified:
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/main/java/org/jboss/seam/example/pdf/JFreeData.java
===================================================================
---
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/main/java/org/jboss/seam/example/pdf/JFreeData.java 2013-06-03
20:39:42 UTC (rev 15536)
+++
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/main/java/org/jboss/seam/example/pdf/JFreeData.java 2013-06-04
06:09:08 UTC (rev 15537)
@@ -141,11 +141,11 @@
Paint gp1 = new Color(0, 0, 0, 0);
GradientPaint gp2 = new GradientPaint(0.0f, 0.0f, Color.red, 0.0f, 0.0f, new
Color(64, 0, 0));
//renderer.setSeriesPaint(0, gp0);
- renderer.setSeriesPaint(0, Color.green);
+ renderer.setSeriesPaint(0, Color.green);
renderer.setSeriesPaint(1, gp1);
//renderer.setSeriesPaint(2, gp2);
- renderer.setSeriesPaint(2, Color.red);
-
+ renderer.setSeriesPaint(2, Color.red);
+
return chart;
}
}
\ No newline at end of file
Added:
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/java/org/jboss/seam/example/itext/test/Deployments.java
===================================================================
---
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/java/org/jboss/seam/example/itext/test/Deployments.java
(rev 0)
+++
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/java/org/jboss/seam/example/itext/test/Deployments.java 2013-06-04
06:09:08 UTC (rev 15537)
@@ -0,0 +1,40 @@
+package org.jboss.seam.example.itext.test;
+
+import java.io.File;
+
+import org.jboss.seam.example.pdf.JFreeData;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.jboss.shrinkwrap.resolver.api.maven.Maven;
+
+public class Deployments
+{
+public static WebArchive itextDeployment() {
+
+ // use profiles defined in 'maven.profiles' property in pom.xml
+ String profilesString = System.getProperty("maven.profiles");
+ String[] profiles = profilesString != null ? profilesString.split(", ?")
: new String[0];
+ File[] libs = Maven.resolver().loadPomFromFile("pom.xml", profiles)
+ .importCompileAndRuntimeDependencies()
+ // force resolve jboss-seam, because it is provided-scoped in the pom, but we
need it bundled in the WAR
+ .resolve("org.jboss.seam:jboss-seam").withTransitivity().asFile();
+
+
+
+ return ShrinkWrap.create(WebArchive.class, "seam-itext.war")
+ .addPackage(JFreeData.class.getPackage())
+ .addAsWebInfResource("META-INF/ejb-jar.xml",
"ejb-jar.xml")
+ .addAsWebInfResource("persistence.xml",
"classes/META-INF/persistence.xml")
+ .addAsWebInfResource(new
StringAsset("org.jboss.seam.mock.MockFacesContextFactory"),
"classes/META-INF/services/javax.faces.context.FacesContextFactory")
+ .addAsWebInfResource("components.xml",
"components.xml")
+ .addAsWebInfResource("jboss-deployment-structure.xml",
"jboss-deployment-structure.xml")
+ .addAsWebInfResource("seam.properties",
"classes/seam.properties")
+ .addAsWebInfResource("web.xml", "web.xml")
+ .addAsWebResource("whyseam.xhtml")
+ .addAsLibraries(libs);
+
+ }
+
+
+}
Copied:
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/java/org/jboss/seam/example/itext/test/DocumentTest.java
(from rev 15536,
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/java/org/jboss/seam/example/itext/test/DocumentTest.java)
===================================================================
---
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/java/org/jboss/seam/example/itext/test/DocumentTest.java
(rev 0)
+++
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/java/org/jboss/seam/example/itext/test/DocumentTest.java 2013-06-04
06:09:08 UTC (rev 15537)
@@ -0,0 +1,98 @@
+package org.jboss.seam.example.itext.test;
+
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.container.test.api.OverProtocol;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.seam.contexts.Contexts;
+import org.jboss.seam.core.Conversation;
+import org.jboss.seam.document.ByteArrayDocumentData;
+import org.jboss.seam.document.DocumentData;
+import org.jboss.seam.document.DocumentStore;
+import org.jboss.seam.mock.JUnitSeamTest;
+import org.jboss.seam.pdf.ui.UIDocument;
+import org.jboss.shrinkwrap.api.Archive;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+/**
+ * This is just a placeholder until I can find a way to actually test the UI
+ * components.
+ */
+(a)RunWith(Arquillian.class)
+public class DocumentTest extends JUnitSeamTest
+{
+ @Deployment
+ @OverProtocol("Servlet 3.0")
+ public static Archive<?> createDeployment()
+ {
+
+ WebArchive web = Deployments.itextDeployment();
+ return web;
+ }
+
+ @Test
+ public void documentStore() throws Exception
+ {
+ String conversationId = new FacesRequest("/whyseam.xhtml")
+ {
+
+ @Override
+ protected void invokeApplication() throws Exception
+ {
+ Conversation.instance().begin();
+
+ DocumentStore store = (DocumentStore)
getValue("#{org.jboss.seam.document.documentStore}");
+ String docId = store.newId();
+
+ Contexts.getSessionContext().set("docId", docId);
+
+ DocumentData documentData = new ByteArrayDocumentData("base",
UIDocument.PDF, new byte[100]);
+ store.saveData(docId, documentData);
+ }
+
+ @Override
+ protected void renderResponse() throws Exception
+ {
+ String docId = (String) getValue("#{docId}");
+ assert docId != null;
+
+ DocumentStore store = (DocumentStore)
getValue("#{org.jboss.seam.document.documentStore}");
+ assert store.idIsValid(docId);
+
+ }
+ }.run();
+
+ // different conversation
+ new FacesRequest("/whyseam.xhtml")
+ {
+ @Override
+ protected void renderResponse() throws Exception
+ {
+ String docId = (String) getValue("#{docId}");
+ assert docId != null;
+
+ DocumentStore store = (DocumentStore)
getValue("#{org.jboss.seam.document.documentStore}");
+ assert !store.idIsValid(docId);
+ }
+ }.run();
+
+ new FacesRequest("/whyseam.xhtml", conversationId)
+ {
+ @Override
+ protected void renderResponse() throws Exception
+ {
+ String docId = (String) getValue("#{docId}");
+ assert docId != null;
+
+ DocumentStore store = (DocumentStore)
getValue("#{org.jboss.seam.document.documentStore}");
+ assert store.idIsValid(docId);
+
+ ByteArrayDocumentData data = (ByteArrayDocumentData)
store.getDocumentData(docId);
+ assert data.getDocumentType().equals(UIDocument.PDF);
+ assert data.getData().length == 100;
+ }
+ }.run();
+ }
+
+}
Added:
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/arquillian.xml
===================================================================
---
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/arquillian.xml
(rev 0)
+++
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/arquillian.xml 2013-06-04
06:09:08 UTC (rev 15537)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<arquillian
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xmlns="http://jboss.org/schema/arquillian"
+
xsi:schemaLocation="http://jboss.org/schema/arquillian
http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
+
+ <engine>
+ <property name="deploymentExportPath">target/</property>
+ </engine>
+
+ <container qualifier="jboss" default="true">
+ <configuration>
+ <!-- These properties are only valid for arquillian managed container,
+ but don't cause a problem for the remote container, so they
+ can be left in. -->
+ <!-- To use jacoco, set jacoco.agent system property to something like
+
-javaagent:/path/to/jacocoagent.jar=append=true,destfile=/path/to/output/jacoco.exec
-->
+ <property name="javaVmArguments">-Xmx1024m
-XX:MaxPermSize=1024m ${jacoco.agent}</property>
+ <property
name="serverConfig">standalone.xml</property>
+ <!-- If jbossHome property is not set, the JBOSS_HOME environment variable
is used -->
+ <!--<property
name="jbossHome">/path/to/jboss/as</property>-->
+ </configuration>
+ </container>
+
+</arquillian>
\ No newline at end of file
Added:
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/components.xml
===================================================================
---
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/components.xml
(rev 0)
+++
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/components.xml 2013-06-04
06:09:08 UTC (rev 15537)
@@ -0,0 +1,24 @@
+<components
xmlns="http://jboss.org/schema/seam/components"
+
xmlns:pdf="http://jboss.org/schema/seam/pdf"
+
xmlns:core="http://jboss.org/schema/seam/core"
+
xmlns:framework="http://jboss.org/schema/seam/framework"
+
xmlns:web="http://jboss.org/schema/seam/web"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://jboss.org/schema/seam/core
http://jboss.org/schema/seam/core-2.3.xsd
+
http://jboss.org/schema/seam/framework
http://jboss.org/schema/seam/framework-2.3.xsd
+
http://jboss.org/schema/seam/pdf
http://jboss.org/schema/seam/pdf-2.3.xsd
+
http://jboss.org/schema/seam/web
/Users/orb/proj/jboss/seam/trunk/src/main/org/jboss/seam/web-2.3.xsd
+
http://jboss.org/schema/seam/components
http://jboss.org/schema/seam/components-2.3.xsd">
+
+ <component name="org.jboss.seam.document.documentStore">
+ <property name="useExtensions">true</property>
+ <property name="errorPage">/pdfMissing.seam</property>
+ </component>
+
+ <pdf:key-store-config key-store="pdf.keystore"
+ key-store-password="storepass"
+ key-password="keypass"
+ key-alias="pdfKey" />
+
+ <core:init debug="true" jndi-pattern="${jndiPattern}" />
+</components>
Added:
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/ejb-jar.xml
===================================================================
--- branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/ejb-jar.xml
(rev 0)
+++
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/ejb-jar.xml 2013-06-04
06:09:08 UTC (rev 15537)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ejb-jar
xmlns="http://java.sun.com/xml/ns/javaee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
+ version="3.0">
+
+ <interceptors>
+ <interceptor>
+
<interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
+ </interceptor>
+ </interceptors>
+
+ <assembly-descriptor>
+ <interceptor-binding>
+ <ejb-name>*</ejb-name>
+
<interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
+ </interceptor-binding>
+ </assembly-descriptor>
+</ejb-jar>
Added:
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/jboss-deployment-structure.xml
===================================================================
---
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/jboss-deployment-structure.xml
(rev 0)
+++
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/jboss-deployment-structure.xml 2013-06-04
06:09:08 UTC (rev 15537)
@@ -0,0 +1,14 @@
+<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
+ <deployment>
+ <dependencies>
+ <module name="org.apache.log4j" export="true"/>
+ <module name="org.dom4j" export="true"/>
+ <module name="org.apache.commons.logging"
export="true"/>
+ <module name="org.apache.commons.collections"
export="true"/>
+ <module name="javax.faces.api" export="true"/>
+ <module name="com.sun.jsf-impl" export="true"/>
+ <module name="org.javassist" export="true"/>
+ <module name="org.antlr" export="true"/>
+ </dependencies>
+ </deployment>
+</jboss-deployment-structure>
Added:
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/persistence.xml
===================================================================
---
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/persistence.xml
(rev 0)
+++
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/persistence.xml 2013-06-04
06:09:08 UTC (rev 15537)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence
xmlns="http://java.sun.com/xml/ns/persistence"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
+ version="2.0">
+ <persistence-unit name="userDatabase">
+ <provider>org.hibernate.ejb.HibernatePersistence</provider>
+ <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
+ <properties>
+ <property name="hibernate.hbm2ddl.auto"
value="create-drop"/>
+ <property name="hibernate.show_sql" value="true"/>
+ <property name="jboss.entity.manager.factory.jndi.name"
+ value="java:/seampdfEntityManagerFactory"/>
+ </properties>
+ </persistence-unit>
+</persistence>
Added:
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/seam.properties
===================================================================
---
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/seam.properties
(rev 0)
+++
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/seam.properties 2013-06-04
06:09:08 UTC (rev 15537)
@@ -0,0 +1 @@
+
Copied: branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/web.xml
(from rev 15536,
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/resources-integration/web.xml)
===================================================================
--- branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/web.xml
(rev 0)
+++
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/web.xml 2013-06-04
06:09:08 UTC (rev 15537)
@@ -0,0 +1,12 @@
+<?xml version="1.0" ?>
+
+<web-app version="3.0"
+
xmlns="http://java.sun.com/xml/ns/javaee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
+
+ <listener>
+
<listener-class>org.jboss.seam.mock.MockSeamListener</listener-class>
+ </listener>
+
+</web-app>
Added:
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/whyseam.xhtml
===================================================================
--- branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/whyseam.xhtml
(rev 0)
+++
branches/enterprise/WFK-2_1/examples/itext/itext-ejb/src/test/resources/whyseam.xhtml 2013-06-04
06:09:08 UTC (rev 15537)
@@ -0,0 +1,62 @@
+<p:document
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:p="http://jboss.org/schema/seam/pdf"
+ title="Why Seam"
+ keywords="mykeyword"
+ subject="seam"
+ author="Seam Team"
+ creator="Seam PDF example app">
+
+ <f:facet name="header">
+ <p:font size="12">
+ <p:footer borderWidthTop="1" borderColorTop="blue"
borderWidthBottom="0" alignment="center">Why Seam?
[<p:pageNumber />]</p:footer>
+ </p:font>
+ </f:facet>
+
+ <p:image alignment="right" wrap="true"
value="/jboss.jpg" />
+ <p:font size="24"><p:paragraph backgroundColor="red"
spacingAfter="50">Ten Good Reasons To Use
Seam</p:paragraph></p:font>
+
+ <p:font color="blue" size="18"><p:paragraph>It's
the quickest way to get "rich"</p:paragraph></p:font>
+
+ <p:paragraph alignment="justify">AJAX fundamentally changes the
interaction model of the web. The synchronous, coarse-grained requests used by traditional
web clients let many server-side applications get away with minimal caching and no
session-level concurrency. The "stateless" architecture is in many cases a
viable solution. But not anymore! AJAX clients hit the server with many asynchronous,
concurrent, fine-grained requests, which could easily bring your database to its knees.
When state is held in memory between requests, it is highly vulnerable to
concurrency-related bugs, since the Java EE platform provides no constructs for dealing
with session-level concurrency.</p:paragraph>
+
+ <p:paragraph alignment="justify">Seam's totally unique
concurrency model and state-management model was conceived and designed with AJAX in mind.
</p:paragraph>
+
+ <p:paragraph alignment="justify">Seam 1.1 integrates open source
JSF-based AJAX solutions like ICEfaces and Ajax4JSF with Seam's state and concurrency
management engine. You can add AJAX to your applications with ease, without the need to
learn JavaScript, and you will be protected from potential bugs and performance problems
associated with the switch to AJAX. </p:paragraph>
+
+ <p:font size="18"><p:paragraph>It's the easiest way to get
started with EJB 3.0 </p:paragraph></p:font>
+ <p:paragraph alignment="justify">EJB 3.0 is a great component model
for transactional business components, the highlight being the brand new Java Persistence
API (JPA). But Java web and application frameworks designed before the release of EJB 3.0
lack support for the new component model, leaving you to write your own integration code,
and in many cases forcing you into the use of a layered architecture that may not be right
for your application. </p:paragraph>
+
+ <p:paragraph alignment="justify">Seam was designed for use with EJB
3.0 and lets you use the new component model everywhere. Since any class in a Seam
application can be an EJB component, there is no need to introduce extra unwanted layers
just to keep your frameworks happy. And, of course, there is no need to write code to
integrate EJB 3.0 with your web framework, since Seam already has it.
</p:paragraph>
+
+ <p:paragraph alignment="justify">Note that you don't have to use
EJB 3.0 to use Seam, and if you're developing in an environment that doesn't
support EJB 3.0, Seam provides alternatives. </p:paragraph>
+
+ <p:font size="18"><p:paragraph>It's the best way to
leverage JSF </p:paragraph></p:font>
+ <p:paragraph alignment="justify">JSF has created a vibrant ecosystem
of component libraries and other addons, that make this easily the most exciting web
framework in Java. But plain JSF is heavy on XML, and misses out on a number of important
features, especially for people building internet-facing applications. Seam replaces the
tedious XML configuration with a handful of annotations, reducing code and making you more
productive. Seam extends JSF with extra functionality for multi-window operation and
workspace management, model-based validation, jBPM-based pageflow, internationalization,
page fragment caching. Seam even adds facilities for handling bookmarkable (REST-style)
web pages - the number one user complaint against JSF. </p:paragraph>
+
+ <p:paragraph alignment="justify">Since JSF does not address the
problem of access to transactional resources, Seam's integration of JTA, JPA and EJB
3.0 is a must-have for most JSF users. </p:paragraph>
+
+ <p:font size="18"><p:paragraph>And the easiest way to do BPM
</p:paragraph></p:font>
+ <p:paragraph alignment="justify">jBPM is an intuitive and powerful
solution for enterprise applications with complex human collaboration, or web applications
with complex user interactions. BPM technology not only makes it easier for developers and
analysts to model, implement and optimize a business process, but also makes it possible
for operations and management to analyse the efficiency of the business process, and be
informed of problems. </p:paragraph>
+
+ <p:paragraph alignment="justify">Seam deeply integrates jBPM and
makes it incredibly simple to use jBPM for task management or pageflow, and is a great way
to get started with BPM technology. The combination of Seam and jBPM can shrink
development time of some kinds of projects by literally months. </p:paragraph>
+
+ <p:font size="18"><p:paragraph>But CRUD is easy too
</p:paragraph></p:font>
+ <p:paragraph alignment="justify">Seam takes on hard problems
affecting complex enterprise applications. But that doesn't mean the easy stuff is any
more difficult than it should be. Seam is every bit as productive as any of the current
crop of CRUD frameworks when it comes to building simple data driven applications. Seam
combines a simple data access framework (built around JPA and Hibernate) with a command
line code generation and database reverse engineering tool to get you started in minutes.
</p:paragraph>
+
+ <p:font size="18"><p:paragraph>It makes persistence a breeze
</p:paragraph></p:font>
+ <p:paragraph alignment="justify">Seam grew out of the Hibernate
community, and was designed and implemented by the people who created Hibernate, the same
people who coined the term "persistence context". Seam's conversation model
solves a raft of persistence-related programming problems caused by traditional stateless
web application architectures. Whether you use Hibernate or JPA, Seam makes it easy and
natural to use extended persistence contexts, and helps you avoid unnecessary state
replication when you use an extended persistence context in a clustered environment.
</p:paragraph>
+
+ <p:font size="18"><p:paragraph>Annotations
</p:paragraph></p:font>
+ <p:paragraph alignment="justify">Seam is the first programming model
that lets you use Java 5 annotations end to end, from the persistence layer to the UI.
You'll never find yourself wrestling with unnecessary, noisy XML. Which is not to say
that Seam doesn't use XML when appropriate (Seam has a sophisticated XML-based
component configuration facility), just that you won't get lost in reams of XML for
common programming tasks. </p:paragraph>
+
+ <p:font size="18"><p:paragraph>Get hip to automated integration
testing </p:paragraph></p:font>
+ <p:paragraph alignment="justify">Automated unit tests certainly have
their place in any project. But it's worse than dangerous to rely solely on unit
testing. Most bugs concern the interaction between components, and the interaction between
a component and the container environment. Unit tests are unable to properly capture
container behavior, and usually don't capture complex inter-component interactions.
Seam introduces an innovative approach to automated integration testing, where you can
emulate the entire flow of a request or conversation, testing all layers of Java code in
the application, from presentation to persistence. </p:paragraph>
+
+ <p:font size="18"><p:paragraph>Marry open source with open
standards </p:paragraph></p:font>
+ <p:paragraph alignment="justify">Seam is founded upon open source
implementations of open standards like JSF and EJB 3.0, along with open source innovators
like Hibernate, jBPM, Facelets, Drools, ICEfaces and Ajax4JSF. The creators of Seam are
active in the EJB, JPA, Bean Validation and JSF expert groups and lead the Web Beans
(JSR-299) expert group which aims to bring the ideas of Seam into the Java EE standard.
The Seam project is totally committed to the idea of open source innovation driving new
ideas and ehancements into the Java platform. </p:paragraph>
+
+ <p:font size="18"><p:paragraph>It just works
</p:paragraph></p:font>
+ <p:paragraph alignment="justify">You'll love it if you try
it.</p:paragraph>
+</p:document>
+
Deleted: branches/enterprise/WFK-2_1/examples/itext/itext-tests/pom.xml
===================================================================
--- branches/enterprise/WFK-2_1/examples/itext/itext-tests/pom.xml 2013-06-03 20:39:42 UTC
(rev 15536)
+++ branches/enterprise/WFK-2_1/examples/itext/itext-tests/pom.xml 2013-06-04 06:09:08 UTC
(rev 15537)
@@ -1,180 +0,0 @@
-<?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>
- <parent>
- <artifactId>itext</artifactId>
- <groupId>org.jboss.seam.examples</groupId>
- <version>2.3.1.Final-redhat-2</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
-
- <groupId>org.jboss.seam.examples.itext</groupId>
- <artifactId>itext-tests</artifactId>
- <name>Itext Integration Tests Module (EE6)</name>
-
- <dependencies>
- <dependency>
- <groupId>org.testng</groupId>
- <artifactId>testng</artifactId>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam.examples.itext</groupId>
- <artifactId>itext-ejb</artifactId>
- <type>ejb</type>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam</artifactId>
- <type>ejb</type>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.spec.javax.faces</groupId>
- <artifactId>jboss-jsf-api_2.1_spec</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.seleniumhq.selenium</groupId>
- <artifactId>selenium-server</artifactId>
- </dependency>
- <dependency>
- <groupId>org.seleniumhq.selenium</groupId>
- <artifactId>selenium-java</artifactId>
- </dependency>
- <dependency>
- <groupId>org.jboss.arquillian.junit</groupId>
- <artifactId>arquillian-junit-container</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.arquillian.protocol</groupId>
- <artifactId>arquillian-protocol-servlet</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>functional-tests</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam-pdf</artifactId>
- <exclusions>
- <exclusion>
- <groupId>com.lowagie</groupId>
- <artifactId>itext</artifactId>
- </exclusion>
- <exclusion>
- <groupId>com.lowagie</groupId>
- <artifactId>itext-rtf</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>com.lowagie</groupId>
- <artifactId>itext-rtf</artifactId>
- </dependency>
- <dependency>
- <groupId>com.lowagie</groupId>
- <artifactId>itext</artifactId>
- </dependency>
- <dependency>
- <groupId>jfree</groupId>
- <artifactId>jfreechart</artifactId>
- </dependency>
- <dependency>
- <groupId>org.jboss.spec.javax.el</groupId>
- <artifactId>jboss-el-api_2.2_spec</artifactId>
- </dependency>
- </dependencies>
-
- <build>
- <testResources>
- <testResource>
- <directory>src/test/resources</directory>
- <filtering>true</filtering>
- </testResource>
- <testResource>
- <directory>src/test/resources-integration</directory>
- </testResource>
- </testResources>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <profiles>
- <profile>
- <id>integration-tests</id>
- <activation>
- <property>
- <name>arquillian</name>
- </property>
- </activation>
- </profile>
-
- <profile>
- <id>arq-jbossas-7-managed</id>
- <activation>
- <property>
- <name>arquillian</name>
- <value>jbossas-managed-7</value>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- </profile>
-
- <profile>
- <id>arq-jbossas-7-remote</id>
- <activation>
- <property>
- <name>arquillian</name>
- <value>jbossas-remote-7</value>
- </property>
- </activation>
- </profile>
-
- <profile>
- <id>ftest-jbossas</id>
- <properties>
- <example.context.path>seam-itext</example.context.path>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>selenium-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>failsafe-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
-</project>
Deleted:
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/java/org/jboss/seam/example/itext/test/DocumentTest.java
===================================================================
---
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/java/org/jboss/seam/example/itext/test/DocumentTest.java 2013-06-03
20:39:42 UTC (rev 15536)
+++
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/java/org/jboss/seam/example/itext/test/DocumentTest.java 2013-06-04
06:09:08 UTC (rev 15537)
@@ -1,112 +0,0 @@
-package org.jboss.seam.example.itext.test;
-
-import java.io.File;
-
-import org.jboss.arquillian.container.test.api.Deployment;
-import org.jboss.arquillian.container.test.api.OverProtocol;
-import org.jboss.arquillian.junit.Arquillian;
-import org.jboss.seam.contexts.Contexts;
-import org.jboss.seam.core.Conversation;
-import org.jboss.seam.document.ByteArrayDocumentData;
-import org.jboss.seam.document.DocumentData;
-import org.jboss.seam.document.DocumentStore;
-import org.jboss.seam.mock.JUnitSeamTest;
-import org.jboss.seam.pdf.ui.UIDocument;
-import org.jboss.shrinkwrap.api.Archive;
-import org.jboss.shrinkwrap.api.ShrinkWrap;
-import org.jboss.shrinkwrap.api.asset.StringAsset;
-import org.jboss.shrinkwrap.api.importer.ZipImporter;
-import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
-import org.jboss.shrinkwrap.api.spec.WebArchive;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-/**
- * This is just a placeholder until I can find a way to actually test the UI
- * components.
- */
-(a)RunWith(Arquillian.class)
-public class DocumentTest extends JUnitSeamTest
-{
- @Deployment
- @OverProtocol("Servlet 3.0")
- public static Archive<?> createDeployment()
- {
- EnterpriseArchive er = ShrinkWrap.create(ZipImporter.class,
"seam-itext.ear").importFrom(new
File("../itext-ear/target/seam-itext.ear"))
- .as(EnterpriseArchive.class);
- WebArchive web = er.getAsType(WebArchive.class, "itext-web.war");
- web.addAsWebInfResource(new
StringAsset("org.jboss.seam.mock.MockFacesContextFactory"),
"classes/META-INF/services/javax.faces.context.FacesContextFactory");
- web.addClasses(DocumentTest.class);
-
- // Install org.jboss.seam.mock.MockSeamListener
- web.delete("/WEB-INF/web.xml");
- web.addAsWebInfResource("web.xml");
-
- return er;
- }
-
- @Test
- public void documentStore() throws Exception
- {
- String conversationId = new FacesRequest("/whyseam.xhtml")
- {
-
- @Override
- protected void invokeApplication() throws Exception
- {
- Conversation.instance().begin();
-
- DocumentStore store = (DocumentStore)
getValue("#{org.jboss.seam.document.documentStore}");
- String docId = store.newId();
-
- Contexts.getSessionContext().set("docId", docId);
-
- DocumentData documentData = new ByteArrayDocumentData("base",
UIDocument.PDF, new byte[100]);
- store.saveData(docId, documentData);
- }
-
- @Override
- protected void renderResponse() throws Exception
- {
- String docId = (String) getValue("#{docId}");
- assert docId != null;
-
- DocumentStore store = (DocumentStore)
getValue("#{org.jboss.seam.document.documentStore}");
- assert store.idIsValid(docId);
-
- }
- }.run();
-
- // different conversation
- new FacesRequest("/whyseam.xhtml")
- {
- @Override
- protected void renderResponse() throws Exception
- {
- String docId = (String) getValue("#{docId}");
- assert docId != null;
-
- DocumentStore store = (DocumentStore)
getValue("#{org.jboss.seam.document.documentStore}");
- assert !store.idIsValid(docId);
- }
- }.run();
-
- new FacesRequest("/whyseam.xhtml", conversationId)
- {
- @Override
- protected void renderResponse() throws Exception
- {
- String docId = (String) getValue("#{docId}");
- assert docId != null;
-
- DocumentStore store = (DocumentStore)
getValue("#{org.jboss.seam.document.documentStore}");
- assert store.idIsValid(docId);
-
- ByteArrayDocumentData data =
(ByteArrayDocumentData)store.getDocumentData(docId);
- assert data.getDocumentType().equals(UIDocument.PDF);
- assert data.getData().length == 100;
- }
- }.run();
- }
-
-}
Deleted:
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/java/org/jboss/seam/example/itext/test/selenium/SeleniumItextTest.java
===================================================================
---
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/java/org/jboss/seam/example/itext/test/selenium/SeleniumItextTest.java 2013-06-03
20:39:42 UTC (rev 15536)
+++
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/java/org/jboss/seam/example/itext/test/selenium/SeleniumItextTest.java 2013-06-04
06:09:08 UTC (rev 15537)
@@ -1,27 +0,0 @@
-package org.jboss.seam.example.itext.test.selenium;
-
-import org.jboss.seam.example.common.test.selenium.SeamSeleniumTest;
-import static org.testng.AssertJUnit.assertEquals;
-import org.testng.annotations.BeforeMethod;
-import org.testng.annotations.Test;
-
-public class SeleniumItextTest extends SeamSeleniumTest
-{
- public static final String HOME_PAGE = "/index.seam";
- public static final String HOME_PAGE_TITLE = "Seam PDF";
-
- @BeforeMethod
- @Override
- public void setUp() {
- super.setUp();
- browser.open(CONTEXT_PATH + HOME_PAGE);
- }
-
- /**
- * Place holder - just verifies that example deploys
- */
- @Test
- public void homePageLoadTest() {
- assertEquals("Unexpected page title.", HOME_PAGE_TITLE,
browser.getTitle());
- }
-}
Deleted:
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/resources-ftest/testng.xml
===================================================================
---
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/resources-ftest/testng.xml 2013-06-03
20:39:42 UTC (rev 15536)
+++
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/resources-ftest/testng.xml 2013-06-04
06:09:08 UTC (rev 15537)
@@ -1,26 +0,0 @@
-
- <!--
- JBoss, Home of Professional Open Source Copyright 2008, Red Hat
- Middleware LLC, and individual contributors by the @authors tag. See
- the copyright.txt in the distribution for a full listing of individual
- contributors. This is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version. This software is
- distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- License for more details. You should have received a copy of the GNU
- Lesser General Public License along with this software; if not, write
- to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- Boston, MA 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- -->
-<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
-<suite name="Itext example" verbose="2"
parallel="false">
- <test name="itext_tests">
- <parameter name="PROPERTY_FILE" value="" />
- <classes>
- <class
name="org.jboss.seam.example.itext.test.selenium.SeleniumItextTest" />
- </classes>
- </test>
-</suite>
Deleted:
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/resources-integration/arquillian.xml
===================================================================
---
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/resources-integration/arquillian.xml 2013-06-03
20:39:42 UTC (rev 15536)
+++
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/resources-integration/arquillian.xml 2013-06-04
06:09:08 UTC (rev 15537)
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<arquillian
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xmlns="http://jboss.org/schema/arquillian"
-
xsi:schemaLocation="http://jboss.org/schema/arquillian
http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
-
- <engine>
- <property name="deploymentExportPath">target/</property>
- </engine>
-
- <container qualifier="jboss" default="true">
- <configuration>
- <property name="javaVmArguments">-Xmx1024m
-XX:MaxPermSize=512m ${jacoco.agent}</property>
- </configuration>
- </container>
-
-</arquillian>
Deleted:
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/resources-integration/web.xml
===================================================================
---
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/resources-integration/web.xml 2013-06-03
20:39:42 UTC (rev 15536)
+++
branches/enterprise/WFK-2_1/examples/itext/itext-tests/src/test/resources-integration/web.xml 2013-06-04
06:09:08 UTC (rev 15537)
@@ -1,12 +0,0 @@
-<?xml version="1.0" ?>
-
-<web-app version="3.0"
-
xmlns="http://java.sun.com/xml/ns/javaee"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
-
- <listener>
-
<listener-class>org.jboss.seam.mock.MockSeamListener</listener-class>
- </listener>
-
-</web-app>
Modified: branches/enterprise/WFK-2_1/examples/itext/itext-web/pom.xml
===================================================================
--- branches/enterprise/WFK-2_1/examples/itext/itext-web/pom.xml 2013-06-03 20:39:42 UTC
(rev 15536)
+++ branches/enterprise/WFK-2_1/examples/itext/itext-web/pom.xml 2013-06-04 06:09:08 UTC
(rev 15537)
@@ -92,6 +92,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
+ <version>${version.war.plugin}</version>
<configuration>
<nonFilteredFileExtensions>
<!-- default value contains jpg,jpeg,gif,bmp,png -->
Modified: branches/enterprise/WFK-2_1/examples/itext/pom.xml
===================================================================
--- branches/enterprise/WFK-2_1/examples/itext/pom.xml 2013-06-03 20:39:42 UTC (rev
15536)
+++ branches/enterprise/WFK-2_1/examples/itext/pom.xml 2013-06-04 06:09:08 UTC (rev
15537)
@@ -1,14 +1,9 @@
<?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">
- <parent>
- <groupId>org.jboss.seam</groupId>
- <artifactId>examples</artifactId>
- <version>2.3.1.Final-redhat-2</version>
- </parent>
-
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.seam.examples</groupId>
<artifactId>itext</artifactId>
+ <version>2.3.1.Final-redhat-2</version>
<packaging>pom</packaging>
<name>Itext Example (EE6)</name>
@@ -16,12 +11,35 @@
<module>itext-ejb</module>
<module>itext-web</module>
<module>itext-ear</module>
- <module>itext-tests</module>
</modules>
<properties>
- <example.name>itext</example.name>
- </properties>
+ <example.name>itext</example.name>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <maven.compiler.target>1.6</maven.compiler.target>
+ <maven.compiler.source>1.6</maven.compiler.source>
+
+ <!-- To use jacoco, set jacoco.agent system property to something like
+ -javaagent:/path/to/jacocoagent.jar=append=true,destfile=/path/to/output/jacoco.exec
-->
+ <jacoco.agent />
+
+ <!-- To use custom Maven settings and profiles, uncomment and customize
+ the following properties. This is necessary for the ShrinkWrap resolver to
+ function properly. -->
+ <!--<maven.user.settings>/path/to/custom/settings.xml</maven.user.settings>
-->
+ <!--<maven.profiles>custom,profile</maven.profiles> -->
+
+ <version.commons.logging>1.1.1</version.commons.logging>
+ <version.shrinkwrap.resolver>2.0.0-beta-4</version.shrinkwrap.resolver>
+
+ <!-- Plugin versions -->
+ <version.dependency.plugin>2.5.1</version.dependency.plugin>
+ <version.surefire.plugin>2.10</version.surefire.plugin>
+ <version.compiler.plugin>2.3.1</version.compiler.plugin>
+ <version.ear.plugin>2.6</version.ear.plugin>
+ <version.war.plugin>2.1.1</version.war.plugin>
+ <version.jboss.maven.plugin>7.4.Final</version.jboss.maven.plugin>
+ </properties>
<dependencyManagement>
<dependencies>
@@ -31,19 +49,79 @@
<version>${project.version}</version>
<type>ejb</type>
</dependency>
+
<dependency>
<groupId>org.jboss.seam.examples.itext</groupId>
<artifactId>itext-web</artifactId>
<version>${project.version}</version>
<type>war</type>
</dependency>
+
<dependency>
<groupId>org.jboss.seam.examples.itext</groupId>
<artifactId>itext-ear</artifactId>
<version>${project.version}</version>
<type>ear</type>
</dependency>
+
+ <!-- BOMs -->
+ <dependency>
+ <groupId>org.jboss.shrinkwrap.resolver</groupId>
+ <artifactId>shrinkwrap-resolver-bom</artifactId>
+ <version>${version.shrinkwrap.resolver}</version>
+ <scope>import</scope>
+ <type>pom</type>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>bom</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ <version>${project.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
</dependencies>
</dependencyManagement>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <!-- Manage plugin versions for build stability -->
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>${version.surefire.plugin}</version>
+ <configuration>
+ <systemPropertyVariables>
+ <org.apache.maven.user-settings>${maven.user.settings}</org.apache.maven.user-settings>
+ <maven.profiles>${maven.profiles}</maven.profiles>
+ </systemPropertyVariables>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>${version.dependency.plugin}</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>${version.compiler.plugin}</version>
+ <configuration>
+ <source>${maven.compiler.source}</source>
+ <target>${maven.compiler.target}</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
</project>