Re: Multi modules and profiles

2011-08-25 Thread Anders Hammar
Use a text editor and cut 'n paste? Or is this a trick question? I'm guessing there's more to it than this though... /Anders On Thu, Aug 25, 2011 at 04:59, Stephane-3 mittiprove...@yahoo.se wrote: Hello, I have a maven project with different profiles, and I would like it to have several

Re: Multi modules and profiles

2011-08-25 Thread Stephane-3
Sorry Anders, I didn't really understand your message goal.. Do you want me to send some pasted content ? -- View this message in context: http://maven.40175.n5.nabble.com/Multi-modules-and-profiles-tp4732786p4733452.html Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Multi modules and profiles

2011-08-25 Thread Anders Hammar
No, I just don't understand what it is that is a problem. Have you tried moving the profile from the parent pom to the core pom? Doesn't that work? It's often better trying to explain what you want to accomplish instead of trying to get help for the (possibly) wrong solution you have. I'm not

test-jar classifier

2011-08-25 Thread Adrien Ruffie - Petals Link
Hello, I have specify a classifier example bdd for my project, so when I execute mvn package, I can found myproject-Version-Myclassifier.jar Into .m2 [INFO] Building jar: /home/aruffie/Workspace/Product/acceptance/petals-bc-mail/target/myproject-3.2-SNAPSHOT-bdd.jar [INFO] [jar:test-jar

Re: test-jar classifier

2011-08-25 Thread Jeff MAURY
Look at the jar plugin documentation. The jar:test-jar goal does not support classifier, as jar:jar. Regards Jeff MAURY On Thu, Aug 25, 2011 at 11:00 AM, Adrien Ruffie - Petals Link adrien.ruf...@petalslink.com wrote: Hello, I have specify a classifier example bdd for my project, so when I

RE: Surefire plugin: aggregator project - aggregate test results from all children?

2011-08-25 Thread Kristian Rosenvold
Not really. P.S: If you added some copy-task to the root project that copied all the surefire-reports to the root project you could run surefire-reports over the aggregate. But you're not going to get Tests run: 4, Failures: 0, Errors: 0, Skipped: 0 Kristian on., 24.08.2011 kl. 17.06 +,

XML files are not getting included while compiling the source

2011-08-25 Thread anamika gupta
I have many XML files in src/main/java directory and its sub directory. When I run mvn compile, these XML files will not be copied to the target/classes -- View this message in context:

Re: XML files are not getting included while compiling the source

2011-08-25 Thread Benson Margulies
On Thu, Aug 25, 2011 at 7:37 AM, anamika gupta anam...@hcl.com wrote: I have many XML files in src/main/java directory and its sub directory. When I run mvn compile, these XML files will not be copied to the target/classes XML files belong in src/main/resources, not src/main/java. -- View

Re: XML files are not getting included while compiling the source

2011-08-25 Thread anamika gupta
Can you please tell me what entries to do in the pom.xml file so that it includes the .xml file -- View this message in context: http://maven.40175.n5.nabble.com/XML-files-are-not-getting-included-while-compiling-the-source-tp4734115p4734142.html Sent from the Maven - Users mailing list archive

Re: XML files are not getting included while compiling the source

2011-08-25 Thread Benson Margulies
On Thu, Aug 25, 2011 at 7:44 AM, anamika gupta anam...@hcl.com wrote: Can you please tell me what entries to do in the pom.xml file so that it includes the .xml file None. You just put them in src/main/resources. If you insist on doing this the hard way, read up on the resources element of the

RE: XML files are not getting included while compiling the source

2011-08-25 Thread Yuvaraj Vanarase
All resources should be under src/main/resources. Well, however for any odd case one can use resources plug-in to explicitly copy/exclude resources OR for War packaged project webresources configuration should also do the same.

Failing to compile flex project using Maven

2011-08-25 Thread sarath.learning
Hi All, I am new to maven. I am trying to compile flex 4.1 project. the POM.xml file is shown below. ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

RE: Failing to compile flex project using Maven

2011-08-25 Thread Jim McCaskey
Hi there, I'll preface this with we use a much older version of the flexmojo's, and we've long since archived the bits we use in our local Maven repository, but here's a shot... Looking at the repository here: https://repository.sonatype.org/content/groups/public I don't see all the flex

Re: Multi modules and profiles

2011-08-25 Thread Wayne Fay
Sorry Anders, I didn't really understand your message goal.. Do you want me to send some pasted content ? From your original email: Before adding the other view module, I would like to know how I can move some of the content of a profile from the parent pom.xml file into the pom.xml file of

Re: Failing to compile flex project using Maven

2011-08-25 Thread Wayne Fay
Your problem is the extra character in your dependency nodes:                                                version4.1.0.16076/version                                                version4.1.0.16076/version You should have been able to figure this out from the error log: [ERROR]

Re: OpenSymphony repository causing problems

2011-08-25 Thread Wayne Fay
Apart from upgrading all our dependencies to something that doesn't have the OpenSymphony repository in its pom (which we're currently doing) is there anything else we can do in the meantime to block this repository? We're working on Open Source projects so solutions that work only in our

