Re: Re: Re: Re: Re: Integration of Orbeon Forms 3.9.0.post.201203310628 CE into own war-file

Posted by koenvdk on
URL: https://discuss.orbeon.com/Integration-of-Orbeon-Forms-3-9-0-post-201203310628-CE-into-own-war-file-tp4526445p4534087.html

Thx,

looks like an interesting setup!



Koen Vanderkimpen

Connect: Twitter




From:        Heinrich Götzger <[hidden email]>
To:        [hidden email]
Date:        04/04/2012 17:29
Subject:        [ops-users] Re: Re: Re: Re: Integration of Orbeon Forms 3.9.0.post.201203310628 CE into own war-file





Hello Koen,

we use just the orbeon-runner as our forms to complex to be build with
the builder.

So with release Orbeon Forms 3.9.0.201105152046-CE we're using this
pom.xml (replacing some costumer related content with xxx)

<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>com.xxx</groupId>
<artifactId>xxx</artifactId>
<version>2.9-SNAPSHOT</version>
<packaging>war</packaging>
<name>xxx Standard Web App</name>
<description>xxx Standard Web App</description>
<issueManagement>
<system>xxx trac</system>
<url>
http://xxx.net/trac/xxx</url>
</issueManagement>
<scm>
<connection>scm:svn:
http://xxx/svn/xxxStandard/trunk</connection>
<developerConnection>scm:svn:
http://xxx@svn/xxxStandard/trunk</developerConnection>
<url>
http://xxx/svn/xxxStandard/trunk</url>
</scm>
<organization>
<name>xxx</name>
<url>
http://xxx.com</url>
</organization>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<packagingExcludes>WEB-INF/web.xml</packagingExcludes>
<webXml>src/main/webapp/WEB-INF/web.xml</webXml>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Implementation-Build>${buildNumber}</Implementation-Build>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.8</version>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
<additionalProjectFacets>
<jst.jsf>1.1</jst.jsf>
<jst.web.xdoclet>1.2.3</jst.web.xdoclet>
</additionalProjectFacets>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<path>/${project.artifactId}</path>
<server>${server}</server>
<url>${maven.tomcat.url}</url>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/wsdl/executeGenericAction.wsdl</wsdl>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.0-beta-4</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<configuration>
<escapeString>\</escapeString>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.10</version>
<configuration>
<excludes>
<exclude>**/TestCaseUtils.java</exclude>
<exclude>%regex[.*XMLAssert*.*]</exclude>
<exclude>**/TestTemplate.java</exclude>
</excludes>
<failIfNoTests>false</failIfNoTests>
<showSuccess>false</showSuccess>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<releases>
<enabled>false</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>thirdParty</id>
<name>xxx third party components</name>
<url>
http://xxx.net:6061/nexus/content/repositories/thirdparty
</url>
</repository>
<repository>
<id>spring-milestone</id>
<name>Spring Portfolio Milestone Repository</name>
<url>
http://maven.springframework.org/milestone</url>
</repository>
</repositories>
<pluginRepositories>
</pluginRepositories>
<dependencies>
<dependency>
<!--             The order matters, dependencies are loaded in the order in             which they are declared in the pom.xml.             To avoid NoClassDefFoundError: org/objectweb/asm/CodeVisitor,             cglib-nodep needs to be on top.          -->
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>2.2.2</version>
<type>jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.security.extensions</groupId>
<artifactId>spring-security-kerberos-core</artifactId>
<version>1.0.0.M2</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.1</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.6.1</version>
<type>jar</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<!--
http://cxf.apache.org/docs/using-cxf-with-maven.html -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>${cxf.version}</version>
</dependency>
<!-- Jetty is needed if you're are not using the CXFServlet -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http-jetty</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>xmlunit</groupId>
<artifactId>xmlunit</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>3.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<distributionManagement>
<repository>
<uniqueVersion>false</uniqueVersion>
<id>xxxRelease</id>
<name>xxx releases</name>
<url>
http://xxx.net:6061/nexus/content/repositories/releases/
</url>
</repository>
<snapshotRepository>
<id>xxxSnapshots</id>
<name>xxx snapshots</name>
<url>
http://xxx.net:6061/nexus/content/repositories/snapshots/
</url>
</snapshotRepository>
</distributionManagement>
<properties>
<cxf.version>2.3.2</cxf.version>
<spring.version>3.0.2.RELEASE</spring.version>
<maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format>
</properties>
</project>

We then have these jars in our lib-directory:

