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
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 -- argLine-Xmx4096m/argLine.
Laird,
Thanks for your
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
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örg,
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]
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
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.
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
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
Basically. I had to have both a parent version and a regular version
parent
artifactIdsubco/artifactId
groupIdorg.mainco.subco/groupId
version55.0.0/version
/parent
namemyproject/name
urlhttp://maven.apache.org/url
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
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
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
Hi, THe problem is when I use the released parent, by specifying
parent
artifactIdsubco/artifactId
groupIdorg.mainco.subco/groupId
version52.0.0/version
/parent
I get the below error (You don't have a SNAPSHOT project in the reactor
projects list).
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
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.
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, adding
Hi, Per your suggestion, I added a developerConnection alongside the
connection 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 ...
?xml version=1.0?
project
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
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
Hi,
I'm using Maven 3.0.3. Within one of my plugins, I have
skip${skipExecution}/skip
in which I define skipExecution within a profile. However, what I would
really like to say is
skip${skipExecution} || ${maven.test.skip}/skip
but I'm not sure how to say that in Maven. Any ideas? Thanks,
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
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:
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:
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:Forbidden
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
dependency
groupIdorg.openqa.selenium.server/groupId
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
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't
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 ...
plugin
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
plugin
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 ==
?xml version=1.0 encoding=UTF-8?
settings
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 -
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 ...
Hi,
I did add each of those roles to the tomcat user in the tomcat-users.xml
file ...
tomcat-users
role rolename=tomcat/
role rolename=role1/
user username=tomcat password=tomcat
roles=tomcat,manager-gui,manager-script,manager-jmx,manager-status/
user username=both password=tomcat
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:
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.
Hi,
I'm using Maven 3.0.3. I have the below in the buildplugins 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?
plugin
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
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;
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
…
project xmlns=http://maven.apache.org/POM/4.0.0;
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,
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:
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.
-
Hi,
I'm using Maven 3.0.3 with WebSphere 6.1. In my
src/main/webapp/META-INF/application.xml file, I have
?xml version=1.0 encoding=UTF-8?
lt;!DOCTYPE application PUBLIC quot;-//Sun Microsystems, Inc.//DTD J2EE
Application 1.3//ENquot;
quot;http://java.sun.com/dtd/application_1_3.dtdquot;gt;
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
Unfortunately, same result -- my antrun tasks are not executing. I put in
phasegenerate-test-sources/phase
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
Hi,
I'm using Maven 3.0.3. I'm running an Ant-run exec command.
plugin
artifactIdmaven-antrun-plugin/artifactId
executions
execution
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
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
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,
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 --
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
?xml version=1.0 encoding=UTF-8?project
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:
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
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
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:
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 Memory
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
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.
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,
60 matches
Mail list logo