Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BB75A10E19 for ; Sun, 5 May 2013 15:32:04 +0000 (UTC) Received: (qmail 21408 invoked by uid 500); 5 May 2013 15:32:02 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 21157 invoked by uid 500); 5 May 2013 15:32:02 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 21148 invoked by uid 99); 5 May 2013 15:32:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 May 2013 15:32:02 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: encountered temporary error during SPF processing of domain of kashu.joshi@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 May 2013 15:31:55 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UZ0u9-0001C6-Oj for users@maven.apache.org; Sun, 05 May 2013 08:31:13 -0700 Date: Sun, 5 May 2013 08:31:13 -0700 (PDT) From: kashu To: users@maven.apache.org Message-ID: In-Reply-To: References: <1367678984856-5754909.post@n5.nabble.com> Subject: Re: How to read new Folder data MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_20876_14921713.1367767873760" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_20876_14921713.1367767873760 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit My Bad Robert.. What do you mean by "the custom one when used to run by IDE(eclipse)"? : This mean that I have added resources folder in my classpath through eclipse (an IDE) .So when I try to run the story driver in eclipse via Junit test, some how , the resources folder data is getting read by eclipse . As I put changed FTL file in resources , when the report is getting generated in target\jbehave\view , it's getting generated as a custom one as I made changes in FTL file. But when I try to do mvn test from command promt, the report is getting generated in target\jbehave\view but again somehow maven could not read the FTL file placed inside resources folder hence default report every time has been getting generated... I am placing my Entire POM structure for further reference...I am sorry as length of mail now will increase beyond limit. 4.0.0 com.proejct value .project value project value 0.0.1-SNAPSHOT JBehave Stories 4.0-beta-3 3.5.4 3.1.1 2.31.0 . src/main/java/com/CustomPackage/projectName/configuration QA enviornment name Smoke suite name StoryDriver true **/${test.application}StoryDriver.java org.jbehave jbehave-core ${jbehave.core.version} org.apache.maven.plugins maven-resources-plugin 2.6 org.jbehave.web jbehave-web-selenium ${jbehave.web.version} org.jbehave jbehave-core ${jbehave.core.version} resources zip org.jbehave.site jbehave-site-resources ${jbehave.site.version} zip org.seleniumhq.selenium selenium-java ${selenium.version} junit junit 3.8.1 test org.testng testng 6.8 src/main/java true **/*.java src/main/java true src/main/resources **/*.ftl true org.apache.maven.plugins maven-compiler-plugin 2.1 1.5 1.5 org.jbehave jbehave-maven-plugin ${jbehave.core.version} unpack-view-resources process-resources unpack-view-resources embeddable-stories test ${embeddables} true false 1 3600 ${basedir}/test-output ${meta.filter} java.awt.headless true run-stories-as-embeddables org.apache.maven.plugins maven-antrun-plugin 1.1 validate run Please let me know if you need more information. Cheers, Kashu On Sun, May 5, 2013 at 6:40 PM, rfscholte [via Maven] < ml-node+s40175n5754962h63@n5.nabble.com> wrote: > Hi, > > What do you mean by "the custom one when used to run by IDE(eclipse)"? > The maven-resource-plugin will copy all files from src/main/resources to > target/classes, and when using filtering, the ${key} -properties will be > replaced with their matching value. This has been used zillions of times, > > so I can't imagine a bug here. > It seems like you're expecting something else. > > What do you expect? (name the files + folders) > How did you run Maven? > It would help if you gave enough information so we could reproduce it. > > Robert > > > > Op Sun, 05 May 2013 13:59:12 +0200 schreef kashu <[hidden email]>: > > > > Hi, > > > > I tried that option but no success as still report are getting generated > > with old/default format and not the custom one when used to run by > > IDE(eclipse) > > > > src/main/resources > > > > **/*.ftl > > > > true > > > > > > > > I am using Jbehave on top of selenium..giving this as an additional > > information as don't know whether this would be helpful or not. > > > > Any idea why Maven is behaving such a way? Any bug present in maven? > > Awaiting the reply. > > Cheers, > > Kashu > > > > > > On Sun, May 5, 2013 at 1:15 AM, rfscholte [via Maven] < > > [hidden email] > > wrote: > > > >> The default folder for resources, which need to be available on the > >> classpath is: > >> src/main/resources > >> > >> and for java-files: > >> src/main/java > >> > >> using the standard directory layout [1] is by far the easiest way to > >> setup > >> > >> your project. > >> > >> if you still want to keep your own structure and adjust the pom, have a > >> look at the maven-resource-plugin[2], which is responsible for copying > >> files to the classes-folder. > >> > >> Robert > >> > >> [1] > >> > >> > http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html > >> [2] > >> > >> > http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html > >> > >> > >> > >> Op Sat, 04 May 2013 16:49:44 +0200 schreef kashu <[hidden > >> email]>: > >> > >> > >> > What I did is that, I manually added resources folder which had > >> changed > >> > >> > FTL > >> > file in the project folder structure under the path src/main. Now > >> through > >> > eclipse, I right click on and gone to configure build path where I > >> link > >> > resources folder and also created environment variable as well.This > >> was > >> > fruitful as when I tried to run storyDriver.java via Junit, test case > >> was > >> > getting run successfully and custom report were generated due to the > >> > changes > >> > I made in FTL file..but when I try to run through maven , the > >> resources > >> > folder data was not at all getting picked up/read hence no custom > >> report > >> > >> > got > >> > generated.. > >> > can somebody please suggest how I can make it read the resources > >> folder > >> > through maven?I mean , I am not an expert in Maven so what I did in > >> > eclipse > >> > for reading resources folder, how I can do the same in POM file? > >> > > >> > Cheers, > >> > kashu > >> > > >> > > >> > > >> > -- > >> > View this message in context: > >> > > >> > http://maven.40175.n5.nabble.com/How-to-read-new-Folder-data-tp5754909.html > >> > Sent from the Maven - Users mailing list archive at Nabble.com. > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: [hidden > >> email] > >> > For additional commands, e-mail: [hidden > >> email] > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [hidden > >> email] > >> For additional commands, e-mail: [hidden > >> email] > >> > >> > >> > >> ------------------------------ > >> If you reply to this email, your message will be added to the > >> discussion > >> below: > >> > >> > http://maven.40175.n5.nabble.com/How-to-read-new-Folder-data-tp5754909p5754938.html > >> To unsubscribe from How to read new Folder data, click > >> here< > > >> . > >> NAML< > http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > > >> > > > > > > > > > > -- > > View this message in context: > > > http://maven.40175.n5.nabble.com/How-to-read-new-Folder-data-tp5754909p5754960.html > > > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://maven.40175.n5.nabble.com/How-to-read-new-Folder-data-tp5754909p5754962.html > To unsubscribe from How to read new Folder data, click here > . > NAML > -- View this message in context: http://maven.40175.n5.nabble.com/How-to-read-new-Folder-data-tp5754909p5754967.html Sent from the Maven - Users mailing list archive at Nabble.com. ------=_Part_20876_14921713.1367767873760--