Filter not working

2009-06-28 Thread Grant Rettke
This might be the easiest filter question you have ever seen... I want to filter a properties file located related to the pom under /src/main/conf/db2was/com/silvermoongroup/fsa/jndi.properties, so I added the following entry: src/main/conf/db2was

This might be the easiest filter question you have ever seen

2009-06-26 Thread Grant Rettke
This might be the easiest filter question you have ever seen... I want to filter a properties file located related to the pom under /src/main/conf/db2was/com/silvermoongroup/fsa/jndi.properties, so I added the following entry: src/main/conf/db2was

Re: release:perform of an EAR gives error with maven-source-plugin:2.1

2009-05-04 Thread Grant Rettke
On Mon, May 4, 2009 at 2:01 AM, Martin Höller wrote: > On 30 Apr 2009, Grant Rettke wrote: > >> Does the workaround on that page work? > > Which workaround? Do you mean the patch attached to the MSOURCES-44 > issue? I didn't test it but I had a look at the patch and I wo

Clarification on dependencyManagement

2009-04-30 Thread Grant Rettke
Hi folks, When you use the dependencyManagement section in a parent POM, its purpose is to allow for children to optionally specify those entries dependencies, without a version number. It is a convenience. When you specify them, though, are you making those entries serve as dependencies for the

Re: How to conditionally classes from the generated JAR?

2009-04-30 Thread Grant Rettke
On Wed, Apr 22, 2009 at 2:21 PM, Stephen Connolly wrote: > put the exclusion in a profile I was hoping to exclude by default, and have the profile include: but I see that exclude trumps include! :) I will have to work around this.

Re: release:perform of an EAR gives error with maven-source-plugin:2.1

2009-04-30 Thread Grant Rettke
Does the workaround on that page work? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Re: Problem with parent-pom and referencing version classifier

2009-04-30 Thread Grant Rettke
On Wed, Apr 29, 2009 at 10:26 AM, Nick Stolwijk wrote: > You have to specify the classifier in the dependencymanagement section > as well as in the dependency section as it identifies the dependency. Why do you have to put it both places? By doing so, won't the children inherit the dependency, a

Re: Is there a way to exclude a inherited dependency?

2009-04-30 Thread Grant Rettke
On Thu, Apr 30, 2009 at 7:53 AM, Jan Torben Heuer wrote: > I'd go another way: Create some kind of -commons artifact and > depend on it. If many artifacts share the same dependency, there is often > more redundant code that can be refactored this way and makes the whole code > cleaner. This seems

Re: Version Number Inheritance

2009-04-29 Thread Grant Rettke
On Wed, Apr 29, 2009 at 9:48 PM, Wendy Smoak wrote: > On Wed, Apr 29, 2009 at 7:39 PM, Grant Rettke wrote: >> On Wed, Apr 29, 2009 at 2:58 PM, Nick Stolwijk >> wrote: >>> Just put the version number in the parent and have the child poms >>> refer to the version

Re: Version Number Inheritance

2009-04-29 Thread Grant Rettke
On Wed, Apr 29, 2009 at 2:58 PM, Nick Stolwijk wrote: > Just put the version number in the parent and have the child poms > refer to the version. When you omit the version in a child module, it inherits that of the parent, right? --

Re: dependency to run jetty on a dependent project

2009-04-29 Thread Grant Rettke
On Wed, Apr 29, 2009 at 6:19 PM, ZsJoska wrote: > Could not convince jetty to start in the generate-sources phase... That passes my current bounds of knowledge :). - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For

Re: Maven2 ressource processing - editing xml file

2009-04-29 Thread Grant Rettke
On Wed, Apr 29, 2009 at 7:00 AM, Weichselbaumer Michael (MWE 4170) > I need to edit some configuration files which are in xml-format during > building with maven. > Some values, that change from build to build (e.g. buildnumber) need to > be written to the xml-file (value for attribute) - is there

Re: dependency to run jetty on a dependent project

2009-04-28 Thread Grant Rettke
On Tue, Apr 28, 2009 at 8:52 AM, ZsJoska wrote: > How could I make the wsimport goal from myProject-wsclient to depend from > the jetty:run goal in the myProject-ws module. Why not create a POM that references these two projects a sub-modules. You can initiate the goals in the order that you des

Re: dependency to run jetty on a dependent project

2009-04-27 Thread Grant Rettke
On Mon, Apr 27, 2009 at 1:48 PM, ZsJoska wrote: > Thanks for your answer but is that possible to attach to the code-generation > (i think is more suitable) phase the jetty:run goal from/for another > pom.xml? You can attach that goal to any phase you wish. ---

Re: dependency to run jetty on a dependent project

2009-04-27 Thread Grant Rettke
> How could I do this automatically? Would attaching the jetty:run goal to the pre-test phase solve your problem? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apac

Re: [maven-surefire-plugin] test in another project

2009-04-26 Thread Grant Rettke
On Sun, Apr 26, 2009 at 5:22 PM, Esteban Dugueperoux wrote: > It is difficult to manage tests in a separate maven project with surefire? My understanding is that it is not difficult. You simply add dependencies in your test project POM and you are set. --

Re: [maven-surefire-plugin] test in another project

