Re: How to read new Folder data
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 : 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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to read new Folder data
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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Automatically remove version overrides from child POMs
Hello Robert, The analyze dependency management goal of the dependency plugin[1] can fail the build if there are any dependency management overrides. You can run that with a CI server on al of your builds and discuss the results with the teams. [1] https://maven.apache.org/plugins/maven-dependency-plugin/analyze-dep-mgt-mojo.html Hth, Nick Stolwijk ~~~ Try to leave this world a little better than you found it and, when your turn comes to die, you can die happy in feeling that at any rate you have not wasted your time but have done your best ~~~ Lord Baden-Powell On Sat, May 4, 2013 at 8:39 AM, Mirko Friedenhagen wrote: > Hello Robert, > > you could use the enforcer-plugin to enforce specific versions, then at > least you have an easy way to identify those projects. We exclude all > versions of spring and then include the latest version again, e.g. > > Regards Mirko > -- > Sent from my mobile > On May 4, 2013 12:54 AM, "Enyedi, Robert" wrote: > > > Hi, > > > > We're using a parent POM which manages the versions of tens of > > dependencies. I occasionally encounter modules within my group that > > override some of those managed versions. > > > > Assuming the overrides are not legit, is there an automatic way to remove > > them from the child POMs? I was hoping that the > > versions:update-child-modules mojo would help, but it doesn't seem to do > > what I need. > > > > Thanks, > > Robert > > > > >