Re: cobertura & jetty
Well cobertura's graphs in hudson are far superior. We aren't even specifying a version so we should have had the latest. org.codehaus.mojo cobertura-maven-plugin D/ On Mar 5, 2010, at 11:28 AM, Kalle Korhonen wrote: > Glad to hear you got things working. Just a note on Cobertura though; > we are running our cove coverage for unit and container-based > integration tests with Cobertura so it's not the tool per se. Could > have been an issue with the version of Cobertura you were using or the > configuration but if Emma is working for you and you are happy with > it, I wouldn't switch. > > Kalle > > > On Fri, Mar 5, 2010 at 1:05 AM, Douglas Ferguson > wrote: >> Actually switching to emma got things working.. >> >> I just start jetty from the base class of my selenium test. >> I have a static field that prevents jetty from attempting to start twice. >> >> Seems to work great. >> >> D/ >> >> On Mar 4, 2010, at 11:23 PM, hanasaki wrote: >> >>> most of what I have found points to using emma to get code coverage in >>> the integration phase using the failsafe plugin and embedded Jetty. >>> >>> Original Message >>> Subject: cobertura & jetty >>> From: Douglas Ferguson >>> To: Maven Users List >>> Date: 03/04/2010 10:43 PM >>> >>>> So I finally got jetty starting from my test case, but it doesn't >>>> impact the code coverage. >>>> >>>> My BasePage class is at 0% which is confusing. >>>> >>>> The server is started from the test class which would make you think >>>> would be using the instrumented classes and jetty would inherit the >>>> same classpath. >>>> >>>> What am I missing? >>>> >>>> Douglas >>>> - >>>> 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 >>> >> >> >> - >> 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 > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: cobertura & jetty
Actually switching to emma got things working.. I just start jetty from the base class of my selenium test. I have a static field that prevents jetty from attempting to start twice. Seems to work great. D/ On Mar 4, 2010, at 11:23 PM, hanasaki wrote: > most of what I have found points to using emma to get code coverage in > the integration phase using the failsafe plugin and embedded Jetty. > > Original Message > Subject: cobertura & jetty > From: Douglas Ferguson > To: Maven Users List > Date: 03/04/2010 10:43 PM > >> So I finally got jetty starting from my test case, but it doesn't >> impact the code coverage. >> >> My BasePage class is at 0% which is confusing. >> >> The server is started from the test class which would make you think >> would be using the instrumented classes and jetty would inherit the >> same classpath. >> >> What am I missing? >> >> Douglas >> - >> 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 > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
cobertura & jetty
So I finally got jetty starting from my test case, but it doesn't impact the code coverage. My BasePage class is at 0% which is confusing. The server is started from the test class which would make you think would be using the instrumented classes and jetty would inherit the same classpath. What am I missing? Douglas - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: starting jetty during tests and stopping afterwards
Wierd.. I was not seing that happen. Could it be that we have thread pools running? But i was testing it with eclipse. I wrapped the call to start with a main() and ran that from eclipse and it kept running.. D// On Mar 4, 2010, at 1:17 PM, Kalle Korhonen wrote: > On Thu, Mar 4, 2010 at 11:03 AM, Douglas Ferguson > wrote: >> So how does the server get stopped? > > Up to you, but typically when the JVM exits. > > Kalle > > >> On Mar 4, 2010, at 12:46 PM, Kalle Korhonen wrote: >> >>> If it takes a long time, why would you restart for each test? If you >>> look at the link I sent, you'll see the instance is started only once >>> per jvm by default. >>> >>> Kalle >>> >>> >>> On Thu, Mar 4, 2010 at 10:35 AM, Douglas Ferguson >>> wrote: >>>> I have 20 tests and the number is growing. >>>> >>>> I don't want to start and stop jetty for every test, because hibernate and >>>> guice intialize actually take a little bit of time. >>>> Which would slow down the entire suite.. >>>> >>>> D/ >>>> >>>> >>>> On Mar 4, 2010, at 12:17 PM, Kalle Korhonen wrote: >>>> >>>>> Why would you insist on starting it with mvn? How do you run the the >>>>> same test in your IDE? Wouldn't it be easier to just use JettyHelper >>>>> in your test? For another example of the same concept, perhaps a bit >>>>> more evolved, see >>>>> http://svn.codehaus.org/tynamo/trunk/tapestry-model/tapestry-model-test/src/main/java/org/tynamo/test/AbstractContainerTest.java >>>>> (http://tynamo.org) >>>>> >>>>> Kalle >>>>> >>>>> >>>>> On Thu, Mar 4, 2010 at 9:38 AM, Douglas Ferguson >>>>> wrote: >>>>>> Hmm.. But how would I start that and stop it with mvn? Looks like you'd >>>>>> need to have a reference to the instantiated JettyHelp in order to stop >>>>>> it. >>>>>> >>>>>> D/ >>>>>> >>>>>> On Mar 4, 2010, at 6:07 AM, Stephen Connolly wrote: >>>>>> >>>>>>> public final class JettyHelper { >>>>>>> >>>>>>>private JettyHelper() { >>>>>>>throw new IllegalAccessError("Utility class"); >>>>>>>} >>>>>>> >>>>>>>public static Server createServer(int port, File warFile, String >>>>>>> contextRoot) throws Exception { >>>>>>> >>>>>>>Server server = new Server(); >>>>>>>Connector connector = new SelectChannelConnector(); >>>>>>>connector.setPort(port); >>>>>>>server.addConnector(connector); >>>>>>> >>>>>>>WebAppContext context = new >>>>>>> WebAppContext(warFile.getAbsolutePath(), >>>>>>> contextRoot); >>>>>>> >>>>>>>context.setConfigurationClasses(new String[]{ >>>>>>>"org.mortbay.jetty.webapp.WebInfConfiguration", >>>>>>>"org.mortbay.jetty.plus.webapp.EnvConfiguration", >>>>>>>"org.mortbay.jetty.annotations.Configuration", >>>>>>>"org.mortbay.jetty.webapp.JettyWebXmlConfiguration", >>>>>>>"org.mortbay.jetty.webapp.TagLibConfiguration" >>>>>>>}); >>>>>>> >>>>>>>context.setExtractWAR(false); >>>>>>>context.setCopyWebDir(false); >>>>>>>context.setParentLoaderPriority(true); >>>>>>> >>>>>>>server.setHandler(context); >>>>>>> >>>>>>>server.start(); >>>>>>> >>>>>>>return server; >>>>>>>} >>>>>>> >>>>>>>public static void destroyServer(Server server) throws Exception { >>>>>>>if (server == null) return; >>>>>>>if (!server.isStopped()) { >>>>>>>server.stop(); >>>>>>>server.
Re: starting jetty during tests and stopping afterwards
So how does the server get stopped? On Mar 4, 2010, at 12:46 PM, Kalle Korhonen wrote: > If it takes a long time, why would you restart for each test? If you > look at the link I sent, you'll see the instance is started only once > per jvm by default. > > Kalle > > > On Thu, Mar 4, 2010 at 10:35 AM, Douglas Ferguson > wrote: >> I have 20 tests and the number is growing. >> >> I don't want to start and stop jetty for every test, because hibernate and >> guice intialize actually take a little bit of time. >> Which would slow down the entire suite.. >> >> D/ >> >> >> On Mar 4, 2010, at 12:17 PM, Kalle Korhonen wrote: >> >>> Why would you insist on starting it with mvn? How do you run the the >>> same test in your IDE? Wouldn't it be easier to just use JettyHelper >>> in your test? For another example of the same concept, perhaps a bit >>> more evolved, see >>> http://svn.codehaus.org/tynamo/trunk/tapestry-model/tapestry-model-test/src/main/java/org/tynamo/test/AbstractContainerTest.java >>> (http://tynamo.org) >>> >>> Kalle >>> >>> >>> On Thu, Mar 4, 2010 at 9:38 AM, Douglas Ferguson >>> wrote: >>>> Hmm.. But how would I start that and stop it with mvn? Looks like you'd >>>> need to have a reference to the instantiated JettyHelp in order to stop it. >>>> >>>> D/ >>>> >>>> On Mar 4, 2010, at 6:07 AM, Stephen Connolly wrote: >>>> >>>>> public final class JettyHelper { >>>>> >>>>>private JettyHelper() { >>>>>throw new IllegalAccessError("Utility class"); >>>>>} >>>>> >>>>>public static Server createServer(int port, File warFile, String >>>>> contextRoot) throws Exception { >>>>> >>>>>Server server = new Server(); >>>>>Connector connector = new SelectChannelConnector(); >>>>>connector.setPort(port); >>>>>server.addConnector(connector); >>>>> >>>>>WebAppContext context = new >>>>> WebAppContext(warFile.getAbsolutePath(), >>>>> contextRoot); >>>>> >>>>>context.setConfigurationClasses(new String[]{ >>>>>"org.mortbay.jetty.webapp.WebInfConfiguration", >>>>>"org.mortbay.jetty.plus.webapp.EnvConfiguration", >>>>>"org.mortbay.jetty.annotations.Configuration", >>>>>"org.mortbay.jetty.webapp.JettyWebXmlConfiguration", >>>>>"org.mortbay.jetty.webapp.TagLibConfiguration" >>>>>}); >>>>> >>>>>context.setExtractWAR(false); >>>>>context.setCopyWebDir(false); >>>>>context.setParentLoaderPriority(true); >>>>> >>>>>server.setHandler(context); >>>>> >>>>>server.start(); >>>>> >>>>>return server; >>>>>} >>>>> >>>>>public static void destroyServer(Server server) throws Exception { >>>>> if (server == null) return; >>>>>if (!server.isStopped()) { >>>>>server.stop(); >>>>>server.join(); >>>>>} >>>>>} >>>>> } >>>>> >>>>> >>>>> On 4 March 2010 11:58, Douglas Ferguson >>>>> wrote: >>>>> >>>>>> I've been experimenting with this and have come to find out that the mvn >>>>>> jetty plugin is not compatible with projects that include jetty in their >>>>>> pom >>>>>> dependencies. >>>>>> >>>>>> Now I need to figure out a different way to start up jetty. I have a >>>>>> Start.java class that could start up jetty but i would need to figure out >>>>>> how to stop it. >>>>>> >>>>>> Also, I'm found some information online about a version cobertura plugin >>>>>> that had a seperate generate-report goal. Anybody know where I could >>>>>> locate >>>>>> this?
Re: starting jetty during tests and stopping afterwards
I have 20 tests and the number is growing. I don't want to start and stop jetty for every test, because hibernate and guice intialize actually take a little bit of time. Which would slow down the entire suite.. D/ On Mar 4, 2010, at 12:17 PM, Kalle Korhonen wrote: > Why would you insist on starting it with mvn? How do you run the the > same test in your IDE? Wouldn't it be easier to just use JettyHelper > in your test? For another example of the same concept, perhaps a bit > more evolved, see > http://svn.codehaus.org/tynamo/trunk/tapestry-model/tapestry-model-test/src/main/java/org/tynamo/test/AbstractContainerTest.java > (http://tynamo.org) > > Kalle > > > On Thu, Mar 4, 2010 at 9:38 AM, Douglas Ferguson > wrote: >> Hmm.. But how would I start that and stop it with mvn? Looks like you'd need >> to have a reference to the instantiated JettyHelp in order to stop it. >> >> D/ >> >> On Mar 4, 2010, at 6:07 AM, Stephen Connolly wrote: >> >>> public final class JettyHelper { >>> >>>private JettyHelper() { >>>throw new IllegalAccessError("Utility class"); >>>} >>> >>>public static Server createServer(int port, File warFile, String >>> contextRoot) throws Exception { >>> >>>Server server = new Server(); >>>Connector connector = new SelectChannelConnector(); >>>connector.setPort(port); >>>server.addConnector(connector); >>> >>>WebAppContext context = new WebAppContext(warFile.getAbsolutePath(), >>> contextRoot); >>> >>>context.setConfigurationClasses(new String[]{ >>>"org.mortbay.jetty.webapp.WebInfConfiguration", >>>"org.mortbay.jetty.plus.webapp.EnvConfiguration", >>>"org.mortbay.jetty.annotations.Configuration", >>>"org.mortbay.jetty.webapp.JettyWebXmlConfiguration", >>>"org.mortbay.jetty.webapp.TagLibConfiguration" >>>}); >>> >>>context.setExtractWAR(false); >>>context.setCopyWebDir(false); >>>context.setParentLoaderPriority(true); >>> >>>server.setHandler(context); >>> >>>server.start(); >>> >>>return server; >>>} >>> >>>public static void destroyServer(Server server) throws Exception { >>>if (server == null) return; >>>if (!server.isStopped()) { >>>server.stop(); >>>server.join(); >>>} >>>} >>> } >>> >>> >>> On 4 March 2010 11:58, Douglas Ferguson wrote: >>> >>>> I've been experimenting with this and have come to find out that the mvn >>>> jetty plugin is not compatible with projects that include jetty in their >>>> pom >>>> dependencies. >>>> >>>> Now I need to figure out a different way to start up jetty. I have a >>>> Start.java class that could start up jetty but i would need to figure out >>>> how to stop it. >>>> >>>> Also, I'm found some information online about a version cobertura plugin >>>> that had a seperate generate-report goal. Anybody know where I could locate >>>> this? >>>> >>>> D/ >>>> >>>> On Mar 4, 2010, at 4:05 AM, Brett Porter wrote: >>>> >>>>> On 04/03/2010, at 8:49 PM, Douglas Ferguson wrote: >>>>> >>>>>> Is there a clean way to start up jetty for the testing and then stopping >>>> git afterwards? >>>>>> >>>>>> I'd like to include my integration tests for my code coverage. >>>>>> >>>>>> I'd like to set my code coverage profile to only start up jetty after >>>> cobertura has instrumented the classes >>>>>> then shut it down after the tests complete. >>>>>> >>>>>> Could I just start up the jetty in process-test-classes and shut it down >>>> in prepare-package? >>>>> >>>>> Yep. >>>>> >>>>> >>>> http://github.com/brettporter/centrepoint/blob/master/centrepoint/modules/selenium-tests/pom.xml >>>>> >>>>> Bear in mind that if th
Re: starting jetty during tests and stopping afterwards
Hmm.. But how would I start that and stop it with mvn? Looks like you'd need to have a reference to the instantiated JettyHelp in order to stop it. D/ On Mar 4, 2010, at 6:07 AM, Stephen Connolly wrote: > public final class JettyHelper { > >private JettyHelper() { >throw new IllegalAccessError("Utility class"); >} > >public static Server createServer(int port, File warFile, String > contextRoot) throws Exception { > >Server server = new Server(); >Connector connector = new SelectChannelConnector(); >connector.setPort(port); >server.addConnector(connector); > >WebAppContext context = new WebAppContext(warFile.getAbsolutePath(), > contextRoot); > >context.setConfigurationClasses(new String[]{ >"org.mortbay.jetty.webapp.WebInfConfiguration", >"org.mortbay.jetty.plus.webapp.EnvConfiguration", >"org.mortbay.jetty.annotations.Configuration", >"org.mortbay.jetty.webapp.JettyWebXmlConfiguration", >"org.mortbay.jetty.webapp.TagLibConfiguration" >}); > >context.setExtractWAR(false); >context.setCopyWebDir(false); >context.setParentLoaderPriority(true); > >server.setHandler(context); > >server.start(); > >return server; >} > >public static void destroyServer(Server server) throws Exception { > if (server == null) return; >if (!server.isStopped()) { >server.stop(); >server.join(); >} >} > } > > > On 4 March 2010 11:58, Douglas Ferguson wrote: > >> I've been experimenting with this and have come to find out that the mvn >> jetty plugin is not compatible with projects that include jetty in their pom >> dependencies. >> >> Now I need to figure out a different way to start up jetty. I have a >> Start.java class that could start up jetty but i would need to figure out >> how to stop it. >> >> Also, I'm found some information online about a version cobertura plugin >> that had a seperate generate-report goal. Anybody know where I could locate >> this? >> >> D/ >> >> On Mar 4, 2010, at 4:05 AM, Brett Porter wrote: >> >>> On 04/03/2010, at 8:49 PM, Douglas Ferguson wrote: >>> >>>> Is there a clean way to start up jetty for the testing and then stopping >> git afterwards? >>>> >>>> I'd like to include my integration tests for my code coverage. >>>> >>>> I'd like to set my code coverage profile to only start up jetty after >> cobertura has instrumented the classes >>>> then shut it down after the tests complete. >>>> >>>> Could I just start up the jetty in process-test-classes and shut it down >> in prepare-package? >>> >>> Yep. >>> >>> >> http://github.com/brettporter/centrepoint/blob/master/centrepoint/modules/selenium-tests/pom.xml >>> >>> Bear in mind that if the tests fail, the "stop" won't be run, but >> normally they will shut down properly when Maven does anyway. >>> >>> - Brett >>> >>> -- >>> Brett Porter >>> br...@apache.org >>> http://brettporter.wordpress.com/ >>> >>> >>> >>> >>> >>> - >>> 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 >> >> - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: starting jetty during tests and stopping afterwards
I've been experimenting with this and have come to find out that the mvn jetty plugin is not compatible with projects that include jetty in their pom dependencies. Now I need to figure out a different way to start up jetty. I have a Start.java class that could start up jetty but i would need to figure out how to stop it. Also, I'm found some information online about a version cobertura plugin that had a seperate generate-report goal. Anybody know where I could locate this? D/ On Mar 4, 2010, at 4:05 AM, Brett Porter wrote: > On 04/03/2010, at 8:49 PM, Douglas Ferguson wrote: > >> Is there a clean way to start up jetty for the testing and then stopping git >> afterwards? >> >> I'd like to include my integration tests for my code coverage. >> >> I'd like to set my code coverage profile to only start up jetty after >> cobertura has instrumented the classes >> then shut it down after the tests complete. >> >> Could I just start up the jetty in process-test-classes and shut it down in >> prepare-package? > > Yep. > > http://github.com/brettporter/centrepoint/blob/master/centrepoint/modules/selenium-tests/pom.xml > > Bear in mind that if the tests fail, the "stop" won't be run, but normally > they will shut down properly when Maven does anyway. > > - Brett > > -- > Brett Porter > br...@apache.org > http://brettporter.wordpress.com/ > > > > > > - > 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
starting jetty during tests and stopping afterwards
Is there a clean way to start up jetty for the testing and then stopping git afterwards? I'd like to include my integration tests for my code coverage. I'd like to set my code coverage profile to only start up jetty after cobertura has instrumented the classes then shut it down after the tests complete. Could I just start up the jetty in process-test-classes and shut it down in prepare-package? D/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: tomcat blocks maven
Because I'm doing integration testing and I want to test my application after doing a real install. D/ On Feb 22, 2010, at 1:21 AM, Anders Hammar wrote: > Why aren't you using a real maven plugin to start tomcat and to deploy to > tomcat? > http://mojo.codehaus.org/tomcat-maven-plugin/ > or > http://cargo.codehaus.org/Maven2+plugin > > /Anders > > On Sun, Feb 21, 2010 at 17:33, Douglas Ferguson > wrote: > >> I have a pre-integration-test execution of the ant task plugin that >> installs my snapshot so that the integration tests can run against the new >> snapshot. >> >> After my install script exits maven hangs. I tracked this down to the fact >> that my install script stops and starts tomcat. >> If I stop tomcat at the end of my install script maven runs fine. >> >> My work around is to call a wrapper script that calls install then stop >> tomcat. >> Then start tomcat in a separate execution with "fork=true" >> >> Even though I have a work around I'd like to get to the bottom of this for >> 2 reasons >> >> 1) I can't for the life of me think of what tomcat/maven could be doing to >> cause this >> 2) It would be nice to test the real world install script and not one that >> restarts tomcat (i.e. what if I'm masking a bug) >> >> D/ >> >> >> >> - >> 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
tomcat blocks maven
I have a pre-integration-test execution of the ant task plugin that installs my snapshot so that the integration tests can run against the new snapshot. After my install script exits maven hangs. I tracked this down to the fact that my install script stops and starts tomcat. If I stop tomcat at the end of my install script maven runs fine. My work around is to call a wrapper script that calls install then stop tomcat. Then start tomcat in a separate execution with "fork=true" Even though I have a work around I'd like to get to the bottom of this for 2 reasons 1) I can't for the life of me think of what tomcat/maven could be doing to cause this 2) It would be nice to test the real world install script and not one that restarts tomcat (i.e. what if I'm masking a bug) D/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: SureFire: "parallel" attribute
Anybody? On Feb 10, 2010, at 6:10 PM, Douglas Ferguson wrote: > Can anybody shed light on this comment? > > .. > > parallel > > String2.2 (TestNG only) When you use the parallel attribute, > TestNG will try to run all your test methods in separate threads, except for > methods that depend on each other, which will be run in the same thread > in order to respect their order of execution. > > In JUnit 4.7 the values are classes/methods/both to run in separate > threads, as controlled by threadCount. > > . > > I have junit test tests and when I set parallel = methods it runs everything > synchronously, however when I set parallel = classes, it runs the classes in > parallel. I haven't been able to find good documentation for this anywhere.. > Does anybody know of any good resources? > > Also, assuming I can get methods to work, does it run all methods in parallel > or does it run the methods in parallel by class? i.e. 1 class at a time but > all the methods in that class are parallel? > > Are there other gotchas or configuration settings I should be considering? > I.E. I've read a little bit on ConfigurableParallelComputer but I'm not sure > what it's all about.. > > Douglas Ferguson > > mobile: 512.293.7279 > office/fax: 512.462.0408 > skype: stillrecording > aim: DaAmericanRuse > > - > > http://www.linkedin.com/in/douglasferguson > http://www.myspace.com/douglasferguson > http://www.douglasferguson.us/ > http://www.distilleryrecords.com/ > http://www.stillrecording.com/ > > Join my mailing list: distilleryrecords-subscr...@yahoogroups.com > > > - > 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
SureFire: "parallel" attribute
Can anybody shed light on this comment? .. parallel String 2.2 (TestNG only) When you use the parallel attribute, TestNG will try to run all your test methods in separate threads, except for methods that depend on each other, which will be run in the same thread in order to respect their order of execution. In JUnit 4.7 the values are classes/methods/both to run in separate threads, as controlled by threadCount. . I have junit test tests and when I set parallel = methods it runs everything synchronously, however when I set parallel = classes, it runs the classes in parallel. I haven't been able to find good documentation for this anywhere.. Does anybody know of any good resources? Also, assuming I can get methods to work, does it run all methods in parallel or does it run the methods in parallel by class? i.e. 1 class at a time but all the methods in that class are parallel? Are there other gotchas or configuration settings I should be considering? I.E. I've read a little bit on ConfigurableParallelComputer but I'm not sure what it's all about.. Douglas Ferguson mobile: 512.293.7279 office/fax: 512.462.0408 skype: stillrecording aim: DaAmericanRuse - http://www.linkedin.com/in/douglasferguson http://www.myspace.com/douglasferguson http://www.douglasferguson.us/ http://www.distilleryrecords.com/ http://www.stillrecording.com/ Join my mailing list: distilleryrecords-subscr...@yahoogroups.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: starting tomcat in pre-integrations-test haults build
I ran it with -X and got tons of debug output but I didn't see anything indicating that there might be blocking.. D/ On Jan 28, 2010, at 8:52 AM, Anders Hammar wrote: > You have to provide more info, like log outputs etc., for us to help. What > plugins are you using, what's your config? > > First of all, try debugging by executing > mvn install -X > > /Anders > > On Thu, Jan 28, 2010 at 15:24, Douglas Ferguson > wrote: > >> If I start tomcat in the pre-integration-test the build hangs. >> >> Why is this? >> >> D/ >> >> - >> 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: starting tomcat in pre-integrations-test haults build
I'm running the ant run plugin and in ant I'm using the exec target. I got the same results with the maven exec plugin. Inside the ant task I exec a script that runs the installer for my app, which stops tomcat at the beginning and then starts it. this causes maven to hang. My work around is to call a wrapper script that runs the installer then stops tomcat. Then i have a second ant task that start tomcat with spawn=true. I will take some time later to set it back and run with -X option.. D/ On Jan 28, 2010, at 8:52 AM, Anders Hammar wrote: > You have to provide more info, like log outputs etc., for us to help. What > plugins are you using, what's your config? > > First of all, try debugging by executing > mvn install -X > > /Anders > > On Thu, Jan 28, 2010 at 15:24, Douglas Ferguson > wrote: > >> If I start tomcat in the pre-integration-test the build hangs. >> >> Why is this? >> >> D/ >> >> - >> 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
starting tomcat in pre-integrations-test haults build
If I start tomcat in the pre-integration-test the build hangs. Why is this? D/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: running tests in parallel
Also, I just found this on somebodies blog, but I can't find anything on this configuration settings... maven-surefire-plugin 2.5-SNAPSHOT classes true 80 true On Jan 28, 2010, at 2:20 AM, Douglas Ferguson wrote: > Can somebody elaborate on this? > > 1) This says TestNG allows you to... but it is a configuration for sure fire? > 2) It also says "including JUnit tests" So I'm a bit confused.. > > I'd just like to know how to get my junit tests to run in parallel. > > > TestNG allows you to run your tests in parallel, including JUnit tests. To do > this, you must set the parallel parameter, and may change the threadCount > parameter if the default of 5 is not sufficient. For example: > >[...] > >org.apache.maven.plugins >maven-surefire-plugin >2.5 > > methods > 10 > > >[...] > > This is particularly useful for slow tests that can have high concurrency, or > to quickly and roughly assess the independance and thread safety of your > tests and code. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
running tests in parallel
Can somebody elaborate on this? 1) This says TestNG allows you to... but it is a configuration for sure fire? 2) It also says "including JUnit tests" So I'm a bit confused.. I'd just like to know how to get my junit tests to run in parallel. TestNG allows you to run your tests in parallel, including JUnit tests. To do this, you must set the parallel parameter, and may change the threadCount parameter if the default of 5 is not sufficient. For example: [...] org.apache.maven.plugins maven-surefire-plugin 2.5 methods 10 [...] This is particularly useful for slow tests that can have high concurrency, or to quickly and roughly assess the independance and thread safety of your tests and code.
Code Coverage for integration tests
Is there anyway to get code coverage numbers for integration tests? D/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven hanging
I am running my install script during pre-integration-test And after my install script is done, as prints out its "Install Complete" message, maven hangs... I'm using a wrapper and calling sudo so that the install runs as root. I've commited out the call to my install and maven stops hanging. So, there is something about my install script that is causing maven to hang even though the install script exits. I've had tried using maven-exec plugin and ant-exec and they both do the same thing.. D/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven, Eclipse, & Junit
When running unit tests from eclipse I cant resolve my test resources because they are placed in test-classes. How have folks dealt with this? I know this is off topic ( if you know of a good forum please point me), but is there a way to run 1 test method from a test case using eclipse, like idea does? D-
War Dependencies
Why arent war dependencies transitive? D-
Re: JUnit Output Directory
I am trying to test a class that produces a file. I'd like the file to be generated in the target directory. Is there a way to pass the target directory to JUnit. The documenation on surefire says that system properties won't evaluate non-string properties, speicifically siting this example "...will literally pass $project.build.outputDirectory because the value of that expression is a File, not a String." http://maven.apache.org/plugins/maven-surefire-plugin/examples/system-properties.html Denis Cabasson wrote: > > > Ole Ersoy wrote: >> >> Hi, >> >> Does anyone know whether I can specify which directory >> a junit test will run in. >> > > What kind of output do your Junit tests have? > > IMHO, Junit shouldn't have any output, except for failure of the test. > Junit is about automatised tests. Such test shouldn't have any output. > Moreover, if your tests have any output, it should definitly goes in the > target directory, not in the src... > > Denis. > > -- View this message in context: http://www.nabble.com/JUnit-Output-Directory-tf1993004.html#a6602074 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: War: Exclude A Transitive Dependency
That only works for war overlay right? This is a war with jar deps. I am picking up the j2ee.jar through a jar dep. I want it at compile time but I don't want it in my war. I think the only solution is to duplicate the transitivbe dependency in the local project and mark it provided. -Original Message- From: franz see [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 10:16 PM To: users@maven.apache.org Subject: Re: War: Exclude A Transitive Dependency Douglas Ferguson wrote: > > I have a project that generates a war file, the j2ee jar is inheritented > as a transitive dependency, however if the j2ee jar is included, then > tomcat prints a warning but websphere refuses to deploy. > > > > Is there anyway to tell the war plugin not to include this lib? I know > I could mark the dependency as provided but I thought I would see if > there is a more elegant way to do this without having to specify a > version that I could obtain transitively. > > > > D- > > > > Good day to you, Douglas, You can try and add the paths (relative paths), of those jars that you don't want to get included to your warDependencyExcludes (comma separated). For more info, please see [1] "Configuring the war-overlay" section. However, [1] is not yet released. But please feel free to let us know what you think so that we can improve it. Thanks, Franz [1] http://people.apache.org/~vsiveton/maven-war-plugin/examples/war-overlay.html -- View this message in context: http://www.nabble.com/War%3A-Exclude-A-Transitive-Dependency-tf2340250.html#a6519812 Sent from the Maven - Users mailing list archive at Nabble.com. - 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: Release question
We have a special profile for releasing that sets some extra variables. -Original Message- From: Julian Wood [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 3:00 PM To: Maven Users List Subject: Release question When releasing an artifact, during release:prepare, I get to this point: ... [INFO] Executing preparation goals 'clean integration-test'... [INFO] Executing: mvn clean integration-test --no-plugin-updates -P deploy-config,deploy-config [INFO] Scanning for projects... ... Is there a way to modify the command above: mvn clean integration-test --no-plugin-updates -P deploy- config,deploy-config such that it has additional parameters? mvn clean integration-test --no-plugin-updates -P deploy- config,deploy-config -Dmaven.buildNumber.skipCheck=true or can it automatically inherit said parameters from the original command? mvn release:prepare -Dmaven.buildNumber.skipCheck=true Alternatively, is there a way for my plugin to determine that it is being executed in the context of a release? I do not want it to execute certain things at any point during release. Thanks, J -- Julian Wood <[EMAIL PROTECTED]> Software Engineer Teaching & Learning Centre University of Calgary http://tlc.ucalgary.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
War: Exclude A Transitive Dependency
I have a project that generates a war file, the j2ee jar is inheritented as a transitive dependency, however if the j2ee jar is included, then tomcat prints a warning but websphere refuses to deploy. Is there anyway to tell the war plugin not to include this lib? I know I could mark the dependency as provided but I thought I would see if there is a more elegant way to do this without having to specify a version that I could obtain transitively. D-
RE: Compiler Plugin
PS: That how-to is really good, it would have helped me, I say post it ASAP! And maybe include some more explanation as to what would make my previous configuration work, because that isn't clear to me. -Original Message- From: Douglas Ferguson Sent: Friday, September 22, 2006 9:28 AM To: users Subject: RE: Compiler Plugin Thanks, I think this is what I need, but I am missing something.. I added this: -classpath src/main/webapp/WEB-INF/classes But get this: javac: invalid flag: -classpath src/main/webapp/WEB-INF/classes -Original Message- From: franz see [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 8:20 PM To: users@maven.apache.org Subject: RE: Compiler Plugin Douglas Ferguson wrote: > > Anybody? > > -Original Message- > From: Douglas Ferguson > Sent: Thursday, September 21, 2006 3:05 PM > To: users > Subject: Compiler Plugin > > I tried to configure the compiler plugin to do the following: > > > > > > > > > >maven-compiler-plugin > > > > > > > src/main/webapp/WEB-INF/classes > > > > > > > > > > > > > > > > But I get this error: > > > > [INFO] Error configuring: > org.apache.maven.plugins:maven-compiler-plugin. Reason: ERROR: Cannot > override read-only parameter: classpathElements in goal: > compiler:compile > > > > I am placing .class files in WEB-INF/classes & .jar files in > WEB-INF/lib. > > I know this bypasses the maven dependency scheme, however this is for > some legacy stuff that was never versioned and it is a stop gap until > older clients get upgraded. > > > > Is there anyway to add stuff to the compiler_s classpath? > > > > D- > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Good day to you, Douglas, Inside your plugin's configuration, you can place inside the arguements to your compiler. Assuming your using javac, you can set your -classpath under the compilerArguement or compilerArguements tag (see [1] for windows javac, and [2] for maven-compiler-plugin documentation). [2] however is still being reviewed. If you have any comments about it, kindly notify us about it so that we can improve it. Thanks, Franz [1] http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html [2] http://people.apache.org/~epunzalan/maven-compiler-plugin/examples/pass-compiler-arguments.html -- View this message in context: http://www.nabble.com/Compiler-Plugin-tf2314129.html#a6439546 Sent from the Maven - Users mailing list archive at Nabble.com. - 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: Compiler Plugin
I changed it to this src/main/webapp/WEB-INF/classes And it works.. D- -Original Message- From: Douglas Ferguson Sent: Friday, September 22, 2006 9:28 AM To: users Subject: RE: Compiler Plugin Thanks, I think this is what I need, but I am missing something.. I added this: -classpath src/main/webapp/WEB-INF/classes But get this: javac: invalid flag: -classpath src/main/webapp/WEB-INF/classes -Original Message- From: franz see [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 8:20 PM To: users@maven.apache.org Subject: RE: Compiler Plugin Douglas Ferguson wrote: > > Anybody? > > -Original Message----- > From: Douglas Ferguson > Sent: Thursday, September 21, 2006 3:05 PM > To: users > Subject: Compiler Plugin > > I tried to configure the compiler plugin to do the following: > > > > > > > > > >maven-compiler-plugin > > > > > > > src/main/webapp/WEB-INF/classes > > > > > > > > > > > > > > > > But I get this error: > > > > [INFO] Error configuring: > org.apache.maven.plugins:maven-compiler-plugin. Reason: ERROR: Cannot > override read-only parameter: classpathElements in goal: > compiler:compile > > > > I am placing .class files in WEB-INF/classes & .jar files in > WEB-INF/lib. > > I know this bypasses the maven dependency scheme, however this is for > some legacy stuff that was never versioned and it is a stop gap until > older clients get upgraded. > > > > Is there anyway to add stuff to the compiler_s classpath? > > > > D- > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Good day to you, Douglas, Inside your plugin's configuration, you can place inside the arguements to your compiler. Assuming your using javac, you can set your -classpath under the compilerArguement or compilerArguements tag (see [1] for windows javac, and [2] for maven-compiler-plugin documentation). [2] however is still being reviewed. If you have any comments about it, kindly notify us about it so that we can improve it. Thanks, Franz [1] http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html [2] http://people.apache.org/~epunzalan/maven-compiler-plugin/examples/pass-compiler-arguments.html -- View this message in context: http://www.nabble.com/Compiler-Plugin-tf2314129.html#a6439546 Sent from the Maven - Users mailing list archive at Nabble.com. - 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: Compiler Plugin
Thanks, I think this is what I need, but I am missing something.. I added this: -classpath src/main/webapp/WEB-INF/classes But get this: javac: invalid flag: -classpath src/main/webapp/WEB-INF/classes -Original Message- From: franz see [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 8:20 PM To: users@maven.apache.org Subject: RE: Compiler Plugin Douglas Ferguson wrote: > > Anybody? > > -Original Message----- > From: Douglas Ferguson > Sent: Thursday, September 21, 2006 3:05 PM > To: users > Subject: Compiler Plugin > > I tried to configure the compiler plugin to do the following: > > > > > > > > > >maven-compiler-plugin > > > > > > > src/main/webapp/WEB-INF/classes > > > > > > > > > > > > > > > > But I get this error: > > > > [INFO] Error configuring: > org.apache.maven.plugins:maven-compiler-plugin. Reason: ERROR: Cannot > override read-only parameter: classpathElements in goal: > compiler:compile > > > > I am placing .class files in WEB-INF/classes & .jar files in > WEB-INF/lib. > > I know this bypasses the maven dependency scheme, however this is for > some legacy stuff that was never versioned and it is a stop gap until > older clients get upgraded. > > > > Is there anyway to add stuff to the compiler_s classpath? > > > > D- > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Good day to you, Douglas, Inside your plugin's configuration, you can place inside the arguements to your compiler. Assuming your using javac, you can set your -classpath under the compilerArguement or compilerArguements tag (see [1] for windows javac, and [2] for maven-compiler-plugin documentation). [2] however is still being reviewed. If you have any comments about it, kindly notify us about it so that we can improve it. Thanks, Franz [1] http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html [2] http://people.apache.org/~epunzalan/maven-compiler-plugin/examples/pass-compiler-arguments.html -- View this message in context: http://www.nabble.com/Compiler-Plugin-tf2314129.html#a6439546 Sent from the Maven - Users mailing list archive at Nabble.com. - 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: Compiler Plugin
Anybody? -Original Message- From: Douglas Ferguson Sent: Thursday, September 21, 2006 3:05 PM To: users Subject: Compiler Plugin I tried to configure the compiler plugin to do the following: maven-compiler-plugin src/main/webapp/WEB-INF/classes But I get this error: [INFO] Error configuring: org.apache.maven.plugins:maven-compiler-plugin. Reason: ERROR: Cannot override read-only parameter: classpathElements in goal: compiler:compile I am placing .class files in WEB-INF/classes & .jar files in WEB-INF/lib. I know this bypasses the maven dependency scheme, however this is for some legacy stuff that was never versioned and it is a stop gap until older clients get upgraded. Is there anyway to add stuff to the compilers classpath? D- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compiler Plugin
I tried to configure the compiler plugin to do the following: maven-compiler-plugin src/main/webapp/WEB-INF/classes But I get this error: [INFO] Error configuring: org.apache.maven.plugins:maven-compiler-plugin. Reason: ERROR: Cannot override read-only parameter: classpathElements in goal: compiler:compile I am placing .class files in WEB-INF/classes & .jar files in WEB-INF/lib. I know this bypasses the maven dependency scheme, however this is for some legacy stuff that was never versioned and it is a stop gap until older clients get upgraded. Is there anyway to add stuff to the compilers classpath? D-
RE: creating archetypes
Sorry for the spam, but is there a way to prevent the archetype from adding the created module to the pom file? -Original Message- From: Douglas Ferguson Sent: Thursday, September 14, 2006 9:59 PM To: users Subject: RE: creating archetypes Also, the archetype also seems to be creating a src/main/java/${groupId} directory. Anyway to keep this from happening? D- -Original Message- From: Douglas Ferguson Sent: Thursday, September 14, 2006 9:32 PM To: users Subject: creating archetypes The create archetypes document seems to have descripancies. Which is correct? testRecources or test-recources? Is allowPartial supported? The document also says that you cant create empty directories, is that still the case? D- - 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: creating archetypes
Also, the archetype also seems to be creating a src/main/java/${groupId} directory. Anyway to keep this from happening? D- -Original Message- From: Douglas Ferguson Sent: Thursday, September 14, 2006 9:32 PM To: users Subject: creating archetypes The create archetypes document seems to have descripancies. Which is correct? testRecources or test-recources? Is allowPartial supported? The document also says that you cant create empty directories, is that still the case? D- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
creating archetypes
The create archetypes document seems to have descripancies. Which is correct? testRecources or test-recources? Is allowPartial supported? The document also says that you cant create empty directories, is that still the case? D-
RE: maven repositories & https
I ended up using scp:// because I couldn't get anything to work over https:// However, I was unable to define multiple repositories using the same So they could share the user & pass. When you have the same the first one wins and the others aren't picked up. Using the same id works if they are in separate lists, i.e. dependency management:repositories, dependency management:snapshotrepositories, repositories But when you put them in the same list (i.e. all in repositories then it don't work) D- -Original Message- From: franz see [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 8:14 AM To: users@maven.apache.org Subject: Re: maven repositories & https Douglas Ferguson wrote: > > My IT department just started requiring my repository to use https. > However they didn_t install a signed cert. > > > > Maven is now failing with the error: Error transferring file > > > Could this be because the cert isn_t signed? > > Is there anything else that I need to consider when using https for the > repository url? > > > > Good day to you, Douglas, I think you have to specify the following in your {M2_HOME}\conf\settings.xml ... ... ... Cheers, Franz -- View this message in context: http://www.nabble.com/maven-repositories---https-tf2269481.html#a6305623 Sent from the Maven - Users forum at Nabble.com. - 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]
Packaging
I have a project that needs to generate a jar with dependencies. The jar without the deps is never needed. At first I had the project set to packaging pom and used the assembly plugin to generate my jar with deps. However, neigther works great: 1) in packaging type pom, the process-resources phase is never called. is there a way to get this phase to execute for pom? 2) in packaging type, jar I end up with 2 jar files. 1 with the correct name but not enough contents Another with the correct contents but an extra classifer on the name. Is there a way to prevent the jar:jar phase from running for the jar packaging?
RE: Plugins & Executions
Yeah.. I know but I was curious if you didn't define a phase. It will use the configuration when you run it on the commandline. However, what does it do if there are 2 executions that aren't bound to any phase? -Original Message- From: Edwin Punzalan [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 10:12 AM To: Maven Users List Subject: Re: Plugins & Executions There is a in ... you can put it there. Douglas Ferguson wrote: > If you are define a plugin in your pom that isnt binded to a lifecyle > phase, and then add executions to the plugin. > > > > When will this execute? > > > > I was thinking that it would be great if you can define 2 executions > with separate configs and then somehow instruct the commandline to run > the specific execution. > > > > I guess you could do this with profiles > > > > - 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: maven repositories & https
Not sure if this is the recommended approach but I got it to work by using scp:// -Original Message- From: Douglas Ferguson Sent: Wednesday, September 13, 2006 10:51 PM To: users Subject: maven repositories & https My IT department just started requiring my repository to use https. However they didnt install a signed cert. Maven is now failing with the error: Error transferring file Could this be because the cert isnt signed? Is there anything else that I need to consider when using https for the repository url? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven repositories & https
My IT department just started requiring my repository to use https. However they didnt install a signed cert. Maven is now failing with the error: Error transferring file Could this be because the cert isnt signed? Is there anything else that I need to consider when using https for the repository url?
Plugins & Executions
If you are define a plugin in your pom that isnt binded to a lifecyle phase, and then add executions to the plugin. When will this execute? I was thinking that it would be great if you can define 2 executions with separate configs and then somehow instruct the commandline to run the specific execution. I guess you could do this with profiles
RE: releasing a tag
Totally... However, I think I might check out the tag, edit the pom then, tag the working copy. D- -Original Message- From: Yann Le Du [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 5:11 PM To: Maven Users List Subject: Re: releasing a tag Maybe you could : - checkout the tag - change pom version to 2.2.3 - deploy (this is what mvn release:perform does from the tag) Does it address your need ? 2006/9/12, Douglas Ferguson <[EMAIL PROTECTED]>: > > Is there a way to release from a tag? > > > > Say I have my-app-2.2.3-RC-1 for release candidate 1 and I want to > release that as my-ap-2.2.3 > > If I check out the tag and do a release, mvn is going to want to commit > pom changes to the tag, which it I don't want it to do. > > Any other way to do this? > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
releasing a tag
Is there a way to release from a tag? Say I have my-app-2.2.3-RC-1 for release candidate 1 and I want to release that as my-ap-2.2.3 If I check out the tag and do a release, mvn is going to want to commit pom changes to the tag, which it I dont want it to do. Any other way to do this?
RE: eclipse:eclipse - adding to classpath
I realized that I could do it via profiles, but I didn't want the developer to have to know to provide the profile. I'd rather them run eclipse:eclipse and have it work out the box. I think a neat maven feature would be to be able to enable a profile for a specific plugin. D- -Original Message- From: franz see [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 12:03 PM To: users@maven.apache.org Subject: Re: eclipse:eclipse - adding to classpath Douglas Ferguson wrote: > > Is there a way to specifically add a jar to the classpath when running > eclipse:eclipse? > > > > If I_m not running in snapshot mode, I need to add > jar-with-dependencies, but if I am running in snapshot mode, I don_t wan > to add it, I use project dependencies. > > > > I tried defining the dependency inside the eclipse plugin section, but > eclipse:eclipse doesn_t include those in the .classpath. > > > > D- > > > > Good day to you, Douglas, I think the key to your problem is to use profiles. You may want to take a look at [1] for more info about it :-) Cheers, Franz [1] http://maven.apache.org/guides/introduction/introduction-to-profiles.html -- View this message in context: http://www.nabble.com/eclipse%3Aeclipse---adding-to-classpath-tf2259706.html#a6270335 Sent from the Maven - Users forum at Nabble.com. - 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: release plugin & profiles
This seems to only be a problem if the profile is defined in a parent pom. -Original Message- From: Douglas Ferguson Sent: Tuesday, September 12, 2006 11:32 AM To: users Subject: release plugin & profiles I added a profile called releasing and added an assembly:attached execution and a dependency:unpack during the package phase. Neither of these get called when I run mvn release:prepare release:perform Preleasing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
release plugin & profiles
I added a profile called releasing and added an assembly:attached execution and a dependency:unpack during the package phase. Neither of these get called when I run mvn release:prepare release:perform Preleasing
eclipse:eclipse - adding to classpath
Is there a way to specifically add a jar to the classpath when running eclipse:eclipse? If Im not running in snapshot mode, I need to add jar-with-dependencies, but if I am running in snapshot mode, I dont wan to add it, I use project dependencies. I tried defining the dependency inside the eclipse plugin section, but eclipse:eclipse doesnt include those in the .classpath. D-
mvn release:perform & war overlay
I just starting getting this problem that I didnt have before. My build works file up until release:perform. Even release:prepare works fine. But when the war:war task starts during release:perform, it fails siting that there is no web.xml. The web.xml should come from the war overlay, however for some reason the war overlay isnt running during relase:perform. D-
RE: Binding Assembly Executing to the Release Plugin
If I have the assembly in a project, how can I trigger a separate project during a release? Sorry I didn't follow that. Also, what do you mean conditional build? D- -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Monday, September 11, 2006 12:50 PM To: Maven Users List Subject: Re: Binding Assembly Executing to the Release Plugin Use maven profile to do conditional build. In your case, I would suggest to create a separate project to do the assembly, and profile it to run only when a release occurs. -D On 9/11/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote: > > Is it possible to bind the assembly plugin to the release phase? > > > > I want to create a jar with dependencies and have it get released, but I > don't want to have to create that everytime I run install. > > > D- > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Binding Assembly Executing to the Release Plugin
Is it possible to bind the assembly plugin to the release phase? I want to create a jar with dependencies and have it get released, but I dont want to have to create that everytime I run install. D-
Books
Are there any maven books that are in print? I saw this one, Is it any good? http://www.amazon.com/Pro-Apache-Maven-Milind-Parikh/dp/1590595211/sr=1 -1/qid=1157988413/ref=pd_bbs_1/002-4329355-4816846?ie=UTF8&s=books This one looks out of date: http://www.amazon.com/Maven-Developer-Notebook-Timothy-Brien/dp/05960075 07/sr=1-2/qid=1157988413/ref=pd_bbs_2/002-4329355-4816846?ie=UTF8&s=book s
Browser Testing - Selenium?
Anybody have experience with Maven & Selenium? http://www.openqa.org/selenium/index.html If not, have you used any other test?
RE: Eclipse & target directory
Awesome! Thanks. Where does it store this value? I can't find it in any of the config files for the project. Could this be added to eclipse:eclipse? -Original Message- From: Donnchadh Ó Donnabháin [mailto:[EMAIL PROTECTED] Sent: Friday, September 08, 2006 8:48 AM To: Maven Users List Subject: Re: Eclipse & target directory In eclipse right-click on the target folder and select 'Properties...' Then, in the Info page, check the 'derived' check box. This should exlude it from searches and resource lookups. Probably error reporting too but I haven't verified that Donnchadh On 9/5/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote: > When using eclipse on war projects, the target directory will start to > collect copies of jsp files, from war:war commands, etc. > > > > Is there a way to have eclipse ignore the files when searching and > reporting errors? > > > > D- > > > > - 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: Eclipse & target directory
Does anybody experience this? I'm also having trouble when I install a new version of a dependent jar, then run eclipse:eclipse, eclipse doesn't update the errors. It will still send the old api, even after I run refresh. Is there a magic sequence that would make things works smoother? D- - Original Message - From: [EMAIL PROTECTED] Sent: Tue, 9/5/2006 11:43am To: users Subject: Eclipse & target directory When using eclipse on war projects, the target directory will start to collect copies of jsp files, from war:war commands, etc. Is there a way to have eclipse ignore the files when searching and reporting errors? D- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: directory v. outputDirectory
Can you define multiple source directories? I am guessing that transitive dependencies aren't getting linked in? D- -Original Message- From: Brad Harper Sent: Tuesday, September 05, 2006 12:25 PM To: users Subject: RE: directory v. outputDirectory The libraries will be built as a mixture of .lib and .dll files (on Windows) and .a and .so archives (on *nix platforms). Brad > -Original Message- > From: Douglas Ferguson > Sent: Tuesday, September 05, 2006 11:36 AM > To: users > Subject: RE: directory v. outputDirectory > > > What format must the archive be in? > > > > -Original Message- > From: Brad Harper > Sent: Tuesday, September 05, 2006 10:02 AM > To: users > Subject: RE: directory v. outputDirectory > > Dan: > > My intent is to have copies of a set of archive libraries collected > into a single directory. The libraries are sibling modules of a parent > project. > > Each library could be copied into the target area as it is built, or > the libraries could be copied (from their respective projects) by the > parent project in a roll-up operation. > > I considered running the assembly plugin in the parent project, > but the archive libraries cannot be in a .zip/.tar/.tgz format. > > Brad > > > -Original Message- > > From: dan tran [mailto:[EMAIL PROTECTED] > > Sent: Saturday, September 02, 2006 12:32 AM > > To: Maven Users List > > Subject: Re: directory v. outputDirectory > > > > > > native-maven-plugin''s outputDirectory purposely set to > > readonly so that all > > outputs ( .o, .dll, etc) stay inside > > target directory. and mvn clean can clear them as well. > > > > Why do you want the output files outside of project? > perhaps there is > > another way to accomplish > > what you need after the build. > > > > -D > > > > > > On 9/1/06, Brad Harper <[EMAIL PROTECTED]> wrote: > > > > > > > > > What's the difference between > > > > > > > > > > > > > > > ... > > > > > > I'm using maven-native-plugin, which has identical configuration > > > elements, but I'm prevented from using them, i.e. > > > > > > > > > > > > > > > > > > > > > > > > > > > by errors complaining about over-written read-only parameters. > > > > > > It would be OK if libraries (modules) were to build in their own > > > target/ sub-directories, but I'd like to move a copy of the > > resulting > > > libraries into a central location higher in the project hierarchy. > > > > > > Brad > > > > > > > > > - > > > 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] > > - 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]
Eclipse & target directory
When using eclipse on war projects, the target directory will start to collect copies of jsp files, from war:war commands, etc. Is there a way to have eclipse ignore the files when searching and reporting errors? D-
RE: release:perform
Does anybody know if this is possible? -Original Message- From: Douglas Ferguson Sent: Monday, September 04, 2006 11:57 AM To: users Subject: RE: release:perform This is the command. mvn release:perform -DconnectionUrl=scm:svn:https://svn.apache.org/repos/asf/maven/plugins/tags/maven-release-plugin-2.0 Can I add version to this command? If not, I guess I could check out the tag and prepare the release from that tag. D- -Original Message- From: Douglas Ferguson Sent: Monday, September 04, 2006 11:55 AM To: users Subject: RE: release:perform No the release prepare asks for the tag that it will create. You can perform a release off a tag without doing a prepare. However, it uses the version number from the tag. I'd like to provide a different version number. D- - Original Message - From: Andreas Guther Sent: Sun, 9/3/2006 6:59pm To: Maven Users List Subject: RE: release:perform Isn't the release plug-in asking for the tag version during the prepare phase? If I remember correctly you then could just correct the version number in the pom manually before you run the prepare. Andreas -Original Message----- From: Douglas Ferguson [mailto:[EMAIL PROTECTED] Sent: Saturday, September 02, 2006 7:07 AM To: Maven Users List Subject: release:perform Is there a way to do a release:perform off a tag but have it release to a new version? I have a tag app-x.x-RC-1 and I'd like to release it to app-x.x Thanks, D- - 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] - 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: directory v. outputDirectory
What format must the archive be in? -Original Message- From: Brad Harper Sent: Tuesday, September 05, 2006 10:02 AM To: users Subject: RE: directory v. outputDirectory Dan: My intent is to have copies of a set of archive libraries collected into a single directory. The libraries are sibling modules of a parent project. Each library could be copied into the target area as it is built, or the libraries could be copied (from their respective projects) by the parent project in a roll-up operation. I considered running the assembly plugin in the parent project, but the archive libraries cannot be in a .zip/.tar/.tgz format. Brad > -Original Message- > From: dan tran [mailto:[EMAIL PROTECTED] > Sent: Saturday, September 02, 2006 12:32 AM > To: Maven Users List > Subject: Re: directory v. outputDirectory > > > native-maven-plugin''s outputDirectory purposely set to > readonly so that all > outputs ( .o, .dll, etc) stay inside > target directory. and mvn clean can clear them as well. > > Why do you want the output files outside of project? perhaps there is > another way to accomplish > what you need after the build. > > -D > > > On 9/1/06, Brad Harper <[EMAIL PROTECTED]> wrote: > > > > > > What's the difference between > > > > > > > > > > ... > > > > I'm using maven-native-plugin, which has identical configuration > > elements, but I'm prevented from using them, i.e. > > > > > > > > > > > > > > > > > > by errors complaining about over-written read-only parameters. > > > > It would be OK if libraries (modules) were to build in their own > > target/ sub-directories, but I'd like to move a copy of the > resulting > > libraries into a central location higher in the project hierarchy. > > > > Brad > > > > > - > > 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: release:perform
This is the command. mvn release:perform -DconnectionUrl=scm:svn:https://svn.apache.org/repos/asf/maven/plugins/tags/maven-release-plugin-2.0 Can I add version to this command? If not, I guess I could check out the tag and prepare the release from that tag. D- -Original Message- From: Douglas Ferguson Sent: Monday, September 04, 2006 11:55 AM To: users Subject: RE: release:perform No the release prepare asks for the tag that it will create. You can perform a release off a tag without doing a prepare. However, it uses the version number from the tag. I'd like to provide a different version number. D- - Original Message - From: Andreas Guther Sent: Sun, 9/3/2006 6:59pm To: Maven Users List Subject: RE: release:perform Isn't the release plug-in asking for the tag version during the prepare phase? If I remember correctly you then could just correct the version number in the pom manually before you run the prepare. Andreas -Original Message----- From: Douglas Ferguson [mailto:[EMAIL PROTECTED] Sent: Saturday, September 02, 2006 7:07 AM To: Maven Users List Subject: release:perform Is there a way to do a release:perform off a tag but have it release to a new version? I have a tag app-x.x-RC-1 and I'd like to release it to app-x.x Thanks, D- - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: release:perform
No the release prepare asks for the tag that it will create. You can perform a release off a tag without doing a prepare. However, it uses the version number from the tag. I'd like to provide a different version number. D- - Original Message - From: Andreas Guther Sent: Sun, 9/3/2006 6:59pm To: Maven Users List Subject: RE: release:perform Isn't the release plug-in asking for the tag version during the prepare phase? If I remember correctly you then could just correct the version number in the pom manually before you run the prepare. Andreas -Original Message----- From: Douglas Ferguson [mailto:[EMAIL PROTECTED] Sent: Saturday, September 02, 2006 7:07 AM To: Maven Users List Subject: release:perform Is there a way to do a release:perform off a tag but have it release to a new version? I have a tag app-x.x-RC-1 and I'd like to release it to app-x.x Thanks, D- - 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]
Defaults for compiler plugin
What are the default values for source & target version for the compiler? Anybody know if this would work? 1.51.2 Would this allow me to use generics but run in websphere which isn't compatible with 1.5 code?
RE: directory v. outputDirectory
directory = target outputDirectory = target/classes - Original Message - From: [EMAIL PROTECTED] Sent: Sat, 9/2/2006 2:15am To: users Subject: directory v. outputDirectory What's the difference between ... I'm using maven-native-plugin, which has identical configuration elements, but I'm prevented from using them, i.e. by errors complaining about over-written read-only parameters. It would be OK if libraries (modules) were to build in their own target/ sub-directories, but I'd like to move a copy of the resulting libraries into a central location higher in the project hierarchy. Brad - 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]
release:perform
Is there a way to do a release:perform off a tag but have it release to a new version? I have a tag app-x.x-RC-1 and I'd like to release it to app-x.x Thanks, D- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Scripts for building multiple projects
I just wrote a script to build a couple of modules in a specific order, for dev purposes. Once I did this, I thought that it might be handy to make it an ant script. Anybody call mvn from ant before? Just wondering if there are any tasks for this already? Heres my shell script pushd framework mvn clean install popd pushd ev mvn clean install popd pushd custom-builds/ev-builds/di mvn clean compile war:war cargo:undeploy cargo:deploy -Premote.localhost popd
sql server jars
Are there sql server jars in central, of so whats the groupId?
Re: [m2] Generating Source in Ant
Does the sourceRoot defined in the antRun get added to the maven-compiler-plugin source path? Lee Meador-2 wrote: > > Never mind. But I do have a question down there ... > > Although I had fun poking around into maven2 and creating a plugin of my > own > that would compile, load and run (even though it did die with a NPE), two > things: > > 1) It took me a while to find and load the plugin sources. I found no > reference in the docs. The page that tells how to build the source does > not > load the plugin source from subversion. Its at: > > http://maven.apache.org/guides/development/guide-building-m2.html > > I don't really know how it should be documented. I've only been looking at > this since yesterday. Maybe a sibling page that tells how to download > source > and build/install/etc the plugin source. > > The command to load the plugin source is: > > svn co https://svn.apache.org/repos/asf/maven/plugins/trunk maven-plugins > > All the plugins will get put under the 'maven-plugins' folder. > > 2) The antrun plugin has what I need already. I found that out when I > looked > at the AntRunMojo.java file. > > For what I am working on, I need to run Ant to generate my Websphere > 6.0java from a wsdl. Then I need the generated code to be compiled. > The default > case doesn't find the generated code. (I don't know why I thought it would > but maven seems to read minds sometimes.) > > I have the ant build put the code it creates in > target/generated-sources/java. > > Then I just use the tag (or for test code) > to > tell maven2 to compile the stuff in the folder that I put in there. I > don't > know if you can put more than one relative path in there. I doubt it but > don't understand the implications of what's in the java source very well. > > This is the plugin tag from my POM. > > > maven-antrun-plugin > > > generate-sources > > > /> > > /target/generated-sources/java > > > run > > > > > > > Question: Is there a way to parameterize the folder in that tag so that I > don't put "target" but put something that will use whatever the build > directory should be? > > Thanks. > > -- Lee Meador > > On 11/17/05, Lee Meador <[EMAIL PROTECTED]> wrote: >> >> I have this source: >> >> /** >> * Goal which runs ant and then adds some path to the compile source root >> list >> * >> * @goal run >> * @phase generate-sources >> * @description Run ant and then add a folder to the list of places that >> hold >> * code to compile >> */ >> public class AntRunAddGenerateMojo extends AntRunMojo { >> >> /** >> * The Maven project. >> * >> * @parameter expression="${project}" >> * @required >> * @readonly >> */ >> private MavenProject project; >> >> /** >> * Where the source files were put by the ant task >> * >> * @parameter expression="${project.build.directory >> }/generated-sources/java" >> * @required >> */ >> private String compileSourceRoot; >> >> public void execute() throws MojoExecutionException { >> getLog().info("enter execute()"); >> super.execute(); >> getLog().info("add compileSourceRoot: " + compileSourceRoot); >> project.addCompileSourceRoot(compileSourceRoot); >> getLog().info("exit execute()"); >> } >> } >> >> And I get this error: >> >> [INFO] task-segment: [compile] >> [INFO] >> >> [INFO] [ant-generate:run {execution: default}] >> [INFO] enter execute() >> [INFO] >> >> [ERROR] BUILD ERROR >> [INFO] >> >> [INFO] Error executing ant tasks >> >> [INFO] >> >> [INFO] Trace >> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing >> ant tasks >> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( >> DefaultLifecycleExecutor.java:544) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle >> (DefaultLifecycleExecutor.java:469) >> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( >> DefaultLifecycleExecutor.java:448) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures >> (DefaultLifecycleExecutor.java:301) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments >> (DefaultLifecycleExecutor.java:268) >> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( >> DefaultLifecycleExecutor.java:137) >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) >> at sun.reflect.NativeMethodAccessorImpl.invoke( >> NativeMethodAccessorImpl.java:39) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke( >> DelegatingMethodAccessorImpl.java:25)
Prepare Sources & Prepare Resources
Howdy, I was just curious about how folks are using prepare sources & prepare resources. 1) When you generate sources/resources, do you generate them to /src or /target? If you generate them to /target do you have to add them to the sources in the pom.xml? 2) I need to generate an assembly.xml & an application.properties file. The application.properties file is clearly a resources, assembly.xml doesnt exactly fit in either, does anybody see a reason why I cant treat it as a resource? D-
RE: War Overlay
I opened a subtask for that issue. -Original Message- From: Tamás Cservenák [mailto:[EMAIL PROTECTED] Sent: Thursday, August 31, 2006 2:49 PM To: Maven Users List Subject: Re: War Overlay Hi, i had a same problem with it and could not understand what happened in (2.0-> 2.0.1) transition until i got it. so I forced 2.0 plugin in project POM. The reason for this behaviour is unknown to me. +1 for configurability ~t~ On 8/31/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote: > > Sorry.. Not sure why outlook sent this.. > > This is the link I tried to send. > > http://jira.codehaus.org/browse/MWAR-47?page=comments#action_67168 > > According to this, the dependent file always wins. This sorta sucks. > Because in my world I want my local files to always take priority over a > file that comes from a dependent war. As it stands now, I have to touch > files in order to get them included. > > Perhaps this should be configurable? > > D- > > -Original Message- > From: Douglas Ferguson > Sent: Thursday, August 31, 2006 2:35 PM > To: users > Subject: War Overlay > > I am curious if there is any configuration available for handling > conflicts with war overlay. > > > > I read this and I am still a bit confused. > > > > > > > - > 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: War Overlay
Sorry.. Not sure why outlook sent this.. This is the link I tried to send. http://jira.codehaus.org/browse/MWAR-47?page=comments#action_67168 According to this, the dependent file always wins. This sorta sucks. Because in my world I want my local files to always take priority over a file that comes from a dependent war. As it stands now, I have to touch files in order to get them included. Perhaps this should be configurable? D- -Original Message- From: Douglas Ferguson Sent: Thursday, August 31, 2006 2:35 PM To: users Subject: War Overlay I am curious if there is any configuration available for handling conflicts with war overlay. I read this and I am still a bit confused. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
War Overlay
I am curious if there is any configuration available for handling conflicts with war overlay. I read this and I am still a bit confused.
RE: pom files not validating
By the way, if I wan to flesh out these skeletan pom files to get rid of the error, what do I need to do? The error just says it doesn't validate, but I don't really see anything wrong with the pom. D- - Original Message - From: [EMAIL PROTECTED] Sent: Wed, 8/30/2006 10:01pm To: users Subject: RE: pom files not validating Yeah.. I already have a 3rd party branch. I just didn't realize that it would barf at me cuz the pom was skeletal. Some of this stuff doesn't even have a pom, i.e. some weird library from a partner, etc. -Original Message- From: Mykel Alvis [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 4:21 PM To: Maven Users List Subject: Re: pom files not validating My $0.02: I used to do this, but I've since decided that it's worth the time to take the generated POM from the maven deploy, go back to the projects (where I'm able to), and update the POM to make it into a "real" POM instead of a skeletal one. I ended up with a large number of dependencies in projects that were essentially transitive, but had to be included at the base level because they were transitive to 3rd party dependencies, not to our actual project. I wish people who packaged deployments to central would do this more often. I also suggest making sure that you separate your internal repository from your [internally-deployed EXTERNAL/3rd party] repository. It's made a lot of difference since I could make one of my ongoing tasks into "look for public repositories for the 3rd party jars", such as when java-dev-net made the javax libs available. On 8/30/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote: > > I deployed them with mvn deploy:deploy-file. > I had previously used mvn install:install-file and then copied them from > there to the internal repository, but there where no poms. So I then ran mvn > deploy:deploy-file. > > I let maven generate the poms. > > -Original Message- > From: Yann Le Du [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 30, 2006 1:51 PM > To: Maven Users List > Subject: Re: pom files not validating > > How did you deploy your 3rd party library ? With mvn install:install-file > ? > Then, did you use the generatePom option or did you write the POM yourself > ? > > - Yann > > 2006/8/30, Douglas Ferguson <[EMAIL PROTECTED]>: > > > > I have some 3rd party library dependencies that aren't in central so I > > deployed them to our internal repository. > > > > > > > > Whenever I build a project that depends on one of these libraries I get > > the following message. > > > > > > > > What can I do to get stop this? > > > > > > > > [WARNING] POM for 'uk.co.demon.windsong:crypt:pom:0.0.1:provided' is > > invalid. It will be ignored for > > > > artifact resolution. Reason: Failed to validate POM > > > > > > > > I tried deleting the pom but then it tries to go out and find it. I'd > > like to speed up the build by have the poms available. > > > > > > > > D- > > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- I'm just an unfrozen caveman software developer. I don't understand your strange, "modern" ways. - 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: eclipse:eclipse & wtp
My projects have the same even with wtpversion set to 1.0 Also, 1.5 is only supported in the snapshot, the code I was looking at is only in the snapshot build. D- - Original Message - From: Stefan Magnus Landrø Sent: Thu, 8/31/2006 2:45am To: users Subject: Re: eclipse:eclipse & wtp I believe you should still use 1.0 in the configuration part. It appears the wtp-settings file format hasn't changed since 1.0 Douglas Ferguson <[EMAIL PROTECTED]> skrev 30.08.2006 17:54:14: > BTW: I noticed that it actually supports 1.5. > > But when I did so I got this error in my project. Not sure what it means... > > Severity and Description Path Resource Location > Creation TimeId > Java compiler level does not match the version of the installed Java > project facet.framework Unknown > 1156948862132 20524 > > > Sent: Wednesday, August 30, 2006 10:10 AM > To: Douglas Ferguson > Subject: Ad: wtp > > > Hi Douglas, > > just came across this in one of my poms. This is probably the best solution. > > > > > org.apache.maven.plugins > maven-eclipse-plugin > > 1.0 > > > > > > Douglas Ferguson <[EMAIL PROTECTED]> skrev 29.08.2006 16:34:19: > > > Hey, > > > > I was doing some reading and found some good info, but when I > > configure a server and try to add projects to it, the available > > projects list is empty. What am I missing? > > > > D- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: pom files not validating
Yeah.. I already have a 3rd party branch. I just didn't realize that it would barf at me cuz the pom was skeletal. Some of this stuff doesn't even have a pom, i.e. some weird library from a partner, etc. -Original Message- From: Mykel Alvis [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 4:21 PM To: Maven Users List Subject: Re: pom files not validating My $0.02: I used to do this, but I've since decided that it's worth the time to take the generated POM from the maven deploy, go back to the projects (where I'm able to), and update the POM to make it into a "real" POM instead of a skeletal one. I ended up with a large number of dependencies in projects that were essentially transitive, but had to be included at the base level because they were transitive to 3rd party dependencies, not to our actual project. I wish people who packaged deployments to central would do this more often. I also suggest making sure that you separate your internal repository from your [internally-deployed EXTERNAL/3rd party] repository. It's made a lot of difference since I could make one of my ongoing tasks into "look for public repositories for the 3rd party jars", such as when java-dev-net made the javax libs available. On 8/30/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote: > > I deployed them with mvn deploy:deploy-file. > I had previously used mvn install:install-file and then copied them from > there to the internal repository, but there where no poms. So I then ran mvn > deploy:deploy-file. > > I let maven generate the poms. > > -Original Message- > From: Yann Le Du [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 30, 2006 1:51 PM > To: Maven Users List > Subject: Re: pom files not validating > > How did you deploy your 3rd party library ? With mvn install:install-file > ? > Then, did you use the generatePom option or did you write the POM yourself > ? > > - Yann > > 2006/8/30, Douglas Ferguson <[EMAIL PROTECTED]>: > > > > I have some 3rd party library dependencies that aren't in central so I > > deployed them to our internal repository. > > > > > > > > Whenever I build a project that depends on one of these libraries I get > > the following message. > > > > > > > > What can I do to get stop this? > > > > > > > > [WARNING] POM for 'uk.co.demon.windsong:crypt:pom:0.0.1:provided' is > > invalid. It will be ignored for > > > > artifact resolution. Reason: Failed to validate POM > > > > > > > > I tried deleting the pom but then it tries to go out and find it. I'd > > like to speed up the build by have the poms available. > > > > > > > > D- > > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- I'm just an unfrozen caveman software developer. I don't understand your strange, "modern" ways. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Profiles - Strange Behavior
I just discovered something really odd with profiles, not sure if it is expected. I have 4 profiles. Testqa.remote Testqa.local Localhost.remote Localhost.local I have Localhost.remote set to active via the My effective-pom contains the settings from the associated profiles when I run with Ptestqa.remote or Ptestqa.local, but when I run with -Plocalhost.local, only variables that arent set in localhost.remote will appear in the effective-pom, instead the values from localhost.remote are preserved. I tried replacing the . with - and got the same behavior. If I change localhost.local to xlocalhost.local, I get my properties. D-
RE: pom files not validating
I deployed them with mvn deploy:deploy-file. I had previously used mvn install:install-file and then copied them from there to the internal repository, but there where no poms. So I then ran mvn deploy:deploy-file. I let maven generate the poms. -Original Message- From: Yann Le Du [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 1:51 PM To: Maven Users List Subject: Re: pom files not validating How did you deploy your 3rd party library ? With mvn install:install-file ? Then, did you use the generatePom option or did you write the POM yourself ? - Yann 2006/8/30, Douglas Ferguson <[EMAIL PROTECTED]>: > > I have some 3rd party library dependencies that aren't in central so I > deployed them to our internal repository. > > > > Whenever I build a project that depends on one of these libraries I get > the following message. > > > > What can I do to get stop this? > > > > [WARNING] POM for 'uk.co.demon.windsong:crypt:pom:0.0.1:provided' is > invalid. It will be ignored for > > artifact resolution. Reason: Failed to validate POM > > > > I tried deleting the pom but then it tries to go out and find it. I'd > like to speed up the build by have the poms available. > > > > D- > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pom files not validating
I have some 3rd party library dependencies that arent in central so I deployed them to our internal repository. Whenever I build a project that depends on one of these libraries I get the following message. What can I do to get stop this? [WARNING] POM for 'uk.co.demon.windsong:crypt:pom:0.0.1:provided' is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM I tried deleting the pom but then it tries to go out and find it. Id like to speed up the build by have the poms available. D-
RE: Can't release due to SNAPSHOT dependencies
Thanks. That makes a lot of sense... -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 10:12 AM To: Maven Users List Subject: Re: Can't release due to SNAPSHOT dependencies We've talked about this before on the list, and this is the generally suggested approach... Download the code for the plugin(s) from SVN/CVS. Increment the version number to a fixed/released number, build, install locally and deploy to your corporate repo (if you have one) or provide it to your coworkers some other way. Update your pom to reflect the new plugin version number. Generally I would suggest you incorporate a timestamp into the build number ie maven-war-plugin 2.1.20060830 just to keep it clear that this is not necessarily a real release. Make sure you understand the artifact version system before picking a build number, or else you could easily end up with a situation where the "official" plugin releases a new version but your internal plugin is still considered "newer" ie if a plugin last released 2.0.5 and is currently releasing 2.1-SNAPSHOT, you might want to tag yours as 2.0.6 or 2.0.5.1 -- if you tag it as 2.1, then you won't get the "real" 2.1 release when it is final. (Of course, if the plugin release 2.0.6 then you'll get a collision there too...) Wayne On 8/30/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote: > I am using some snapshot plugins so it won't let me release. > > > > I can understand not wanting to release because of a dependency on code > or library snapshots, but for I don't have any issues with releasing > something that is dependent on a snapshot of a tool, like cargo. > > > > Is there a way around this? > > > > - 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]
eclipse:eclipse & wtp
BTW: I noticed that it actually supports 1.5. But when I did so I got this error in my project. Not sure what it means Severity and Description Path Resource Location Creation TimeId Java compiler level does not match the version of the installed Java project facet.framework Unknown 1156948862132 20524 _ From: Stefan Magnus Landrø [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 10:10 AM To: Douglas Ferguson Subject: Ad: wtp Hi Douglas, just came across this in one of my poms. This is probably the best solution. org.apache.maven.plugins maven-eclipse-plugin 1.0 Douglas Ferguson <[EMAIL PROTECTED]> skrev 29.08.2006 16:34:19: > Hey, > > I was doing some reading and found some good info, but when I > configure a server and try to add projects to it, the available > projects list is empty. What am I missing? > > D-
Can't release due to SNAPSHOT dependencies
I am using some snapshot plugins so it wont let me release. I can understand not wanting to release because of a dependency on code or library snapshots, but for I dont have any issues with releasing something that is dependent on a snapshot of a tool, like cargo. Is there a way around this?
RE: eclipse:eclipse war dependencies
Just thought I would attempt to be more clear. When I run eclipse:eclipse on a project that depends on jar files, the jar as well as any transitive dependencies are included in my .classpath file. However, when I depend on a war file, I don't get any of my dependencies included in the .classpath file. Is this a known issue or expected behavior? Is it possible that my war file got deployed incorrectly? D- - Original Message - From: [EMAIL PROTECTED] Sent: Tue, 8/29/2006 6:00pm To: users Subject: eclipse:eclipse war dependencies Not sure if this is a bug or not, but it seems like eclipse:eclipse ignores any dependencies on a war file. D- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
eclipse:eclipse war dependencies
Not sure if this is a bug or not, but it seems like eclipse:eclipse ignores any dependencies on a war file. D-
Cargo Goal
Cargo was working for me and suddenly it just stopped working and starting giving this error: The plugin 'org.apache.maven.plugins:maven-cargo-plugin' does not exist The thing that is confuse is that is says Org.apache.maven.plugisn & maven-cargo-plugin When I have: org.codehaus.cargo cargo-maven2-plugin In my pom file. D-
RE: Releasing Software
I've read that, but I must be missing something. The incrementing happens if you use the deploy for a snapshot. If you use the release plugin, you tell it the version to release. -Original Message- From: Barrie Treloar [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 29, 2006 4:42 PM To: Maven Users List Subject: Re: Releasing Software Read Better Builds with Maven. It has a section on version numbering. If you follow that standard Maven should be able to increment the numbers for you. And as someone rightly pointed out, you never re-release the same version. Any changes made implies a new version, which would increment the RC number. On 8/30/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote: > When I referred to SNAPSHOT, I was talking about the actual module that you > are building.. > > Say you have: > > 1.0-SNAPSHOT > > And you go to release > > Then release plugin prompts 1.0 > You change to 1.0RC1 > Then release plugin promts 1.1-SNAPSHOT for the next version.. > > However could you do this.. > > 1.0RC1-SNASHOT > > Then release plugin prompts 1.0RC1? > But then I'm not sure if it will increment properly... > > d- > > -Original Message- > From: Riegel, Holger [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 29, 2006 9:36 AM > To: Maven Users List > Subject: RE: Releasing Software > > This is how I do it: > > 1. Create a release branch in your version control system (e.g. > Subversion or CVS). > 2. Checkout the branch and use release:prepare and release:perform. The > tag name is some kind of x.yRCn, where n is the number of the relese > candidate. Just do bug fixing on the release branch, implement new > features on the trunk only. > 3. Let QA do its work. Fix the reported bugs, release a new release > candidate. > 4. If there are no more bugs found, rerelease the last release candidate > with the version number x.y. > > My advice: don' use snapshots for releases. The release plugin warns > you, if there are still snapshot dependencies in your poms. The reason > is that builds that use poms with snapshots cannot be reproduced: they > may yield another result when rebuilt later. > > Cheers, Holger > > -Original Message- > From: Douglas Ferguson [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 29, 2006 4:15 PM > To: users > Subject: Releasing Software > > > I have been playing with the release plugin and it is really cool. > > > > However, I am curious about how folks are applying process on top of the > tool. > > > > If you are developing a snapshot and you are ready to release the new > version, then you run the release plugin. > > What happens when qa finds a defect and now you have to re-release the > same version? > > > > Here are some thoughts: > > > > 1) QA could test snap shot builds, but how do you perform a > release since snapshot aren't tagged and it could be difficult to know > you are releasing the same thing as a snapshot > > 2) Perhaps use a qualifier i.e. RC in the version when you > release? This way you can manually increment as you build. Can > qualifiers still be present with -SNAPSHOT? Or is snapshot a specially > qualifier? > > 3) Just release the software and if it needs to be re-released, > then release it again or release it with a new build number? > > > > - > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
eclipse:eclipse - path problem
I am running into this problem. http://jira.codehaus.org/browse/MECLIPSE-99 I am not sure I follow the last comment. It says to use ${pom.build.output.directory}. Is this talking about a development fix? Does anybody have a work around? Should I try to use the 2.3 snapshot? D-
RE: Releasing Software
When I referred to SNAPSHOT, I was talking about the actual module that you are building.. Say you have: 1.0-SNAPSHOT And you go to release Then release plugin prompts 1.0 You change to 1.0RC1 Then release plugin promts 1.1-SNAPSHOT for the next version.. However could you do this.. 1.0RC1-SNASHOT Then release plugin prompts 1.0RC1? But then I'm not sure if it will increment properly... d- -Original Message- From: Riegel, Holger [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 29, 2006 9:36 AM To: Maven Users List Subject: RE: Releasing Software This is how I do it: 1. Create a release branch in your version control system (e.g. Subversion or CVS). 2. Checkout the branch and use release:prepare and release:perform. The tag name is some kind of x.yRCn, where n is the number of the relese candidate. Just do bug fixing on the release branch, implement new features on the trunk only. 3. Let QA do its work. Fix the reported bugs, release a new release candidate. 4. If there are no more bugs found, rerelease the last release candidate with the version number x.y. My advice: don' use snapshots for releases. The release plugin warns you, if there are still snapshot dependencies in your poms. The reason is that builds that use poms with snapshots cannot be reproduced: they may yield another result when rebuilt later. Cheers, Holger -Original Message----- From: Douglas Ferguson [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 29, 2006 4:15 PM To: users Subject: Releasing Software I have been playing with the release plugin and it is really cool. However, I am curious about how folks are applying process on top of the tool. If you are developing a snapshot and you are ready to release the new version, then you run the release plugin. What happens when qa finds a defect and now you have to re-release the same version? Here are some thoughts: 1) QA could test snap shot builds, but how do you perform a release since snapshot aren't tagged and it could be difficult to know you are releasing the same thing as a snapshot 2) Perhaps use a qualifier i.e. RC in the version when you release? This way you can manually increment as you build. Can qualifiers still be present with -SNAPSHOT? Or is snapshot a specially qualifier? 3) Just release the software and if it needs to be re-released, then release it again or release it with a new build number? - 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]
Releasing Software
I have been playing with the release plugin and it is really cool. However, I am curious about how folks are applying process on top of the tool. If you are developing a snapshot and you are ready to release the new version, then you run the release plugin. What happens when qa finds a defect and now you have to re-release the same version? Here are some thoughts: 1) QA could test snap shot builds, but how do you perform a release since snapshot arent tagged and it could be difficult to know you are releasing the same thing as a snapshot 2) Perhaps use a qualifier i.e. RC in the version when you release? This way you can manually increment as you build. Can qualifiers still be present with SNAPSHOT? Or is snapshot a specially qualifier? 3) Just release the software and if it needs to be re-released, then release it again or release it with a new build number?
RE: war:inplace
Hmm Is there a turtorial somewhere? D- -Original Message- From: Stefan Magnus Landrø [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 29, 2006 8:29 AM To: Maven Users List Subject: Re: war:inplace Hi there, Why don't you just use the eclipse WTP features? with wtp you can set up tomcat in eclipse, and deploy automatically on code changes Douglas Ferguson <[EMAIL PROTECTED]> skrev 29.08.2006 15:26:36: > I found this task when looking into ways to just deploy static file > changes to tomcat rather than building a war and having tomcat rebuild > the context, etc. > > > > The only problem I have is that it generates files (WEB-INF & META-INF) > in my src directory. Is there a way to avoid this? > > Anybody using this feature or doing something different? > > > > D- > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
war:inplace
I found this task when looking into ways to just deploy static file changes to tomcat rather than building a war and having tomcat rebuild the context, etc. The only problem I have is that it generates files (WEB-INF & META-INF) in my src directory. Is there a way to avoid this? Anybody using this feature or doing something different? D-
RE: Ad: RE: Tomcat Deploy
Ah.. Just use this instead of cargo? What's the benefit of Cargo if you can use this directly? - Original Message - From: Stefan Magnus Landrø Sent: Tue, 8/29/2006 1:48am To: Maven Users List Subject: Ad: RE: Tomcat Deploy Hey Douglas, Try this plugin: http://mojo.codehaus.org/tomcat-maven-plugin/ There is a similar one for maven 1 "Jeff Jensen" <[EMAIL PROTECTED]> skrev 28.08.2006 22:46:24: > Maven 1 or 2? > > > -----Original Message- > From: Douglas Ferguson [mailto:[EMAIL PROTECTED] > Sent: Monday, August 28, 2006 3:45 PM > To: users > Subject: Tomcat Deploy > > We just made the ant to maven switch and we lost our ability to do "file > deploy". Which just amounted to copying the files into the context > directory. Cargo doesn't appear to support this, does anybody have an > elegant solution? I could just write an ant script but I wanted to piggyback > based on the contextName which is already defined with our cargo plugin. > > > > Is it possible to define a custom goal without writing a plugin? I.E. > could I tie an ant run to a custom goal name? > > > > > - > 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: Tomcat Deploy
Maven 2. I just saw that I could setup an specific execution in a profile, this would let me use the ant plugin. Any other ideas? -Original Message- From: Jeff Jensen [mailto:[EMAIL PROTECTED] Sent: Monday, August 28, 2006 3:46 PM To: 'Maven Users List' Subject: RE: Tomcat Deploy Maven 1 or 2? -Original Message----- From: Douglas Ferguson [mailto:[EMAIL PROTECTED] Sent: Monday, August 28, 2006 3:45 PM To: users Subject: Tomcat Deploy We just made the ant to maven switch and we lost our ability to do "file deploy". Which just amounted to copying the files into the context directory. Cargo doesn't appear to support this, does anybody have an elegant solution? I could just write an ant script but I wanted to piggyback based on the contextName which is already defined with our cargo plugin. Is it possible to define a custom goal without writing a plugin? I.E. could I tie an ant run to a custom goal name? - 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]
Tomcat Deploy
We just made the ant to maven switch and we lost our ability to do file deploy. Which just amounted to copying the files into the context directory. Cargo doesnt appear to support this, does anybody have an elegant solution? I could just write an ant script but I wanted to piggyback based on the contextName which is already defined with our cargo plugin Is it possible to define a custom goal without writing a plugin? I.E. could I tie an ant run to a custom goal name?
RE: m2eclipse & eclipse:eclipse
Yeah, I sorta came to the same conclusion, which makes the m2 external tool feature pretty useless to me. I just started configuring eclipse to run mvn as an external tool and that works really well... D- -Original Message- From: Chris Hilton [mailto:[EMAIL PROTECTED] Sent: Monday, August 28, 2006 12:17 PM To: Maven Users List Subject: RE: m2eclipse & eclipse:eclipse > -Original Message- > From: Douglas Ferguson [mailto:[EMAIL PROTECTED] > Sent: Friday, 25 August, 2006 17:53 > To: Maven Users List > Subject: m2eclipse & eclipse:eclipse > > I have a few questsion about m2eclipse: > > 1) When configuring the external tool how do you specify a profile? Currently, I don't think you can. There's a bug open on it. http://jira.codehaus.org/browse/MNGECLIPSE-173 > 2) What settings.xml will get read? I am not sure that either > my maven_install_dir/settings.xml or ~/.m2/settings.xml are > getting read. At this point, neither is being read. Another bug. http://jira.codehaus.org/browse/MNGECLIPSE-29 > 3) Can someone explain what update source directies does? Sorry, don't know about this one. Chris - 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]
m2eclipse & eclipse:eclipse
I have a few questsion about m2eclipse: 1) When configuring the external tool how do you specify a profile? 2) What settings.xml will get read? I am not sure that either my maven_install_dir/settings.xml or ~/.m2/settings.xml are getting read. 3) Can someone explain what update source directies does? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SCP Deploy
I just starting trying to do an SCP based deploy and for some reason it is attempting to use my current user rather than the user I have set in the settings.xml under server. internal user pass internal Internal Repository scp://vm2003e/repository/releases internal Internal Repository scp://vm2003e/web-dev/repository/snapshots
Distribution Management
If I define a repository in distribution management so that it deploys to an internal repository. Do I also have to define it as a repository a profile if I want team mates to resolve dependences from that internal repository rather than building source, or does having the distribution management add it for dependence resolution? Thanks, D-
RE: [m2] eclipse:eclipse and eclipse 3.2 projects within a project suppo
I also am using hierarchial projects. I got 3 levels deep and it works fine. It only creates project files for the leaf nodes. The parent poms (packaging=pom) will not get project files. I am having 1 problem with eclipse:eclipse. I have a parent pom that isn't intended to be portable. It uses variables that prevent it from validating, however, I need it so my 100s of sub poms don't have to define the same stuff over and over. Anyway, eclipse:eclipse is barfing on some paths, just curious if there is a way to get it to be "less strict" or something. -Original Message- From: Barrie Treloar [mailto:[EMAIL PROTECTED] Sent: Friday, August 25, 2006 3:16 AM To: Maven Users List Subject: Re: [m2] eclipse:eclipse and eclipse 3.2 projects within a project suppo On 8/25/06, Valerio Schiavoni <[EMAIL PROTECTED]> wrote: > > Eclipse does not support hierarchical project structures. > > > i thought eclipse 3.2 just introduced this new feature ... Yes it does. Hence my original post wondering how to get it to work. The notes I posted worked for me. Try to get it working manually to prove to yourself that it can be done. Just checkout a multi-module project and then try to import the modules as existing projects. If you can't get that to work you may have other problems. Then its just a matter of running mvn eclipse:eclipse from the root, delete the root/.project file and doing the same steps again. - 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: Distribution Management
Distribution Management has to be in the pom right? - Original Message - From: Eric Redmond Sent: Thu, 8/24/2006 6:06pm To: Maven Users List Subject: Re: Distribution Management Nope, but you can create a property, and re-use it! On 8/24/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote: > > I am looking into setting up an internal repository which would be used > for retrieving artifacts built by other members of the team and also > other 3rd party libs that aren't available at ibiblio. > > > > If I am reading correctly, I have to define this in 4 places. > > > > 1) server defined in settings.xml to setup the user/pass for ssh > > 2) distribution management in the parent pom file > > 3) repository section in settings.xml > > 4) pluginRepository section in settings.xml > > > > I noticed that all of these locations have id, name, & url. Can I just > put the name and url I nthe server setting then reference id in the > other 3 places? > > > > D- > > > > -- Eric Redmond http://codehaus.org/~eredmond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Distribution Management
I am looking into setting up an internal repository which would be used for retrieving artifacts built by other members of the team and also other 3rd party libs that arent available at ibiblio. If I am reading correctly, I have to define this in 4 places. 1) server defined in settings.xml to setup the user/pass for ssh 2) distribution management in the parent pom file 3) repository section in settings.xml 4) pluginRepository section in settings.xml I noticed that all of these locations have id, name, & url. Can I just put the name and url I nthe server setting then reference id in the other 3 places? D-
RE: Cargo & Tomcat
Where can I find the cargo docs? Also, do you ever do any "file deploys". I.E. After updating just 1 jsp... -Original Message- From: Heck, Joe [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 4:11 PM To: Maven Users List Subject: RE: Cargo & Tomcat We've been using Cargo to deploy out WARs to instances of tomcat on local dev boxes beautifully. The relevant stanza we're using: org.codehaus.cargo cargo-maven2-plugin tomcat5x c:/apps/stock-tomcat-5.0.28 c:/apps/stock-tomcat-5.0.28 Although there's a lot more information on the cargo plugin site for options and how-to. -joe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Ferguson Sent: Wednesday, August 23, 2006 1:59 PM To: users Subject: RE: Cargo & Tomcat I just located tomcat-maven-plugin at codehaus and cargo doesn't seem to be listed. Is tomcat-maven-plugin the cargo replacement? Also, in the maven book, I read about a continuous deploy for jetty. Is there anything like that available for tomcat? -----Original Message- From: Douglas Ferguson Sent: Wednesday, August 23, 2006 3:44 PM To: users Subject: Cargo & Tomcat Anybody using cargo with tomcat? I'm curious about how you deal with quick dev cycle changes where you might want to push 1 file but don't want to do an entire build to do so. D- - 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: Cargo & Tomcat
I just located tomcat-maven-plugin at codehaus and cargo doesnt seem to be listed. Is tomcat-maven-plugin the cargo replacement? Also, in the maven book, I read about a continuous deploy for jetty. Is there anything like that available for tomcat? -Original Message- From: Douglas Ferguson Sent: Wednesday, August 23, 2006 3:44 PM To: users Subject: Cargo & Tomcat Anybody using cargo with tomcat? Im curious about how you deal with quick dev cycle changes where you might want to push 1 file but dont want to do an entire build to do so. D- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cargo & Tomcat
Anybody using cargo with tomcat? Im curious about how you deal with quick dev cycle changes where you might want to push 1 file but dont want to do an entire build to do so. D-