maven-surefire-plugin : when does it abort?
Hi, I have a test class with several test methods. I suspect Surefire run all the tests even if there is a failure in one method. Am I right? If this is the case, is there a way to tell Surefire to abort as soon as it gets a failure? I'm using JUnit4 Thanks in advance, Marc.
Executing a single method of a test
Hi, I'm using maven-surefire-plugin 2.7.1 along with JUnit 4.8.2. I'm trying to run : mvn -Dtest=IndexRecordDAOTest#testGetAndList clean test. It fails telling me that there are no tests to run. This command runs wihout any errors : mvn -Dtest=IndexRecordDAOTest clean test What am I missing? (of course the testGetAndList method exists) Thanks in advance, Marc.
Re: Dependencies and cargo plugin?
Hello, I also use the cargo-maven2-plugin but don't need to specify all these dependencies. Btw I use cargo 1.0-alpha6. Here is my plugin configuration : plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration waitfalse/wait container containerIdtomcat5x/containerId home${tomcat.local.home}/home /container configuration properties cargo.logginghigh/cargo.logging cargo.servlet.port${servlet.port}/cargo.servlet.port /properties /configuration /configuration executions execution idstart-container/id phasepre-integration-test/phase goals goalstart/goal /goals /execution execution idstop-container/id phasepost-integration-test/phase goals goalstop/goal /goals /execution /executions /plugin Marc. Wim Deblauwe a écrit : Hi, It seems that I need to add all my dependencies in my pom.xml 2 times when I use a war project with cargo. Is there a way to avoid this? This is very annoying to try to find out all the dependencies (and their transitive dependencies manually) and have to add those to the dependencies/ section of the cargo plugin. According to the documentation ( http://cargo.codehaus.org/Starting+and+stopping+a+container#Startingandstoppingacontainer-extrajars) this is only needed if you want to share between web projects, but I only have 1 and I still have to do it, otherwise I get ClassNotFoundExceptions. This is my pom.xml (partially): packagingwar/packaging build finalNameserver-web/finalName plugins plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId version0.3/version configuration container containerIdtomcat5x/containerId zipUrlInstaller url http://www.apache.org/dist/tomcat/tomcat-5/v5.5.27/bin/apache-tomcat-5.5.27.zip /url installDir${installDir}/installDir /zipUrlInstaller systemProperties java.net.preferIPv4Stacktrue/java.net.preferIPv4Stack /systemProperties dependencies LONG LIST OF DEPENDENCIES HERE regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dependencies and cargo plugin?
See here : http://repo1.maven.org/maven2/org/codehaus/cargo/cargo-maven-plugin/ Wim Deblauwe a écrit : In what repo is that version? 2008/10/24 Marc Schneider [EMAIL PROTECTED] Hello, I also use the cargo-maven2-plugin but don't need to specify all these dependencies. Btw I use cargo 1.0-alpha6. Here is my plugin configuration : plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration waitfalse/wait container containerIdtomcat5x/containerId home${tomcat.local.home}/home /container configuration properties cargo.logginghigh/cargo.logging cargo.servlet.port${servlet.port}/cargo.servlet.port /properties /configuration /configuration executions execution idstart-container/id phasepre-integration-test/phase goals goalstart/goal /goals /execution execution idstop-container/id phasepost-integration-test/phase goals goalstop/goal /goals /execution /executions /plugin Marc. Wim Deblauwe a écrit : Hi, It seems that I need to add all my dependencies in my pom.xml 2 times when I use a war project with cargo. Is there a way to avoid this? This is very annoying to try to find out all the dependencies (and their transitive dependencies manually) and have to add those to the dependencies/ section of the cargo plugin. According to the documentation ( http://cargo.codehaus.org/Starting+and+stopping+a+container#Startingandstoppingacontainer-extrajars ) this is only needed if you want to share between web projects, but I only have 1 and I still have to do it, otherwise I get ClassNotFoundExceptions. This is my pom.xml (partially): packagingwar/packaging build finalNameserver-web/finalName plugins plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId version0.3/version configuration container containerIdtomcat5x/containerId zipUrlInstaller url http://www.apache.org/dist/tomcat/tomcat-5/v5.5.27/bin/apache-tomcat-5.5.27.zip /url installDir${installDir}/installDir /zipUrlInstaller systemProperties java.net.preferIPv4Stacktrue/java.net.preferIPv4Stack /systemProperties dependencies LONG LIST OF DEPENDENCIES HERE regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Confused with activeProfile
Hello Brett, The error I have is : [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Cannot invoke Tomcat manager And then java.io.IOException: Server returned HTTP response code: 401 which means unauthorized. In fact this clearly shows that some parameters are missing. So to remember, in my pom.xml I have : profile idtestLocal/id activation activeByDefaulttrue/activeByDefault /activation properties ... /properties /profile Running : mvn -P testLocal clean tomcat:deploy is OK Running : mvn clean tomcat:deploy fails with error above So I don't understand why the 2nd option fails as testLocal profile should be taken by default, AFAIK. Thanks for your help, Marc. Brett Porter a écrit : 2008/9/18 Marc Schneider [EMAIL PROTECTED]: So running : mvn -P testLocal clean tomcat:deploy should be equivalent to : mvn clean tomcat:deploy ? But if I don't put -P testLocal I get an error message as if some parameters are missing. What is the error message? - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Confused with activeProfile
Hi Jörg, Thanks for your answer, I understand what you mean. So I tried to add to the *parent's pom* this : activation activeByDefaulttrue/activeByDefault /activation after mvn clean install I get this strange error : [ERROR] FATAL ERROR [INFO] [INFO] The -uriroot option must specify a pre-existing directory I get the same if I put it in my settings.xml I'm using : apache-maven-2.1.0-M1 Marc. Jörg Schaible a écrit : Hi Marc, Marc Schneider wrote: Hello Brett, The error I have is : [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Cannot invoke Tomcat manager And then java.io.IOException: Server returned HTTP response code: 401 which means unauthorized. In fact this clearly shows that some parameters are missing. So to remember, in my pom.xml I have : profile idtestLocal/id activation activeByDefaulttrue/activeByDefault /activation properties ... /properties /profile Running : mvn -P testLocal clean tomcat:deploy is OK Running : mvn clean tomcat:deploy fails with error above So I don't understand why the 2nd option fails as testLocal profile should be taken by default, AFAIK. So, if I understand you right, you do not activate the profile by default in the parent (where all the interesting elements are set) and in the local POM you simply try to activate it? This won't work. Profiles are handled on POM level, i.e. when you local POM is processed the profiles of the parent have been resolved already. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error when creating a new project using Maven
Hi, When running maven I have this env. variable set : MAVEN_OPTS=-Xmx512m maybe this can help. Marc. arvindhere a écrit : Hi Mavenists, I'm a newbie to maven. I have done with installation of maven and env-variable settings. And also have starting mu local maven repository. I tired creating a project with the help of the following command cmd prompt mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.learning.app -DartifactId=PortletSpringApp -Dpackaging=war This command failed to create a project due to the following error: The stack trace of the error is following my java version and maven specs. STACK TRACE: C:\Arvind\Eclipse_wsjavac -versioon javac: invalid flag: -versioon Usage: javac options source files use -help for a list of possible options C:\Arvind\Eclipse_wsjavac -version javac 1.6.0_06 C:\Arvind\Eclipse_wsjava -version java version 1.6.0_06 Java(TM) SE Runtime Environment (build 1.6.0_06-b02) Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing) C:\Arvind\Eclipse_wsmvn --version Maven version: 2.0.9 Java version: 1.6.0_06 OS name: windows xp version: 5.1 arch: x86 Family: windows C:\Arvind\Eclipse_wsmvn archetype:create -DarchetypeGroupId=org.apache.maven.ar chetypes -DgroupId=com.learning.app -DartifactId=PortletSpringApp -Dpackaging=wa r [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [archetype:create] (aggregator-style) [INFO] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Java heap space [INFO] [INFO] Trace java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Arrays.java:3209) at java.lang.String.init(String.java:216) at org.codehaus.plexus.util.xml.pull.MXParser.getText(MXParser.java:746) at hidden.org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuild er.java:151) at hidden.org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuild er.java:83) at hidden.org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuild er.java:48) at org.apache.maven.plugin.descriptor.PluginDescriptorBuilder.buildConfi guration(PluginDescriptorBuilder.java:330) at org.apache.maven.plugin.descriptor.PluginDescriptorBuilder.build(Plug inDescriptorBuilder.java:50) at org.apache.maven.plugin.MavenPluginDiscoverer.createComponentDescript ors(MavenPluginDiscoverer.java:52) at org.codehaus.plexus.component.discovery.AbstractComponentDiscoverer.f indComponents(AbstractComponentDiscoverer.java:78) at org.codehaus.plexus.DefaultPlexusContainer.discoverComponents(Default PlexusContainer.java:717) at org.codehaus.plexus.DefaultPlexusContainer.addJarResource(DefaultPlex usContainer.java:1396) at org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsC omplete(DefaultPluginManager.java:788) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul tPluginManager.java:604) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:429) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:512) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:227) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at
Confused with activeProfile
Hello, I have this default profile in my pom.xml profile idtestLocal/id activation activeByDefaulttrue/activeByDefault /activation /profile This pom has a parent where most of the parameters of this profile are defined. So running : mvn -P testLocal clean tomcat:deploy should be equivalent to : mvn clean tomcat:deploy ? But if I don't put -P testLocal I get an error message as if some parameters are missing. Running just after this : mvn help:active-profiles The following profiles are active: - testLocal (source: pom) So I don't understand why it doesn't work. Any idea ? Thanks, Marc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Charset in war-plugin?
Hi, In your jspc-maven-plugin you can add this : executions execution idjspc/id goals goalcompile/goal /goals configuration ... javaEncodingUTF-8/javaEncoding /configuration /execution /executions Marc. Johan S a écrit : Hi I having problems with charset when creating a war-file. Is there a way specifying the charset? I having multiple jsp pages with charset ISO-8859-1, with å ä ö. When I create the war-file these character are wrong. Thanks for any help. - http://www.procensor.se http://www.mobilepost.se http://www.resultreporter.com http://www.butiksbelysning.se - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Excluding a file in resources when compiling
Hello, I have this file : src/main/resources/faces-config.xml After mvn clean compile this file is put at the root of the classes directory. But I don't want that, so I tried : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.6/source target1.4/target encodingUTF-8/encoding excludes exclude**/faces-config.xml/exclude /excludes /configuration /plugin But this doesn't work. Looking at the trace of maven however I can see : (f) excludes = [**/src/main/resources/*] So I don't understand. Could somebody help ? Thanks, Marc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding a file in resources when compiling
Geoffrey Wiseman a écrit : On Thu, Sep 4, 2008 at 9:07 AM, Marc Schneider [EMAIL PROTECTED]wrote: I have this file : src/main/resources/faces-config.xml After mvn clean compile this file is put at the root of the classes directory. But I don't want that, so I tried : Can I ask what you do want to do with it, if not put it in the class root? That's normally what Maven would do with a main resource which is mostly what I would want to do with things like configuration files, but since you don't want that, I'm wondering what you do want. - Geoffrey In fact this file is put during a further phase in the WEB-INF directory because lines are added to this file. So I just don't want to have this file twice (in classes and WEB-INF) knowing that WEB-INF is the right place (avoids confusion). Marc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding a file in resources when compiling
Geoffrey Wiseman a écrit : On Thu, Sep 4, 2008 at 9:07 AM, Marc Schneider [EMAIL PROTECTED]wrote: I have this file : src/main/resources/faces-config.xml After mvn clean compile this file is put at the root of the classes directory. But I don't want that, so I tried : Can I ask what you do want to do with it, if not put it in the class root? That's normally what Maven would do with a main resource which is mostly what I would want to do with things like configuration files, but since you don't want that, I'm wondering what you do want. - Geoffrey In fact this file is put during a further phase in the WEB-INF directory because lines are added to this file. So I just don't want to have this file twice (in classes and WEB-INF) knowing that WEB-INF is the right place (avoids confusion). Marc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding a file in resources when compiling
Thanks for your answer. So I add this in the build section : resources resource directorysrc/main/resources/directory excludes exclude**/faces-config.xml/exclude /excludes /resource /resources but after mvn clean compile, I still can see the faces-config.xml file in the classes directory. I don't understand why. Marc. Edelson, Justin a écrit : Resources aren't compiled. See http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html for information on how to exclude resource files. Justin From: Marc Schneider [mailto:[EMAIL PROTECTED] Sent: Thu 9/4/2008 9:07 AM To: Maven Users List Subject: Excluding a file in resources when compiling Hello, I have this file : src/main/resources/faces-config.xml After mvn clean compile this file is put at the root of the classes directory. But I don't want that, so I tried : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.6/source target1.4/target encodingUTF-8/encoding excludes exclude**/faces-config.xml/exclude /excludes /configuration /plugin But this doesn't work. Looking at the trace of maven however I can see : (f) excludes = [**/src/main/resources/*] So I don't understand. Could somebody help ? Thanks, Marc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding a file in resources when compiling
Yes sorry you're right in fact this works. Thanks for your help. Marc. Edelson, Justin a écrit : Hmm. That works for me. If you run mvn -X, do you see that the exclude is being passed to the resources plugin? Should look something like this: [DEBUG] (f) resources = [Resource {targetPath: null, filtering: false, FileSet {directory: YOUR_PROJECT_DIRECTORY\src\main\resources, PatternSet [includes: {}, excludes: {**/faces-config.xml}]}}] From: Marc Schneider [mailto:[EMAIL PROTECTED] Sent: Thu 9/4/2008 10:27 AM To: Maven Users List Subject: Re: Excluding a file in resources when compiling Thanks for your answer. So I add this in the build section : resources resource directorysrc/main/resources/directory excludes exclude**/faces-config.xml/exclude /excludes /resource /resources but after mvn clean compile, I still can see the faces-config.xml file in the classes directory. I don't understand why. Marc. Edelson, Justin a écrit : Resources aren't compiled. See http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html for information on how to exclude resource files. Justin From: Marc Schneider [mailto:[EMAIL PROTECTED] Sent: Thu 9/4/2008 9:07 AM To: Maven Users List Subject: Excluding a file in resources when compiling Hello, I have this file : src/main/resources/faces-config.xml After mvn clean compile this file is put at the root of the classes directory. But I don't want that, so I tried : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.6/source target1.4/target encodingUTF-8/encoding excludes exclude**/faces-config.xml/exclude /excludes /configuration /plugin But this doesn't work. Looking at the trace of maven however I can see : (f) excludes = [**/src/main/resources/*] So I don't understand. Could somebody help ? Thanks, Marc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [PLEASE TEST] Maven 2.0.10-RC9
You can download it here : http://people.apache.org/~jdcasey/stage/apache-maven/2.0.10-RC9/org/apache/maven/apache-maven/2.0.10-RC9/ Marc. Peter Horlock a écrit : John, were can I download the latest RC? The link you provided doesn't seem to be working... Thanks, Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [PLEASE TEST] Maven 2.0.10-RC9
Hi, For me the cargo plugin works with Maven 2.0.10-RC9. Here is my plugin configuration : plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration waitfalse/wait container containerIdtomcat5x/containerId home${tomcat.local.home}/home /container configuration properties cargo.logginghigh/cargo.logging cargo.servlet.port${servlet.port}/cargo.servlet.port /properties /configuration /configuration executions execution idstart-container/id phasepre-integration-test/phase goals goalstart/goal /goals /execution execution idstop-container/id phasepost-integration-test/phase goals goalstop/goal /goals /execution /executions /plugin Marc. Anders Hammar a écrit : Also tried the 1.0-alpha-5 version of the cargo maven2 plugin (with mvn 2.0.10-RC9). Same problem. /Anders Anders Hammar wrote: Hi, I've run into a problem with this rc. When using the org.codehaus.cargo:cargo-maven2-plugin:0.3.1 plugin (the start goal), it can't retrieve my JBOSS_HOME env. It works with mvn 2.0.8 and 2.0.9, but with 2.0.10-RC9 the plugin gets 'null' for some reason. Here's my plugin configuration from my pom: plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration waitfalse/wait container containerIdjboss4x/containerId home${JBOSS_HOME}/home /container configuration typeexisting/type home${JBOSS_HOME}/server/${jboss.server.conf}/home !-- this doesn't work! -- properties cargo.jboss.configuration${jboss.server.conf}/cargo.jboss.configuration /properties /configuration /configuration executions execution idstart-jboss/id phasepre-integration-test/phase goals goalstart/goal /goals /execution /executions /plugin /Anders John Casey-5 wrote: Hi everyone, As you're probably aware, we've been working for some time to stabilize Maven for the 2.0.10 release. After quite a bit of testing in the development community - and 8 release candidates - it looks like we finally have a candidate that is free of regressions and stable. You can download it here: http://people.apache.org/~jdcasey/apache-maven/2.0.10-RC9/org/apache/maven/apache-maven/2.0.10-RC9 While it does seem that all of our builds are happy with the new release candidate, we'd like to get your feedback on it before we finalize things. This will help us respond to any regressions or critical issues we may have missed BEFORE we do the release, instead of having to put up with major flaws for another release cycle. Please, if you have the time, take 2.0.10-RC9 for a spin and tell us what you think! Thanks, -john P.S. To see the list of issues that were closed for this release (so far), check out: http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=10500styleName=Htmlversion=14112 -- John Casey Developer, PMC Member - Apache Maven (http://maven.apache.org) Blog: http://www.ejlife.net/blogs/buildchimp/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
POM and dependency downloading
Hi all, There is something I don't understand. In my maven repository, I have this POM file (Hibernate Search 3.1.O Beta) with : dependency groupIdorg.hibernate.apache.lucene.solr/groupId artifactIdapache-solr-analyzer/artifactId version1.2.0/version optionaltrue/optional /dependency When compiling the system complains that a class is missing. This is because this class is in this artifact. If I add this dependency directly in my project's POM file, the artifact is downloaded and so it works. But why do I have to add it manually ? Thanks, Marc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] how to specify a tomcat context with the cargo plugin to run in maven?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mick Knutson a écrit : | So is this going to startup my local tomcat, verse embedded tomcat for | testing? Then the local tomcat just needs to be configured with my proper | context.xml...??? Yes it works for me like this. Marc. | --- | Thank You… | | Mick Knutson | BASE Logic, inc. | (415) 354-4215 | | Website: http://baselogic.com | Blog: http://baselogic.com/blog | BLiNC Magazine: http://blincmagazine.com | Linked IN: http://linkedin.com/in/mickknutson | DJ Mick: http://djmick.com | MySpace: http://myspace.com/mickknutson | Vacation Rental: http://tahoe.baselogic.com | | | On Fri, Jul 25, 2008 at 9:04 AM, Marc Schneider [EMAIL PROTECTED] | wrote: | | Mick Knutson a écrit : | | I want to specify a test version of my tomcat context with my cargo | plugin, | but can't seem to find anything about that on the site. Is this possible? | | --- | Thank You… | | Mick Knutson | BASE Logic, inc. | (415) 354-4215 | | Website: http://baselogic.com | Blog: http://baselogic.com/blog | BLiNC Magazine: http://blincmagazine.com | Linked IN: http://linkedin.com/in/mickknutson | DJ Mick: http://djmick.com | MySpace: http://myspace.com/mickknutson | Vacation Rental: http://tahoe.baselogic.com | | | May be you can try it like this : | (For me it also works for Tomcat 6x) | | plugin | groupIdorg.codehaus.cargo/groupId | artifactIdcargo-maven2-plugin/artifactId | configuration |waitfalse/wait |container | containerIdtomcat5x/containerId | home${tomcat.local.home}/home |/container |configuration | properties |cargo.logginghigh/cargo.logging |cargo.servlet.port${servlet.port}/cargo.servlet.port | /properties |/configuration | /configuration | executions |execution | idstart-container/id | phasepre-integration-test/phase | goals |goalstart/goal | /goals |/execution |execution | idstop-container/id | phasepost-integration-test/phase | goals |goalstop/goal | /goals |/execution | /executions | /plugin | | Marc. | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIjYtDOnFbH6/W/e8RAuSbAJ97HHej5t1ULDR+UGfKfC/AZ2jMPQCeM+dF ChdukypIBCPXLXrs2CNmIMY= =lfaN -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] how to specify a tomcat context with the cargo plugin to run in maven?
Mick Knutson a écrit : I want to specify a test version of my tomcat context with my cargo plugin, but can't seem to find anything about that on the site. Is this possible? --- Thank You… Mick Knutson BASE Logic, inc. (415) 354-4215 Website: http://baselogic.com Blog: http://baselogic.com/blog BLiNC Magazine: http://blincmagazine.com Linked IN: http://linkedin.com/in/mickknutson DJ Mick: http://djmick.com MySpace: http://myspace.com/mickknutson Vacation Rental: http://tahoe.baselogic.com May be you can try it like this : (For me it also works for Tomcat 6x) plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration waitfalse/wait container containerIdtomcat5x/containerId home${tomcat.local.home}/home /container configuration properties cargo.logginghigh/cargo.logging cargo.servlet.port${servlet.port}/cargo.servlet.port /properties /configuration /configuration executions execution idstart-container/id phasepre-integration-test/phase goals goalstart/goal /goals /execution execution idstop-container/id phasepost-integration-test/phase goals goalstop/goal /goals /execution /executions /plugin Marc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Archetype:create broken?
Hi, And what about using mvn archetype:generate instead of create ? create goal is deprecated as far as I know. Marc. nodje a écrit : What's with the archetype:create? I suddenly get this error when trying to create a new project: mvn archetype:create -DgroupId=com.company.commons -DartifactId=xml [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [INFO] Building commons [INFO]task-segment: [archetype:create] (aggregator-style) [INFO] Downloading: http://allence.dyndns.org:8081/artifactory/plugins-releases/velocity/velocity/1.5/velocity-1.5.pom Downloading: http://allence.dyndns.org:8081/artifactory/repo/velocity/velocity/1.5/velocity-1.5.pom [INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on = 'false'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] Setting property: resource.manager.logwhenfound = 'false'. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org/apache/commons/lang/StringUtils org.apache.commons.lang.StringUtils [INFO] [INFO] Trace java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils at org.apache.velocity.runtime.resource.ResourceManagerImpl.initialize(ResourceManagerImpl.java:165) at org.apache.velocity.runtime.RuntimeInstance.initializeResourceManager(RuntimeInstance.java:594) at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:241) at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:116) at org.codehaus.plexus.velocity.DefaultVelocityComponent.initialize(DefaultVelocityComponent.java:79) at org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:16) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129) at org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73) at org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68) at org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486) at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129) at org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73) at org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68) at org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486) at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) at
Re: Executing only one test with Selenium
Mick Knutson a écrit : Are you using TestNG for your selenium tests, or JUnit? Hello, I'm using JUnit. Thanks, Marc. On Tue, May 6, 2008 at 9:17 AM, Marc Schneider [EMAIL PROTECTED] wrote: Hi, I'd like to run a selenium test but just for one class. Is it possible to do that (without changing the pom.xml) ? Maybe with an argument in the command line ? Thanks, Marc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Executing only one test with Selenium
Hi, I reply to myself : using JUnit you just have to type : mvn -Dtest=MyTestClass Marc. Mick Knutson a écrit : Are you using TestNG for your selenium tests, or JUnit? On Tue, May 6, 2008 at 9:17 AM, Marc Schneider [EMAIL PROTECTED] wrote: Hi, I'd like to run a selenium test but just for one class. Is it possible to do that (without changing the pom.xml) ? Maybe with an argument in the command line ? Thanks, Marc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Executing only one test with Selenium
Hi, I'd like to run a selenium test but just for one class. Is it possible to do that (without changing the pom.xml) ? Maybe with an argument in the command line ? Thanks, Marc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with pdfbox-0.7.3.pom
Hello, I don't know if this is the right place to talk about this but I think that this pom is wrong ; http://maven.reucon.com/public/pdfbox/pdfbox/0.7.3/pdfbox-0.7.3.pom You have : project modelVersion4.0.0/modelVersion groupIdpdfbox/groupId artifactIdpdfbox/artifactId namePDFBox - Java PDF Library/name version0.7.3/version /project And in fact before you had (which is in my opinion correct) : ?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; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdpdfbox/groupId artifactIdpdfbox/artifactId version0.7.3/version namePDFBox - Java PDF Library/name !-- Keep on a single line, see http://jira.codehaus.org/browse/MJAR-39 -- descriptionPDFBox is an open source Java PDF library for working with PDF documents./description licenses license nameBSD/name urlhttp://www.pdfbox.org/license.html/url distributionrepo/distribution /license /licenses urlhttp://www.pdfbox.org//url mailingLists mailingList namePDFBox Users mailing list/name subscribe[EMAIL PROTECTED]/subscribe unsubscribe[EMAIL PROTECTED]/unsubscribe post[EMAIL PROTECTED]/post /mailingList /mailingLists developers developer nameBen Litchfield/name idbenlitchfield/id email[EMAIL PROTECTED]/email roles rolecommitter/role /roles /developer /developers scm urlhttp://pdfbox.cvs.sourceforge.net/pdfbox//url /scm dependencies dependency groupIdorg.fontbox/groupId artifactIdfontbox/artifactId version0.1.0/version /dependency dependency groupIdorg.jempbox/groupId artifactIdjempbox/artifactId version0.2.0/version /dependency dependency groupIdbouncycastle/groupId artifactIdbcmail-jdk14/artifactId version136/version /dependency dependency groupIdbouncycastle/groupId artifactIdbcprov-jdk14/artifactId version136/version /dependency /dependencies /project Does anybody know about this ? Thanks, Marc/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]