RE: Maven Test Suite Failing
Hi David, Looks like a missing junit library defined ... Cheers, Siegfried Goeschl -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Samstag, 14. August 2004 01:24 To: Maven User List Subject: Maven Test Suite Failing Hi for some reason my test:test case is failing, it is working great in intellij and intellij is using the generated classpath from maven idea.. just wondering if anyone has any ideas what might be wrong. Here is the normal output: Thanks for any ideas in advance, I'm wondering do I need to tell my test classes to have the path of my normal classes? ie test outputs to /target/test-classes and my normal source goes to /target/classes?? C:\projects\NADAmaven test:test __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0 build:start: java:prepare-filesystem: java:compile: [echo] Compiling to C:\projects\NADA/target/classes BUILD FAILED File.. C:\Documents and Settings\halcy\.maven\cache\maven-test-plugin-1.6.2\ plugin.jelly Element... junit Line.. 133 Column 41 java.lang.NoClassDefFoundError Total time: 2 seconds Finished at: Fri Aug 13 17:27:37 MDT 2004 and the verbose output: build:start: java:prepare-filesystem: java:compile: [echo] Compiling to C:\projects\NADA/target/classes BUILD FAILED java.lang.NoClassDefFoundError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou rce) at java.lang.reflect.Constructor.newInstance(Unknown Source) at junit.framework.TestSuite.createTest(TestSuite.java:131) at junit.framework.TestSuite.addTestMethod(TestSuite.java:114) at junit.framework.TestSuite.init(TestSuite.java:75) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.init(J UnitTestRunner.java:261) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.init(J UnitTestRunner.java:219) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JU nitTask.java:822) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT ask.java:556) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT ask.java:532) at org.apache.tools.ant.Task.perform(Task.java:341) at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTa g.java:79) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.perfor mAction(MavenGoalTag.java:110) at com.werken.werkz.Goal.fire(Goal.java:639) at com.werken.werkz.Goal.attain(Goal.java:575) at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java: 634) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266) at org.apache.maven.cli.App.doMain(App.java:486) at org.apache.maven.cli.App.main(App.java:1215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) File.. C:\Documents and Settings\halcy\.maven\cache\maven-test-plugin-1.6.2\ plugin.jelly Element... junit Line.. 133 Column 41 java.lang.NoClassDefFoundError Total time: 2 seconds Finished at: Fri Aug 13 17:28:08 MDT 2004 and the debug + verbose output: [junit] [DEBUG] Finding class org.dbunit.operation.DatabaseOperation [junit] [DEBUG] Class org.dbunit.operation.DatabaseOperation loaded from ant loader BUILD FAILED java.lang.NoClassDefFoundError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou rce) at java.lang.reflect.Constructor.newInstance(Unknown Source) at junit.framework.TestSuite.createTest(TestSuite.java:131) at
RE: Unit testing with Hypersonic
Hi Eric, Are you sure that your ant:sql could possibly work with in-memory mode?! I think you would have to use the server mode for that ... Cheers, Siegfried Goeschl -Original Message- From: Eric Hauser [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 05. August 2004 17:19 To: Maven Users List Subject: Unit testing with Hypersonic I running some unit tests with Maven during my build process using Hypersonic in-memory mode as the datasource. I generating the schema from Hibernate and then loading the schema in a preGoal for test:test using the ant:sql tags. The problem that I am having is every time the unit test runs, Hypersonic cannot seem to find the tables that I just loaded. Anyone have an example code that does something similar? Thanks. -- Eric W. Hauser Application Developer accessIndiana...linking hoosiers to government http://www.IN.gov 10 W. Market St., Suite 600 Indianapolis, IN 46204 Phone: (317) 233-4007 Fax: (317) 233-2011 ** CONFIDENTIALITY NOTICE: This E-mail and any attachments are confidential. If you are not the intended recipient, you do not have permission to disclose, copy, distribute, or open any attachments. If you have received this E-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system. Thank you. accessIndiana, MyLocal.IN.gov, CivicNet ** - 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: uberjar problem.
Hi Arto, If you do not succeed you could have a look at the javaapp plugin at http://maven-plugins.sourceforge.net Cheers, Siegfried Goeschl -Original Message- From: Arto Pastinen [mailto:[EMAIL PROTECTED] Sent: Freitag, 16. Juli 2004 12:04 To: [EMAIL PROTECTED] Subject: uberjar problem. Hi! I have defined some images in project.xml resources resource directorysrc/resources/directory /resource /resources And i try to get them in code by following way: new ImageIcon(ClassLoader.getSystemResource(icon.png)) If i run real jar, then everything works fine, but if i run uberjar, i get following stack: Exception in thread main java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.boot.Bootstrapper.bootstrap(Bootstrapper.java:209) at org.codehaus.classworlds.boot.Bootstrapper.main(Bootstrapper.java:116) Caused by: java.lang.NullPointerException at javax.swing.ImageIcon.init(ImageIcon.java:138) Ant hints?? Artsi - 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]
Maven WebLogic Plugin 0.1.0 is released on SourceForge
Hi folks, I finally came around to upload the plugin to http://sourceforge.net/projects/maven-plugins/ but it is currently not added to the website. Current State: === +) I developed it on Bea WebLogic 8.1 SP 1 on Windows with Maven 1.0 RC1 +) Half a dozen people volunteered to test the plugin - no news are good news ... :-) TODO === +) I failed to deploy on a remote BEA WebLogic server but I'm a BEA newbie +) A nice feature would be to pre-compile JSPs +) Check out if it works on newer Maven versions Cheers, Siegfried Goeschl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: One artifact per project question
Hi Christopher, There are a few ways to handle multiple artifcats +) e.g. a postgoal for jar:jar to create your shell script or a ZIP file with the sources +) I also use some default goals such as local:build if I really have to create multiple artifcats, e.g. a JAR file and an executable JAR containing ALL depending JARs Cheers, Siegfried Goeschl -Original Message- From: Helck, Christopher [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 14. Juli 2004 15:56 To: '[EMAIL PROTECTED]' Subject: One artifact per project question I read somewhere that maven encourages one artifiact for one project. I have some systems being built with ant that I'd like to convert to maven. A typical ant script will produce a jar file and a shell script to execute said jar. From maven's point of view is this one or two artifacts. How should I handle this case? Thanks, Christopher Helck The information contained in this e-mail is confidential. This e-mail is intended only for the stated addressee. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. if you have received this e-mail in error, please inform us immediately and delete it and all copies from your system. EBS Dealing Resources International Limited. Registered address: 55-56 Lincoln's Inn Fields, London WC2A 3LJ, United Kingdom. Registered number 2633663. EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA. EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku, Tokyo 104-0033, Japan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Third Party Vendors for MAven
And you can always hire an active member from the mailing list :-) Cheers, Siegfried Goeschl -Original Message- From: Dion Gillard [mailto:[EMAIL PROTECTED] Sent: Freitag, 09. Juli 2004 15:56 To: Maven Users List Subject: Re: Third Party Vendors for MAven You get the best support right here on the mailing lists. On Fri, 9 Jul 2004 09:47:39 -0400 (EDT), Puneet Garg [EMAIL PROTECTED] wrote: Hi, Is there anyone else besides Multitask who is supporting Maven ? Puneet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.multitask.com.au/people/dion/ - 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: What the hell is catch-22 [was Re: howto: request committerstatus]
In German known as Das Henne/Ei Problem, Zwickmühle, Katze die sich in den Schwanz beißt :-) Cheers, Siegfried Goeschl -Original Message- From: Martin Skopp [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 01. Juli 2004 14:36 To: Maven Users List Subject: OT: What the hell is catch-22 [was Re: howto: request committerstatus] On Tue, 2004-06-29 at 23:27, John Casey wrote: Catch-22 alleviated. Could please someone explain a non-native speaker like me that mysterious catch-22 term. Thanks folks, -- Martin Skopp Riege Software International GmbH Support: mailto:[EMAIL PROTECTED], Information: http://www.riege.com This email is intended to be viewed with a nonproportional font. - 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: What the hell is catch-22 [was Re: howto: request committer status]
Lovely, it's one of my favorite books ... :-) -Original Message- From: Peter Bright [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 01. Juli 2004 14:49 To: 'Maven Users List' Subject: RE: What the hell is catch-22 [was Re: howto: request committer status] It's a literary reference to Joseph Heller's frankly fantastic book, Catch-22, first published in 1961. It tells the story of an air force pilot, Yossarian, who would rather not be a pilot because he doesn't want to die. The ways of avoiding flying are limited; one way to avoid service is to be crazy. Anyone willing to fly more missions would be crazy, so all a pilot would have to do to avoid flying more missions would have to tell the doctor that they're crazy. But doing that demonstrates that they have concern for their own safety, and if you have concern for your own safety, you can't be crazy. If you flew then you were crazy and didn't have to; but if you didn't want to you were sane and had to. That's Catch-22. It's the best catch there is. -Original Message- From: Martin Skopp [mailto:[EMAIL PROTECTED] Sent: 01 July 2004 13:36 To: Maven Users List Subject: OT: What the hell is catch-22 [was Re: howto: request committer status] On Tue, 2004-06-29 at 23:27, John Casey wrote: Catch-22 alleviated. Could please someone explain a non-native speaker like me that mysterious catch-22 term. Thanks folks, -- Martin Skopp Riege Software International GmbH Support: mailto:[EMAIL PROTECTED], Information: http://www.riege.com This email is intended to be viewed with a nonproportional font. - 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: RFE for the war plugin
Hi Tomasz, It is actually very convenient to supply a project specific log4j.properties since this is the vey first one to be found regardless of any other log4j.properties found in JARs Cheers, Siegfried Goeschl -Original Message- From: Tomasz Pik [mailto:[EMAIL PROTECTED] Sent: Montag, 28. Juni 2004 15:03 To: Maven Users List Subject: Re: RFE for the war plugin On Mon, 28 Jun 2004 08:53:45 -0400, Brill Pappin [EMAIL PROTECTED] wrote: I'm sure some of us would prefer to keep the WEB-INF/classes dir, so my suggestion would be to include a switch property that would allow the user to use one or the other. Here's one reason: servlet specs define, that classes from WEB-INF/classes are loaded before WEB-INF/lib so this may be used as some kind of 'overloading', for example for classes from 'third party' libraries (I know it's ugly but it's possible due to spec). Regards, Tomek - 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]
FW: Weblogic plugin
Sorry folks, I just love to post success stories ... :-) Cheers, Siegfried Goeschl -Original Message- From: Shon Schetnan [mailto:[EMAIL PROTECTED] Sent: Montag, 28. Juni 2004 18:16 To: Göschl,Siegfried Subject: Weblogic plugin Siegfried, I just dropped your plugin into my maven plugins directory, setup the properties, and it works like a charm! Thanks much for your work! Shon
Maven WebLogic 8.1 Plugin is available
Hi folks, I wrote a Maven plugin for BEA WebLogic 8.1 a while ago and did not have any time yet to upload it to maven-plugins.sourceforge.net Shame on me. I tested it for Maven RC1 under Windows XP and BEA WebLogic 8.1 SP2 - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using weblogic 8.1 Ant deploy task within Maven
Hi Shon, For the BEA WebLogic plugin I started with the ANT tasks but the command line version provides more flexibility. If you like I can send you the current version of it for BEA 8.1 SP2 Cheers, Siegfried Goeschl -Original Message- From: Shon Schetnan [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 23. Juni 2004 23:51 To: [EMAIL PROTECTED] Subject: Using weblogic 8.1 Ant deploy task within Maven Hello, I am trying to use the Weblogic deploy ant task within maven. When I run it I get the following exception. My project.xml dependency is the following. dependency groupIdweblogic/groupId artifactIdweblogic/artifactId properties classloaderroot/classloader /properties /dependency project.properties jar override: maven.jar.weblogic = c:/bea/weblogic81/server/lib/weblogic.jar (I know hard coded, but I'm just trying to get this working. :) ) The maven.xml goal is: taskdef name=wldeploy classname=weblogic.ant.taskdefs.management.WLDeploy/ goal name=deployWL wldeploy action=deploy source=${maven.build.dir}/sso.war user=administrator password=administrator verbose=true adminurl=t3://${wlhost}:7001 debug=true targets=SSOServer/ /goal I'm stumped. Any help would be greatly appreciated. --Shon weblogic.Deployer -debug -verbose -noexit -source C:\projects\SSO\HTTPIntegratio n\target\sso.war -targets SSOServer -adminurl t3://localhost:7001 -user administ rator -password administrator -deploy java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:20 9) at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:170) at org.apache.tools.ant.Task.perform(Task.java:341) at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTa g.java:79) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.perfor mAction(MavenGoalTag.java:110) at com.werken.werkz.Goal.fire(Goal.java:639) at com.werken.werkz.Goal.attain(Goal.java:575) at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java: 610) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266) at org.apache.maven.cli.App.doMain(App.java:485) at org.apache.maven.cli.App.main(App.java:1214) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Caused by: java.lang.NullPointerException at weblogic.Deployer.main(Deployer.java:411) ... 25 more BUILD FAILED File.. C:\projects\SSO\HTTPIntegration\maven.xml Element... wldeploy Line.. 86 Column 47 java.lang.reflect.InvocationTargetException Total time: 6 seconds Finished at: Wed Jun 23 16:17:34 CDT 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven WebLogic 8.1 Plugin is available
Sorry, the email was not finished yet - anyone who would like to use it ?! And more important - thanks to Fabian Crabus who helped developing it! Cheers, Siegfried Goeschl -Original Message- From: Göschl,Siegfried Sent: Donnerstag, 24. Juni 2004 10:34 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Maven WebLogic 8.1 Plugin is available Hi folks, I wrote a Maven plugin for BEA WebLogic 8.1 a while ago and did not have any time yet to upload it to maven-plugins.sourceforge.net Shame on me. I tested it for Maven RC1 under Windows XP and BEA WebLogic 8.1 SP2 - - 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: start server in another jvm
Hi Alexander, I'm not sure but is it possible to start the HTTP server in a plugin taking care of the internals?! Cheers, Siegfried Goeschl -Original Message- From: Maksimenko Alexander [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 24. Juni 2004 11:28 To: Maven Users List Subject: start server in another jvm Hi! I need to start my http server in another jvm before starting my tests. I noticed that ant:java fork=true stops execution of the ant script until the java process finishes, so I can't use it to reach my goal. ant:parallel works properly only for ant:java fork=false. :( Is there any solution for my problem? -- Maksimenko Alexander Softwarium, www.softwarium.net - 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: XML entities and forward compatibility
Hi Jason, it's really good to have a better mechanism in place but breaking existing Maven project using XML entities is another thing - you can always issue a deprecation warning during the build or POM validation. Thanks in advance Siegfried Goeschl -Original Message- From: Jason van Zyl [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 09. Juni 2004 03:51 To: Maven Users List Subject: Re: XML entities and forward compatibility On Tue, 2004-06-08 at 21:24, Dion Gillard wrote: Given that they're a standard part of XML, and that the m2 project descriptor in one form will be an XML document, why would they not be available? If decided that the native mechanisms would work best, which I definitely think would be the case as there would be one standard way that work whereas the use of XML entities could be used in any fashion, then I would disable their use them in the xpp3 parser. I honestly cannot see any cases where entities would be beneficial with what's running now in m2. Also, with some of the more advanced features in m2 for conflict resolution amongst dependencies, better jar overriding, and better general handling of artifacts exact control over processing becomes necessary. I would really like to avoid having to locate the source of a problem by finding the source of an entity. In addition things like accurate authoring will have difficulty dealing with entities. If you, say, have a GUI that is allowing you to fix a conflict, or align dependencies then we can provide the exact information to client code to find the source of the conflict. I don't see any upside to entities at all in m2 and I think they would actually be harmful. Nothing special happens with the processing of XML in m1 so it doesn't really matter. But sophisticated tools will need exacting control whether than be our own like the conflict resolution mechanism or GUI tools. -- jvz. Jason van Zyl [EMAIL PROTECTED] http://maven.apache.org happiness is like a butterfly: the more you chase it, the more it will elude you, but if you turn your attention to other things, it will come and sit softly on your shoulder ... -- Thoreau - 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: Custom Ant task parameters not read?
Hi Ian, What you could try is to start an ANT process instead of an ANT task with Maven Cheers, Siegfried Goeschl -Original Message- From: Ian Neruda [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 03. Juni 2004 14:04 To: [EMAIL PROTECTED] Subject: Custom Ant task parameters not read? Hi. In last week I managed to migrate our ant build process to ant. One last thing I need to do is code obfuscation. I'm using yguard ant task. Obfuscation works but it doesn't receive proper parameters with names of classes that must be excluded from obfuscation. Here's example: goal name=crm:obfuscate ant:taskdef name=yguard classname=com.yworks.yguard.ObfuscatorTask classpathref=maven.dependency.classpath/ j:if test=${obfuscate != 'false'} yguard replaceclassnamestrings=false logfile=${maven.war.build.dir}/yguard.log property name=error-checking value=pedantic/ property name=language-conformity value=compatible/ inoutpair in=${maven.war.build.dir}/CRM.jar out=${maven.war.build.dir}\CRM-obf.jar/ expose class classes=private methods=private fields=private patternset include name=hr.sedamit.util.String*/ /patternset /class method class=hr.sedamit.swf.fileupload.FileUploadHandlerFactory name=void setFileRepositoryPath(java.lang.String)/ method class=hr.sedamit.crm.setup.PickerInitializer name=void initialize()/ method class=hr.sedamit.crm.setup.GraphSetup name=void initialize()/ method class=hr.sedamit.swf.taglib.components.filter.FilterUtils name=void registerBuilders()/ method class=hr.sedamit.swf.history.HistoryBrowser name=void setExternalDataSource(hr.sedamit.swf.history.HistoryExternalDataSource)/ /expose /yguard /j:if /goal Problem is that whatever parameters I put inside expose tag, only method tags with classes FilterUtils, PickerInitializer and GraphSetup are excluded from obfuscation. I checked it in yguard log, and it says the same. When I use exactly same ant task with ant it works OK. It don't think that this is maven's fault, but I'm out of ideas. Thanks, Ian __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.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: Custom Ant task parameters not read?
Hi Ian, In the Canoo WebTest Plugin I use the following code snippet java classname=org.apache.tools.ant.Main fork=yes dir=${basedir} failonerror=true classpath path refid=webtest.classpath/ /classpath sysproperty key=host value=${maven.webtest.config.host}/ sysproperty key=port value=${maven.webtest.config.port}/ sysproperty key=protocol value=${maven.webtest.config.protocol}/ sysproperty key=basepath value=${maven.webtest.config.basepath}/ sysproperty key=summary value=${maven.webtest.config.summary}/ sysproperty key=verbose value=${maven.webtest.config.verbose}/ sysproperty key=saveresponse value=${maven.webtest.config.saveresponse}/ sysproperty key=resultpath file=${maven.webtest.config.resultpath}/ sysproperty key=resultfile file=${maven.webtest.config.resultfile}/ sysproperty key=haltonfailure value=${maven.webtest.config.haltonfailure}/ sysproperty key=haltonerror value=${maven.webtest.config.haltonerror}/ sysproperty key=showhtmlparseroutput value=${maven.webtest.config.showhtmlparseroutput}/ arg value=${maven.webtest.ant.options}/ arg value=-f/ arg value=${testScriptFile}/ arg value=${maven.webtest.target}/ /java BTW - I think you should put the obfuscator magic into a Maven plugin ... :-) Cheers, Siegfried Goeschl -Original Message- From: Ian Neruda [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 03. Juni 2004 14:56 To: Maven Users List Subject: RE: Custom Ant task parameters not read? Thanks, Sigfried. How can I start ANT process from maven.xml? --- Göschl,Siegfried [EMAIL PROTECTED] wrote: Hi Ian, What you could try is to start an ANT process instead of an ANT task with Maven Cheers, Siegfried Goeschl -Original Message- From: Ian Neruda [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 03. Juni 2004 14:04 To: [EMAIL PROTECTED] Subject: Custom Ant task parameters not read? Hi. In last week I managed to migrate our ant build process to ant. One last thing I need to do is code obfuscation. I'm using yguard ant task. Obfuscation works but it doesn't receive proper parameters with names of classes that must be excluded from obfuscation. Here's example: goal name=crm:obfuscate ant:taskdef name=yguard classname=com.yworks.yguard.ObfuscatorTask classpathref=maven.dependency.classpath/ j:if test=${obfuscate != 'false'} yguard replaceclassnamestrings=false logfile=${maven.war.build.dir}/yguard.log property name=error-checking value=pedantic/ property name=language-conformity value=compatible/ inoutpair in=${maven.war.build.dir}/CRM.jar out=${maven.war.build.dir}\CRM-obf.jar/ expose class classes=private methods=private fields=private patternset include name=hr.sedamit.util.String*/ /patternset /class method class=hr.sedamit.swf.fileupload.FileUploadHandlerFactory name=void setFileRepositoryPath(java.lang.String)/ method class=hr.sedamit.crm.setup.PickerInitializer name=void initialize()/ method class=hr.sedamit.crm.setup.GraphSetup name=void initialize()/ method class=hr.sedamit.swf.taglib.components.filter.FilterUtils name=void registerBuilders()/ method class=hr.sedamit.swf.history.HistoryBrowser name=void setExternalDataSource(hr.sedamit.swf.history.HistoryExternalDataSource)/ /expose /yguard /j:if /goal Problem is that whatever parameters I put inside expose tag, only method tags with classes FilterUtils, PickerInitializer and GraphSetup are excluded from obfuscation. I checked it in yguard log, and it says the same. When I use exactly same ant task with ant it works OK. It don't think that this is maven's fault, but I'm out of ideas. Thanks, Ian __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.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] __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.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: Really long build
Hi Maritjn, I faced the same problem with CLOVER recently but the bottom line is that it is hardly possible since you depend on the implementation of the plugins, e.g. using an internal target and therefore skipping the prepare step. Cheers, Siegfried Goeschl -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Montag, 31. Mai 2004 17:29 To: [EMAIL PROTECTED] Subject: Really long build Hi! I just performed a site and dist build. Utimately this results in 2 times a complete compile, 2 times testing, 2 times document generation. the command I use is: maven clean dist:deploy site:deploy Isn't it possible to just compile and test once for such build? With regards, Martijn Dashorst - 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: running tests in a particular order
Hi Warner, This sounds like a Junit TestSetup to initialize your environment before you execute your tests. Cheers, Siegfried Goeschl -Original Message- From: Warner Onstine [mailto:[EMAIL PROTECTED] Sent: Dienstag, 25. Mai 2004 22:48 To: Maven Users List Subject: running tests in a particular order Is there a way in Maven to override the test:test goal and specify my own tests, resources and goals inside? Basically what I need to do is to tell Maven that I want to clean a database and setup specific data prior to 3 different types of tests. -warner - 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: Best practice for webapp development in WSAD/Eclipse
Hi Al, Basically you are right - they only twist I can add using an ANT wrapper to invoke Maven to setup the exploded web archive. And the ANT Wrapper can be easily executed by the IDE Cheers, Siegfried Goeschl -Original Message- From: Al Robertson [mailto:[EMAIL PROTECTED] Sent: Dienstag, 25. Mai 2004 13:50 To: Maven Users List Subject: Best practice for webapp development in WSAD/Eclipse All, I was after some feedback on how people structured their WEB (war) applications when using WSAD/Eclipse and maven for development. My directory is structured as follows: /WebProject /src /java /test /java /WebContent /WEB-INF /classes /lib /target (maven generated) As with jar projects, I defined all dependencies in the pom and these are reflected in the .classpath file A simple example: ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=src path=src/java/ classpathentry kind=src path=src/test/java/ classpathentry kind=var path=SERVERJDK_50_PLUGINDIR/jre/lib/rt.jar sourcepath=SERVERJDK_50_PLUGINDIR/src.jar/ classpathentry kind=var path=MAVEN_REPO/j2ee/jars/j2ee-1.3.jar/ classpathentry kind=var path=MAVEN_REPO/junit/jars/junit-3.8.1.jar/ classpathentry kind=var path=MAVEN_REPO/log4j/jars/log4j-1.2.8.jar/ classpathentry kind=output path=WebContent/WEB-INF/classes/ /classpath This compiles fine. The classes are written to my WebContent/WEB-INF/classes directory. BUT - If I run this application using a WebSphere Test Environment (WTE) server, it will fail because it can't find the log4j classes. The WTE uses the WebContent directory as an exploded war. WTE expects utility jars to be available to the WAS classloader, usually from the WEB-INF/lib directory. If I put the jars in the lib directory, I'm effectively maintaining the dependencies twice (in the pom and in WEB-INF/lib). Of course, when building using maven, the exploded war is created in /target, including dependency jars added to /WEB-INF/lib. That all works fine, especially on a continuous integration server. If I could get WSAD to use the /target/webapp directory in the WTE, that would solve the problem, but I can't. Therefore, using maven in a development environment seems to require deploy the generated ear for each test iteration. This loses much of the power of the WTE. So what do other people do? I've extended war:war to add dependencies defined in the pom to the WebContent/WEB-INF/lib directory. But this requires maven war:war to be run before using WTE for the first time. That doesn't feel right. The whole thing doesn't seem to fit well for war projects (great for jars). I'm still experimenting but I thought I'd ask for help!!! I hope this makes sense :-) Al. Digital Union UK [EMAIL PROTECTED] www.digitalunion.com t: +44 (0) 1483 889482 m:+44 (0) 7713 631367 f: +44 (0) 1483 889450 The information in this email and in any attachment(s) is confidential. If you are not the named addressee(s) or if you receive this email in error then any distribution, copying or use of this communication or the information in it is strictly prohibited. While attachments are virus checked, Digital Union UK Limited does not accept any liability in respect of any virus which is not detected. div style=width:450px; border-top: 1px solid black; border-bottom: 1px solid black; font-family: Arial; font-size: 8pt pThis email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.nbsp; If you have received this email in error please notify your system administrator. br/br/While attachments are virus checked, Digital Union UK Limited does not accept any liability in respect of any virus which is not detected./p /div - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Packaging up a build
Hi Joel, Check out the dist plugin (run 'maven -g') E.g. 'maven dist:build-src' creates a source distribution Cheers, Siegfried Goeschl -Original Message- From: Joel Shellman [mailto:[EMAIL PROTECTED] Sent: Dienstag, 25. Mai 2004 19:25 To: Maven Users List Subject: Packaging up a build I'm looking to switch our development to using Maven. A coworker has told me that he needs a way to zip up our source and send it to someone else so they can build it. The concern is this would be difficult if we were using maven (he says requiring them to install maven is unacceptable). Are there any tools or functions out there that would make it easier to do this? I guess what we would need is an export to ant script sort of function that also included all the dependent libraries. Thank you, Joel Shellman - 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 and Integration Test
Hi, +) I have a couple of projects to build and run the JUNIT tests and in my EAR project I automatically deploy to BEA WebLogic to run my webtest. +) I currently reintegrate CLOVER to get the test coverage for the web regression tests Cheers, Siegfried Goeschl -Original Message- From: Amato Massimiliano (TLAB) [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 19. Mai 2004 16:17 To: Maven Users List Subject: Maven and Integration Test Hello, I've a problem with my integration tests. In my system we have both unit and integration test, the first type is perfectly handled by maven that execute them, and generates a report and a clover coverage too. Now I also have integration that are test to cover not the single class but a package and functional tests that must be run on the deployed system that are junit tests aswell. All that comes to my mind is to write and additional goal that must override the test source directory that must be lauched when functional tests wants to be executed, while for integration i think using them as unit test is the best approach even if they are not accounted in the clover report Anyone else ever had a problem like that? What's the solution you implemented? Max - 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: Local deployment of Dependent Jars
I'm using the following local goal to do this goal name =local:copy-deps description=Copies the dependent JARs into lib deploy:copy-deps todir=${maven.war.src}/WEB-INF/lib excludes=junit/ /goal Cheers, Siegfried Goeschl -Original Message- From: Ryan Lloyd [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 12. Mai 2004 14:02 To: [EMAIL PROTECTED] Subject: Local deployment of Dependent Jars Is anyone able to point me to some documentation which explains how I can perform local deployment of dependencies? I've been able to compile, and create jars from my source quite easily, but in order to create a useful 'distribution', I need to be able to package the compiled source, along with the dependent jar files from the local repository. Any advice would be appreciated. Regards, Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Signing jars before deployment
Hi Yoway, A postGoal name=jar:jar might solve the problem Cheers, Siegfried Goeschlö -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Montag, 03. Mai 2004 20:05 To: [EMAIL PROTECTED] Subject: Signing jars before deployment Does anyone know of a good way to sign jars before deploying them? I've tried writing the following goal: goal name=jar:sign attainGoal name=jar:jar/ signjar jar=${maven.build.dir}/${maven.final.name}.jar alias=milkshake storepass=frylock/ attainGoal name=jar:deploy/ /goal Unfortunately, after the jar is signed the deploy goal causes the jar to be built again, without being signed. I couldn't seem to find any properties in the jar plugin reference to help with this, so I was wondering if anyone has any idea what the best approach to this would be. Thanks. Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems I refuse to tiptoe through life only to arrive safely at death's door. -- ??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven Abbot plugin - feedback wanted
Hi Dion, In the case of webtesting you could have a look at the Canoo WebTest Plugin hosted on maven-plugins.sourceforge.net. Cheers, Siegfried Goeschl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Samstag, 01. Mai 2004 15:08 To: Maven Users List Subject: Re: Maven Abbot plugin - feedback wanted Can abbot be used for web app testing? -- dIon Gillard, Multitask Consulting Vincent Massol [EMAIL PROTECTED] wrote on 01/05/2004 07:46:11 AM: Hi Abbot and Maven users, I've just committed today a Maven plugin for Abbot. See http://maven.apache.org/reference/plugins/abbot/ for more information. Note that this plugin supports testing webstart applications. The plugin is not released yet so you'll have to build it from source. To do this, install Maven, checkout the maven-plugins-sandbox module (http://cvs.apache.org/viewcvs.cgi/maven-plugins-sandbox/), cd to abbot/ and type maven plugin:install. Feedback is much welcome. Thanks -Vincent Wanna see JUnit in Action? (http://manning.com/massol) - 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]
Is there a Maven WebLogic Plugin available?!
Hi folks, recently I looked for a Maven plugin for automated deployment on Bea WebLogic 8.x and couldn't find anything I could download readily. At the end I wrote a little plugin - it uses the WebLogic Deployer facility and currently runs with Maven-1.0-RC1. Is there any other WebLogic plugin out there or is it worth to put in some more effort and contribute it to the Maven Plugins SourceForge project?! Maybe someone is willing to lend a hand for more field testing ... :-) Thanks in advance Siegfried Goeschl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven WinRunner Integration?!
Hi folks, on the project I currently work on WinRunner is used for regression testing of the web application. I had a chat with one of the local WinRunner gurus and we set up a batch file for Windows to run the WinRunner scripts from the command line. Basically this is all I need to write a Maven WinRunner Plugin. What I actually miss is some form of reporting since WinRunner creates a proprietary text report. My colleague searched through the WWW and there is an addon available to create an XML report but this requieres modifying the existing WinRunner scripts. The following questions remain ... +) Is there a Maven Plugin available I can use - if yes it is possible to contribute it on maven-plugins.sourceforge.net +) Are there any other options to create a WinRunner report - preferable XML or HTML?! Regards Siegfried Goeschl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there a Maven WebLogic Plugin available?!
Hi Dion, it looks that I did not waste my time after all. I package the plugin to be hosted on maven-plugins and Fabian Crabus gives me a hand in testing it since I'm not a regular BEA WebLogic User So with a little bit of spare time I can upload it on during the weekend Thanks Siegfried Goeschl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 29. April 2004 16:37 To: Maven Users List Subject: Re: Is there a Maven WebLogic Plugin available?! Nathan Coast made a weblogic plugin a while back, but it only worked with the EJBGen tool from WebLogic. The Cactus plugin has WebLogic functionality too from memory. -- dIon Gillard, Multitask Consulting Göschl,Siegfried [EMAIL PROTECTED] wrote on 29/04/2004 07:48:19 PM: Hi folks, recently I looked for a Maven plugin for automated deployment on Bea WebLogic 8.x and couldn't find anything I could download readily. At the end I wrote a little plugin - it uses the WebLogic Deployer facility and currently runs with Maven-1.0-RC1. Is there any other WebLogic plugin out there or is it worth to put in some more effort and contribute it to the Maven Plugins SourceForge project?! Maybe someone is willing to lend a hand for more field testing ... :-) Thanks in advance Siegfried Goeschl - 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]