Re: Why do running modules in parallel take longer to execute than running them in sequence?

2014-10-09 Thread laredotornado-3
Kristian, Your 'actually make the "argLine" command work' comment is killing me. What are you talking about? Everything I have read indicates that the correct way to set memory for surefire/failsafe plugins is to have this in the configuration -- "-Xmx4096m". Laird, Thanks for your blog post.

Re: Why do running modules in parallel take longer to execute than running them in sequence?

2014-10-09 Thread laredotornado-3
> I suspect you're simply trashing your os or the VM. Look at disk/memory usage indicators OS level Is there any way to get the modules I'm running in parallel to use different heaps or VMs so they are not stepping on each other? I allocated 4 GB of memory and my JUnit tests aren't doing taht mu

Re: Why do running modules in parallel take longer to execute than running them in sequence?

2014-10-08 Thread laredotornado-3
Hi, Karl, to answer your question, I only have one processor on my MacBook Pro (10.9.5), which is a 2.2 GHz Intel Core i7. I haven't set "forkCount" in either my surefire or failsafe plugin (configs listed in question) because I was under the impression that the "-T" option took care of that. Jö

Why do running modules in parallel take longer to execute than running them in sequence?

2014-10-08 Thread laredotornado-3
Hi, I’m using Maven 3.2.3, Spring 3.2.11.RELEASE, JUnit 4.11, Java 6, and the Surefire/Failsafe 2.17 plugins. I’m trying to figure out why when running a couple of modules in parallel, it takes much longer than when I run them individually. I’m trying to figure out ways to speed up my build. I

Re: Why is dependency:analyze lying to me?

2014-02-13 Thread laredotornado-3
Hi, This may fall into the “How the hell is Maven supposed to know?” category, but one of the dependencies that dependency:analyze lists when I run it on my WAR project is [WARNING] Unused declared dependencies found: … [WARNING] org.springframework.security:spring-security-taglibs:jar:3.1.1.R

Why is dependency:analyze lying to me?

