Re: Call System.setProperty(java.awt.headless, true)?
On 16 February 2011 23:15, Jesse Glick jesse.gl...@oracle.com wrote: On 02/15/2011 11:35 PM, Stephen Connolly wrote: there are enough people out there who use mvn exec:exec to run their swing apps Do you mean exec:java? (exec:exec -Dexec.executable=java would be Yeah... I was using my phone that it sent at all is a miracle unaffected.) It's not a very good idea to run an arbitrary app this way, since there are plenty of opportunities for the result to be subtly different than running the app in its own JVM, and you have no opportunity to customize VM options. But it is probably true that a lot of people do it anyway. Perhaps exec:java should fork unless explicitly requested to run in-VM. Might be a good idea... but there would need to be tweaks over how and which system properties got passed through - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven antrun plugin with sql task closing the maven process itself
yes, I'm using fork mode to create(start) hsqldb as seperate process. And for closing antrun sql task, there is nothing called fork mode. Thanks, Santhosh -- View this message in context: http://maven.40175.n5.nabble.com/maven-antrun-plugin-with-sql-task-closing-the-maven-process-itself-tp3387689p3388898.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven 3 does not seem to like version ranges?
Hey. I am having a bit of an issue with Maven 3 and version ranges. I posted a bug (http://jira.codehaus.org/browse/MNG-5006) that does not seem to be getting any immediate attention, so I'll try here. The problem appears to be that if we refer to any of our internal projects as a range. Maven 3 will attempt to resolve a released version of our master project pom on the snapshot repository - even when running in offline mode (-o). And if I replace the range dependency with the version it ends up resolving, that will not happen. The really strange part is that it appears to be working correctly in some cases. Most of our builds will right now work fine on our Hudson server, but not locally on my machine. Even though the settins.xml files are identically. So environment seems to be related. But it can't really be something as simple as if the pom already being in the local repository. As the file it will fail to validate is the same one as the project I am running has a parent - and that resolved just fine. Does anyone have any experiences idea what could be the reason for this? Or is this simply a bug in Maven 3.0.2? I looked at the page Maven suggests to explain the issue I get (http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException). But as far as I can tell there is nothing that covers something like this. /Kristoffer Peterhänsel - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven 3 does not seem to like version ranges?
what is the updatePolicy in each of the repositories sections? mvn help:effective-settings will show the effective settings, then look for the *updatePolicy*: This element specifies how often updates should attempt to occur. Maven will compare the local POM's timestamp (stored in a repository's maven-metadata file) to the remote. The choices are: always, daily (default), interval:X (where X is an integer in minutes) or never. as the updatePolicy should also apply to the maven-metadata.xml for each repo you have defined. The Hudson/Jenkins server will be building all the time and so only occasionally check for the metadata. Your builds will be less frequent, so you might seem to always update even if it is set to daily -Stephen On 17 February 2011 13:03, Kristoffer Peterhaensel kristof...@codedivision.com wrote: Hey. I am having a bit of an issue with Maven 3 and version ranges. I posted a bug (http://jira.codehaus.org/browse/MNG-5006) that does not seem to be getting any immediate attention, so I'll try here. The problem appears to be that if we refer to any of our internal projects as a range. Maven 3 will attempt to resolve a released version of our master project pom on the snapshot repository - even when running in offline mode (-o). And if I replace the range dependency with the version it ends up resolving, that will not happen. The really strange part is that it appears to be working correctly in some cases. Most of our builds will right now work fine on our Hudson server, but not locally on my machine. Even though the settins.xml files are identically. So environment seems to be related. But it can't really be something as simple as if the pom already being in the local repository. As the file it will fail to validate is the same one as the project I am running has a parent - and that resolved just fine. Does anyone have any experiences idea what could be the reason for this? Or is this simply a bug in Maven 3.0.2? I looked at the page Maven suggests to explain the issue I get ( http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException). But as far as I can tell there is nothing that covers something like this. /Kristoffer Peterhänsel - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Repository Confusion
Error is below. It looks like it's looking in the snapshots repository but the url doesn't. Odd. The dependency I'm using is below too. dependency groupIdorg.apache.sling/groupId artifactIdorg.apache.sling.junit.core/artifactId version0.1.1-SNAPSHOT/version dependency Downloading: http://xxx:8080/archiva/repository/internal//org/apache/sling/org.apache.sling.junit.core/0.1.1-SNAPSHOT/org.apache.sling.junit.core-0.1.1-SNAPSHOT.pom [INFO] Unable to find resource 'org.apache.sling:org.apache.sling.junit.core:pom:0.1.1-SNAPSHOT' in repository apache.snapshots (http://repository.apache.org/snapshots) Downloading: http://xxx:8080/archiva/repository/internal//org/apache/sling/org.apache.sling.junit.core/0.1.1-SNAPSHOT/org.apache.sling.junit.core-0.1.1-SNAPSHOT.jar [INFO] Unable to find resource 'org.apache.sling:org.apache.sling.junit.core:jar:0.1.1-SNAPSHOT' in repository apache.snapshots (http://repository.apache.org/snapshots) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. -Original Message- From: odeach...@gmail.com [mailto:odeach...@gmail.com] On Behalf Of Deng Ching Sent: Thursday, February 17, 2011 12:46 AM To: Maven Users List Subject: Re: Repository Confusion What's the exact error you're getting in Maven for the 2 machines? -Deng On Thu, Feb 17, 2011 at 2:35 PM, Shay Thompson sthom...@adobe.com wrote: Outlook likes to capitalize. My file has a lower-case s. -Original Message- From: Ben Caradoc-Davies [mailto:ben.caradoc-dav...@csiro.au] Sent: Wednesday, February 16, 2011 11:58 PM To: Maven Users List Cc: Shay Thompson Subject: Re: Repository Confusion You are asking about your Maven settings.xml? The file should be called settings.xml (note case!) not Settings.xml on platforms and filesystems that filename case-sensitive. For example, Settings.xml would work on Windows/NTFS but not on Unix or Linux, where only settings.xml (lowercase) would work. Kind regards, Ben. On 17/02/11 13:41, Shay Thompson wrote: Settings.xml is exactly the same on all machines. -- Ben Caradoc-Davies ben.caradoc-dav...@csiro.au Software Engineering Team Leader CSIRO Earth Science and Resource Engineering Australian Resources Research Centre - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Repository Confusion
It's interesting that this is a snapshot problem. We had a very similar problem with our Archiva installation which proved to be related to use of the mirrors setting in settings.xml.We had two Archiva repositories set up - one for regular artifacts and one for snapshots. We used the mirrorOf*/mirrorOf setting for the regular repository, which turned out to have the side effect (if I read the documentation correctly) of blocking access to the snapshots repository (since maven thought the whole world was in the regular repository). Removing the mirror settings solved a lot of problems. Details of the Maven mirror settings are here http://maven.apache.org/guides/mini/guide-mirror-settings.html Looking forward to finding out what the resolution of this problem is! From: Shay Thompson sthom...@adobe.com To: Maven Users List users@maven.apache.org Date: 02/17/2011 08:04 AM Subject:RE: Repository Confusion Error is below. It looks like it's looking in the snapshots repository but the url doesn't. Odd. The dependency I'm using is below too. dependency groupIdorg.apache.sling/groupId artifactIdorg.apache.sling.junit.core/artifactId version0.1.1-SNAPSHOT/version dependency Downloading: http://xxx:8080/archiva/repository/internal//org/apache/sling/org.apache.sling.junit.core/0.1.1-SNAPSHOT/org.apache.sling.junit.core-0.1.1-SNAPSHOT.pom [INFO] Unable to find resource 'org.apache.sling:org.apache.sling.junit.core:pom:0.1.1-SNAPSHOT' in repository apache.snapshots (http://repository.apache.org/snapshots) Downloading: http://xxx:8080/archiva/repository/internal//org/apache/sling/org.apache.sling.junit.core/0.1.1-SNAPSHOT/org.apache.sling.junit.core-0.1.1-SNAPSHOT.jar [INFO] Unable to find resource 'org.apache.sling:org.apache.sling.junit.core:jar:0.1.1-SNAPSHOT' in repository apache.snapshots (http://repository.apache.org/snapshots) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. -Original Message- From: odeach...@gmail.com [mailto:odeach...@gmail.com] On Behalf Of Deng Ching Sent: Thursday, February 17, 2011 12:46 AM To: Maven Users List Subject: Re: Repository Confusion What's the exact error you're getting in Maven for the 2 machines? -Deng On Thu, Feb 17, 2011 at 2:35 PM, Shay Thompson sthom...@adobe.com wrote: Outlook likes to capitalize. My file has a lower-case s. -Original Message- From: Ben Caradoc-Davies [mailto:ben.caradoc-dav...@csiro.au] Sent: Wednesday, February 16, 2011 11:58 PM To: Maven Users List Cc: Shay Thompson Subject: Re: Repository Confusion You are asking about your Maven settings.xml? The file should be called settings.xml (note case!) not Settings.xml on platforms and filesystems that filename case-sensitive. For example, Settings.xml would work on Windows/NTFS but not on Unix or Linux, where only settings.xml (lowercase) would work. Kind regards, Ben. On 17/02/11 13:41, Shay Thompson wrote: Settings.xml is exactly the same on all machines. -- Ben Caradoc-Davies ben.caradoc-dav...@csiro.au Software Engineering Team Leader CSIRO Earth Science and Resource Engineering Australian Resources Research Centre - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean (mailgw2:E73FA1E6FC.A3195). This communication and any attachments are confidential, protected by Communications Privacy Act 18 USCS § 2510, solely for the use of the intended recipient, and may contain legally privileged material. If you are not the intended recipient, please return or destroy it immediately. Thank you.
Maven/Surefire ignores TestNG priority on test methods
Hi, some of our test specify a priority at the method level as shown below. We are running our tests in parallel and the order is being ignored. Any idea on how to configure this? Thanks in advance. Scott @Test(priority = 1) public void testCreateCache() { } /** * Test put object. */ @Test(priority = 2) public void testPutObject() { } /** * Test remove object. */ @Test(priority = 3) public void testRemoveObject() { } /** * Test clear cache. */ @Test(priority = 4) public void testClearCache() { } /** * Test delete cache. */ @Test(priority = 99) public void testDeleteCache() { } plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.7.2/version executions execution/execution /executions configuration suiteXmlFiles suiteXmlFiletestng.xml/suiteXmlFile /suiteXmlFiles useSystemClassLoadertrue/useSystemClassLoader additionalClasspathElements additionalClasspathElement${basedir}/src/test/conf/additionalClasspathElement /additionalClasspathElements /configuration /plugin !DOCTYPE suite SYSTEM http://beust.com/testng/testng-1.0.dtd; suite name=test suite verbose=1 parallel=classes thread-count=10 test name=testing classes class name=CachingUtilsTest / class name=TemplatingServiceTest / /classes /test /suite
Re: eclipse:eclipse maven 3.0.1 not adding dependency
Ok I will try to explain in more detail and hope someone can help me. I have 2 dependencies to projects build by me. When clicking properties in eclipse these projects show up in the java build path/projects. In the libraries tab all other dependencies is present. When trying to run the project only one of the depending project is found. -- View this message in context: http://maven.40175.n5.nabble.com/eclipse-eclipse-maven-3-0-1-not-adding-dependency-tp3330388p3389730.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
how to NOT delete target dir?
It would be good if it were possible to tell the maven-clean-plugin NOT delete the target dir, but only all of it's contents. e.g. when you use eclipse, you want to set the Derived property for the target dir, so that eclipse ignores it and does not show the included files twice in some dialogs and not shows warnings of files in this directory. The problem is, when mvn clean deletes the target directory, eclipse will forget the directories properties and you always have to reset the Derived property if this is already possible, please let me know how. cheers, Martin - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: how to NOT delete target dir?
It would be good if it were possible to tell the maven-clean-plugin NOT delete the target dir, but only all of it's contents. You could probably make this work with the use of the excludeDefaultDirectories parameter. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[Maven 2] [surefire] Success Details
Hello people :) Is there a way to have all traces embded in the generated site by maven-surefire-report-plugin and maven-site-plugin ? Thanks in advance.
Re: how to NOT delete target dir?
On Thu, Feb 17, 2011 at 11:26 AM, Martin Trummer martin.trum...@dewesoft.org wrote: It would be good if it were possible to tell the maven-clean-plugin NOT delete the target dir, but only all of it's contents. Reconfigure the clean plugin to only delete what you want it to using excludeDefaultDirectories and filesets. http://maven.apache.org/plugins/maven-clean-plugin/clean-mojo.html -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven/Surefire ignores TestNG priority on test methods
Surefire delegates all of this to TestNg and does nothing with these things. You'll have to check if the combination of parallel and order is supported by asking over there. Kristian to., 17.02.2011 kl. 15.37 +, skrev Burns, Scott: Hi, some of our test specify a priority at the method level as shown below. We are running our tests in parallel and the order is being ignored. Any idea on how to configure this? Thanks in advance. Scott @Test(priority = 1) public void testCreateCache() { } /** * Test put object. */ @Test(priority = 2) public void testPutObject() { } /** * Test remove object. */ @Test(priority = 3) public void testRemoveObject() { } /** * Test clear cache. */ @Test(priority = 4) public void testClearCache() { } /** * Test delete cache. */ @Test(priority = 99) public void testDeleteCache() { } plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.7.2/version executions execution/execution /executions configuration suiteXmlFiles suiteXmlFiletestng.xml/suiteXmlFile /suiteXmlFiles useSystemClassLoadertrue/useSystemClassLoader additionalClasspathElements additionalClasspathElement${basedir}/src/test/conf/additionalClasspathElement /additionalClasspathElements /configuration /plugin !DOCTYPE suite SYSTEM http://beust.com/testng/testng-1.0.dtd; suite name=test suite verbose=1 parallel=classes thread-count=10 test name=testing classes class name=CachingUtilsTest / class name=TemplatingServiceTest / /classes /test /suite - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Over-riding, preceeding, or anhancing the clean target
Hello, I would like to change the way the clean target operates. I have had process failures because some dilbert (moi) left focus in a build folder which makes the clean action fail. In perl, I have wrapped such calls in error trapping code that would send an announcement out, sleep, and then try again. This would be advantageous to do in Maven. So, I am thinking that I either need to call my own code either before clean fires off, or from inside the clean module. If my action obviates clean, then this would be fineit can still run, no-op. Has anyone done something like this? I am just hoping for a bread crumb to follow. Google didn't really get too close. Thank you for the kind attention, in any case, Christopher [cid:image001.png@01CBCEAD.D5B00DA0] Christopher Hahn The Dude Software Production Engineering RD Services, Hewlett-Packard Phone: 858-655-4096 Cell: 619-630-9791 ch...@hp.commailto:christopher.h...@hp.com Visit our SPE Portalhttp://teams5.sharepoint.hp.com/teams/SPE/default.aspx
Re: Over-riding, preceeding, or anhancing the clean target
you may also write your own clean plugin ;) Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Thu, Feb 17, 2011 at 3:22 PM, Hahn, Christopher (SAN DIEGO) christopher.h...@hp.com wrote: Hello, I would like to change the way the clean target operates. I have had process failures because some dilbert (moi) left focus in a build folder which makes the clean action fail. In perl, I have wrapped such calls in error trapping code that would send an announcement out, sleep, and then try again. This would be advantageous to do in Maven. So, I am thinking that I either need to call my own code either before clean fires off, or from inside the clean module. If my action obviates clean, then this would be fineit can still run, no-op. Has anyone done something like this? I am just hoping for a bread crumb to follow. Google didn’t really get too close. Thank you for the kind attention, in any case, Christopher -- [image: cid:image001.png@01CAF080.AD65F1E0] *Christopher Hahn* The Dude Software Production Engineering RD Services, Hewlett-Packard Phone: 858-655-4096 Cell: 619-630-9791 ch...@hp.com christopher.h...@hp.com *Visit our SPE Portal*http://teams5.sharepoint.hp.com/teams/SPE/default.aspx ** --
Re: eclipse:eclipse maven 3.0.1 not adding dependency
On Thu, Feb 17, 2011 at 5:14 PM, Mathias Nilsson wicket.program...@gmail.com wrote: My problem now is that even if I have added my project as reference Spring won´t recognize my beans. Is there a change with this for 2x and 3x? Why isn't my project added as a var as it always has on the pc? This sounds like a classpath isuse. Have you enabled Spring debugging? This will show you which spring config files are being loaded and where the beans are. It should be obvious where the problem is.
Re: eclipse:eclipse maven 3.0.1 not adding dependency
On Fri, Feb 18, 2011 at 2:54 AM, Mathias Nilsson wicket.program...@gmail.com wrote: Ok I will try to explain in more detail and hope someone can help me. I have 2 dependencies to projects build by me. When clicking properties in eclipse these projects show up in the java build path/projects. In the libraries tab all other dependencies is present. When trying to run the project only one of the depending project is found. Again classpath. When you say run are you running it inside eclipse, or running it inside a web container. As I can't understand how Eclipse java build path/projects is correct but then fails to run inside eclipse. Eclipse only has one concept of the classpath.
how can we replace properties values in the parent element .
Hi , I've a maven project in the following structure setup -- Component1 --module1 --module2 --pom.xml Component2 -- contains a parent element referring to Component1 Component3 -- contains a parent element referring to Component1 Component4 -- profiles.xml and each team develops it's own component , hence they have a PROFILE setup in their settings.xml file . This profile contians some properties path values ,versions etc.. used by the AD team locally . few questions -- 1) Can Component4 profiles.xml properties be used across other components also. ? 2) The settings.xml file contains a profile with few properties set , and this overrides all the other properties from all the components. But, it does NOT for the parent element . how do we achieve this .? for ex : Component2 contains a parent element referring to to Component1 Component2 pom.xml file is below , with relativePath element . parent groupidcom.xyz.components/groupid artifactIdcomponent1/artifactid relativePath../${Comp1.Path}/pom.xml/relativePath /parent -- As I try to execute from the Component2 , it first tries to scan the pom file and fails as it can't find the Component1 pom file , due to not able to refer to the ${comp1.Path} property value from settings.xml file . How can we achieve this, with out hardcoding the relativePath element vlaue . Please let me know any other ways . Thanks, Chandra -- View this message in context: http://maven.40175.n5.nabble.com/how-can-we-replace-properties-values-in-the-parent-element-tp3390613p3390613.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: how can we replace properties values in the parent element .
Maven 2 doesn't have support for versionless parent pom. You may use maven 3 instead https://cwiki.apache.org/MAVEN/maven-3x.html On 2/18/11 11:18 AM, chandra.c49 chandramohan@gmail.com wrote: Hi , I've a maven project in the following structure setup -- Component1 --module1 --module2 --pom.xml Component2 -- contains a parent element referring to Component1 Component3 -- contains a parent element referring to Component1 Component4 -- profiles.xml and each team develops it's own component , hence they have a PROFILE setup in their settings.xml file . This profile contians some properties path values ,versions etc.. used by the AD team locally . few questions -- 1) Can Component4 profiles.xml properties be used across other components also. ? 2) The settings.xml file contains a profile with few properties set , and this overrides all the other properties from all the components. But, it does NOT for the parent element . how do we achieve this .? for ex : Component2 contains a parent element referring to to Component1 Component2 pom.xml file is below , with relativePath element . parent groupidcom.xyz.components/groupid artifactIdcomponent1/artifactid relativePath../${Comp1.Path}/pom.xml/relativePath /parent -- As I try to execute from the Component2 , it first tries to scan the pom file and fails as it can't find the Component1 pom file , due to not able to refer to the ${comp1.Path} property value from settings.xml file . How can we achieve this, with out hardcoding the relativePath element vlaue . Please let me know any other ways . Thanks, Chandra -- View this message in context: http://maven.40175.n5.nabble.com/how-can-we-replace-properties-values-in-the-parent-element-tp3390613p3390613.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: how can we replace properties values in the parent element .
Neither does Maven 3.0. Possibly future version of Maven will have this feature. /Anders On Fri, Feb 18, 2011 at 06:54, Anurag Kumar Nilesh anur...@yahoo-inc.comwrote: Maven 2 doesn't have support for versionless parent pom. You may use maven 3 instead https://cwiki.apache.org/MAVEN/maven-3x.html On 2/18/11 11:18 AM, chandra.c49 chandramohan@gmail.com wrote: Hi , I've a maven project in the following structure setup -- Component1 --module1 --module2 --pom.xml Component2 -- contains a parent element referring to Component1 Component3 -- contains a parent element referring to Component1 Component4 -- profiles.xml and each team develops it's own component , hence they have a PROFILE setup in their settings.xml file . This profile contians some properties path values ,versions etc.. used by the AD team locally . few questions -- 1) Can Component4 profiles.xml properties be used across other components also. ? 2) The settings.xml file contains a profile with few properties set , and this overrides all the other properties from all the components. But, it does NOT for the parent element . how do we achieve this .? for ex : Component2 contains a parent element referring to to Component1 Component2 pom.xml file is below , with relativePath element . parent groupidcom.xyz.components/groupid artifactIdcomponent1/artifactid relativePath../${Comp1.Path}/pom.xml/relativePath /parent -- As I try to execute from the Component2 , it first tries to scan the pom file and fails as it can't find the Component1 pom file , due to not able to refer to the ${comp1.Path} property value from settings.xml file . How can we achieve this, with out hardcoding the relativePath element vlaue . Please let me know any other ways . Thanks, Chandra -- View this message in context: http://maven.40175.n5.nabble.com/how-can-we-replace-properties-values-in-the-parent-element-tp3390613p3390613.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org