Return-Path: X-Original-To: apmail-jmeter-dev-archive@minotaur.apache.org Delivered-To: apmail-jmeter-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DB1ED9649 for ; Mon, 23 Jan 2012 13:46:00 +0000 (UTC) Received: (qmail 97518 invoked by uid 500); 23 Jan 2012 13:46:00 -0000 Delivered-To: apmail-jmeter-dev-archive@jmeter.apache.org Received: (qmail 97481 invoked by uid 500); 23 Jan 2012 13:46:00 -0000 Mailing-List: contact dev-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list dev@jmeter.apache.org Received: (qmail 97473 invoked by uid 99); 23 Jan 2012 13:46:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2012 13:46:00 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.216.50 as permitted sender) Received: from [209.85.216.50] (HELO mail-qw0-f50.google.com) (209.85.216.50) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2012 13:45:53 +0000 Received: by qabg27 with SMTP id g27so1689852qab.2 for ; Mon, 23 Jan 2012 05:45:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=vAFbLoll2DxhT3xuTkugmIQLEbOw2vMTM7otsjjAGRY=; b=vnrsSx/0NC7/CHywloRd8Hw3v/SFoj7KA/+vTjslryyxnXJpvxLdJ4OFNiClrwnNJ9 44ktXw5ZxSe296ZdbsnifrJ1dBwkCXAA9dWyoMTZcwHDV7gTos/kGOwmlEpS3p8yeNHj sC1mAybne3+smhiCAC5zKE/bEhoZzr8AJWTY4= MIME-Version: 1.0 Received: by 10.224.203.10 with SMTP id fg10mr9004490qab.64.1327326332861; Mon, 23 Jan 2012 05:45:32 -0800 (PST) Received: by 10.229.80.207 with HTTP; Mon, 23 Jan 2012 05:45:32 -0800 (PST) In-Reply-To: <028a01ccd9d0$09a0a650$1ce1f2f0$@ardescosolutions.com> References: <00e101ccd88f$d3c55670$7b500350$@ardescosolutions.com> <006201ccd932$b5d243f0$2176cbd0$@ardescosolutions.com> <00e201ccd999$a2828c30$e787a490$@ardescosolutions.com> <026d01ccd9c6$fcef1260$f6cd3720$@ardescosolutions.com> <028a01ccd9d0$09a0a650$1ce1f2f0$@ardescosolutions.com> Date: Mon, 23 Jan 2012 13:45:32 +0000 Message-ID: Subject: Re: Properties files in mavenised artifacts From: sebb To: dev@jmeter.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 23 January 2012 13:08, Mark Collin wrote: > Yes parent really does have to be a POM package. Bother. So we need another jar and another pom. > http://maven.apache.org/guides/introduction/introduction-to-the-pom.html > > I've just tried using the latest 2.6-SNAPSHOT and I'm getting the followi= ng > error: How are you using it? > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error building POM (may not be this project's POM). > > > Project ID: org.apache.jmeter:ApacheJMeter_core > > Reason: Parent: org.apache.jmeter:ApacheJMeter_parent:jar:2.6-SNAPSHOT of > project: org.apache.jmeter:ApacheJMeter_core has > wrong packaging: jar. Must be 'pom'. for project > org.apache.jmeter:ApacheJMeter_core > > > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 12 seconds > [INFO] Finished at: Mon Jan 23 13:03:50 GMT 2012 > [INFO] Final Memory: 13M/107M > [INFO] > ------------------------------------------------------------------------ > > -----Original Message----- > From: sebb [mailto:sebbaz@gmail.com] > Sent: 23 January 2012 12:15 > To: dev@jmeter.apache.org > Subject: Re: Properties files in mavenised artifacts > > On 23 January 2012 12:03, Mark Collin wrote: >> Thinking about it, I think I'm talking a degree of rubbish here. >> >> A parent needs to be packaged as a pom and not a jar so even if you >> add a build section it's not going to work. =A0I think you will instead >> need to have a new package that the parent depends on that pulls in thes= e > extra files. > > Currently, the parent is now a jar package which contains the configurati= on > files. > > The poms are basically just being used as jar descriptors and dependency > declarations currently. > > Does the parent really have to be a pom package? > > Has anyone tried using one of the latest snapshots (i.e. one with > ApacheJMeter_parent.jar as well as .pom)? > >> -----Original Message----- >> From: Mark Collin [mailto:mark@ardescosolutions.com] >> Sent: 23 January 2012 06:39 >> To: dev@jmeter.apache.org >> Subject: RE: Properties files in mavenised artifacts >> >> The mvn deploy command should also build the package if the >> section exists in the POM so you could have a build section for the >> parent POM that only pulls in resources that are required (this would >> muddy the waters slightly but seems like the pragmatic approach). >> >> Of course you could also tweak your ant script to build all of the >> dependencies into a jar and then deploy that as well for the mavenised >> build. =A0This sounds worse IMHO because you are modifying your existing >> build process to create something that your normal ant build doesn't > require. >> >> -----Original Message----- >> From: sebb [mailto:sebbaz@gmail.com] >> Sent: 23 January 2012 01:50 >> To: dev@jmeter.apache.org >> Subject: Re: Properties files in mavenised artifacts >> >> On 23 January 2012 01:03, sebb wrote: >>> On 22 January 2012 18:21, Mark Collin wrote= : >>>> Parent sounds like a good place. >>>> >>>> Normally it would pick up things in src/main/resources, but as you >>>> don't have a maven directory structure I think you'll need to define >>>> a resource dir in the parent POM. =A0Something like this should work: >>>> >>>> >>>> =A0 =A0 >>>> =A0 =A0 =A0 =A0${basedir}/bin >>>> =A0 =A0 =A0 =A0 >>>> =A0 =A0 =A0 =A0 =A0 =A0**/*.properties >>>> =A0 =A0 =A0 =A0 >>>> =A0 =A0 >>>> >>> >>> OK, thanks, I'll try that. >> >> Just realised that won't work for creating the files to be uploaded, >> as we don't use Maven to create the artifacts. >> >>>> I'm not sure exactly where you would need to place it in the >>>> artifact, I guess that depends on where you expect them to be when >>>> you >> read them in. >>> >>> JMeter expects to find them in the bin/ directory, i.e. where it >>> finds ApacheJMeter.jar. >>> >>> However, I've no idea how any JMeter Maven launch plugins are >>> intended to work so that may not be appropriate. >> >> Sorry, but I've no idea how to make this work. >> >> All I can suggest is creating a jar containing the missing properties >> files (there are also some other missing files) which can be uploaded as > parent > > -- > This message contains confidential information and is intended only for t= he individual named. If you are not the named addressee you should not diss= eminate, distribute or copy this e-mail. Please notify the sender immediate= ly by e-mail if you have received this e-mail by mistake and delete this e-= mail from your system. If you are not the intended recipient you are notifi= ed that disclosing, copying, distributing or taking any action in reliance = on the contents of this information is strictly prohibited. > > If you have received this email in error please notify postmaster@ardesco= solutions.com