Re: Failing to compile flex project using Maven

2011-08-26 Thread sarath.learning
Thanks Wayne. I corrected that mistake. Now i am getting other error. [DEBUG]jgoogleanalytics:jgoogleanalytics:jar:0.2:compile [DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent: null] [ERROR] The build could not read 1 project - [Help 1]

Re: Breaking a circular dependency on test utilities

2011-08-26 Thread Anders Hammar
Yep, I've run into a similar thing. In my case the tests were using classes in my core project, which would have been solvable by implementing interfaces (in a separate project). So both the tests artifact and the core artifact would then have a dependency to the core-api artifact. But you know

Re: Jar plugin issue

2011-08-26 Thread Anders Hammar
I get worried when I see something like ${project.basedir}/../blabla Never EVER walk outside of your Maven project! A Maven project should be self-contained. /Anders On Fri, Aug 26, 2011 at 06:34, Stephen Coy st...@resolvesw.com wrote: Resources are copied into place by the

Re: Multi modules and profiles

2011-08-26 Thread Stephane-3
Sorry, I should have said right from the start that yes indeed I fisrt moved (cut and pasted) the profile from the parent pom to the core child one. I'm using profiles to test either against the live HSQL database, or against a MySQL one. The mysql-test profile is to test the dao layer, layer

Re: Multi modules and profiles

2011-08-26 Thread Wayne Fay
The mysql-test profile is to test the dao layer, layer that is found in the core module. So, this mysql-test profile should sit in the core pom file. Otherwise, some of this profile properties would not be found in another view module. So remind us again, what is the problem you are trying

Re: Multi modules and profiles

2011-08-26 Thread Stephen Connolly
I am wondering if the OP is hitting the must have a named profile in the aggregation root that I have observed, but not determined whether it is a bug or a feature. If I have a multi-module project and one module 'web' has a profile called run. mvn -Prun clean install -f web/pom.xml will

WebApp content Info required

2011-08-26 Thread anamika gupta
Hi, I have to include the content of htdocs folder but not htdocs in my war file. htdocs path is project.src.main.webapp. Can you please tell me how to do that. My pom.xml is given below:- plugin artifactIdmaven-war-plugin/artifactId

Re: Jar plugin issue

2011-08-26 Thread anamika gupta
Thanks , with your reply problem resolved -- View this message in context: http://maven.40175.n5.nabble.com/Jar-plugin-issue-tp4736854p4737509.html Sent from the Maven - Users mailing list archive at Nabble.com. - To

Re: Jar plugin issue

2011-08-26 Thread anamika gupta
Thanks -- View this message in context: http://maven.40175.n5.nabble.com/Jar-plugin-issue-tp4736854p4737511.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: Breaking a circular dependency on test utilities

2011-08-26 Thread Brian Topping
Hmm, maybe a plugin is in order for this. As I thought about it some, assembly plugin isn't going to do anything to create a POM. Makes sense in hindsight, assembly is for creating distributions and not Maven artifacts. Shade plugin has facilities to generate a POM for the shaded jar which

Scripting

2011-08-26 Thread Eric Kolotyluk
So if you need to actually do something that Maven does not do, for example run a custom program to automatically generate some source code, what do people usually do? * Use a plug-in to run something like Ant or some other scripting tool * Write your own plug-in, or is this overkill for

Re: Scripting

2011-08-26 Thread Brian Topping
A lot of people use antrun, see http://www.nyc.gov/html/oem/downloads/pdf/hurricane_map_english.pdf. I personally do that as a last resort. I personally don't have a problem writing a plugin and adding it to my build. Reactor figures out the build order properly and does the right thing.

Re: Scripting

2011-08-26 Thread Wayne Fay
 * Write your own plug-in, or is this overkill for something really simple? This is the best approach IMO. Even for simple things. You can write your plugin in a variety of languages. Wayne - To unsubscribe, e-mail:

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

2011-08-26 Thread Jason Pyeron
-Original Message- From: Jason Pyeron Sent: Thursday, August 25, 2011 18:59 To: 'Maven Users List' Subject: [maven] RE: [maven] Re: settings.xml boolean values not be honored. snip/ $ svn co http://svn.apache.org/repos/asf/maven/maven-3/trunk $ LOCAL_REPO=`mktemp -d` $ #

Embed project version in archetype

2011-08-26 Thread Michael Bayne
Hi, I'm creating a Maven archetype which generates a project skeleton that will include a dependency on the project from which the archetype originated. For example, the origin project looks like: origin/archetype/... archetype for generating project /core/... core services

Re: Scripting

2011-08-26 Thread Hilco Wijbenga
On 26 August 2011 07:02, Brian Topping topp...@codehaus.org wrote: A lot of people use antrun, see http://www.nyc.gov/html/oem/downloads/pdf/hurricane_map_english.pdf.  I personally do that as a last resort. What does a hurricane map have to do with Ant? :-) This is what I usually do. Using

Re: Scripting

2011-08-26 Thread Brian Topping
On Aug 26, 2011, at 12:13 PM, Hilco Wijbenga wrote: On 26 August 2011 07:02, Brian Topping topp...@codehaus.org wrote: A lot of people use antrun, see http://www.nyc.gov/html/oem/downloads/pdf/hurricane_map_english.pdf. I personally do that as a last resort. What does a hurricane map

weird thread count diff on maven vs command line java

2011-08-26 Thread Yang
I have the following simple code import java.util.concurrent.*; import org.junit.*; /* test whether priorityBlockingQueue provides fairness * */ public class BlahTest { @Test public void blahTest() throws Exception { ExecutorService exec = Executors.newCachedThreadPool();

Re: Scripting

2011-08-26 Thread Eric Kolotyluk
OK, I grok the use of antrun as illustrated below. Is there anything more general than antrun, for example execute some arbitrary commands or script without having to write a plug-n? I'm thinking of a JavaScipt, Groovy or Scala plugin - or am I just dreaming? If not, it might be fun to write

Re: Scripting

2011-08-26 Thread Brian Topping
Oh yah, that's right, there is a Groovy plugin. Another one of those paths that I would use sparingly. (Well actually, on the project I saw it used on, I went through and replaced it immediately.) http://www.ronniealleva.org/index.php/2008/01/23/using-the-groovy-maven-plugin-to-do-magic/ is

Re: weird thread count diff on maven vs command line java

2011-08-26 Thread Stephen Coy
Most likely this is because you're using the maven pid instead of the pid of the forked process running your unit test. Maven forks a subprocess to run your unit tests by default. On 27/08/2011, at 2:43 AM, Yang wrote: I have the following simple code import java.util.concurrent.*;

Re: Breaking a circular dependency on test utilities

2011-08-26 Thread Ansgar Konermann
Am 26.08.2011 04:26, schrieb Brian Topping: The second option I looked at was to create a separate project for the base class and friends, but since the base class depends on classes in this first module, a circular dependency is formed. My take would be to move both the base class and