Return-Path: X-Original-To: apmail-jakarta-cactus-user-archive@www.apache.org Delivered-To: apmail-jakarta-cactus-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E0903982E for ; Tue, 20 Dec 2011 11:43:58 +0000 (UTC) Received: (qmail 68482 invoked by uid 500); 20 Dec 2011 11:43:58 -0000 Delivered-To: apmail-jakarta-cactus-user-archive@jakarta.apache.org Received: (qmail 68423 invoked by uid 500); 20 Dec 2011 11:43:57 -0000 Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Cactus Users List" Reply-To: "Cactus Users List" Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 59242 invoked by uid 99); 20 Dec 2011 11:36:59 -0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jaragones@kana.com designates 64.95.72.243 as permitted sender) X-Virus-Scanned: by SpamTitan at mail.lan From: Juan Jose Aragones Guillen To: "cactus-user@jakarta.apache.org" Date: Tue, 20 Dec 2011 06:36:25 -0500 Subject: Using cactus with maven Thread-Topic: Using cactus with maven Thread-Index: Acy/C5tHTcrl/4OzSV6pUeToeIK8Fg== Message-ID: <19FC4CE410A44148932D4DE91FF626152CDE076208@BE259.mail.lan> Accept-Language: es-ES, en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: acceptlanguage: es-ES, en-US Content-Type: multipart/related; boundary="_008_19FC4CE410A44148932D4DE91FF626152CDE076208BE259maillan_"; type="multipart/alternative" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_008_19FC4CE410A44148932D4DE91FF626152CDE076208BE259maillan_ Content-Type: multipart/alternative; boundary="_000_19FC4CE410A44148932D4DE91FF626152CDE076208BE259maillan_" --_000_19FC4CE410A44148932D4DE91FF626152CDE076208BE259maillan_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I know cactus have been moved to the Attic but my supervisor has given me t= he job to make he project work using this plugin with maven 3.0.3. We are using Jenkins for CI and the idea is to run cactus from there (we al= ready run junit tests as it's possible to invoke top-level maven targets ju= st writing the goals). Right now I'm testing cactus with the project in which we run the junit tes= ts (no worries, several VM's and snapshots -and not touching the base proje= ct- just in case I screw something). But here are several thing I don't re= ally understand. I'll only write some questions and, if I get any feedback = will go on with the questions: - I'm using "mvn cactus:cactifyear" as the idea is to create an EAR and get= it deployed in Websphere using WAS6 plugin for maven. The thing is I don't= really understand what does cactifyear do or how it works. I have no idea = what to use as srcfile. Here you have what I have in my pom.xml: ... org.apache.cactus cactus.integration.maven2 1.8.1 ... .... ... ... org.apache.cactus cactus.integration.maven2 1.8.1 /PATH/TO/FILE/file.ear cactifiedByMaven2.ear / 2.3 cactus-cactifyear pre-integration-test cactifyear ... ... ... For what is the /PATH/TO/FILE/file.ear used? I tried with one EAR in my pro= ject and got one cactifiedByMaven2.ear in each of the modules of my project= plus one cactifiedByMaven2.ear and one empty folder named cactusAND_A_NUMB= ER.dir for each module in the project root directory. The output while runn= ing was something like this: [INFO] Building application1 1.0-SNAPSHOT [INFO] --------------------------------------------------------------------= ---- [INFO] [INFO] --- cactus.integration.maven2:1.8.1:cactifyear (default-cli) @ my.co= mpany.application1 --- [info] Adding: aspectjrt-1.5.3.jar [info] Adding: cactus.core.framework.uberjar.javaEE.14-1.8.1.jar [info] Adding: commons-logging-1.1.jar [info] Adding: commons-httpclient-3.1.jar [info] Adding: junit-3.8.2.jar [INFO] Building war: /PROJECT/ROOT//DIRECTORY/application1/cactus892519517c= actus.war [INFO] Building ear: /PROJECT/ROOT//DIRECTORY/application1/cactifiedByMaven= 2.ear [INFO] [INFO] --------------------------------------------------------------------= ---- [INFO] Building application2 1.0-SNAPSHOT [INFO] --------------------------------------------------------------------= ---- [INFO] [INFO] --- cactus.integration.maven2:1.8.1:cactifyear (default-cli) @ com.k= ana.sem.applications2 --- [info] Adding: aspectjrt-1.5.3.jar [info] Adding: cactus.core.framework.uberjar.javaEE.14-1.8.1.jar [info] Adding: commons-logging-1.1.jar [info] Adding: commons-httpclient-3.1.jar [info] Adding: junit-3.8.2.jar [INFO] Building war: /PROJECT/ROOT//DIRECTORY/application1/cactus892519517c= actus.war [INFO] Building ear: /PROJECT/ROOT//DIRECTORY/application1/cactifiedByMaven= 2.ear [INFO] [INFO] --------------------------------------------------------------------= ---- [INFO] Building application3 1.0-SNAPSHOT [INFO] --------------------------------------------------------------------= ---- The srcfile is like a schema to create an EAR for each module? Thanks, JUAN JOS=C9 ARAGON=C9S [cid:image001.jpg@01CCBF05.6053FB40]BUILD'N'RELEASE = ENGINEER e : jaragones@kana.com EMEA Headquarters 209 Airport Road West Belfast, Northern Ireland BT3 9EZ SOLUTIONS | CASE STUDIES | KANA.COM | LAGAN.COM [cid:image002.gif@01CCBF05.6053FB40] [cid:image003.gif@01CCBF05.6053FB40] [cid:image004.gif@01CCBF05.6053FB40] [cid:image005.gif@01CCBF05.6053FB40] The information in this email and any attachments is confidential and inten= ded solely for the attention and use of the named addressee(s). It may be s= ubject to legal, professional or other privilege and further distribution o= f it is strictly prohibited without our authority. If you are not the inten= ded recipient, you are not authorized to and must not disclose, copy, distr= ibute, or retain this message or any part of it, and should notify us immed= iately --_000_19FC4CE410A44148932D4DE91FF626152CDE076208BE259maillan_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello,

I know cactus have been moved to the Attic but my = supervisor has given me the job to make he project work using this plugin w= ith maven 3.0.3.

We are using Jenkin= s for CI and the idea is to run cactus from there (we already run junit tes= ts as it’s possible to invoke top-level maven targets just writing th= e goals).

Right now I’m testin= g cactus with the project in which we run the junit tests (no worries, seve= ral VM’s and snapshots –and not touching the base project- =A0j= ust in case I screw something). But here are several thing I don’t re= ally understand. I’ll only write some questions and, if I get any fee= dback will go on with the questions:

= - I’m using “mvn cactus:cactifyear” as the idea is to cre= ate an EAR and get it deployed in Websphere using WAS6 plugin for maven. Th= e thing is I don’t really understand what does cactifyear do or how i= t works. I have no idea what to use as srcfile. Here you have what I have i= n my pom.xml:

<project>

=A0=A0 ...

=A0=A0=A0 <dependencies>

= =A0=A0=A0=A0=A0=A0=A0 <dependency>

=A0=A0=A0=A0=A0=A0=A0=A0=A0 <groupId>org.apache.cactus</groupI= d>

=A0=A0=A0=A0=A0=A0=A0=A0=A0 <= ;artifactId>cactus.integration.maven2</artifactId>

=A0=A0=A0=A0=A0=A0=A0=A0=A0 <version>1.8.1<= /version>

=A0=A0=A0=A0=A0=A0=A0 &l= t;/dependency>

=A0=A0=A0=A0=A0 ...=

=A0=A0=A0 </dependencies>=

=A0=A0=A0=A0 ....

=A0=A0=A0 <build>

=A0=A0=A0=A0= =A0=A0=A0 <pluginManagement>

= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ...

= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <plugin>

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <groupId>or= g.apache.cactus</groupId>

<= span style=3D'font-size:12.0pt;font-family:"Times New Roman","serif"'>=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <artifactId>cactus.integra= tion.maven2</artifactId>

=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <version>1.8.1</version>= ;

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 <configuration>

= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <srcFile>/PATH= /TO/FILE/file.ear</srcFile>

=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <desttFile>cactif= iedByMaven2.ear</destFile>

= =A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <cactusWar><= /o:p>

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 <context>/</context>=

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 <version>2.3</version>

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </cact= usWar>