2014-02-11 Thread laredotornado-3
Hi, I’m using Maven 3.1.1 on Mac 10.9.1. When I ran “mvn dependency:analyze” on my project, I got results that included: [WARNING] Unused declared dependencies found: … [WARNING]junit:junit:jar:4.11:test So I commented out the above junit dependency in my pom (declar

RE: Work-around to the Maven restriction on AND condition profile activation?

2014-02-03 Thread laredotornado-3
Thanks for that ingenious solution. It worked perfectly. -- View this message in context: http://maven.40175.n5.nabble.com/Work-around-to-the-Maven-restriction-on-AND-condition-profile-activation-tp5782919p5783107.html Sent from the Maven - Users mailing list archive at Nabble.com. --

Work-around to the Maven restriction on AND condition profile activation?

2014-01-31 Thread laredotornado-3
Hi, I’m using Maven 3.1.1 and Java 1.6. From reading over posts online, it seems a profile cannot be activated based on two conditions (i.e. there is no such thing as logical AND in Maven profile activation). So I was wondering if someone knows of a work-around for what I want to do. I want to

Possible to set number of threads within a profile?

2013-11-27 Thread laredotornado-3
Hi, I'm using Maven 3.1.1. Normally if you want to try and run builds in parallel you can run mvn -T 4 clean install Is there a way you can figure the "-T 4" to be automatically run if someone specifies a profile, e.g. mvn -P dev clean install ? Thanks, - Dave -- View this message

Re: Is it possible to release a child module that isn't listed in the parent's list of modules?

2013-11-26 Thread laredotornado-3
Basically. I had to have both a parent version and a regular version subco org.mainco.subco 55.0.0 myproject http://maven.apache.org 55.0.0-SNAPSHOT and then for my dependent modules I could use the ${pro

Re: Is it possible to release a child module that isn't listed in the parent's list of modules?

2013-11-19 Thread laredotornado-3
Hi, I tried changing the snapshot to be a later version mvn -B -DdevelopmentVersion=52.0.1-SNAPSHOT -DreleaseVersion=52.0.0 -Dusername=* -Dtag=myproject-52.0.0 -DskipTests -P prod -Dresume=false -DdryRun=true org.apache.maven.plugins:maven-release-plugin:2.4.2:prepare but I still get the

Re: Is it possible to release a child module that isn't listed in the parent's list of modules?

2013-11-19 Thread laredotornado-3
I hadn't specified a Maven release version anywhere, so I assume you meant like this mvn -B -DdevelopmentVersion=52.0.0-SNAPSHOT -DreleaseVersion=52.0.0 -Dusername=* -Dtag=myprojectt-52.0.0 -DskipTests -P prod -Dresume=false -DdryRun=true org.apache.maven.plugins:maven-release-plugin:2.4.2

Re: Is it possible to release a child module that isn't listed in the parent's list of modules?

2013-11-18 Thread laredotornado-3
Hi, THe problem is when I use the released parent, by specifying subco org.mainco.subco 52.0.0 I get the below error ("You don't have a SNAPSHOT project in the reactor projects list"). Someone said to me this is because I'm trying to do a release of

Is it possible to release a child module that isn't listed in the parent's list of modules?

2013-11-18 Thread laredotornado-3
Hi, I'm using Maven 3.0.3 and trying to use the Maven release plugin to do a release of a child module, which inherits from a parent pom. The parent has been released but does not include the child in its module list, and won't be able to in the short term. Is it possible to do a release of the

Any way to generically specify a release version in a child POM when using the Maven release plugin?

2013-08-20 Thread laredotornado-3
Hi, I'm using Maven 3.0.3. I have a multi-module project and want to use the Maven release plugin (through Jenkins). When running release:prepare, the process dies with the error Executing Maven: -B -f /scratch/jenkins/workspace/subco/parent/pom.xml -amd -pl org.mainco.subco:childModul

How do I de-activate a profile if another profile is specified?

2013-08-08 Thread laredotornado-3
Hi, I'm using Maven 3.0.3. I want to activate a profile (profileA) at all times unless the user specifically requests profile B on the command line (e.g. "-P profileB"). However, right now both profiles are active when I run mvn clean install -P profileB and I can't figure out why. He

Re: Having trouble using Maven release plugin to deploy artifact to a dav repo

2013-06-28 Thread laredotornado-3
Hi, Per your suggestion, I added a developerConnection alongside the and upgraded to the 1.0 connector, but still ran into the same error. Note that the distrubtionManagemetn is next to scm, not inside. Here is the updated pom ... http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.

Having trouble using Maven release plugin to deploy artifact to a dav repo

2013-06-28 Thread laredotornado-3
Hi, I'm using Maven 3.0.3 with SVN 1.7. I'm trying to use the Maven release plugin to deploy my artifact, but I repeatedly run into the error, "No connector available to access repository" when running mvn -e release:prepare release:perform I have included the connector in my pom, addin

Re: Can Maven recover from OutOfMemoryErrors during JUnit test runs?

2013-05-03 Thread laredotornado-3
Thanks for the replies. Andreas, I added the reuseForks option and combined wiht an increased heap size everything runs great. Kristian, We'll eventually be running our app on Jboss 7.1.1 with Java 6. Is the bug you mention somethign Sun addressed in newer JDKs? - Dave -- View this message

Can Maven recover from OutOfMemoryErrors during JUnit test runs?

2013-05-03 Thread laredotornado-3
Hi, I'm using Maven 3.0.3. Is it possible to configure Maven or the Surefire plugin to recover from OutOfMemoryErrors? I notice with my JUnit tests, if one test from file A fails with an "OutOfMemoryError," all subsequent tests in my Maven Junit run (even those from different files) fail with Ou

Possible to write a boolean expression in Maven?

2013-04-03 Thread laredotornado-3
Hi, I'm using Maven 3.0.3. Within one of my plugins, I have ${skipExecution} in which I define "skipExecution" within a profile. However, what I would really like to say is ${skipExecution} || ${maven.test.skip} but I'm not sure how to say that in Maven. Any ideas? Thanks, - Dave -- Vie

Re: Can I force a plugin to not run during parent pom execution phase?

2013-04-02 Thread laredotornado-3
Thanks to all for your answers. Alejandro, tried yours and it worked. Loved the fact it didn't require any configurations in the child projects. Rock on, - Dave -- View this message in context: http://maven.40175.n5.nabble.com/Can-I-force-a-plugin-to-not-run-during-parent-pom-execution-phase

Can I force a plugin to not run during parent pom execution phase?

2013-04-02 Thread laredotornado-3
Hi, I'm using Maven 3.0.3. I've included this plugin in a profile in my parent pom, however, when I run my parent pom, I don't want this to be executed as part of the parent pom being built (I do want it executed for each of the child modules). How can I make this plugin not run during the paren

Maven ear plugin is telling me I don't have a dependency, but I do ... ideas?

2012-08-08 Thread laredotornado-3
Hi, I'm using Maven 3.0.3 and trying to use the maven-ear-plugin (2.7). When building the ear project, I'm getting the error, "[ERROR] Failed to execute goal org.apache.maven.plugins:maven-ear-plugin:2.7:generate-application-xml (default-generate-application-xml) on project orders-ear: Artifact[a

Why is Maven trying to download this log4j jar?

2012-08-06 Thread laredotornado-3
Hi, I'm using Maven 3.0.3. Within the last hour, this started happening, and I can't figure out why. When I run "mvn dependency:tree" or "mvn clean compile", I get this error -- "Access denied to: http://repository.jboss.org/maven2/apache-log4j/log4j/1.2.14/log4j-1.2.14.pom, ReasonPhrase:Forbidd

Re: How do I make a dependency both system and test scope?

2012-02-10 Thread laredotornado-3
If you're really interested in why we're not deploying it to a local repo it is because the red tape and bureaucracy in our big organization prevents things from getting done in a timely manner. We submitted that request a couple of weeks ago but haven't gotten any replies from the appropriate tea

How do I make a dependency both system and test scope?

2012-02-10 Thread laredotornado-3
Hi, I'm using Maven 3.0.3. For bizarre reasons, our company has blocked access to a certain Maven repo, so I have chosen to load the dependency through the inclusion org.openqa.selenium.server selenium-server

Possible to limit enforcer plugin to a lifecycle phase?

2011-12-07 Thread laredotornado-3
Hi, I'm using Maven 3.0.3. If my Maven run includes the "verify" phase, I want to check to see if certain properties were included at the command line. I've found the Maven enforcer plugin to be useful for this purpose (guaranteeing things are included and conform to a certain value), but I can'

How do I configure only certain tests to run during my integration-test phase?

2011-11-22 Thread laredotornado-3
Hi, I'm using Maven 3.0.3. Is it possible to exclude some tests to be run during the regular test phase and instead have those tests run during the integration-test phase? I have the below surefire configuration in my pom.xml ... maven-su

Trouble getting antrun plugin to run in package phase

2011-10-25 Thread laredotornado-3
Hi, I'm using Maven 3.0.3. I'm trying to copy my WAR file to a container before I run integration tests. So I thought I'd bind the copying of the WAR file in the package phase like so maven-antrun-plugin

Re: Getting 401 error when trying to use Maven Tomcat plugin

2011-10-13 Thread laredotornado-3
Below is the complete settings.xml file. I'm on Windows, and this file is located in c:/apache-maven-3.0.3/conf/settings.xml . Should it be located somewhere else? - Dave Begin settings.xml == http://maven.apache.org/SETTINGS/1.0.0";

Re: Getting 401 error when trying to use Maven Tomcat plugin

2011-10-12 Thread laredotornado-3
Thanks, but sadly changing the URL to point what you suggest resulted in the same 401 error when I ran "mvn tomcat:deploy" - Dave -- View this message in context: http://maven.40175.n5.nabble.com/Getting-401-error-when-trying-to-use-Maven-Tomcat-plugin-tp4892167p4895394.html Sent from the Maven -

Re: Getting 401 error when trying to use Maven Tomcat plugin

2011-10-11 Thread laredotornado-3
Hi, I did add each of those roles to the "tomcat" user in the tomcat-users.xml file ... Any other ideas or is there something wrong with the above? - Dave -- View this message in context: http://maven.40175.n5.nabble.com/Getting-401-error-when-trying-to-use-Maven-Tomcat-plugin

Getting 401 error when trying to use Maven Tomcat plugin

2011-10-11 Thread laredotornado-3
Hi, I'm using maven 3.0.3 with the Maven-Tomcat (1.1) plugin. I'm having trouble deploying my WAR file to a running Tomcat (6.0.33) instance using mvn clean install tomcat:deploy which spits out the 401 error below. My Tomcat plugin configuration is as follows ...

Re: How can I tell if I'm building the parent or a module?

2011-09-12 Thread laredotornado-3
That is a great idea and works perfectly. Thanks, - Dave -- View this message in context: http://maven.40175.n5.nabble.com/How-can-I-tell-if-I-m-building-the-parent-or-a-module-tp4795683p4796010.html Sent from the Maven - Users mailing list archive at Nabble.com. ---

How can I tell if I'm building the parent or a module?

2011-09-12 Thread laredotornado-3
Hi, I'm using Maven 3.0.3. Within an antrun execution, how can I tell if I'm building a parent or building one of the modules that inherits from the parent? This antrun execution is located within the parent pom.xml file. Thanks, - Dave -- View this message in context: http://maven.40175.n5.n

Trouble getting antrun plugin to run

2011-09-08 Thread laredotornado-3
Hi, I'm using Maven 3.0.3. I have the below in the section of my pom. However, when I run "mvn clean deploy" the echo message is never printed out. Does anyone know why my antrun plugin isn't running? mav

RE: Trouble setting Boolean property in custom Mojo

2011-08-09 Thread laredotornado-3
Hi Robert, I really appreciate your help with this. What you suggested worked perfectly. All the best, - Dave -- View this message in context: http://maven.40175.n5.nabble.com/Trouble-setting-Boolean-property-in-custom-Mojo-tp4677954p4682047.html Sent from the Maven - Users mailing list archive

RE: Trouble setting Boolean property in custom Mojo

2011-08-08 Thread laredotornado-3
Hi, I didn't find anything about doclets in the link and am still lost. My plugin config mirrors the example. What's more bizarre is that within my plugin project when I test my config, it works fine. My test config file is … http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/200

Trouble setting Boolean property in custom Mojo

2011-08-08 Thread laredotornado-3
Hi, I'm using Maven 3.0.3 and trying to develop my own Maven plugin. I'm having trouble getting my configuration set properly. I want to set a member field that is a Boolean. In my Mojo, I have public class SeleniumTestMojo extends AbstractMojo { private String results; p

Trouble configuring an additional context path for embedded Tomcat

2011-08-04 Thread laredotornado-3
Hi, I'm using Maven 3.0.3 with the Tomcat plugin. I have a directory outside of my war that contains static assets. It will have a different context path than the default war. How do I configure my plugin to associate the additional context path for the other resources? Thanks for your help, -

Trouble deploying to remote repository after the first time (400 error)

2011-07-29 Thread laredotornado-3
Hi, I'm using Maven 3.0.3 with a Sonatype repository. I'm able to deploy my artifact to the remote repository the first time, but when i try and deploy again, using mvn -e -X clean deploy -s sonatype.xml It fails with the below error … Caused by: org.apache.maven.wagon.TransferFailedException:

Re: Unable to get antrun to run

2011-05-27 Thread laredotornado-3
Good catch. That solved it. Thanks, - Dave -- View this message in context: http://maven.40175.n5.nabble.com/Unable-to-get-antrun-to-run-tp4429367p4432040.html Sent from the Maven - Users mailing list archive at Nabble.com. -

Re: Unable to get antrun to run

2011-05-26 Thread laredotornado-3
Unfortunately, same result -- my antrun tasks are not executing. I put in generate-test-sources and ran both mvn -X generate-test-sources mvn -X install - Dave -- View this message in context: http://maven.40175.n5.nabble.com/Unable-to-get-antrun-to-run-tp4429367p4429489.html Sent from the

Unable to get antrun to run

2011-05-26 Thread laredotornado-3
Hi, I'm using Maven 3.0.3 on Mac 10.6.6. I want to run a custom Ant task but it doesn't seem to run. I've included the plugin in the configuration below, but my echo message is never printed (unsurprisingly everything after is never executed either). I run by doing mvn -X test Any ideas why t

Can Maven dynamically change my application.xml file?

2011-05-25 Thread laredotornado-3
Hi, I'm using Maven 3.0.3 with WebSphere 6.1. In my src/main/webapp/META-INF/application.xml file, I have ; myco myco-app-

How do I pass a shell expression into exec arg?

2011-05-20 Thread laredotornado-3
Hi, I'm using Maven 3.0.3. I'm running an Ant-run exec command. maven-antrun-plugin compile

Re: Getting compilation errors despite including the correct repo

2011-05-10 Thread laredotornado-3
Ah, that was it ... forgot to follow the surefire naming conventions. Thanks to all, - Dave -- View this message in context: http://maven.40175.n5.nabble.com/Getting-compilation-errors-despite-including-the-correct-repo-tp4382157p4384792.html Sent from the Maven - Users mailing list archive at N

Re: Getting compilation errors despite including the correct repo

2011-05-10 Thread laredotornado-3
I removed that line and everything compiled fine. However, the test was not executed upon launching mvn test The test is in my src/main/test directory. Where else should it be? I have nothing in my src/main/java directory. Below is the output of running the above command. - Dave davea-mbp2:

Re: Getting compilation errors despite including the correct repo

2011-05-09 Thread laredotornado-3
Thanks, Dennis. I removed that line, leaving my pom.xml like below, however, I'm sadly getting the same compilation errors. Any other advice for things I should troubleshoot? - Dave ==Begin pom.xml 4.0.0 leads_testing leads_testing 1.0-SNAPSHOT

Re: Getting compilation errors despite including the correct repo

2011-05-09 Thread laredotornado-3
That is a good thought, but this is one of 50 errors, all classes located in the junit jar. I do have the import statements at the top of my Java file. Is the test goal any different classpath-wise than other goals? I have verified that the junit Jar is in my local repo -- ~/.m2/repository/junit

Getting compilation errors despite including the correct repo

2011-05-09 Thread laredotornado-3
Hi, I'm using Maven 3.0.3. I want to run "mvn test" to execute some a Junit test, but I'm getting some compilation errors. I have placed my test file in my src/test/java/package/of/my/file directory, and included the appropriate JUnit JAR in my dependency list (pom.xml listed below). However, I

Re: Mojo: How do I write a plugin to interact with another?

2011-04-15 Thread laredotornado-3
Ah, so I understand your idea, you're saying that my plugin should output its value to a/the maven.proeprties file and then I can just read that in from my other task? - Dave -- View this message in context: http://maven.40175.n5.nabble.com/Mojo-How-do-I-write-a-plugin-to-interact-with-another-t

Mojo: How do I write a plugin to interact with another?

2011-04-14 Thread laredotornado-3
Hi, I'm using Maven 3.0.3. I want to write a Maven plugin that will ultimately output a string (in my case, a version control revision number) that will be used by another plugin (SCM). How do I pass the value from one place to another? FYI, I want the value to be used by the scm:checkout task

Looking for a maven-jira-git plugin

2011-04-12 Thread laredotornado-3
Hi, We're using Maven 3.0.3, Jira 4.0.1 and Git 1.7.4.1. We would like to run a Maven build based off a Jira report ID. Here we assume that the Jira report is associated with a revision or branch (latest revision from the branch) of code in our Git repository. Does anyone know of anything that

Re: How to verify that my memory settings are being picked up

2011-04-08 Thread laredotornado-3
What does the "Final Memory: 89M/123M " message mean with regards to what is set in MAVEN_OPTS? I understand this might have nothing to do with why I got the error I got, but I'm curious all the same. - Dave -- View this message in context: http://maven.40175.n5.nabble.com/How-to-verify-that-my

How to verify that my memory settings are being picked up

2011-04-07 Thread laredotornado-3
Hi, I'm using Maven 3.0.3 on Mac 10.6.6. I have a small project and have this set in my ~/.bash_profile MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=2048m" When running a "mvn -e deploy", my project is dying with OutOfMemoryErrors (PermGen space). This maven output is generated. Does the "Final Memo

Re: Anyone know how to resolve this curious warning?

2011-04-04 Thread laredotornado-3
I am mavenizing a Grails (1.2.1) project, using the instructions here -- http://grails.org/doc/latest/guide/4.%20The%20Command%20Line.html . I ran the command mvn org.grails:grails-maven-plugin:1.2.1:create-pom -DgroupId=com.myproject that generated the pom.xml with the content I posted. Perhap

Anyone know how to resolve this curious warning?

2011-04-04 Thread laredotornado-3
Hi, I'm using Maven 2.2. When I run my integration-test command, I'm getting this mysterious warning ... davea-mbp2:socialmediaproxy davea$ mvn integration-test [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for socialmediap

Why wrap grails in maven?

2011-04-01 Thread laredotornado-3
Hi, I'm using Grails 1.2.1 and just recently downloaded Maven 2.2. I have found the maven-grails plugin and figured out how to mavenize an existing grails project. What are the advantages of doing this? It seems like some of the advantages of using Maven (dependency management, standardization