2009-04-26 Thread Grant Rettke
Why don't you put your tests for the model project within the model project itself? That is the "Maven" way to do it. On Sun, Apr 26, 2009 at 1:25 PM, Esteban Dugueperoux wrote: > Hi, > > I have a EMF (http://www.eclipse.org/modeling/emf/) project composed of > several sub-projects : >   - model

Re: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-25 Thread Grant Rettke
Understood. Thanks! On Fri, Apr 24, 2009 at 9:20 AM, Stan Devitt wrote: > The  <[CDATA[ ]]>  bracketing simply tells the xml parser to read the > enclosed text as raw text.  This allows you to use embedded characters like < > and >, and is quite handy when the text is code fragments which

Re: Is it possible to add files to an archetype from other directories?

2009-04-25 Thread Grant Rettke
On Fri, Apr 24, 2009 at 4:24 AM, mraible wrote: > I'd like to hand-craft an archetype that consists of a single pom.xml and > pulls it's sources from other modules/directories in my project. Is that > possible? That seems to go against the grain of Maven. Does Maven make stuff like this easy? -

Re: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-23 Thread Grant Rettke
On Thu, Apr 23, 2009 at 4:13 PM, Martin Gainty wrote: > CDATA is character data > instructs the parser to leave everything inside [] alone > http://en.wikipedia.org/wiki/CDATA The demo code doesn't use it. Have you found that the code gets mucked with? ---

Re: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-23 Thread Grant Rettke
On Thu, Apr 23, 2009 at 11:03 AM, Stan Devitt wrote: >           >               org.codehaus.groovy.maven >               gmaven-plugin >               >                 >                 generate-resources >                 >                   execute >                 >                 >  

Re: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-23 Thread Grant Rettke
On Thu, Apr 23, 2009 at 7:43 AM, Thomas Marti wrote: > I was very suprised that I haven't been able to find plugins to achieve a > few simple tasks like merging/concating files together, replacing random > strings (that aren't properties) in resources, and finally sorting files. Necessity is the

Re: How to conditionally classes from the generated JAR?

2009-04-22 Thread Grant Rettke
On Wed, Apr 22, 2009 at 2:21 PM, Stephen Connolly wrote: > put the exclusion in a profile Thanks. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

How to conditionally classes from the generated JAR?

2009-04-22 Thread Grant Rettke
Hi, By default, we need to exclude some classes from inclusion in the JAR file. It looks like in jar:jar I can use the excludes property to specify this. The thing is that, sometimes we do want to include these classes. I am wondering what is the best way to allow for condition inclusion of these

Re: A style question about testing

2009-04-22 Thread Grant Rettke
Hi David and Stephen, Thank you for the feedback! Modules should have their tests with them, that is the ideal lifecycle and nothing would add value in the path that I was wondering. I believe that my train of though largely reflected a lack of internalization of the "Maven way" of doing things.

Re: Sharing properties between modules

2009-04-22 Thread Grant Rettke
> And each individual module should have filtering on right? If you want to share them, what would you be filtering out? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@mav

A style question about testing

2009-04-20 Thread Grant Rettke
Hi folks, I've got a question for you about managing unit testing. The situation that we are in is that right now, we have a single module 'Products' that has a lot of classes in it. We know that eventually we will refactor it into multiple modules (one for each Product), but at this moment we ha

Re: eclipse:eclipse suddenly adding including="**/*.java" to .classpath

2009-04-16 Thread Grant Rettke
On Thu, Apr 16, 2009 at 3:29 PM, Siarhei Dudzin wrote: > Convention is convention because it's not a rule :) This also means you > don't have to follow it but then it will cost you time/effort/extra > configuration (you name it)... Thanks for clarifying! :) --

Re: eclipse:eclipse suddenly adding including="**/*.java" to .classpath

2009-04-16 Thread Grant Rettke
On Thu, Apr 16, 2009 at 12:20 PM, Martijn Dashorst wrote: > On Thu, Apr 9, 2009 at 7:58 AM, Arnaud HERITIER wrote: >> 1) The Maven convention and good practice is to put ressources files like >> *.txt in src/main/resources. > > But *FORCING* this 'convention' on the world is a whole other thing.

Re: What is the best Maven book (or material) for new users?

2009-04-15 Thread Grant Rettke
per~ > > Iprofs BV. > Claus Sluterweg 125 > 2012 WS Haarlem > www.iprofs.nl > > > > On Thu, Apr 16, 2009 at 1:04 AM, Grant Rettke wrote: >> What is the best Maven book (or material) for new users? >> >> I am tasked with decomposing an existing system tha

What is the best Maven book (or material) for new users?

2009-04-15 Thread Grant Rettke
What is the best Maven book (or material) for new users? I am tasked with decomposing an existing system that contains 21 POM files, so, I have a lot of work ahead of me and I'm looking for the best resource possible. - To unsubs

Is there a mirror of the website (documentation) that includes the plugins documentation?

2009-04-14 Thread Grant Rettke
The Maven documentation (website) can be downloaded here: http://maven.apache.org/maven-site-1.0-site.jar but it seems to exclude the documentation for all of the plugins. Is there a mirror of the website (documentation) that includes the plugins documentation? --