activation-1.1.1.jar
ant-1_6_5.jar
ant-jsch-1_6_5.jar
apache-mime4j-0.6.jar
avalon-framework-4_2_0.jar
axis_1_2_1-axis.jar
axis_1_2_1-jaxrpc.jar
axis_1_2_1-saaj.jar
axis_1_2_1-wsdl4j-1.5.1.jar
barcode4j-1.0.jar
batic-dependency-xmlgraphics-commons-1.1.jar
batik-all-1_6.jar
castor-0_9_4_3-xml.jar
commons-beanutils-1_5.jar
commons-cli-1_0.jar
commons-codec-1.4.jar
commons-collections-3.2.1.jar
commons-digester-1_5.jar
commons-discovery-0.4.jar
commons-fileupload-1.2.2.jar
commons-io-2.0.1.jar
commons-lang-2_3.jar
commons-logging-1.1.1.jar
commons-pool-1.5.4.jar
commons-validator-1_0_2.jar
dom4j-1_6_1.jar
ehcache-core-2.3.1.jar
flyingsaucer-20100212-itext-2_1_7.jar
flyingsaucer-core-renderer_orbeon_20100512.jar
fop-0_93.jar
httpclient-4.1.jar
httpcore-4.1.jar
httpcore-nio-4.1.jar
httpmime-4.1.jar
itext-bcmail-jdk14-138.jar
itext-bcprov-jdk14-138.jar
jakarta-oro-2_0_8_orbeon.jar
jakarta-poi-1.11.0-dev-20030610.jar
jaxen-1_1_beta_9.jar
jcifs-1.3.14.jar
jfreechart-1.0.9.jar
jfreechart-dependency-jcommon-1.0.12.jar
jms-api-1_1.jar
jsch-0.1.42.jar
jtidy-8.0-20060801.131059-3.jar
mail-1_3_2.jar
metadata-extractor-2_1.jar
msv-20081113_orbeon_20081209.jar
msv-isorelax-20070407.jar
msv-relaxngDatatype-20070407.jar
msv-xsdlib-20070407_orbeon_20100309.jar
orbeon-form-runner.jar
orbeon.jar
orbeon-resources-private.jar
orbeon-resources-public.jar
orbeon-xforms-filter.jar
pdfbox-0_7_1.jar
rhino-1.7R2.jar
saxon-9-1-0-8_orbeon_20110215.jar
saxpath-dev_orbeon.jar
scala-library-2.8.1.jar
tagsoup-1.2.jar
xerces-resolver-2_9_orbeon_20070711.jar
xerces-serializer-2_9_orbeon_20070711.jar
xerces-xercesImpl-2_9_orbeon_20070711.jar

HTH

(actually most of these jars would need to be added to the dependency in
the pom.xml, but time is rare ....)

This is working fine for us for almost a year now. But we have a lot of
issues with IE7 now and some other problems hanging around that we'd
like to switch to a younger release. But this switch seems to be
fascinating ....

Cheers

Heinrich

On 04/03/12 09:18, [hidden email] wrote:
> Hi Heinrich,
>
>
> I'm trying to integrate orbeon into my maven workflow as well. Could
> you tell us what else you had to do, besides what you explained in
> your first mail?
> There seem to be a lot more libraries in the orbeon war than those you
> mentioned...
>
>
> Thx!
>
>
>
> Koen Vanderkimpen
>
> Connect:Twitter <
http://www.twitter.com/koenvdk>
>
> [hidden email]
> IT Consulent - Sectie Onderzoek
> Afdeling Klanten en Diensten
> Smals -
www.smals.be
>

--
Before printing this e-mail, think about our environmental responsibility.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe:
[hidden email]
For general help:
[hidden email]
OW2 mailing lists service home page:
http://www.ow2.org/wws








Overeenkomstig de bepalingen inzake de vertegenwoordiging van de vzw in haar statuten, kan enkel de gedelegeerde bestuurder, de algemeen directeur of zijn uitdrukkelijke lasthebber verbintenissen aangaan namens Smals.
Indien dit bericht niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en het bericht te vernietigen.

Conformément aux dispositions relatives à la représentation de l'asbl dans ses statuts, seul l'administrateur délégué, le directeur général ou son mandataire exprès est habilité à souscrire des engagements au nom de Smals.
Si ce message ne vous est pas destiné, nous vous prions de nous le signaler immédiatement et de détruire le message.

According to the provisions regarding representation of the non profit association in its bylaws, only the chief executive officer, the general manager or his explicit agent can enter into engagements on behalf of Smals.
If you are not the addressee of this message, we kindly ask you to signal this to us immediately and to delete the message.





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws