Return-Path: Delivered-To: apmail-maven-dev-archive@www.apache.org Received: (qmail 12823 invoked from network); 7 Oct 2006 07:21:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Oct 2006 07:21:35 -0000 Received: (qmail 58476 invoked by uid 500); 7 Oct 2006 07:21:34 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 58010 invoked by uid 500); 7 Oct 2006 07:21:33 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 57999 invoked by uid 99); 7 Oct 2006 07:21:33 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Oct 2006 00:21:33 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [216.148.222.49] ([216.148.222.49:36190] helo=outbound2-red-R.bigfish.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 1E/06-24193-46557254 for ; Sat, 07 Oct 2006 00:21:13 -0700 Received: from outbound2-red.bigfish.com (localhost.localdomain [127.0.0.1]) by outbound2-red-R.bigfish.com (Postfix) with ESMTP id 4131A14BAB4C for ; Sat, 7 Oct 2006 07:20:29 +0000 (UTC) Received: from mail55-red-R.bigfish.com (unknown [172.18.12.3]) by outbound2-red.bigfish.com (Postfix) with ESMTP id 170DC14B9381 for ; Sat, 7 Oct 2006 07:20:29 +0000 (UTC) Received: from mail55-red.bigfish.com (localhost.localdomain [127.0.0.1]) by mail55-red-R.bigfish.com (Postfix) with ESMTP id 485FC505AD2 for ; Sat, 7 Oct 2006 07:20:29 +0000 (UCT) X-BigFish: V Received: by mail55-red (MessageSwitch) id 1160205629220236_18949; Sat, 7 Oct 2006 07:20:29 +0000 (UCT) Received: from mail8.fw-sd.sony.com (mail8.fw-sd.sony.com [160.33.66.75]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by mail55-red.bigfish.com (Postfix) with ESMTP id 2AC99505AD7 for ; Sat, 7 Oct 2006 07:20:29 +0000 (UCT) Received: from mail1.sgo.in.sel.sony.com (mail1.sgo.in.sel.sony.com [43.130.1.111]) by mail8.fw-sd.sony.com (8.12.11/8.12.11) with ESMTP id k977KS7v028481 for ; Sat, 7 Oct 2006 07:20:28 GMT Received: from USSDIXIM01.am.sony.com (ussdixim01.am.sony.com [43.130.140.33]) by mail1.sgo.in.sel.sony.com (8.12.11/8.12.11) with ESMTP id k977KSVl024445 for ; Sat, 7 Oct 2006 07:20:28 GMT Received: from ussdixms03.am.sony.com ([43.130.140.23]) by USSDIXIM01.am.sony.com with Microsoft SMTPSVC(5.0.2195.6713); Sat, 7 Oct 2006 00:20:28 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable x-mimeole: Produced By Microsoft Exchange V6.5.7226.0 Subject: RE: Creating a .wsr file artifact Date: Sat, 7 Oct 2006 00:16:31 -0700 Message-ID: <591B6A09961C354991CD653B274DC8C20288509C@ussdixms03.am.sony.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Creating a .wsr file artifact Thread-Index: AcbpyyCvhzgmtf0OQd6Q68fulQ4twgAEYP7AAADocKA= From: "Swenson, Eric" To: "Maven Developers List" X-OriginalArrivalTime: 07 Oct 2006 07:20:28.0361 (UTC) FILETIME=[10B15B90:01C6E9E1] X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I looked in both the maven-jar-plugin and the maven-war-plugin and don't see any components.xml. Yet these both appear to define a default life cycle mapping (somehow). -- Eric -----Original Message----- From: Swenson, Eric=20 Sent: Friday, October 06, 2006 11:56 PM To: Maven Developers List Subject: RE: Creating a .wsr file artifact Thanks Nathan. But I'm still not getting anywhere. I assume what you're saying is that I need to add a META-INF/plexus/components.xml to my plugin jar. I've done that (but perhaps the contents is still not right), but I still get the error message, upon doing an "mvn compile" or "mvn package" that says: [INFO] Cannot find lifecycle mapping for packaging: 'wsr'. Component descriptor cannot be found in the component repository: org.apache.maven.lifecycle.mapping.LifecycleMappingwsr. If I do see the META-INF/plexus/components.xml in my maven-wsr-plugin jar file. Also, I modeled my maven-wsr-plugin after maven-war-plugin (I started with the same codebase and removed the web.xml-related stuff and replaced with web-service.xml-related stuff). And maven-war-plugin doesn't have a components.xml in it. So why does maven-war-plugin allow me to do "mvn compile" and "mvn package" but maven-wsr-plugin doesn't? Is there some other registry that needs updating? When I install the plugin in the repository, do I need any special steps or is the "mvn install" (on the maven-wsr-plugin project) enough? =20 Thanks. -- Eric -----Original Message----- From: Nathan Beyer [mailto:nbeyer@gmail.com]=20 Sent: Friday, October 06, 2006 9:43 PM To: Maven Developers List Subject: Re: Creating a .wsr file artifact Check out the CustomArtifactHandler part of this guide [1]. I think what you're missing is an "extension" [2] element in your POM. -Nathan [1] http://maven.apache.org/guides/introduction/introduction-to-the-lifecycl e.html [2] http://maven.apache.org/ref/current/maven-model/maven.html#class_extensi on On 10/6/06, Swenson, Eric wrote: > Well, I've made progress since my post. However, I still have an issue. > I now have a maven-wsr-plugin, which I based on maven-war-plugin and I'm > able to compile my project with: > > mvn compiler:compile > > and package my project (into a .wsr file) with: > > mvn wsr:wsr > > However, what I can't do is perform the compile/package/install > automatically by simply doing: > > mvn install > > This works for jar and war files. But for my wsr files, it doesn't. > When I attempt either an: > > mvn compile > > or > > mvn install > > I get the error: > > $ mvn compile > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > ---- > [INFO] Building NemoPersonalizationService > [INFO] task-segment: [compile] > [INFO] > ------------------------------------------------------------------------ > ---- > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Cannot find lifecycle mapping for packaging: 'wsr'. > Component descriptor cannot be found in the component repository: > org.apache.maven.lifecycle.mapping.LifecycleMappingwsr. > > or > > $ mvn install > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > ---- > [INFO] Building NemoPersonalizationService > [INFO] task-segment: [install] > [INFO] > ------------------------------------------------------------------------ > ---- > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Cannot find lifecycle mapping for packaging: 'wsr'. > Component descriptor cannot be found in the component repository: > org.apache.maven.lifecycle.mapping.LifecycleMappingwsr. > > If my pom uses jar > > I'm able to use "mvn compile" or "mvn package" or "mvn install". > > How can I enable this for my maven-wsr-plugin (e.g. pom files with > wsr? > > -- Eric > > > > -----Original Message----- > From: Swenson, Eric > Sent: Friday, October 06, 2006 5:53 PM > To: dev@maven.apache.org > Subject: Creating a .wsr file artifact > > I'm using Maven 2.0.4 and need to produce a .wsr file. A .wsr file is a > jboss web service archive and is very similar to a .war file, a .sar > file, and an .ear file. I've tried two tacts so far, neither > successful. > > > > The first approach was to take the mavin-war-plugin sources, renaming > all instances of "war" to "wsr" and using it. I had to make a copy of > the WarArchiver class (org.codehaus.plexus.archiver.WarArchiver) and > rename it, too, to WsrArchiver in order to get the generated plugin.xml > to not refer to WarArchiver. However, I was never able to get this > plugin to work. I kept getting errors telling me that the life cycle > manager could not find a mapping for "wsr". > > > > I gave up and tried to figure out how to get maven to simply rename the > artifact after the package goal - I went back to using war files. I > wanted to simply rename this from a war file to a wsr file. But I could > never figure out how to do that. It would appear that the in > an (I used "zip") also dictated the file extension placed on > the output of the assembly. > > > > Can someone give me some hints on how to accomplish what I need to do? > I would actually like to get the mavin-wsr-plugin to work because I'd > like to be able to add more wsr-related smarts to the packaging (there > are additional files in a wsr that are not in a war). But I can't > figure out how to get a copy of mavin-war-plugin to work with the *only* > change being that the file extension of the artifact is changed to "wsr" > (from "war"). > > > > Can anyone help? -- Eric > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > For additional commands, e-mail: dev-help@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org