Re: Create Archetype from Project

2011-08-25 Thread Luk255
Hey! I'm very sorry, this is gonna sound really strange. I tried again to create the archetype by first deleteing it from the repository (which I didn't do the first time, I assure you) and then to generate it again, and suddenly it worked. I really don't know why, but I'm glad it works now. All

Re: Reactor:resume goal

2011-08-25 Thread jaybytez
So two questions about this 1) When doing the following command, do you use the [] because I added them and then removed them and both times it thought these arguments were part of the path. mvn clean install --resume-from [groupId:artifactId] 2) When doing the following command, I tried

settings.xml boolean values not be honored.

2011-08-25 Thread Jason Pyeron
When I set the values against the default and I do not have a user settings.xml, the system creates a default settings. This in effect takes precedence, and since it cannot be determined if the value was specified or was defaulted, the default user settings clobbers the system settings.xml values.

Re: settings.xml boolean values not be honored.

2011-08-25 Thread Benson Margulies
On Thu, Aug 25, 2011 at 6:10 PM, Jason Pyeron jpye...@pdinc.us wrote: When I set the values against the default and I do not have a user settings.xml, the system creates a default settings. This in effect takes precedence, and since it cannot be determined if the value was specified or was

Re: OpenSymphony repository causing problems

2011-08-25 Thread Lars Francke
You can apply this same technique (using the repo id in the mirrorOf value) to block other sites just as easily. Thank you very much for your reply. I didn't think of this solution. Seems like a great way to block a repository and I'll let the rest of the team know about this solution. It

RE: [maven] Re: settings.xml boolean values not be honored.

2011-08-25 Thread Jason Pyeron
-Original Message- From: Benson Margulies [mailto:bimargul...@gmail.com] Sent: Thursday, August 25, 2011 18:21 To: Maven Users List Subject: [maven] Re: settings.xml boolean values not be honored. On Thu, Aug 25, 2011 at 6:10 PM, Jason Pyeron jpye...@pdinc.us wrote: When I set

Breaking a circular dependency on test utilities

2011-08-25 Thread Brian Topping
Hi all, I have typical module with tests, but the tests inherit from a base class. This base class (and a few related classes/resources) need to be generated as a separate jar so they can be used as a test scope dependency. It initially seems like it would be an easy enough task for

Re: OpenSymphony repository causing problems

2011-08-25 Thread Wayne Fay
It would still be nice if we were able to block it on a URL and not a id basis and even better would be a way to do it without changing settings.xml. But this'll do for now. I would hope that this isn't something that people are needing to do very often. So the fact that it is id-based rather

Jar plugin issue

2011-08-25 Thread anamika gupta
Hi, I am using maven-jar-plugin-2.3.2, now i am trying to include 2 files from other folder but now when it is creating the jar, it ends up with only with only a few files in it (just the stuff in META-INF). The file that I included is not in the jar either not the classes. pom.xml is:-

Re: Jar plugin issue

2011-08-25 Thread Stephen Coy
Resources are copied into place by the maven-resources-plugin. You need to configure: build resources resource...resource ... resources /build in order to accomplish what you're trying to do here. If these are source files, then life would be