=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 </configuration>

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <executions><= /o:p>

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 <execution>

= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0<id>= ;cactus-cactifyear</id>

=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <phase>p= re-integration-test</phase>

=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <goals&g= t;

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <goal>cactifyear</goal&= gt;

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </goals>

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </= execution>

=A0 =A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0</executions>

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </plugin>

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ...<= /p>

=A0=A0=A0=A0=A0=A0=A0 </pluginManagement>

=A0=A0=A0=A0=A0=A0 ...

=

=A0=A0=A0 </build>

=A0=A0=A0 ...

</project>

 

For what is the /PATH/TO/FILE/file.ear used? I tried with one EAR = in my project and got one cactifiedByMaven2.ear in each of the modules of m= y project plus one cactifiedByMaven2.ear and one empty folder named cactusA= ND_A_NUMBER.dir for each module in the project root directory. The output w= hile running was something like this:

[INFO] Building application1 1.0-SNAPSHOT

[INFO] ----------------------------------------------------= --------------------

[INFO]

[INFO] --- cactus.integration.m= aven2:1.8.1:cactifyear (default-cli) @ my.company.application1 ---

[info] Adding: aspectjrt-1.5.3.jar

[info] Adding: cactus.core.framew= ork.uberjar.javaEE.14-1.8.1.jar

[info] Adding: commons-httpclient-3.1.jar=

[info] Adding: junit-3.8.2.jar

[INFO] Building war: /PROJECT/ROOT//DIRECTORY/appl= ication1/cactus892519517cactus.war

[INFO] Building ear: /PROJECT/ROOT//DIRECTORY/application1/cactifiedBy= Maven2.ear

[INFO]=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0

[INFO] ------------------------------------------= ------------------------------

[INFO] Building application2 1.0-SNAPSHOT

[INFO] -------------------------------------------------------= -----------------

[INFO] =

[INFO] --- cactus.integration.mave= n2:1.8.1:cactifyear (default-cli) @ com.kana.sem.applications2 ---

[info] Adding: aspectjrt-1.5.3.jar

[info] Adding: cactus.core.framew= ork.uberjar.javaEE.14-1.8.1.jar

[info] Adding: commons-httpclient-3.1.jar=

[info] Adding: junit-3.8.2.jar

[INFO] Building war: /PROJECT/ROOT//DIRECTORY/appl= ication1/cactus892519517cactus.war

[INFO] Building ear: /PROJECT/ROOT//DIRECTORY/application1/cactifiedBy= Maven2.ear

[INFO]=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0

[INFO] ------------------------------------------= ------------------------------

[INFO] Building application3 1.0-SNAPSHOT

[INFO] -------------------------------------------------------= -----------------

 <= /o:p>

The srcfile is like a schema to create= an EAR for each module?

 <= /o:p>

<= span style=3D'font-size:12.0pt;font-family:"Times New Roman","serif"'>Thank= s,

 JUAN= JOS=C9 ARAGON=C9S<= o:p>

3DLaganBUILD'N'RELEASE ENGINEER

e : <= a href=3D"mailto:jaragones@kana.com" title=3D"mailto:jaragones@kana.com">jaragones@kana.com

<= /td>

EMEA Headquarters

209 Airpor= t Road West
Belfast= , Northern Ireland BT3 9EZ

SOLUTIONS | CASE STUDIES | KANA.COM | LAGAN.COM

<= /td>

3D"Subscribe

3D"cid:image004.gif@01CC9D2D.738B4D20"

<= a href=3D"http://www.twitter.com/lagan_business" target=3D"_blank">=3D"cid:image006.gif@01CC9D2D.738B4D20"

3D"c=

The information in this email and an= y attachments is confidential and intended solely for the attention and use= of the named addressee(s). It may be subject to legal, professional or oth= er privilege and further distribution of it is strictly prohibited without = our authority. If you are not the intended recipient, you are not authorize= d to and must not disclose, copy, distribute, or retain this message or any= part of it, and should notify us immediately

 

= --_000_19FC4CE410A44148932D4DE91FF626152CDE076208BE259maillan_-- --_008_19FC4CE410A44148932D4DE91FF626152CDE076208BE259maillan_--