iText 4.2.0 - Could a software licence be changed from MPL/LGPL to AGPL by simply redistributing the pom.xml?
ot found 2) Checking the itext-4.2.0.jar metadata === A closer look at the itext-4.2.0.jar shows the following pom.xml GNU General Lesser Public License (LGPL) version 3.0 http://www.gnu.org/licenses/lgpl.html repo Mozilla Public License Version 2.0 http://www.mozilla.org/MPL/2.0/ repo iText-4.2.0 https://github.com/weiyeh/iText-4.2.0 This is a build of the last MPL version of iText. scm:git:https://github.com/weiyeh/iText-4.2.0.git scm:git:https://github.com/weiyeh/iText-4.2.0.git scm:git:https://github.com/weiyeh/iText-4.2.0.git Looking at https://github.com/weiyeh/iText-4.2.0 shows that this is a fork of static mirror of the original iText project So this is actually not an official build from the iText developers so I checked the "official" SourceForge SVN repo 3) What SourceForge Says === I digged through the SourceForge SVN repo and there is indeed a tag "Unofficial release: iText 4.2.0" * http://sourceforge.net/p/itext/code/HEAD/tree/tags/iText_4_2_0/www/lowagie/ * http://sourceforge.net/p/itext/code/HEAD/tree/tags/iText_4_2_0/src/core/com/lowagie/text/Anchor.java clearly states that the project at that time was under MPL/LGPL 4) Open Questions === Could anyone clarify the issue * Is this only an accident and we just need to upload the old pom.xml? * Is the current itext-4.2.0.jar legally dangerous and should be removed from Maven Central? * Could a re-distribution of pom.xml indeed the change the licence terms many years later? * What are the legal implication in this case if a LGPL library suddenly turns into viral GPL? Legal hell? Cease and desist letters? Thanks in advance Siegfried Goeschl - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Cause: the class org.apache.tools.ant.taskdefs.optional.ssh.Scp was not found
Hi, some thoughts along the line * are you sure that those two dependencies are declared within the plugin section of "maven-antrun-plugin” and not dependencies of your project - see https://maven.apache.org/plugins/maven-antrun-plugin/examples/customTasks.html <https://maven.apache.org/plugins/maven-antrun-plugin/examples/customTasks.html> * does the ant task work when being executed from ANT * what I usually do is to use a dedicated stand-alone Ant script triggered by Maven Cheers, Siegfried Goeschl > On 12 Oct 2015, at 22:04, K R <krr...@gmail.com> wrote: > > What do I need to do to make this work see error below? > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-antrun-plugin:1.8:run (compile) on project > YT-100_ATU_Controller: An Ant BuildException has occured: Problem: failed > to create task or type scp > [ERROR] Cause: the class org.apache.tools.ant.taskdefs.optional.ssh.Scp was > not found. > [ERROR] This looks like one of Ant's optional components. > [ERROR] Action: Check that the appropriate optional JAR exists in > [ERROR] -ANT_HOME\lib > [ERROR] -the IDE Ant configuration dialogs > [ERROR] > [ERROR] Do not panic, this is a common problem. > [ERROR] The commonest cause is a missing JAR. > [ERROR] > [ERROR] This is not a bug; it is a configuration problem > > I have the dependency > > > com.jcraft > jsch > 0.1.53 > > > > ant > ant-jsch > 1.6.5 > > > > > compile > package > > > todir="${ftp-userid}@${ftp-server}:${deployment.dir}" > trust="true" > port="${ftp-port}" > password="${ftp-password}"/> > > > > run > >
Re: OSX and Maven Compiler Plugin (tools.jar missing)
Hi folks, the last time I created a link Cheers, Siegfried Goeschl On 10.04.12 19:20, Benson Margulies wrote: Apple has no tools.jar, they just load it into the regular jar. This is why the standard web page http://maven.apache.org/general.html#tools-jar-dependency has you make a profile. On Tue, Apr 10, 2012 at 1:06 PM, Anders Hammarand...@hammar.net wrote: Most likely there is a system scope dependency pointing at the locally installed tools.jar. The path is different on Windows (for example) and Mac OS. Have a look in the pom and look for that dependency. System scope dependencies are evil, /Anders On Tue, Apr 10, 2012 at 18:50, Francois Eylf...@smaeur.eu wrote: Hi guys, I'm facing to a strange issue with the maven-compiler-plugin on my OSX system while the same project/pom work fine on windows and linux. For some reason the plugin tries to access the tools.jar in a directory that doesn't exist on OSX since I'm not using the Oracle JVM but the Apple one. Here is the full message : [ERROR] Failed to execute goal on project com.sma.connector.movex: Could not resolve dependencies for project com.sma.connector.movex:com.sma.connector.movex:jar:2.3.3-SNAPSHOT: Could not find artifact jdk:tools:jar:5.0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project com.sma.connector.movex: Could not resolve dependencies for project com.sma.connector.movex:com.sma.connector.movex:jar:2.3.3-SNAPSHOT: Could not find artifact jdk:tools:jar:5.0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:196) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:108) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project com.sma.connector.movex:com.sma.connector.movex:jar:2.3.3-SNAPSHOT: Could not find artifact jdk:tools:jar:5.0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:170) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:171) ... 22 more Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact jdk:tools:jar:5.0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:412) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:164) ... 23 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact jdk:tools:jar:5.0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
Re: Solve my exception for mvn installtion
+1 On 17.12.11 02:14, Graham Leggett wrote: On 16 Dec 2011, at 9:48 PM, Barrie Treloar wrote: I found the problem and now it is solved. thank all who helped me. This reply makes me angry. Please state what you problem actually was and what you did to solve it. The next person who has the same problem as you will hate you for not posting this information. +1. Regards, Graham -- - 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
[ANN] webtest-maven-plugin-1.0.0 released
Hi, The Mojo team is pleased to announce the release of the webtest-maven-plugin version 1.0.0 The webtest-maven-plugin allows running Canoo Webtest (see http://webtest.canoo.com/webtest/manual/WebTestHome.html) within a Maven 2 build. http://mojo.codehaus.org/webtest-maven-plugin/ To get this update, simply specify the version in your project's plugin configuration: plugin groupIdorg.codehaus.mojo/groupId artifactIdwebtest-maven-plugin/artifactId version1.0.0/version /plugin Enjoy, The Mojo team. Siegfried Goeschl - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: codehaus.org
Hi John, if you mean something like [INFO] [site:deploy {execution: default-deploy}] https://dav.codehaus.org/mojo/webtest-maven-plugin - Session: Opened Aug 17, 2011 8:15:55 PM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: basic authentication scheme selected Uploading: ./announcements/announcement-0.6.3.txt to https://dav.codehaus.org/mojo/webtest-maven-plugin # Transfer error: java.net.SocketTimeoutException: Read timed out https://dav.codehaus.org/mojo/webtest-maven-plugin - Session: Disconnecting https://dav.codehaus.org/mojo/webtest-maven-plugin - Session: Disconnected than it can be concluded that there are connectivity issues from Europe at the moment Siegfried Goeschl On 17.08.11 23:41, Newman, John W wrote: I've had connectivity problems with that site pretty regularly going on for a couple years now. Sometimes it works, sometimes it doesn't. :-DRight now at the moment it does work, but earlier today it did not. -Original Message- From: Hilco Wijbenga [mailto:hilco.wijbe...@gmail.com] Sent: Wednesday, August 17, 2011 5:31 PM To: Maven Users List Subject: Re: codehaus.org On 17 August 2011 11:16, Robert Scholterfscho...@codehaus.org wrote: It looks like the site is kind of unstable http://www.downforeveryoneorjustme.com/mojo.codehaus.org right now it's down for me too (the Netherlands) It's up for me right now (Canada) but it was down for several hours a few weeks ago. So unstable seems to describe it well. :-) - 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: JMeter in Maven
Hi Roland, you can always fall back to use the JMeter Ant integration Cheers, Siegfried Goeschl On 18.03.11 13:38, Asmann, Roland wrote: On 18.03.2011 13:23, Jeff MAURY wrote: On Fri, Mar 18, 2011 at 12:03 PM, Asmann, Roland roland.asm...@adesso.atmailto:roland.asm...@adesso.at wrote: Hi all, I've been looking through Google to find a plugin to run JMeter from Maven. It seems there are two main plugins, one of which seems to have several branches. Has anybody worked with any of them? If so, could you tell me which one is the best to use? And is any of them available in a repository somewhere? The Maven plugin from the JMeter team is using an old version of JMeter. if you want control over the JMeter version, please see the chronos plugin: http://mojo.codehaus.org/chronos-maven-plugin I looked into that one, but it seems it is still a SNAPSHOT. And since the site hasn't been updated since 2008, I was a little skeptic about that one... Besides, I am not allowed to use SNAPSHOTS in my POM, but that is a different story altogether. Regards Jeff Thanks. -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 tel:%2B43%201%202198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 tel:%2B43%201%202198790-927 A-1210 Wien M +43 664 88657566 tel:%2B43%20664%2088657566 E roland.asm...@adesso.at mailto:roland.asm...@adesso.at W www.adesso.at http://www.adesso.at - business. people. technology. - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org mailto:users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org mailto:users-h...@maven.apache.org -- Legacy code often differs from its suggested alternative by actually working and scaling. - Bjarne Stroustrup http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.twitter.com/jeffmaury - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: making a repository read-only
Use a cron job to change file permission and owners of the repostioty content. Cheers, Siegfried Goeschl On 30.06.10 07:38, Jemos Infra wrote: No, we don't use Nexus, just the file system. We've got a single account (sys_account) who is entitled to upload to this repository through ssh using an infrastructure given key, so also the possibility to use multiple usernames/passwords doesn't seem feasable. Any other suggestions? Regards, M. On Tue, 2010-06-29 at 16:22 -0700, Manfred Moser wrote: Hi all, I've got the requirement of providing different settings.xml files to different clients. Currently we've got different repositories: Third Party (TP), SNAPSHOTS and Releases. Each client has got different requirements. For instance, developers can only use all repositories as read-only, our CI environment can upload artifacts to the SNAPSHOT but have read-only access to TP and Releases while our build software can only upload to Releases but have read-only to TP and SNAPSHOTS. Is there a way to setup this kind of configuration via settings.xml or other elements inside a POM? So far it seems I couldn't find a way. Just use different username/password combinations in your repository server with different access rights and use the different roles in pom.xml profiles and settings.xml. - 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: Ant , maven , antrun , ddlutils
Hi Venkatram, I think we would need some more information +) what would you like to do with DDLUtils? +) why are you triggering DDLUtils in multiple M2 projects - I have my DB stuff usually in one subproject +) do you have a copy of Database.properties in all subprojects? +) how are you invoking the Ant tasks - embedded in the pom.xml or a seperate build.xml? Thanks in advance Siegfried Goeschl On 25.02.10 07:29, Stephen Connolly wrote: please try with maven 3.0-alpha-6. maven 2's plugin classloader only loads a plugin once during a reactor build, so if you try to change the plugin's dependencies mid reactor, it will blow up in your face... which _could_ look similar to your issue... this would be the quickest way to confirm (maven 3 has fixed it IIRC) if your build works with 3.0-a-6 and fails with 2.2.1 then this is the problem and we can tell you how to fix it... otherwise it's a different problem, and we can ask you more questions Sent from my [rhymes with tryPod] ;-) On 25 Feb 2010, at 00:30, venkatRAM venkatram.akkin...@gmail.com wrote: Hello everyone I have posted this on the ant forum. The reason for this post on maven forum is that I am not sure where the problem is originating from. I am trying to use ddlutils with maven. No ready ddlutils plugin available for maven. So I am working with ant-run plugin. When I run the maven pom file, I get the following output. You can notice here that the echo statement echoes the driver value from the properties file first time and then after that it does not. I am not sure why this is happening. Could somebody throw somelight on this. Thanks Venkat My config: property file=./resources/ddlutils/Database.properties prefix=db / echo${db.driver}/echo taskdef classname=org.apache.ddlutils.task.DatabaseToDdlTask name=databaseToDdl classpathref=maven.compile.classpath / databaseToDdl usedelimitedsqlidentifiers=true modelname=lean verbosity=DEBUG database driverclassname=org.postgresql.Driver url=${db.url} username=${db.username} password=${db.password} / writeschematofile outputfile=./resources/database/schema-lean.xml / /databaseToDdl Error Stack Trace: ven...@ubuntu:~/leanpm/implementation$ sudo mvn -e install + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] LeanPM [INFO] Applications [INFO] LeanPM parent [INFO] LeanPMJAR [INFO] LeanPMWAR [INFO] LeanPMEAR [INFO] AllModules [INFO] BuildTools [INFO] Delivery [INFO] [INFO] Building LeanPM [INFO]task-segment: [install] [INFO] [INFO] [antrun:run {execution: ddlutils-compile}] [INFO] Executing tasks [echo] org.postgresql.Driver Borrowed connection org.apache.commons.dbcp.poolableconnect...@19abd2b from data source Returning connection org.apache.commons.dbcp.poolableconnect...@19abd2b to data source. Remaining connections: None Written schema to /home/venkat/leanpm/implementation/resources/database/schema-lean.xml [INFO] Executed tasks [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing /home/venkat/leanpm/implementation/pom.xml to /.m2/repository/com/oniryx/leanPM/LeanPM/0.1-SNAPSHOT/LeanPM-0.1-SNAPSHOT.pom [INFO] [INFO] Building Applications [INFO]task-segment: [install] [INFO] [INFO] [antrun:run {execution: ddlutils-compile}] [INFO] Executing tasks [echo] ${db.driver} [INFO] [ERROR] BUILD ERROR [INFO] [INFO] An Ant BuildException has occured: Could not read the schema from the specified database: Could not get a connection from the datasource No suitable driver [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: An Ant BuildException has occured: Could not read the schema from the specified database: Could not get a connection from the datasource at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
Re: Ant , maven , antrun , ddlutils
Always a pleasure to help Siegfried Goeschl On 25.02.10 16:32, venkatRAM wrote: Hello Golgradio Well I was able to figure it out last night didn't have time to post the reply. But here is goes. You were right about the db.url , username and password not getting resolved. The reason was that this part of root POM was being called multiple times worse yet from different locations. So my guess was that Maven cannot find the .properties file. So I hardcoded the file location into POM file. It ran like a charm. Also I did not need this to be called multiple times. So I moved the code into the Delivery module of the application. This solved the issue. Once again thanks for your reply Venkat golfradio wrote: The expression ${db.driver} is getting resolved. But in your actual database connection definition you have hard coded the driver class name. So the driver cannot be the problem. From the stacktrace it looks like the schema name is not getting resolved. It could be because your db.url or username or password is not getting resolved or is plain wrong. Make sure they are getting resolved and that you can connect to the database using those credentials and the url from outside of your build script. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: idea integration with maven
Hi Eshan, in your current working directory you should find the IDEA project files - just open them from within IntelliF Siegfried Goeschl On 24.02.10 10:47, eshan sudharaka wrote: i am using inteli idea for java development.I have created a application using maven.How do i open it with Idea..??? i tried it lot mvn idea:idea - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: idea integration with maven
Assuming you have M2 integration installed ... :-) On 24.02.10 11:24, Stephen Connolly wrote: from intellij 7 onwards, when you go to the file|open project menu just select the pom.xml file and intellij will work out the rest for you... no need for idea:idea On 24 February 2010 09:47, eshan sudharakaesudhar...@gmail.com wrote: i am using inteli idea for java development.I have created a application using maven.How do i open it with Idea..??? i tried it lot mvn idea:idea -- View this message in context: http://old.nabble.com/idea-integration-with-maven-tp27714145p27714145.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Manually installing artifacts - Maven 1
Hi David, +) copy the library to ~/.maven/repository/jdom/jars/jdom-b10.jar +) migrate to M2 if possible because M1 know-how is becoming difficult to find Cheers, Siegfried Goeschl David Nemer wrote: Hello Everyone, I'm using Maven 1 to build some projects, and it can't download a JAR. - Attempting to download jdom:jdom:b10:jar from http://repo1.maven.org/maven How do I manually install that to Maven 1? Thank you in advance -- David Nemer Sent from Saarbrucken, SL, Germany - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Manually installing artifacts - Maven 1
Well, the migration takes some time depending on your Maven 1 2 know-how but +) the central M1 repo is not properly maintained any longer +) my IntelliJ project generation was somehow broken +) using M2 transitive dependencies is a huge plus Cheers, Siegfried Goeschl I spend two days this week to replacmy M1 build with M2 ... ;-) Wayne Fay wrote: The project I'm building.. builds up with maven 1.. is it possible to build maven 1 projects with maven 2? Sure, just convert it to M2's pom.xml etc. ;-) Wayne - 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: Compile what can be compiled, ignore sources with errors
Hi Eduardo, a solution would be +) create a project in the IDE of your choice +) fix the errors incrementally Cheers, Siegfried Goeschl Eduardo M KALINOWSKI wrote: Is there a way to configure Maven to ignore source files that present errors during compilation, and compile everything that is possible (that is, has no error)? I've set maven-compiler-plugin's failOnError option to false, and the build is considered successful despite the errors. However, no classes are generated. Our jar file is even created, but it has nothing except the META-INF directory. I believe the problem happens because it's a big project (229 source files as of now). I created a simple project with two sources, and even without failOnError=true the source with no errors was compiled. But when I created a lot more sources with errors, nothing was generated. Apparently after some number of errors Maven gives up and does not try to compile anything else. Is that assumption correct? I couldn't find any information on that. One possible way to solve the problem would be to manually list the files to be excluded, and remove them from the list as they get fixed. But this is tedious and error-prone, so I wonder if there is a better way. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Code Coverage for integration tests
Hi Douglas, I assume you mean code coverage of deployed server code ... +) many moons ago I did integration code coverage for M1 based on Clover and Canoo WebTest since we had to prove that 60% of server code was executed by the remote tests +) Clover allows to merge coverage information if you run different type of tests, e.g merge coverage of unit and integration tests +) I would assume that you can create your instrumented libraries using M2 profiles Cheers, Siegfried Goeschl Douglas Ferguson wrote: 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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-antrun-plugin exec task. Windows. Can't leave process running in the background.
Hi Mark, no idea what a ledgebox is but is is probably not very offending ... ;-) Cheers, Siegfried Goeschl gags_78 wrote: Hi Siegfried, You sir, are what we commonly refer to in Ireland as a Legend!!! A total ledgebox!! I cannot thank you enough. That has made my day and works a charm. I thank you kindly. Regards, Mark. Siegfried Goeschl wrote: Hi Mark, have you tried the spawnattribute of the Ant exec task? Cheers, Siegfried Goeschl gags_78 wrote: Hi folks, I'm trying to introduce automated integration testing for our application. I successfully integrated the cargo plugin to get our product deployed and started within a fresh jboss installation as part of pre-integration-test phase. Alas in order for our integration tests to work we need to connect to an external 3rd party service that itself needs to be running before the jboss server tries to boot. The following is the pom snippet I was hoping to use to perform this task. artifactIdmaven-antrun-plugin/artifactId executions execution phaseprocess-test-resources/phase goals goalrun/goal /goals configuration tasks exec executable=startExternalService.cmd/ /tasks /configuration /execution /executions Alas the maven process seems to hang until the external process is exited while I need it to continue running in the background to allow my jboss server to come up. I had orginally encountered the same problem with the Jboss server as obviously you need to kick it off and then once it's up you would run the tests. Again the mvn process would just hang there. then I stumbled across cargo and they've a very handy element called waitfalse/wait that can be introduced to the cargo plugin's configuration element and it prevents maven from blocking on the jboss server. This allows you to kick off other executions but only within the same phase it seems. I think this problem may be associated solely with windows as I believe though I haven't tested it that the ampersand '' in linux will instruct the process to run in the background allowing the maven process to continue. Basically if anyone has managed to leave a process running on a windows machine detached from the maven process and continue with the build I'd love the heads up on how to. Thanks, Mark. - 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: maven2 not forking ant task
Hi struts-restfull, according to http://ant.apache.org/manual/index.html the is also a spawn attribute - have you tried that? Cheers, Siegfried Goeschl struts-restful wrote: Hi i have a ant task defined in Maven as below and when it runs from within the maven build phase the jvm does not seem to fork. Does anyone have any ideas. I have also included the output from the console when the ant task is starting up. It does not mention any forking in the start up either. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId version1.3/version executions execution idstart-jetty/id phasepre-integration-test/phase configuration tasks property name=compile_classpath refid=maven.compile.classpath / property name=runtime_classpath refid=maven.runtime.classpath / property name=test_classpath refid=maven.test.classpath / property name=plugin_classpath refid=maven.plugin.classpath / java classname=java.main class fork=true failonerror=true clonevm=true classpath pathelement path=${compile_classpath} / pathelement path=${runtime_classpath} / pathelement path=${test_classpath} / /classpath /java /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin [INFO] [antrun:run {execution: start-jetty}] [INFO] Executing tasks [java] 2010-01-22 10:21:56.446::INFO: Logging to STDERR via org.mortbay.log.StdErrLog [java] Starting server on 8083 [java] 2010-01-22 10:21:56.446::INFO: jetty-6.1.11 [java] 2010-01-22 10:21:57.962::INFO: No Transaction manager found - if your webapp requires one, please configure one. --not included remaining server startup Thanks in advance - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-antrun-plugin exec task. Windows. Can't leave process running in the background.
Hi Mark, have you tried the spawnattribute of the Ant exec task? Cheers, Siegfried Goeschl gags_78 wrote: Hi folks, I'm trying to introduce automated integration testing for our application. I successfully integrated the cargo plugin to get our product deployed and started within a fresh jboss installation as part of pre-integration-test phase. Alas in order for our integration tests to work we need to connect to an external 3rd party service that itself needs to be running before the jboss server tries to boot. The following is the pom snippet I was hoping to use to perform this task. artifactIdmaven-antrun-plugin/artifactId executions execution phaseprocess-test-resources/phase goals goalrun/goal /goals configuration tasks exec executable=startExternalService.cmd/ /tasks /configuration /execution /executions Alas the maven process seems to hang until the external process is exited while I need it to continue running in the background to allow my jboss server to come up. I had orginally encountered the same problem with the Jboss server as obviously you need to kick it off and then once it's up you would run the tests. Again the mvn process would just hang there. then I stumbled across cargo and they've a very handy element called waitfalse/wait that can be introduced to the cargo plugin's configuration element and it prevents maven from blocking on the jboss server. This allows you to kick off other executions but only within the same phase it seems. I think this problem may be associated solely with windows as I believe though I haven't tested it that the ampersand '' in linux will instruct the process to run in the background allowing the maven process to continue. Basically if anyone has managed to leave a process running on a windows machine detached from the maven process and continue with the build I'd love the heads up on how to. Thanks, Mark. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Javascript zip dependency management
Hi John, you might have a look at the dependency plugin (and there was a similar question on the mailing list maybe two or three weeks ago) Cheers, Siegfried Goeschl John Ericksen wrote: Hello, I have what might be a basic question, but I haven't been able to find a way to accomplish it using Maven. The project I am working on (Braintrain: http://code.google.com/p/braintrain/) uses Maven as the build framework. What I want to do is basically unzip 2 zip files and move the contents of a subdirectory in each to the js/ directory of the war. Specifically: braintrain/braintrain-war/lib/tinymce_3_2_7.zip, sub-zip directory: /tinymce/jscripts/tiny_mce/ braintrain/braintrain-war/lib/tinymce_compressor_jsp_2_0_2.zip, sub-zip directory: /tinymce_compressor_jsp/ Ive tried using a war overlay, but I couldn't get the sub-directories moved to the /js dir... they ended up looking like this: /js/tinymce/jscripts/tiny_mce/... and /js/tinymce_compressor_jsp/ which wouldn't work... the compressor jsp needs to be in the same directory as the tiny_mce.js javascript file Also, Ive tried using the maven-javascript-plugin, but it didnt seem to have the facilities for this. I encourage you to check out braintrain and build it.. here's the svn: http://braintrain.googlecode.com/svn/trunk/ to build it from the root, make sure to run mvn clean install... there are a lot of sub-projects that need to be installed. Thank you in advance for your attention feedback and suggestions. Let me know if you have any questions or need any clarification. John - 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: script-maven-plugin: suport for JSR223
Same here :-) Stefano Fornari wrote: Hi Tomek, I think I'll have a first version by tonight. How would you like to proceed? Shall I pack the source code and post it to the list? Or do you prefer a patch (but keep in mind there will be a lot of changes). Please let me know. Ste On Sat, Jan 2, 2010 at 5:33 PM, Tomasz Pik tom...@gmail.com wrote: On Fri, Jan 1, 2010 at 12:29 PM, Stefano Fornari stefano.forn...@gmail.com wrote: Hi All, I needed a plugin to run JavaScript scripts and I ran into script-maven-plugin. It looks that id does most of what I need, but I would need to extend it anyway to allow the evaluation of more than one script. Looking at the documentation and code, I noticed, it seems a bit outdated and supports BSF 2.x only. In the JDK 1.6, JSR223 is implemented and provides already the Rhino JavaScript engine implementation. I was therefore wondering if it makes sense at all to develop a script-maven-plugin 2.0 that supports JSR223 and drops support for BSF (who wants to use BSF engines can keep using 1.0-SNAPSHOT). I would develop such version and contribute it to the project if Tomasz is fine with it. The alternative is to develop a separate plugin, but it would be a pity to fragment this simple mojo. Yes, go for it. Initially, I've been developing this plugin with groovy in mind and then whole GMaven thing comes... Also, with JDK1.6 being a de facto standard on developer's environments, I think it would be better to use JSR233 instead of BSF. Regards, Tomek What do you think? Stefano -- Ste - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: script-maven-plugin: suport for JSR223
Hi Stefano, in that case you would tie the latest incarnation of the script-maven-plugin to the JDK 1.6 ... :-) Siegfried Goeschl PS : I have a look at the plugin tonight Stefano Fornari wrote: Siegfried, that would be great. I guess the first question I would answer is if we need tu update BSF support. My vote is to use the previous version of the script plugin when JSR223 is not available. The changes I would like to do for now is to being able to specify more files to be evaluated. Ste On Fri, Jan 1, 2010 at 3:08 PM, Siegfried Goeschl siegfried.goes...@it20one.at wrote: Hi Stefano, I think it is a good idea to improve the plugin - as a quick note bsf-3.0-X provides JSR223 for JDK 1.5. Cheers, Siegfried Goeschl PS: Stefano Tomasz - I would like to help as well to improve the plugin .. Stefano Fornari wrote: Hi All, I needed a plugin to run JavaScript scripts and I ran into script-maven-plugin. It looks that id does most of what I need, but I would need to extend it anyway to allow the evaluation of more than one script. Looking at the documentation and code, I noticed, it seems a bit outdated and supports BSF 2.x only. In the JDK 1.6, JSR223 is implemented and provides already the Rhino JavaScript engine implementation. I was therefore wondering if it makes sense at all to develop a script-maven-plugin 2.0 that supports JSR223 and drops support for BSF (who wants to use BSF engines can keep using 1.0-SNAPSHOT). I would develop such version and contribute it to the project if Tomasz is fine with it. The alternative is to develop a separate plugin, but it would be a pity to fragment this simple mojo. What do you think? Stefano - 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: script-maven-plugin: suport for JSR223
Hi Stephen, could you clarify the statement - I think I miss a bit or two :-) Cheers, Siegfried Goeschl Stephen Connolly wrote: I'd like to see support for toolchains so that you don't have to run maven with jdk 6 to use scripting Sent from my [rhymes with tryPod] ;-) On 2 Jan 2010, at 16:33, Tomasz Pik tom...@gmail.com wrote: On Fri, Jan 1, 2010 at 12:29 PM, Stefano Fornari stefano.forn...@gmail.com wrote: Hi All, I needed a plugin to run JavaScript scripts and I ran into script-maven-plugin. It looks that id does most of what I need, but I would need to extend it anyway to allow the evaluation of more than one script. Looking at the documentation and code, I noticed, it seems a bit outdated and supports BSF 2.x only. In the JDK 1.6, JSR223 is implemented and provides already the Rhino JavaScript engine implementation. I was therefore wondering if it makes sense at all to develop a script-maven-plugin 2.0 that supports JSR223 and drops support for BSF (who wants to use BSF engines can keep using 1.0-SNAPSHOT). I would develop such version and contribute it to the project if Tomasz is fine with it. The alternative is to develop a separate plugin, but it would be a pity to fragment this simple mojo. Yes, go for it. Initially, I've been developing this plugin with groovy in mind and then whole GMaven thing comes... Also, with JDK1.6 being a de facto standard on developer's environments, I think it would be better to use JSR233 instead of BSF. Regards, Tomek What do you think? Stefano -- Ste - 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: script-maven-plugin: suport for JSR223
Hi Stefano, I think it is a good idea to improve the plugin - as a quick note bsf-3.0-X provides JSR223 for JDK 1.5. Cheers, Siegfried Goeschl PS: Stefano Tomasz - I would like to help as well to improve the plugin .. Stefano Fornari wrote: Hi All, I needed a plugin to run JavaScript scripts and I ran into script-maven-plugin. It looks that id does most of what I need, but I would need to extend it anyway to allow the evaluation of more than one script. Looking at the documentation and code, I noticed, it seems a bit outdated and supports BSF 2.x only. In the JDK 1.6, JSR223 is implemented and provides already the Rhino JavaScript engine implementation. I was therefore wondering if it makes sense at all to develop a script-maven-plugin 2.0 that supports JSR223 and drops support for BSF (who wants to use BSF engines can keep using 1.0-SNAPSHOT). I would develop such version and contribute it to the project if Tomasz is fine with it. The alternative is to develop a separate plugin, but it would be a pity to fragment this simple mojo. What do you think? Stefano - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Batch releasing many projects in Maven. Is it possible?
Hi Paul, had a similar situation which I temporarily this week +) all variable version are expressed as properties in the M2 pom +) wrote a little ANT script based on regexp task to replace the variable with the expanded values if this helps I can send you the script as a starting point Cheers, Siegfried Goeschl Paul Benedict wrote: Thanks Stephen. It looks like this feature isn't handled by Maven yet. These aren't parent-child projects, so it appears I have to remain doing it manually. Paul On Thu, Dec 17, 2009 at 12:28 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#commitByProject might be a property that could help 2009/12/17 Stephen Connolly stephen.alan.conno...@gmail.com depends on how your scm's are organised... 2009/12/17 Paul Benedict pbened...@apache.org My work situation is similar to what I learned about Eclipse. There's a release train in which 10-20 projects -- with dependencies on each other -- have to be versioned, built, and deployed. It's extremely tedious manually do this in the console. Can Maven provide any alleviation? Ideally, I would write a project (type pom) with all the projects as dependencies that I want to batch release, and let the Maven Release Plugin take care of things. Possible or a dream? Paul - 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: How to include unattached HTML pages to maven site?
Hi folks, to clarify the question +) the execution of the maven-webtest-plugin is not bound to a life cycle phase +) binding the webtest execution needs to be done by the user (could be 'test' or 'integration test' phase) +) the webtest report is added only if the webtests have be executed before and the webtest plugin is part of the reporting section Seems that I need to update the documentation ... :-) Cheers, Siegfried Goeschl Dennis Lundberg wrote: You can always add links to your own pages in the menu, by creating a site.xml file. Those links will not be under the heading Project reports though. jimmi4664 wrote: I know it should, but there's some problem with it and the report is not added to project reports. So is there a way to include detached external HTML pages to the creates site? Dennis Lundberg-2 wrote: jimmi4664 wrote: My build generates some HTML documentation, but as part of normal site reporting. One phase of the build just creates some HTML files under a given directory. I would like to include this as one selection under my Project reports. How could I do this? *) In practise the documentation is generated using maven webtest-plugin, but for some reason (might be related to my build's special quirks) I haven't been able to integrate this plugin with the site reporting I don't know how webtest-maven-plugin works, but if it is a reporting plugin then it's report should automatically be added to the Project reports menu. -- Dennis Lundberg - 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: Dependency on local web project war (netbeans)
Hi Pieter, you could use a project layout like this +--project +--shared +--client +--server A few quick remarks +) the server part should not depend on the client or the other way round - therefore a common subproject +) sharing in Maven speak means installing the shared component library into the local repository and reference it from the dependent project +) with a little bit of tinkering you can also upload the sources into your local repository Cheers, Siegfried Goeschl PS: Not sure if NetBeans is a good choice considering that Oracle buys Sun pieter claassen wrote: I am trying to move to netbeans for dev so it is a good question whether I need the source or just the compiled code. Not finding the symbols I assume is a failure to access the .class files? Or does netbeans need access to the source? How do I share the project between the client and the server? You mean unify them into 1 project? I am a bit stumped here because I imagine that this is such a normal requirement. People write project that import classes from other local projects all the time. The problem is just how to do this with maven? Thanks for the feedback. P On Mon, Apr 20, 2009 at 6:58 PM, Siegfried Goeschl siegfried.goes...@it20one.at wrote: Hi Pieter, you would like to use transitive dependencies using a WAR - this did not work in the past and I doubt that it works now. Having said that I would help if you have shared project between client and server. And do really need the source or only the class files?! If yes that approach would not work either ... Cheers, Siegfried Goeschl pieter claassen wrote: ok, I have narrowed the problem down as probably a maven issue. I have parent.pom and two modules client and server. Client is a war and server is a jar. server needs to get hold of client's source because db4o needs the source for both the client and server (to configure it for each java.class it will store). I have the following dep in server.pom dependency groupIdcom.musmato/groupId artifactIdclient.war/artifactId version1.0/version typewar/type scopecompile/scope /dependency But when I run mvn clean install on the parent, I can see it build the client.war, pop it in the local mvn repo and then the server build fails to find any of the depedency code. Any ideas? Should this work? I assume it is pretty normal to share code between different maven projects?? Even if one of them is a war? Cheers, P On Mon, Apr 20, 2009 at 2:55 PM, pieter claassen pie...@claassen.co.uk wrote: I have a netbeans project that requires to access sourcecode and compiled code from a web project. If I set the dependency on the war file, it just doesn't work (it works on a jar file). How do I access code produced by a war project in netbeans? Regards, Pieter - 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: Dependency on local web project war (netbeans)
Hi Pieter, you would like to use transitive dependencies using a WAR - this did not work in the past and I doubt that it works now. Having said that I would help if you have shared project between client and server. And do really need the source or only the class files?! If yes that approach would not work either ... Cheers, Siegfried Goeschl pieter claassen wrote: ok, I have narrowed the problem down as probably a maven issue. I have parent.pom and two modules client and server. Client is a war and server is a jar. server needs to get hold of client's source because db4o needs the source for both the client and server (to configure it for each java.class it will store). I have the following dep in server.pom dependency groupIdcom.musmato/groupId artifactIdclient.war/artifactId version1.0/version typewar/type scopecompile/scope /dependency But when I run mvn clean install on the parent, I can see it build the client.war, pop it in the local mvn repo and then the server build fails to find any of the depedency code. Any ideas? Should this work? I assume it is pretty normal to share code between different maven projects?? Even if one of them is a war? Cheers, P On Mon, Apr 20, 2009 at 2:55 PM, pieter claassen pie...@claassen.co.uk wrote: I have a netbeans project that requires to access sourcecode and compiled code from a web project. If I set the dependency on the war file, it just doesn't work (it works on a jar file). How do I access code produced by a war project in netbeans? Regards, Pieter - 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: The skin does not exist: Unable to determine the release version
Hi Jerry, the bad news are that I had the same problem - the good news are that I was able to get rid of the problem E.g. run mvn -U site to force an update of your repo - thanks to Wendy Smoak helping me with this issue ... Cheers, Siegfried Goeschl Jerry Thome wrote: Sorry if I missed this as a recent posting. Last night, several of my Maven projects running in Hudson starting to fail with the same error message. Does the recent site plug-in release have anything to do with this? It's becoming problematic to delete files in a repo and have maven auto-download them, which seems to fix this problem. Thanks. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] The skin does not exist: Unable to determine the release version Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.skins -DartifactId=maven-default-skin -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.maven.skins -DartifactId=maven-default-skin -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] org.apache.maven.skins:maven-default-skin:jar:RELEASE The information contained in this e-mail and any accompanying documents may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message, including any attachments. Any dissemination, distribution or other use of the contents of this message by anyone other than the intended recipient is strictly prohibited. All messages sent to and from this e-mail address may be monitored as permitted by applicable law and regulations to ensure compliance with our internal policies and to protect our business. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, lost or destroyed, or contain viruses. You are deemed to have accepted these risks if you communicate with us by e-mail. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: configure maven with IntellJ Idea
Hi Poonam, looking at sourceDirectorysrc/com/apelon/sourceDirectory seems wrong - you mix source folder with package structure which is probably not intended Cheers, Siegfried Goeschl Mick Knutson wrote: you should have your java files in ./src/main/java in order for anything to be in the ./target/*.jar you are creating. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Twitter: http://twitter.com/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Sat, Feb 7, 2009 at 3:36 PM, Poonam Gyanchandani poonamvg2...@gmail.comwrote: Hi, I am trying to configure Maven with Intellj Idea in POM file but looks like POM file which I have created has something missing in that. When I do *mvn clean *it is showing me build successful, but when I am giving command like* mvn compile/mvn package* in that case it is creating an empty jar file. In classes directory also it doesn't contain any files. ** My source folder is in*D:\ApgarSVN\development\Components\Internal\common-1.6.0 * this directory* *with* src* name. Enclosed POM file for your reference. Thanks. ** - 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: Out of memory using docbkx plugin?
Hi Kent, I do not know the current incarnation of the plugin but worked with DocBook before - the transformation takes a lot of memory since it requires the PDF to be generated completely in-memory to resolve all the page numbers and cross-references. I think with M1 it took more than 1GB to generate th O'Reily SVN book ... Cheers, Siegfried Goeschl Kent Närling wrote: When I try to build some of our project using the docbkx docbook plugin, I get the following out of memory exception: INFO] Trace java.lang.OutOfMemoryError: Java heap space at org.apache.fop.image.ImageIOImage.loadBitmap(ImageIOImage.java:183) at org.apache.fop.image.ImageIOImage.loadDimensions(ImageIOImage.java:68) at org.apache.fop.image.AbstractFopImage.load(AbstractFopImage.java:161) at org.apache.fop.fo.properties.CommonBorderPaddingBackground.init(CommonBorderPaddingBackground.java:172) at org.apache.fop.fo.PropertyList.getBorderPaddingBackgroundProps(PropertyList.java:577) at org.apache.fop.fo.pagination.Region.bind(Region.java:64) at org.apache.fop.fo.pagination.RegionBody.bind(RegionBody.java:56) at org.apache.fop.fo.FObj.processNode(FObj.java:125) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:320) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:185) at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484) at com.agilejava.docbkx.maven.AbstractPdfMojo.postProcessResult(AbstractPdfMojo.java:85) at com.agilejava.docbkx.maven.AbstractTransformerMojo.execute(AbstractTransformerMojo.java:174) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) It only occurs when I build the docbook pdf files, anyone know why this happens? Also, it does go away if I increase the heap space to 1,5 Mb, but that is hard to change in all environments etc... - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [SORRY FOR SPAMMING] hibernate 3 maven plugin
Shows that your release process is properly set up ... ;-) Siegfried Goeschl da...@davidkarlsen.com wrote: Sorry for spamming you all - I ran this on the top level artifact and should of course only have done that on the plugin. Sorry - here's my 4th mail to you on the subject today. :-I -- David J. M. Karlsen - +47 90 68 22 43 http://www.davidkarlsen.com http://mp3.davidkarlsen.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
Re: deploying with maven and a production control/release management group?
We had a third solution 3.) Build it for them and simply give the company repo URL to download the WAR plus all the ready-to-use configuration files for their target environments Siegfried Goeschl [EMAIL PROTECTED] wrote: We used 2 solutions. 1.) Help them install Maven and then get them to execute a maven build that uses the scm plugin to get a tagged version 2.) Build it for them and simply hand them the WAR :) Cheers, Martijn On Dec 4, 2008 11:53pm, Rusty Wright [EMAIL PROTECTED] wrote: I was wondering if and how people are doing war deployments in a setup where you have a production control group that deploys the war to your qa and production servers (tomcat, for example). It seems to me that you could have them use maven with the cargo plugin. But how do they get the pom.xml; check it out of scm and then run maven with it? And do you have a separate project that's just for doing the deployment? - 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: deploying with maven and a production control/release management group?
Hi Rusty, +) you can use an additional company repo where you deploy your very own releases. In effect you have three repos then : local - company - public +) it is enough to run an Apache to server the repo - as it is done on repo1.maven.org Cheers, Siegfried Goeschl Rusty Wright wrote: Is that company repo the maven repository? I haven't yet set up a local repository manager so I'm guessing that they're downloading the war via the repo's web interface? Siegfried Goeschl wrote: We had a third solution 3.) Build it for them and simply give the company repo URL to download the WAR plus all the ready-to-use configuration files for their target environments Siegfried Goeschl [EMAIL PROTECTED] wrote: We used 2 solutions. 1.) Help them install Maven and then get them to execute a maven build that uses the scm plugin to get a tagged version 2.) Build it for them and simply hand them the WAR :) Cheers, Martijn On Dec 4, 2008 11:53pm, Rusty Wright [EMAIL PROTECTED] wrote: I was wondering if and how people are doing war deployments in a setup where you have a production control group that deploys the war to your qa and production servers (tomcat, for example). It seems to me that you could have them use maven with the cargo plugin. But how do they get the pom.xml; check it out of scm and then run maven with it? And do you have a separate project that's just for doing the deployment? - 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: Plugin that bundles Jetty + Webapp for release
Hi Stephan, I doubt there is a plugin doing this directly since it is a rather specialized task. But you can achieve the same using an Ant script invoked by Maven (maven-antrun-plugin) and/or the maven-assembly-plugin. Furthermore it should be possible to add this distribution as attached artifact to the Maven build Having said that you can have a look at http://people.apache.org/~sgoeschl/download/wikionastick/ for some inspiration ... :-) +) it packages JSPWiki in ready-to-use distribution (Wiki On A Stick) +) it creates Windows and Mac OS X native application starter as well Hope this helps Siegfried Goeschl Stephan Niedermeier wrote: Hi, I'm searching for a Maven plugin that is able to package my webapp together with Jetty, for example into a Zip file. Doing it this way, I could use this Zip file and distribute it all in one. As far as I know, with the ordinary maven-jetty-plugin its only possible to run the embedded Jetty within Maven, but not to bundle Jetty with my webapp for a release. Any hints for me about such a plugin? My search was not successful so far. Thanks in advance. Regards Stephan - 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: Cruise control and maven integration
Hi, as far as I remember (CC-2.7.2) you need a composite tag, e.g. composite ant antscript=${ant.script} antWorkingDir=. target=cc:resin-stop / ant antscript=${ant.script} antWorkingDir=. target=cc:clean-checkout usedebug=false property name=project.home value=${project.home}/ property name=project.groupId value=${project.groupId}/ property name=project.artifactId value=${project.artifactId}/ /ant maven2 mvnscript=${maven.script} pomfile=${project.home}/${project.groupId}/${project.artifactId}/pom.xml goal=${project.maven.targets} property name=JAVA_HOME value=${project.java.home}/ /maven2 /composite Cheers, Siegfried Goeschl partha_ctc wrote: Hi, We want to integrate Maven Build Script with Cruise Control, need your help and suggestion. we have a single project with multiple pom.xml files (each doing a distinct activity) in separate folders. We want them to be called from the Cruise Control in a particular sequence one by one. In the process, we are able to do the same for one pom.xml file but not for other two pom.xml files in the same project. I have 2 other pom files. but how to introduce 2 other pom files and to execute one by one goal ..as shown in following example. = Cruise Control config file contain following information: project name=testwebappunpack listeners currentbuildstatuslistener file=logs/testear/Test.txt /currentbuildstatuslistener /listeners bootstrappers /bootstrappers modificationset quietperiod=30 filesystem folder=${project.name}/ /modificationset schedule interval=60 maven2 mvnhome=D://maven/test maven/maven-2.0.7 pomfile=C://webappunpack/pom.xml goal=generate-resources process-resources generate-resources war:war install / !-- pomfile=C://updateclasspath/pom.xml goal=generate-resources jar:jar -- /schedule /project = So how to introduce more than one pom and their goals in a single project? Please help me to work out the solution.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Release of webtest-maven-plugin-0.6.3
The webtest-maven-plugin-team is pleased to announce the webtest-maven-plugin-0.6.3 release! Canoo WebTest plugin for M2. Canoo WebTest is a free Java tools for functional testing of web applications and the plugin allows to run Canoo Webtests from within a Maven build. Documentation and Downloads: o The current version can be downloaded from http://people.apache.org/~sgoeschl/download/maven-plugins/webtest-maven-plugin/ o The current version can be found at http://people.apache.org/~sgoeschl/download/maven-plugins/webtest-maven-plugin/site/ Changes in this version include: New features: o Added the goal 'webtest:verify-filecontent' Changes: o Updated the usage section of the plugin documentation. o Upgrading to the official Canoo WebTest 2.6 release. o The goal 'webtest:verify' was renamed to 'webtest:verify-result' to avoid name clashes. Have fun! -webtest-maven-plugin-team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to execute a perl script from maven ?
Hi Nicolas, have you seen http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html ?! Cheers, Siegfried Goeschl nicolas de loof wrote: Hello, My build process must use a legacy and complex perl script to process some conf files. Is there any plugin to support such use case ? Migrating the perl script to another language is not an option as it is allready very complex ... Nicolas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create a Mojo that controls an ANT task
Hi Pedro, I faced a similar task and it took a while to find a plugin invoking ANT within a Maven build - unfortunately I can't remember what plugin I looked at (oehaus?!) but I copywasted to code for my Canoo WebTest plugin http://people.apache.org/~sgoeschl/download/maven-plugins/ The code uses an AntExecutor which does the trick Cheers, Siegfried Goeschl Pedro Viegas wrote: Hi there guys, I am trying to create a Maven plugin that executes a given ANT task inside it. My real case is to call the Hibernate Tools task to generate a bunch of ORM classes and Hibernate mappings. But I need to make some decisions and have to pass some parameters to the several Hibernate Tools tasks I need to call depending on some conditions that I need to analize in a Java Mojo. Basically I need to: 1. Create a Mojo with some parameters and do some processing and file generation of my own 2. Call the ANT Hibernate Tools tasks a bunch of times to generate all my classes/mapings on several packages for several database schemas 3. Try to keep it as simple as possible to the end programmer user, simply call a Maven plugin and state some configuration files and destination package and let the conventioned behavior take charge. I have created the first part easily by creating a Java Maven Plugin. The second part I have configured like a maven-ant-plugin addition to the POM and got it working, but this has to be copied into each of the projects that need this goal and all the configuration I could pragmatically do have to be typed repeatedly. So 1 and 2 are go, 3 is what I can't find any documentation or sample to help me. I have seen the example from: http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html But this is how to build a maven plugin with ANT. What I need is to build a maven plugin in Java that can call an ant task, like antrun plugin does but adding a few more java actions and decisions before and after. So, how can I use the already running maven java plugin to call the ANT tasks? Can I call a plugin inside another plugin? How? Should I try to extend the maven-antrun-plugin to try to accomplish this? Thanks in advance, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Canoo WebTest Plugin 0.2 for M2 is available for field testing ...
Hi folks, I created a rough cut of a M2 plugin to be downloaded from http://people.apache.org/~sgoeschl/download/maven-plugins/ Krystian Novak did some field testing - thanks a lot :-) A few points to keep in mind +) it is my very first M2 plugin so it could be quite shaky ... +) Canoo WebTest uses a lot of custom libraries - they are found in lib with a shell script to import them into the local repo +) the javax.mail-1.3.3.jar needs to be provided manually +) after some more testing it should go to Codehaus If someone feels brave enough - don't forget to provide feedback Thanks in advance Siegfried Goeschl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do people handle installers/exe/bat/sh in maven?
Hi Wim, I use the commercial Install4J ant am ANT script to create installers for Windows, Mac and Linux. Siegfried Goeschl Wim Deblauwe wrote: Hi, I have a question for the people that use maven to create an application (as opposed to a library). How do you provide an easy start point for your application? Do you use webstart? Do you use the assembly plugin and add .bat and .sh files to it? Do you create an installer (with a maven plugin)? Something else you use? regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Build Problem - XFire
Hi Markus, I use the following dependencies for my xfire client !-- xfire dependencies -- dependency groupIdorg.codehaus.xfire/groupId artifactIdxfire-aegis/artifactId version1.2.6/version /dependency dependency groupIdorg.codehaus.xfire/groupId artifactIdxfire-core/artifactId version1.2.6/version exclusions exclusion groupIdjavax.mail/groupId artifactIdmail/artifactId /exclusion exclusion groupIdorg.apache.ws.commons/groupId artifactIdXmlSchema/artifactId /exclusion /exclusions /dependency Cheers, Siegfried Goeschl MPF wrote: Hi! Now i added following dependencies: but some packages missed: javax.xml.bin.annotation does not exist org.codehaus.xfire.jaxb2 does not exist my webservice use XFire 1.2.6 If you wrong understood: the webservice work (i can combile it and make a war file), the problem ist the webapplication wich use this webservice :( best regards. Siegfried Goeschl wrote: Hi Markus, I'm not using the xfire-plugin but +) which XFire version are you using - starting with 1.2.3 it ships with a full pom declaring all dependencies +) when using older version you might check out http://xfire.codehaus.org/Dependency+Guide Cheers, Siegfried Goeschl MPF wrote: Hi! I have a webapplication (myFaces) which also use a webservice of mine - so i installed the Xfire plugin and created the code which the wsdl of the webservice. on localhost all work, but now i wanted to create a war file and got a build error. did i need xfire dependencies at my pom file? whom? following build errors i got: C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic eImplImpl.java:[4,17] package javax.jws does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic e.java:[4,17] package javax.jws does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic e.java:[5,17] package javax.jws does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic e.java:[6,17] package javax.jws does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic e.java:[7,17] package javax.jws does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic e.java:[8,22] package javax.jws.soap does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\AnyType2AnyTy peMap.java:[6,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\AnyType2AnyTy peMap.java:[7,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\AnyType2AnyTy peMap.java:[8,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\AnyType2AnyTy peMap.java:[9,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd ressComplex.java:[4,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd ressComplex.java:[5,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd ressComplex.java:[6,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd ressComplex.java:[7,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd ressComplex.java:[8,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\FormatService ResponseModelResponse.java:[4,33] package javax.xml.bind.annotation does not exi st C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\FormatService ResponseModelResponse.java:[5,33] package javax.xml.bind.annotation does not exi st C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\FormatService ResponseModelResponse.java:[6,33] package javax.xml.bind.annotation does not exi st C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\FormatService ResponseModelResponse.java:[7,33] package javax.xml.bind.annotation does not exi st C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\FormatService ResponseModelResponse.java:[8,33] package javax.xml.bind.annotation does not exi st C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd ress.java:[4,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd ress.java:[5,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src
Re: Maven Build Problem - XFire
Hi Markus, I'm not using the xfire-plugin but +) which XFire version are you using - starting with 1.2.3 it ships with a full pom declaring all dependencies +) when using older version you might check out http://xfire.codehaus.org/Dependency+Guide Cheers, Siegfried Goeschl MPF wrote: Hi! I have a webapplication (myFaces) which also use a webservice of mine - so i installed the Xfire plugin and created the code which the wsdl of the webservice. on localhost all work, but now i wanted to create a war file and got a build error. did i need xfire dependencies at my pom file? whom? following build errors i got: C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic eImplImpl.java:[4,17] package javax.jws does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic e.java:[4,17] package javax.jws does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic e.java:[5,17] package javax.jws does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic e.java:[6,17] package javax.jws does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic e.java:[7,17] package javax.jws does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic e.java:[8,22] package javax.jws.soap does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\AnyType2AnyTy peMap.java:[6,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\AnyType2AnyTy peMap.java:[7,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\AnyType2AnyTy peMap.java:[8,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\AnyType2AnyTy peMap.java:[9,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd ressComplex.java:[4,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd ressComplex.java:[5,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd ressComplex.java:[6,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd ressComplex.java:[7,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd ressComplex.java:[8,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\FormatService ResponseModelResponse.java:[4,33] package javax.xml.bind.annotation does not exi st C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\FormatService ResponseModelResponse.java:[5,33] package javax.xml.bind.annotation does not exi st C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\FormatService ResponseModelResponse.java:[6,33] package javax.xml.bind.annotation does not exi st C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\FormatService ResponseModelResponse.java:[7,33] package javax.xml.bind.annotation does not exi st C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\FormatService ResponseModelResponse.java:[8,33] package javax.xml.bind.annotation does not exi st C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd ress.java:[4,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd ress.java:[5,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd ress.java:[6,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd ress.java:[7,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GetGeocodeAdd ress.java:[8,33] package javax.xml.bind.annotation does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic eImplClient.java:[8,26] package org.codehaus.xfire does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic eImplClient.java:[9,32] package org.codehaus.xfire.aegis does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic eImplClient.java:[10,38] package org.codehaus.xfire.annotations does not exist C:\work\projects\BUERGE~2\src\main\java\at\pcd\wam\technologie\geo\GeocodeServic eImplClient.java:[11,45] package org.codehaus.xfire.annotations.jsr181 does not exist C:\work
Re: Ant task executing twice
Hi Jeff, this is/was a bug we encountered in 2.0.4 and my colleague just fixed over the evening by patching the Maven libs ... :-( If this is still an issue I will remind him to sent a patch next week Cheers, Siegfried Goeschl Jeff Mutonho wrote: I have an ant task that is suppose to run in the process-resources phase.The configuration is : plugin artifactIdmaven-antrun-plugin/artifactId executions execution phaseprocess-resources/phase configuration tasks copy todir=target/checkout overwrite=true fileset dir=../portal-ear/target include name=portal.ear/ /fileset /copy /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tools.jar dependency and MacOSX
I tried it recently with creating a symbolic link for tools.jar pointing to classes.jar Cheers, Siegfried Goeschl Jerome Thibaud wrote: Are you saying that I can add an exclusion clause in a Profile triggered by the OS type? Would it act on the dependencies declared in the build/plugins/plugin section ? rgds JT On 6/11/07, Gregory Kick [EMAIL PROTECTED] wrote: The deal is that tools.jar is in classes.jar (i think) and is always on the classpath. If you just exclude the dependency it should work. On 6/11/07, Nathan Maves [EMAIL PROTECTED] wrote: What causes your project to have a dependency on tools.jar? I have been using maven on a mac for a while now and have never had to deal with the tools.jar. Nathan On 6/11/07, Jerome Thibaud [EMAIL PROTECTED] wrote: Hi All, Discovering the joy of coding Java in a Mac environment I learned that there is no tools.jar in the Mac version of the JDK. Consequence is, my projects having dependencies on tools.jar fail to build. So for the project with a direct dependency, I used Profile successfully. I created one profile triggered by the OS family and everything went smooth. Now I got 2 problems: - it seems that, when inherited through transitive dependency, the profile trigger is not taken into account and tools.jar is added to the dependencies list anyway. - I got an ant plugin setup in the build section with tools.jar in the dependencies section of the plugin. What do I use to make the dependency conditional there? thanks in advance Jerome -- Gregory Kick http://kickstyle.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: Ibiblio Issues
Hi, what do you mean with issues - I had two times the problems that Maven tools were unable to process HTTP 302 indicating that the libraries were moved. Cheers, Siegfried Goeschl [EMAIL PROTECTED] wrote: Is anyone having issues connecting to ibiblio lately? Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven vs. Scripted Build Systems
Hi folks, after setting up and maintaining complex build environments using ANT and Maven for a couple of years I have some thought about the topic +) a fool with a tool is still a fool - if a complex build system is falling apart it has most of the times nothing to do with the underlying tools being used - if you do your job properly it will work +) a related problem is that many companies hire juniors for this setting up and maintaining a build system - it is not real programming after all ... :-) ... later on the know better +) the complexity does not go away - the complexity remains no matter of the build system but it might be less visible - so if you have problems they are hard to fix no matter what you are using +) once you have it you have it - that was an important topic with my current customer for rolling out a M2 build - it would be really difficult and depressing to kick out M2 and replace it with something else. And M2 is not really undisputed around here ... :-) Cheers, Siegfried Goeschl Mykel Alvis wrote: I agree with Graham's assessment that the bigger the project, the more useful. However, it does come with a price. You've got to get used to the idea of hard-versioning artifacts and moving toward controlled releases. And a number of the plugins are pretty...interesting...to use. I'm of the opinion that you shouldn't switch builds unless there's a compelling reason to do so. If your scripted/ant build performs the build tasks that you need, then use it until it becomes unmanageable or until you need something else...like consistency and reporting. In every case that I've installed maven in an enterprise environment, those are not just the most compelling reasons that someone wanted/liked it. They WERE the reasons. Ramp-up time for a new developer capable of building whatever system and/or component needed dropped from several hours (even days) into the 10's of minutes and is ridiculously easy. Likewise, the reporting available to a maven build stands on its own. Anyone looking at the default generated reporting gets pretty excited, and when you can add other sorts of reports (we like JDepend, pmd, and Findbugs for example), it really shines. As a side note, it has been my experience that low-to-mid-skill developers rarely understands or wants to understand the software construction process, and management practically never does. Builds are a thing that are either (a) laughably easy or (b) handled by someone else. If you're implementing a complex build, that someone is probably you. More than anything else, it seems that resistance to a new (maven) build is inevitable since it forces you to do some things that you might not otherwise do or to do them in a particular way. Prepare for that. As for scaling into large builds, I'd note that that a lot of that depends on patterns in your code. For instance, we (now) have about 100 active components being built, 80+ of which are in the hands of the coders (as opposed to being built exclusively by the build engineer). Of those, they can be divided out into about 15 classes of components. Once the build process is defined for each class of components, then managing becomes simpler for any new component of that class. For example, EJBs and their clients are 2 classes of components in our systems. We can produce a build for a new EJB in about 5 minutes and have a skeletal project waiting to be checked out of SCM ready for the developer to write code. If we had to manage 100 unique types of artifacts, this system would definitely be less scalable, and I'd probably be wanting to go looking for a new job. I haven't tried buildr, but am certainly interested in it. As for the Maven Uncertainty Principle they describe, I'm going to say that I've definitely encountered that effect but it seems that we generally had no problem defeating it with proper planning and project organization. Projects that force maven to bend to the will of the project tend to be less successful with maven integration than those that are structured around the maven way. Note that the maven way is much like the DJB way. It's flexible within limits, but you definitely get more bang for your buck if you conform to the way. Maven's definitely got it's warts, just like any product, and your mileage for responses on the lists may vary, but it's my current tool-of-choice and I've not regretted the decision to anywhere near the point of replacing it yet. On 5/8/07, Graham Leggett [EMAIL PROTECTED] wrote: On Mon, May 7, 2007 6:24 pm, Peter Kahn wrote: How does maven's declarative convention over configuration stack up against scripted solutions like buildr, groovy/ant or scons when it comes to maintenance costs for large projects? {snip} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using custom announcement with changes plugin
Very stupid question ... templateDirectory/src/main/resources/templateDirectory seems to be an absolute reference to a directory whereas C:\cvs\reporting-jsf\src\main\resources is the absolute path Cheers Siegfried Goeschl Paul Spencer wrote: I am trying to configure the changes plugin, version 2.0-beta-2, to use a custom announcement.vm file. Setting templateDirectory in to /src/main/resources does not work. The command mvn changes:announcement-generate always fails with the following error message: ResourceManager : unable to find resource '/src/main/resources/announcement.vm' in any resource loader Belows is additional information related the the problem: *** * From POM.XML *** plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId configuration templateannouncement.vm/template templateDirectory/src/main/resources/templateDirectory /configuration /plugin *** * Directory output *** Directory of C:\cvs\reporting-jsf\src\main\resources 04/20/2007 01:45 PMDIR . 04/20/2007 01:45 PMDIR .. 04/20/2007 01:45 PM 1,848 announcement.vm 04/18/2007 10:01 AM69 application.properties 09/20/2006 11:56 AM 206 implementations.properties 04/12/2007 04:40 PM 1,109 log4j.xml 4 File(s) 3,232 bytes 2 Dir(s) 67,573,653,504 bytes free C:\cvs_apms\apms-reporting-jsf *** * Maven debug output *** [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.apache.maven.plugin.resource.loader.ProjectResourceLoader [INFO] ProjectResourceLoader : initialization starting. [INFO] path :C:\cvs\reporting-jsf\src\main\resources\ [INFO] ProjectResourceLoader : adding path 'C:\cvs\reporting-jsf\src\main\resources\' [INFO] ProjectResourceLoader : initialization complete. [INFO] Resource Loader Instantiated: org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : messages on : VM system will output logging messages [INFO] Velocimacro : autoload off : VM system will not automatically reload global library macros [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-changes-plugin:2.0-beta-2:announcement-generate' -- [DEBUG] (s) artifactId = reporting-jsf [DEBUG] (s) developmentTeam = reporting-jsf-team [DEBUG] (s) finalName = reporting-jsf-1.0.2-SNAPSHOT.war [DEBUG] (f) generateJiraAnnouncement = false [DEBUG] (s) groupId = com.mikon.customer.kc [DEBUG] (s) introduction = Generalized web based reporting tool for data. [DEBUG] (f) jiraXML = C:\cvs\reporting-jsf\target/jira-announcement.xml [DEBUG] (f) nbEntries = 25 [DEBUG] (s) outputDirectory = C:\cvs\reporting-jsf\target/announcement [DEBUG] (s) packaging = war [DEBUG] (f) project = [EMAIL PROTECTED] [DEBUG] (f) resolutionId = Fixed [DEBUG] (f) setting = [EMAIL PROTECTED] [DEBUG] (f) statusId = Closed [DEBUG] (f) template = announcement.vm [DEBUG] (f) templateDirectory = /src/main/resources [DEBUG] (s) url = http
Re: Maven users in the industry
Hi Gilles, without violating my NDA An US-based global player for mobile content delivery frameworks switched from ANT to Maven2/CruiseControl to improve the distributed software development covering development teams located in the USA, Canada and Europe. Cheers, Siegfried Goeschl Gilles Scokart wrote: Hi, Next week I have to make a presentation to my collegues. I will try to 'sell' maven, and I would like to say something like Look, Maven is now very used in the industry, It's for instance used by Did you know any companies using Maven, more particularily in Belgium and Europe, but worlwide would be ok also? Thanks for your help. Gilles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven2 Plugin for Canoo Webtest available
Hi folks, is there any plugin available to run Canoo Webtests for M2? Thanks in advance Siegfried Goeschl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is the Best practice for generating variations of an artifacts?
Hi folks, we have a workable solution for moving around 40+ configuration files and different database configurations - but it might not fit your needs and might be overly complex ... :-) Some background information = +) the backend library requires around 40 XML configuration files to start all of its 100+ services +) the web frontends come with their individual XML configuration files +) each frontend might be deployed to different environments, e.g. staging or production environment +) each environment uses its own database settings +) a frontend WAR does not contain the configuration files but - they are stored in zip (attached artifact). To be more accurate the zip file contains multiple zip files where each zip contains a set of configuration files used for a web deployment. During a deployment the WAR is unpacked and the desired configuration is manually copied to WEB-INF. How it works = We wrote a maven plugin to assemble arbitrary configuration files using three configuration levels +) the backend base line configuration +) the customer specific configuration +) host specific configuration (e.g. development, staging or production) The configuration files are copied in the correct order (from general to more specific) to a target directory. During the copying we expand any macros found in the configuration files using ANT copy filter. The property file being used for the expansion is concatenated in the correct order regarding their configuration levels and database properties. In short the plugin build a set of configuration files for a given configuration path (e.g. backend/customer/staging) and a given database (e.g. [EMAIL PROTECTED]). For a frontend release we build multiple configuration paths whereas each configuration is zipped. The resulting zips are zipped into a single *-server-configs.zip which is attached to the frontend and therefore uploaded to the repository. Conclusion = +) the solution might no be generally applicable (since our requirements are very complex) but it contains a few lessons learned aloong the way +) making it work was non-trivial but most of the magic is hidden in a parent pom (and we are still improving it) Cheers, Siegfried Goeschl BTW - thanks to Markus Strutzenberger (aka Mark Struberg) for making this magic possible Vincent Massol wrote: On Mar 16, 2007, at 1:20 PM, Kenney Westerhof wrote: Hi, Vincent Massol wrote: Hi, I've never found a good answer to this use case so far so I'm curious about how others have implemented it. Imagine a project that generates a WAR. This WAR contains a config file (say in WEB-INF/classes) that configures connection parameters for the database. Now imagine that your project wants to support several databases and you want the ability to build for a given database. I see 2 options: Option 1 --- * Use filtering * Use profiles to set the values for the different databases Issues: * In order to differentiate the generate WAR file name you'll need to use finalName but the value set there won't be used for install/deploy which means that the WAR files users will see will always be the same. You could use the buildhelper-maven-plugin or the assembly plugin to attach the artifact with a classifier. You can also configure the jar/war plugins with a classifier element. ok will check all these out, thanks. Idea for future: * It would be nice if Maven had a classifier element under project so that it would be possible to generate an artifact with a classifier. That's not an option. The pom is shared between all artifacts, both primary and all secondary attachments. The main artifact is always without a classifier. Option 2 --- * Create one module per database, under a parent module * Create profiles in the parent module to conditionally include the module to be built Issues: * Very heavy (one module per database) especially when the only difference between the generated artifacts is only 3 lines in a config file * Need a way to share common configuration between the modules, in order to prevent duplication. For example if the config files only contains 3 lines that are different for each database and there are 100 lines in total, you don't want to duplicate the 97 lines in as many modules as you have databases What do people do? Is there some plan to support this use case in a better fashion in the future? This is typically solved in several different ways, depending on the role a person has in the team. Standard j2ee practices etc. recommend a 'deployment manager' to either edit WEB-INF/web.xml before deploying, or as an alternative, a 'system manager' will provide you with the name of a JNDI Datasource
Re: Passing variables to antrun plugin
Hi Graham, we use this to pass an environment variable tasks ant antfile=${basedir}/build.xml target=configure property name=maven.test.skip value=${maven.test.skip} / /ant /tasks but you can also use the antlib for maven if you would like to acess more information from the pom Cheers, Siegfried Goeschl Graham Leggett wrote: Hi all, A while back I stumbled upon a description of how to pass maven variables through the antrun plugin into an ant build script. Now that I need the functionality, I cannot find the description again. Nothing I can find in the antrun plugin docs at http://maven.apache.org/plugins/maven-antrun-plugin/ describes how to do this (that I can find). More specifically, I want the ant script to have access to the ${pom.version} variable. Does anyone have a link to a howto on how to do this? Regards, Graham -- - 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: [OT][ANN] JAVAWUG BOF 25 / 27 March 2007 @ 18:30 / Adobe Flex with Ben Forsaith / Skills Matter
Hi Peter, how is your formal announcement related to Maven community? And would I receive a hard-copy version if I'm unsure about your identity? Thanks in advance, Siegfried Goeschl [EMAIL PROTECTED] wrote: Hi I would like to formally announce that ``JAVAWUG'' (Java Web User Group) is holding the BOF 25 at the Skills Matter, London. Ben Forsaith will give a presentation on Adobe Flex on Tuesday 27th March 2007 at Skills Matter Ben will talk about integrating Flex with Java server side frameworks For more information see here: http://jroller.com/page/javawug?entry=javawug_bof_25_adobe_flex For registration please see here: http://skillsmatter.com/javawug http://jroller.com/page/javawug Thanks very much -- Peter Pilgrim, JUG Leader, ``Java Champion'' JAVAWUG (The Java Web Users Group) [e] 2004, :: http://jroller.com/page/javawug/ :: __ |__| ___ ___ __ _ __ | \__ \\ \/ /\__ \\ \/ \/ / | \/ ___\ | |/ __ \\ / / __ \\ /| | / /_/ /\__| ( /\_/ ( /\/\_/ |/\___ / \__|\/ \//_/ https://java-champions.dev.java.net/ Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS Limited is a company registered in England Wales under company number 2035362, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS AG (London Branch) is registered as a branch of a foreign company under number BR004507, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. UBS Clearing and Execution Services Limited is a company registered in England Wales under company number 03123037, whose registered office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom. - 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: how to get a non empty jar out of maven-antrun-plugin + build.xml?
Hi Chris, what is your build.xml actually doing?! Is it creating sources than this is supported by the maven-antrun-plugin. If it is creating a JAR you might be able to upload it to your repo. So the main question is which build system is in charge Cheers, Siegfried Goeschl Chris Miner wrote: Hi All I am trying to integrate my maven 2.0 oriented build system with another project which uses ant. So I thought to use the maven-antrun-plugin to execute an ant task during the compile phase, and thus take advantage of the existing build.xml file. The problems come at jar creation time. My jar is empty because no content was marked for inclusion, and the empty jar ends up under target, along with all the results from the ant build. How can I get the ant produced content in my maven produced jar? Is it a problem at jar creation time for Maven to be writing to the same target directory? And finally, Is there better documentation regarding how to integrate legacy ant builds into a Maven 2.0 build system than can be found at: http://maven.apache.org/plugins/maven-antrun-plugin/introduction.html Cheers, 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]
Re: how to get a non empty jar out of maven-antrun-plugin + build.xml?
Hi Chris, when the external build.xml creates a JAR you can always use the maven-install/deploy-plugin to upload the JAR into the repository (even with providing a custom pom.xml) Cheers, Siegfried Goeschl Chris Miner wrote: Hi Siegfried, Thanks for the response. The build.xml in question is already being used by another project as part of their standard build process. As such it compiles all the code for their jar and produces this jar as output. It is not producing sources. So yes it is creating a jar, but I think this isn't the one I want to install. It seems like I should be repackaging their compilation results as a normal maven jar (ie with pom.xml, pom.properties, etc.). Is this not the correct view? The point of this integration from my perspective is actually to get their JAR in my repo with associated project info. Since modifying their build system is not an option, and I don't want to create a parallel build system, I suppose their ant build system is in charge. I just want to 'wrap' it with my maven build system, so that my build system runs smoothly. Cheers, Chris Am Dienstag, 27. Februar 2007 12:02 schrieb Siegfried Goeschl: Hi Chris, what is your build.xml actually doing?! Is it creating sources than this is supported by the maven-antrun-plugin. If it is creating a JAR you might be able to upload it to your repo. So the main question is which build system is in charge Cheers, Siegfried Goeschl Chris Miner wrote: Hi All I am trying to integrate my maven 2.0 oriented build system with another project which uses ant. So I thought to use the maven-antrun-plugin to execute an ant task during the compile phase, and thus take advantage of the existing build.xml file. The problems come at jar creation time. My jar is empty because no content was marked for inclusion, and the empty jar ends up under target, along with all the results from the ant build. How can I get the ant produced content in my maven produced jar? Is it a problem at jar creation time for Maven to be writing to the same target directory? And finally, Is there better documentation regarding how to integrate legacy ant builds into a Maven 2.0 build system than can be found at: http://maven.apache.org/plugins/maven-antrun-plugin/introduction.html Cheers, 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] - 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: Execute and OS command in Maven...
Try includeBaseDirectoryfalse/includeBaseDirectory Cheers, Siegfried Goeschl Gary Kind wrote: I want to zip up a source directory branch of a tree in an zip file. That is all. I want to specify the root of the tree, etc. I have tried the assembly plugin in, but it keeps putting its own root dir in the zip file, with my source under it. Can somebody help me on this? I will probably do this in the test or install phase, or perhaps as part of the site plugin. Thanks. - 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: dependency of jar included in war?
Hi Atti, currently a WAR does not participate in the dependency inheritance mechanism. What you could do since your WAR depends on a single JAR is to add the JAR as additional dependency. This is of course a hack but not too ugly. Cheers, Siegfried Goeschl Attila Ravai wrote: Hi, I have a war file which has a dependency on my project, which is a jar. The jar file itself has a lot of dependencies (like oracle classes.jar). When building the war file, all I get in the web-inf/lib is what I specified in the war dependency, which is myproject.jar. However the classes.jar it never is added to the war, so when trying to load the app, I get an classnotfound exception. Is there a way to have the war include the jar files dependencies? I would hate to duplicate the dependencies in the war pom. I cannot create a parent module, as they are two different projects. thanks Atti - It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven-rdf plugin
Hi Petar, you could use the maven-antrun-plugin to rename the files (*.rdf = *.xml) later on. Cheers, Siegfried Goeschl Petar Tahchiev wrote: Hi gyus, I hust wanted to ask if anyone knows a maven rdf (Resource Description Framework) plugin as I didn't find myself. The problem is that when I use the xml plugin to transform my rdf files to xdoc ones, I cannot explicitly set the name of the outputted files(or can I?) and so they get transformed with rdf extension. This is bad, because I put them in the xdoc folder of my site and the site plugin does not transform them to htmls. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to attach the sources to a SNAPSHOT install?!
Hi folks, a colleague of mine just asked me a simple question - why are there no sources avaible in my IDE when I use a snaphot jar and I haven't found an immediate answer 1) the maven-install-plugin has no option/target to do this 2) when using the maven-assembly-plugin the generated zip is a zip and contains the nested directory structure, e.g. src/main/java/com/ To make it useable I would need to define my own assembly file which is of course possible but I would have to touch all projects. Do I miss something here?! Thanks in advance Siegfried Goeschl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to attach the sources to a SNAPSHOT install?!
Hi Jochen and Martin, you are both right - I just overlooked the maven-source-plugin. Maybe it should go to packaging types/tools/ instead of tools. Thanx, Siegfried Goeschl Jochen Wiedmann wrote: On 1/29/07, Siegfried Goeschl [EMAIL PROTECTED] wrote: 1) the maven-install-plugin has no option/target to do this Of course it has. Simply add a section like the following to your POM: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-source-plugin/artifactId executions execution goals goaljar/goal /goals /execution /executions /plugin 2) when using the maven-assembly-plugin the generated zip is a zip and contains the nested directory structure, e.g. src/main/java/com/ To make it useable I would need to define my own assembly file which is of course possible but I would have to touch all projects. Do I miss something here?! AFAIK, you are right. Jochen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: calling Maven goal from ant
Hi folks, under Windows you loose the result code from the Maven invocation - therefore I use the following snippet to invoken maven target name=-mvn:invoke property name=maven.home value=${env.CM_HOME}/tools/maven2 / property name=maven.failonerror value=true / java classname=org.codehaus.classworlds.Launcher fork=yes failonerror=${maven.failonerror} dir=${basedir} jvmarg value=-Xmx384m/ classpath pathelement location=${maven.home}/core/boot/classworlds-1.1.jar/ /classpath sysproperty key=classworlds.conf value=${maven.home}/bin/m2.conf/ sysproperty key=maven.home value=${maven.home}/ arg line=${maven.target}/ /java /target Morgovsky, Alexander (US - Glen Mills) wrote: In the Ant file, create an exec task and spawn a shell and execute something like mvn goal. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2 incorrectly locates sources
Hi, 1) you can try to run help:effective-pom and help:effective-settings to look at your complete POM and current settings 2) looking at your snippet it seems that the source code is NOT located in the project but in somewhere else in the directory tree. This is not the recommended way to setup a Maven project. Maybe using ${basedir}/../.. might help. Cheers, Siegfried Goeschl Wouter Boers wrote: Hi, I am migrating a rather large project to maven2 and while doing that I run into a very strange problem I cannot explain. The source directory location cannot be changed due to migration issues so I set the source dir in the pom.xml as follows: build sourceDirectory../../code/basisverzekeringApplicationModuleCode//sourceDirectory /build When compiling the sources (mvn clean compile with jdk 1.4.2_08) maven finds 1006 source files and fails to build while in the IDE (eclipse) no problem exists. So just for test purposed I manually copied the sources to the default location (src/main/java) and used: build !-- sourceDirectory../../code/basisverzekeringApplicationModuleCode//sourceDirectory -- /build To my surprise, maven located 1018 files and compiled successfully! Can someone explain to me why with the sourcedirectory set maven found 1006 files and with the default, maven located 1018 files. Obviously its missing some sources files and hence fails to compile but why it is missing the files? Are there default filters ative when setting setting the source directory. I have 'verbosed' the compiler plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerArguments verbose / /compilerArguments configuration source1.4/source target1.4/target /configuration /configuration /plugin so see with files maven passes to the compiler and I indeed can see which files its missing but I have no clue why (no pattern in the filenames of the missing files). And to make matters worse, if I use jdk 1.5 the difference is even more shocking. Maven then only find 894 files instead of the required 1018. Do anyone have any clue because I am lost here completely. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANT] Passing Maven implicit variables to Ant script
Hi Manu, +) if you need to retrieve more data from the POM you can also use maven-artifact-ant-2.0 +) AFAIK not even environment variables are passed to ANT script Cheers, Siegfried Goeschl Alexander Sack wrote: Manu, just thinking out load, though this may not be what your looking for, could you use some form of antcall target=blah param name=somename value=${finalName}/ /antcall Then reference ${somename} in your ant build file. Something like that... -aps On 10/31/06, Manu [EMAIL PROTECTED] wrote: Hi all, I'm trying to do something rather simple: pass the Maven finalName to my Ant script, and can't make it. Does anyone know how to do it ? I precise I'm calling an external ant script through the following: configuration tasks ant antfile=build.xml inheritRefs=true target=prj.ejbgen / [...] Thxs for any clue. -- Manu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Noobie - Call CVS with the date (-D) parameter to checkout by date
Hi, using a -D date is rather fragile - did you consider using a tag created by the CC build and use the tag instead of the date? Cheers, Siegfried Goeschl goatwuss wrote: Hello I am trying to use maven to checkout some code from cvs using the date parameter. I would like to check out the code at a specific date. The cvs command line argument is -D date I am looking at the maven scm plugin documentation, (http://maven.apache.org/scm/plugins/checkout-mojo.html) and there is an optional tag parameter, but no date param available. How would I give this parameter to the checkout command? Also - the only way I can figure out how to get parameters to work is command line. ie. mvn -DworkingDirectory=blah scm:status I would like to put the parameter in my pom.xml somehow to use the same working directory each time I run the status command. How do I do this? All I have in my pom.xml regarding the scm plugin is: scm connectionscm:cvs:local:/cvs:cruisecontrol/cruisecontrol/connection /scm (I am testing with the cruisecontrol project) thank you! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2/ant] How to add jar to Ant root classpath with AntRun plugin ?
Hi Elid, the message no supported regular expression matcher found is my all time favourite regarding Maven2 ... :-) +) what type of regexp engine your would like to use - JDK, oro or regexp - you probably don't need three of them +) you definitely need ant-nodeps in your dependencies, e.g plugin artifactIdmaven-antrun-plugin/artifactId ... dependencies dependency groupIdant/groupId artifactIdant-nodeps/artifactId version1.6.5/version /dependency /dependencies /plugin +) Thanks to Mark Struberg for finding that out ... :-) Cheers, Siegfried Goeschl Elid OR wrote: Hi, I would like to use mapper regexp with ant but we must add ant-apache-jarkarta.jar and ant-apache-jarkata-oro into the ant classpath. I'v tried to add them to the antrun plugin classpath like this : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution idant-install/id phasegenerate-sources/phase configuration tasks ant antfile=${basedir}/build.xml=true target name=ejbdoclet/ /ant /tasks /configuration goals goalrun/goal /goals /execution /executions dependencies dependency groupIdant/groupId artifactIdant-apache-regexp/artifactId version1.6.5/version /dependency dependency groupIdant/groupId artifactIdant-apache-oro/artifactId version1.6.5/version /dependency /dependencies /plugin But this doesn't work. When I run I'm get the following ant error no supported regular expression matcher found. Thanks. - 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: Maven2 Plugin Ant or Java
Hi Peter, a Canoo WebTest script is actually an ANT script using custom tags, i.e. you must run ANT to execute Canoo WebTest. The best what you can do is a Java implementation invoking ANT to run the tests. Cheers, Siegfried Goeschl Peter Anning wrote: Hi All, Ejaz has made available some code that wraps webtest as a Maven 2 Ant Plugin. Whilst I am very grateful to Ejaz for his code I had expected it to be a native Maven 2 Java Plugin. All the Maven Plugins that I have written have been in Java. So my question is does anybody have any opinions; ant or java? Java would involve plugging into the webtest api behind the Ant layer. Is this a good or bad thing to do or is webtest bound tightly to Ant. I guess if it is bound tightly to Ant Ejaz's Maven Ant plugin may be the way to go. If it has been designed to be loosely coupled then maybe I should look at writing Java version. Best Regards Peter Anning Sr. Developer www.dialectsolutions.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: Properties for artifact names?
Hi Owen, there are may ways to skin the cat - I would say give it a try ... :-) Cheers, Siegfried Goeschl Owen Jacobson wrote: Good morning. I need to put the correct filename for a given artifact into a file at build time. Are there properties usable for resource substitution that, given an artifact groupId: com.example artifactId: myapp version: 1.0 type: ear produce any of the following (in order of preference) - myapp-1.0 - myapp and 1.0 as separate properties - myapp-1.0.ear - some longer name Nothing obvious either in my mailing list history or the maven documentation. Any ideas? Thanks in advance, Owen - 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: How to execute just one script?
Hi Bram, not sure what you would like to achieve but +) run an ANT script instead ... :-) +) you can use the ant run plugin and the validate lifecycle phase Cheers, Siegfried Goeschl Bram de Kruijff wrote: Hello, is it possible to execute just one script without going through the build lifecycle? In my case I'd like to run and re-run an ant script without building and certainly not installing and/or deploying(!) any artifacts. just something like 'mvn cleanmycachedir' or something like that :) regards, Bram - 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 XSLT Plugin Question
HI Nate, https://svn.codehaus.org/mojo/trunk/mojo/xslt-maven-plugin worked for me Cheers, Siegfried Goeschl Nate wrote: I am not able to download this plugin source from specified SVN URL in the source repository link. Am I doing something wrong? Thanks, -Nate http://mojo.codehaus.org/xslt-maven-plugin/ Cheers, Siegfried Goeschl Marco Mistroni wrote: Hello, my 2 cents ant has an xslt task, you could use maven antrun plugin to run it will that be a possible solution? hth marco On 10/11/06, Andreas Guther [EMAIL PROTECTED] wrote: I am not aware of an XSLT plug-in, but writing one should be a pretty straight forward task. I guess I then would try to associate the plug-in with source code generation or something similar during the site creation life cycle. Writing Maven 2 plug-ins is an easy to achieve task and there are plenty of examples available. Andreas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 7:24 AM To: users@maven.apache.org Subject: Maven XSLT Plugin Question I have an application that using XML to define the features added to each release version. I wrote an XSLT to convert this XML into the changes plugin XML format. This allows me to have the same information in the application and the generated site, but the XSLT execution is a manual step. I have a couple of ideas for a solution, but I'm not sure what is available. 1. Does the changes plugin allow a mapping XSL to be included to convert a different XML into a changes plugin? 2. If not, is there plugin to executes XSL transforms during the site cycle? 3. If not, can an ant script be setup to run before the changes plugin? Or is there a pre-site cycle that it can be executed. If you have a different idea, I would be interested in hearing it. Especially if the ant script is the only solution, since it seems hackish to call java with a Saxon jar to transform during the site generation. Thanks for the help, -Nate - 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: Maven XSLT Plugin Question
http://mojo.codehaus.org/xslt-maven-plugin/ Cheers, Siegfried Goeschl Marco Mistroni wrote: Hello, my 2 cents ant has an xslt task, you could use maven antrun plugin to run it will that be a possible solution? hth marco On 10/11/06, Andreas Guther [EMAIL PROTECTED] wrote: I am not aware of an XSLT plug-in, but writing one should be a pretty straight forward task. I guess I then would try to associate the plug-in with source code generation or something similar during the site creation life cycle. Writing Maven 2 plug-ins is an easy to achieve task and there are plenty of examples available. Andreas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 7:24 AM To: users@maven.apache.org Subject: Maven XSLT Plugin Question I have an application that using XML to define the features added to each release version. I wrote an XSLT to convert this XML into the changes plugin XML format. This allows me to have the same information in the application and the generated site, but the XSLT execution is a manual step. I have a couple of ideas for a solution, but I'm not sure what is available. 1. Does the changes plugin allow a mapping XSL to be included to convert a different XML into a changes plugin? 2. If not, is there plugin to executes XSL transforms during the site cycle? 3. If not, can an ant script be setup to run before the changes plugin? Or is there a pre-site cycle that it can be executed. If you have a different idea, I would be interested in hearing it. Especially if the ant script is the only solution, since it seems hackish to call java with a Saxon jar to transform during the site generation. Thanks for the help, -Nate - 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: What are the best practices to create application installers?
Hi Dave, I did such things for Maven 1 though +) building an installer was an independent project using a POM to pull in the artifacts used for the installer and production set of configuration files +) I used one executable JAR containing all dependencies as input for the installer +) I had some additional obfuscation step for the executable JAR +) my installer was triggered through ANT using install4j to build installers for Windows, Linux and MacOS 10.x (without making advertisment it worked quite well) +) In Maven2 land the build-helper-maven-plugin might help you the upload the results in to repo Cheers Siegfried Goeschl Dave Hoffer wrote: I now need to go beyond creating jars/wars with maven2; I need to create an installer for my application. What is the current state of this with maven? Where are the links that can show me options of how to do this? I have found the assembly plugin, but it seems quite limited (and it doesn't seem to fit within the maven goals pattern). For example it can bundle stuff locally but how do I publish this to a server? What if I want a Windows or cross-platform installer that can install Java, etc? Also, how can I incorporate this within the normal maven process of releasing an application? Any information would be greatly appreciated. -dh - 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: Publishing to Maven1 repository from Maven2
could be this one http://maven.apache.org/plugins/maven-one-plugin/introduction.html Cheers, Siegfried Goeschl Orford, Ian wrote: I thought I stumbled across a plug-in a while ago that would allow me to build using maven2 but publish to a maven1 repository. Does anyone know about this? Did I imagine it? Thanks, Ian -- The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.dresdnerkleinwort.com/disc/email/ or contact the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can I bypass the whole Maven build part?!
Hi SomeDude, Not sure if SomeDude is really your name ... I did such a thing for Maven 1 ... +) you can explicitely define which reports should be generated - some of them use source code whereas some other use class files (JDepend) +) best you start with a minimal report section +) you can trigger the site generation using mvn site somewhere within the ant build +) depending on the amount of tinkering you can also generate a Surefire report passed on your JUnit test Cheers, Siegfried Goeschl PS: Good luck out there as fresh graduate ... :-) SomeDude wrote: I am very new to Maven and from the introductory reading that I have done I am starting to understand that if I were to use it in our projects I would have to replace our current build process. Here are my problems: 1) Boss wants me to see if Maven can be useful for us in the documentation process. He really likes the website feature. 2) Boss likes the way we build our projects since we have been using these ginormous ant scripts for years now. He will not change the build process. 3) Boss would not even consider messing with our current directory structures My Question is: Is there any way I could use Maven features like the website generation and report creation without having to interfere with the current project structure and build process? Sorry if my question is noobish, FreshGraduate! Thanx guys. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can I bypass the whole Maven build part?!
Hi SomeDude, I'm using Siegfried Goeschl for the maybe-not-so-smart-questions and it works quite well ... :-) Cheers, Siegfried Goeschl SomeDude wrote: Great thank you so much Siegfried. SomeDude is not my real name of course :) I just need to be anonymous for when I ask maybe-not-so-smart-questions. I am almost done with chapter 1 from Maven a Developer's Notebook and then I will start trying out your advice. Thank you again :) Siegfried Goeschl wrote: Hi SomeDude, Not sure if SomeDude is really your name ... I did such a thing for Maven 1 ... +) you can explicitely define which reports should be generated - some of them use source code whereas some other use class files (JDepend) +) best you start with a minimal report section +) you can trigger the site generation using mvn site somewhere within the ant build +) depending on the amount of tinkering you can also generate a Surefire report passed on your JUnit test Cheers, Siegfried Goeschl PS: Good luck out there as fresh graduate ... :-) SomeDude wrote: I am very new to Maven and from the introductory reading that I have done I am starting to understand that if I were to use it in our projects I would have to replace our current build process. Here are my problems: 1) Boss wants me to see if Maven can be useful for us in the documentation process. He really likes the website feature. 2) Boss likes the way we build our projects since we have been using these ginormous ant scripts for years now. He will not change the build process. 3) Boss would not even consider messing with our current directory structures My Question is: Is there any way I could use Maven features like the website generation and report creation without having to interfere with the current project structure and build process? Sorry if my question is noobish, FreshGraduate! Thanx guys. - 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: [m2] install4j plugin
Hi Ben, if not you can wrap the install4j thingie within an Maven build using +) maven-antrun-plugin +) build-helper-maven-plugin Cheers, Siegfried Goeschl ben short wrote: Hi, Anyone know if there is such a beast as an install4j plugin for maven? Regards Ben - 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: [M2] Announcement plug-in for Maven 2?
Hi Andreas, I'm not entirely sure but you might have overlooked http://maven.apache.org/plugins/maven-changes-plugin/ and more specifically http://maven.apache.org/plugins/maven-changes-plugin/announcement-mail-mojo.html Cheers, Siegfried Goeschl Vincent Massol wrote: Hi Andreas, AFAIK it doesn't exist for m2 yet. Thanks -Vincent -Original Message- From: Andreas Guther [mailto:[EMAIL PROTECTED] Sent: lundi 18 septembre 2006 02:17 To: Maven Users List Subject: [M2] Announcement plug-in for Maven 2? Hi, I am having a hard time finding a Maven 2 version of the Announcement plug-in from Vincent Massol that is available for Maven 1. I looked at http://mojo.codehaus.org/ and http://maven.apache.org/plugins/ and used all my limited Google skills. Maybe I am just blind or maybe it just does not exist yet. Does someone know if there is a Maven 2 version of the Announcement plug-in and if so, where I can find it? Thanks in advance, Andreas ___ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.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: Maven 1.1-beta3 maven-artifact-plugin 1.8
Hi Arnaud, works like a charm now :-) Cheers, Siegfried Goeschl Arnaud HERITIER wrote: I just deployed the SNAPSHOT of the version 1.8.1. You can test it with maven 1.1 beta 3 maven plugin:download -DgroupId=maven -DartifactId=*maven-artifact-plugin* -Dversion=*1.8.1*-SNAPSHOT -Dmaven.repo.remote=http://www.ibiblio.org/maven,http://people.apache.org/repo/m1-snapshot-repository/ It should fix the problem. When I upgraded wagon dependencies I changed a little bit the plugin's code to not have this error of RejectedKey. The problem Is that in the beta 3 we upgraded these dependencies (through the core) but we don't bundle the new artifact plugin :-( It's my fault. Cheers. Arnaud On 8/10/06, Jeff Jensen [EMAIL PROTECTED] wrote: This too is exactly the info we need in the defect entry! Your perspective in the issue, including what doesn't work and what does work, is important to eventual resolution. Would you mind adding your notes to the issue - what works and does not work? Quoting Steve Molloy [EMAIL PROTECTED]: Well, I was about to... But when I reproduced it, I thought I'd dig a bit to see what might be wrong. I started by changing the NullKnownHostProvider by a FileKnownHostProvider which would validate my provider, then replaced the cached class files with the newly compiled ones. It worked fine... Then I reverted to NullKnownHostProvider, but it still worked fine!!! So, to recap, installing maven-artifact-plugin 1.8 as-is fails with host rejected error. Replacing its class files with the locally compiled trunk version fixes my problem. What changed between 1.8 and trunk? Seems to be the right thing, at least for me... ;-) And is there a 1.9-SNAPSHOT available somewhere? Steve On Thu, 2006-10-08 at 08:01 -0500, Jeff Jensen wrote: Hi Steve, Would you mind adding your details on the deploy error with m1.1b3 to this JIRA, please? http://jira.codehaus.org/browse/MPARTIFACT-71 On 8/9/06, Steve Molloy [EMAIL PROTECTED] wrote: Thanks, I guess I'll stick with 1.0.2 until the next release, hoping this issue will be fixed. Is there any ETA set for the next 1.1 release yet? Steve On Wed, 2006-09-08 at 08:23 -0500, Jeff Jensen wrote: Hi Steve, Yes, this is an issue I encountered as well. I have found that the 6/30 1.1-beta3-SNAPSHOT does not have this problem, but every release since then does. See 20060630/ here: http://people.apache.org/~aheritier/maven/1.X/snapshots/ We are researching the problem to find a fix. In the meantime, I suggest the 6/30 snapshot if you would like to use 1.1. It is very solid and the current one we use for our production work (we've used nearly every one of those snapshots all along as they were published). -Original Message- From: Steve Molloy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 7:24 AM To: users@maven.apache.org Subject: Maven 1.1-beta3 maven-artifact-plugin 1.8 Hi, I just upgraded from maven 1.0.2 to 1.1-beta3, and got the maven-artifact-plugin 1.8 along with it. But Now I can't deploy any artifacts because scp refuses my host key, while scpexe just doesn't do anything at all, but doesn't complain... So, I've reverted back to 1.0.2 for now, but are there any plans for fixing these problems? (I'm running maven on JDK 1.5.0_07, on Fedora core 5). Thanks, Steve - 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]
Is it possible to transform XDOC to OpenOffice (SXW or ODT)?!
Hi folks, is there any plugin or XSLT around to transform XDOC to an OpenOffice format?! I think there was some work done in Forrest for SXW Cheers, Siegfried Goeschl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m1] unable to run jar:deploy using maven-1.1-beta3
Hi folks, I'm running Windows whereas the repository resides on a Linux box. I'm unable to successfully deploy my JAR using the following settings maven.repo.list=releases maven.repo.releases=scp://10.0.0.20 maven.repo.releases.directory=/home/sgoeschl/temp maven.repo.releases.username=foo maven.repo.releases.password=bar I get the following output START Will deploy to 1 repository(ies): releases Deploying to repository: releases Failed to deploy to: releases Reason: org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: reject HostKey: 10.0.0.20 org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: reject HostKey: 10.0.0.20 at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(AbstractSshWagon.java:232) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deployFiles(DefaultArtifactDeployer.java:372) END +) I gave it a try using scpexe://10.0.0.20 but it seems to do nothing apart from sucess messages +) I can successfully use putty's pscp to copy the files on my box Any ideas or hints?! Thanks in advance Siegfried Goeschl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m1] Maven WebTest Plugin 1.5 released
The maven-plugins team is pleased to announce the Maven WebTest Plug-in 1.5 release! http://maven-plugins.sourceforge.net/maven-webtest-plugin Maven Plugin for Canoo WebTest Changes in this version include: Changes: o Updated to WebTest 2.0, build number = R_1304 To automatically install the plugin, type the following on a single line: maven plugin:download -DgroupId=maven-plugins -DartifactId=maven-webtest-plugin -Dversion=1.5 For a manual installation, you can download the plugin here: http://maven-plugins.sourceforge.net/repository/maven-plugins/plugins/maven-webtest-plugin-1.5.jar Have fun! -The maven-plugins team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Generating PDF from XDOC using Maven 2.0.4?!
Hi folks, finally I have a chance to setup a M2 project but I miss a crucial thing - how to generate a PDF from user-supplied XDOC like in M1? Thanks in advance Siegfried Goeschl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ##Site Generation Error!
Hi Narayan, the changelog report is not too happy with your CVS configuration regarding the project - fix your POM repository connectionscm:cvs:pserver:[EMAIL PROTECTED]:/usr/local/cvsroot:${pom.artifactId}/connection developerConnectionscm:cvs:pserver:[EMAIL PROTECTED]:/usr/local/cvsroot:${pom.artifactId}/developerConnection /repository Cheers, Siegfried Goeschl narayan dhumale wrote: Friends, I am using Maven 1.0.2 while trying to generate the site in the following way i am getting errors pasted below. Please let help me to sort out the problem D:\dev\mavenbook\code\genapp\test-applicationmaven site __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 build:start: site: xdoc:register-reports: maven-jdepend-plugin:register: maven-checkstyle-plugin:register: maven-changes-plugin:register: maven-changelog-plugin:register: maven-developer-activity-plugin:register: maven-file-activity-plugin:register: maven-license-plugin:register: xdoc:init: maven-javadoc-plugin:register: maven-jxr-plugin:register: maven-junit-report-plugin:register: maven-linkcheck-plugin:register: maven-tasklist-plugin:register: site:run-reports: [echo] Generating the Metrics... maven-jdepend-plugin:report: java:prepare-filesystem: java:compile: [echo] Compiling to D:\dev\mavenbook\code\genapp\test-application/target/cla sses [echo] == NOTE: Targetting JVM 1.4, classes will not run on earlier JVMs == [echo] Generating the Checkstyle... checkstyle:init: checkstyle:report: [echo] = = W A R N I N G= = = Your project doesn't contain a header file specified as: = = D:\dev\mavenbook\code\genapp\test-application/LICENSE.txt = Checkstyle needs it to check the existence of the License in = = your source files. If it can't find this file, it throws an = = error. = = A temporary solution is to create an empty LICENSE.txt file. = = Though, we recommend that you edit this License. = = checkstyle:run: [echo] Using file:C:/Documents and Settings/Shailesh.Barde/.maven/cache/mave n-checkstyle-plugin-2.5/plugin-resources/sun_checks.xml for checkstyle ... [echo] Generating the Change Log... maven-changelog-plugin:report: [echo] Generating the changelog report BUILD FAILED File.. C:\Documents and Settings\Shailesh.Barde\.maven\cache\maven-changelog -plugin-1.7.1\plugin.jelly Element... changelog:changelog Line.. 83 Column 15 repository connection string does not specify 'cvs' as the scm Total time: 6 seconds Finished at: Fri Jan 20 10:57:41 IST 2006 Regards, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build process for different environments
Hi Martin, I'm not sure if you should use maven 2.0 alpha 3 as maven newbie for production but this is a strictly personal opinion :-) For Maven 1.x you define a preGoal or postGoal and copy the file around Cheers, Siegfried Goeschl [EMAIL PROTECTED] wrote: Hi, I'm a maven newbie and I try out maven 2.0 alpha 3. My questions: I have a project to build / deploy for three different enviroments (test, integration, production). The difference beetween the bundles is only a properties file (there are three different files: config-test.properties, config-integration.properties ...). In the build process I want to copy the right config file to a file with a common name (config.properties - the app should work with this config file) Is there a solution to handle this with maven 2 or do I have to write a plugin? TIA Regards, Martin ++ Diese Nachricht ist vertraulich und ausschließlich für den/die Adressaten bestimmt. Sollten Sie nicht der beabsichtigte Adressat, einer seiner Mitarbeiter oder sein Empfangsbevollmächtigter sein, ist jede Form der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts dieser Nachricht unzulässig. In diesem Fall bitten wir, den Absender umgehend zu benachrichtigen und die Nachricht zu vernichten. Elektronisch versandte Nachrichten können durch Unberechtigte manipuliert und/oder gelesen werden, weshalb jegliche Haftung hierfür ausgeschlossen wird. ++ This communication is confidential and is intended solely for the addressee(s). If you are not the intended recipient(s), his/her assistant, or authorized recipient, any form of disclosure, reproduction, distribution or any use of this communication or the information in it, is strictly prohibited and may be unlawful. In this case, please notify the sender immediately and destroy the e-mail. Electronic communication via the Internet by e-mail may be manipulated and/or read by third parties, thus we exclude any liability whatsoever for this e-mail. ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [WEBTEST] Problem during the execution
Hi Aurélie, 1) what happend to your java.io.FileNotFoundExceptionFaucher Aurélie wrote: 2) what version of Maven and Maven WebTest plugin are you using Cheers Siegfried Goeschl PS: since I'm currently at a customer site with no SMTP access can you reply to the mailing list?! Hello, I'm sorry but I've an error when I start maven webtest : [java] BUILD FAILED [java] java.lang.NoSuchMethodError: com.canoo.webtest.engine.Context.getCurr entLastResponsesStatus()Lcom/canoo/webtest/engine/Context$LastResponsesStatus; [java] at com.canoo.webtest.steps.AbstractBrowserAction.notifyStarted(A bstractBrowserAction.java:101) Is it a problem of the plugin or anything else? Aurélie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- _ Dipl.-Ing. Siegfried Goeschl (Senior Developer) WebDynamite IT Solutions GmbH Landstraße 49, A-4020 Linz, Austria http://www.webdynamite.com +43 / 732 / 777 810 - DW (fixed) +43 / 732 / 777 810 - 50 (fax) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [WEBTEST] Problem during the execution
Hi Aurélie, Faucher Aurélie wrote: So, I renamed the resultfile and it find the file now. But there is an error in this result file, with ant : [java] D:\Exemple\webtest-1.7\doc\tom\UseCases\webtest-raw-report.xml:2: Unexpected element {}summary {antlib:org.apache.tools.ant}summary The bugs don't stop!! Aurélie -Message d'origine- De : Faucher Aurélie Envoyé : mercredi 10 août 2005 18:23 À : Maven Users List Objet : RE: [WEBTEST] Problem during the execution Yes, the little sample works. And the other problem with the FileNotFound came back!! Must I configure the result file for the webtest launching? And how? Thanks Hi Aurélie, +) I assume/hope that the clickLink problems are related to your application ... :-) +) when you look at the exploded plugin you find a little sample script - does it work for you? +) you can run maven using -X to get debug output and an idea what is wrong Cheers, Siegfried Goeschl Faucher Aurélie wrote: Ok, now it works. Well, there are failures on several targets clickLink. But I pushed the properties maven.webtest.config.haltonfailure=false and maven.webtest.config.haltonerror=false. But maven stops running!! Is there a bug?? Aurélie -Message d'origine- De : Faucher Aurélie Envoyé : mercredi 10 août 2005 17:26 À : Maven Users List Objet : RE: [WEBTEST] Problem during the execution Ok I found it!! -Message d'origine- De : Faucher Aurélie Envoyé : mercredi 10 août 2005 17:25 À : Maven Users List Objet : RE: [WEBTEST] Problem during the execution And where can I download this plugin? Because in the sourceforge website, there is only the version 1.0 Thank you Aurélie -Message d'origine- De : Faucher Aurélie Envoyé : mercredi 10 août 2005 17:23 À : Maven Users List Objet : RE: [WEBTEST] Problem during the execution Ok I'll try! -Message d'origine- De : Faucher Aurélie Envoyé : mercredi 10 août 2005 17:04 À : Maven Users List Objet : RE: [WEBTEST] Problem during the execution 1) In fact, it's resolved. I forgot to use a personal config file, and I didn't launch webtest from the good directory 2) Maven version : 1.1-beta-1 Webtest plugin version : 1.0 Aurélie -Message d'origine- De : Siegfried Goeschl [mailto:[EMAIL PROTECTED] Envoyé : mercredi 10 août 2005 16:58 À : Maven Users List; Faucher Aurélie Objet : Re: [WEBTEST] Problem during the execution Hi Aurélie, 1) what happend to your java.io.FileNotFoundExceptionFaucher Aurélie wrote: 2) what version of Maven and Maven WebTest plugin are you using Cheers Siegfried Goeschl PS: since I'm currently at a customer site with no SMTP access can you reply to the mailing list?! Hello, I'm sorry but I've an error when I start maven webtest : [java] BUILD FAILED [java] java.lang.NoSuchMethodError: com.canoo.webtest.engine.Context.getCurr entLastResponsesStatus()Lcom/canoo/webtest/engine/Context$LastResponsesStatus; [java] at com.canoo.webtest.steps.AbstractBrowserAction.notifyStarted(A bstractBrowserAction.java:101) Is it a problem of the plugin or anything else? Aurélie - 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: DocBook support
Hi Wilfried, are you talking about M1 or M2? For M1 there is a plugin on maven-plugins.sourceforge.net ... Cheers, Siegfried Goeschl Wilfred Springer wrote: Guys, Am I right that DocBook support is still missing? Thanks, Wilfred - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Maven WebTest Plugin 1.2 available for M1
The maven-plugins team is pleased to announce the Canoo WebTest Plug-in 1.2 release! http://maven-plugins.sourceforge.net Maven Plugin for Canoo WebTest Changes in this version include: Changes: o Prepared release 1.2 o Updated to WebTest 1.7, build number = R_881 o Most dependencies are declared in project.xml (again) To automatically install the plugin, type the following on a single line: maven plugin:download -DgroupId=maven-plugins -DartifactId=maven-webtest-plugin -Dversion=1.2 For a manual installation, you can download the plugin here: http://www.ibiblio.org/maven/maven-plugins/plugins/maven-webtest-plugin-1.2.jar Have fun! -The maven-plugins team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Maven WebTest Plugin 1.2 available for M1
Hi Michael, you are right since the synchronization with ibiblio has not taken place yet :-) Try http://sourceforge.net/projects/maven-plugins/ to download the plugin directly Cheers, Siegfried Goeschl Michael Niemaz wrote: Can't find it ;-( Siegfried Goeschl wrote: The maven-plugins team is pleased to announce the Canoo WebTest Plug-in 1.2 release! http://maven-plugins.sourceforge.net Maven Plugin for Canoo WebTest Changes in this version include: Changes: o Prepared release 1.2 o Updated to WebTest 1.7, build number = R_881 o Most dependencies are declared in project.xml (again) To automatically install the plugin, type the following on a single line: maven plugin:download -DgroupId=maven-plugins -DartifactId=maven-webtest-plugin -Dversion=1.2 For a manual installation, you can download the plugin here: http://www.ibiblio.org/maven/maven-plugins/plugins/maven-webtest-plugin-1.2.jar Have fun! -The maven-plugins team - 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: [ANN] Maven WebTest Plugin 1.2 available for M1
http://maven-plugins.sourceforge.net/maven-webtest-plugin/index.html Michael Niemaz wrote: But before download, I'd like to know more about it ;-) Siegfried Goeschl wrote: Hi Michael, you are right since the synchronization with ibiblio has not taken place yet :-) Try http://sourceforge.net/projects/maven-plugins/ to download the plugin directly Cheers, Siegfried Goeschl Michael Niemaz wrote: Can't find it ;-( Siegfried Goeschl wrote: The maven-plugins team is pleased to announce the Canoo WebTest Plug-in 1.2 release! http://maven-plugins.sourceforge.net Maven Plugin for Canoo WebTest Changes in this version include: Changes: o Prepared release 1.2 o Updated to WebTest 1.7, build number = R_881 o Most dependencies are declared in project.xml (again) To automatically install the plugin, type the following on a single line: maven plugin:download -DgroupId=maven-plugins -DartifactId=maven-webtest-plugin -Dversion=1.2 For a manual installation, you can download the plugin here: http://www.ibiblio.org/maven/maven-plugins/plugins/maven-webtest-plugin-1.2.jar Have fun! -The maven-plugins team - 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]
[ANN] Maven WebLogic Plugin 1.0.0 is available ...
Hi folks, there is a new release of the plugin available is available at http://sourceforge.net/projects/maven-plugins/. The documentation can be found http://maven-plugins.sourceforge.net/maven-weblogic-plugin/ but is not reachable through the mainpage though ... :-( Cheers, Siegfried Goeschl PS: Thanks to Scott Ryan since he did the actual work :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Canoo webtest problem
Hi Greg, the webtest-raw-report.xml is the original result file of Canoo WebTest which will be transformed into a Maven report. The plugin ships with a tiny sample found in the plugin cache directory - you can invoke maven webtest from there to ensure that the plugin is working correctly. Cheers, Siegfried Goeschl Akins, Greg wrote: When I try to run Canoo webtest (Plugin 1.0, Maven 1.0.2) I get the following error webtest:generate-test-report: [java] [java] (Location of error unknown)XSLT Error (javax.xml.transform.TransformerException): java.io.FileNotFoundException: d:\gakins\ehold\target\webtest\webtest-raw-report.xml (The system cannot find the file specified) Which makes perfect sense, since I never created that file... That's after running 'maven webtest' and all the subsequent goals complete successfully. I can also run webtest:test OK, but of course webtest:generate-test-report fails. Does anyone have an example of what that file should look like? It isn't in the plugin jar and I couldn't find an example searching for the filename on Google. Sorry if I'm missing something obvious. Greg Akins Software Engineer Sony Electronics, STP Systems 724.696.7322 (Sony) 724.696.6147 (AV) 724.454.7790 (Cell) 412.590.3973 (Pager) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HSQLDB locking when using tomcat plugin
Hi Phillip, from http://hsqldb.sourceforge.net/doc/guide/ch01.html#N10190 All databases running in different modes can be closed with the SHUTDOWN command, issued as an SQL query. In 1.7.2, in-process databases are no longer closed when the last connection to the database is explicitly closed via JDBC, a SHUTDOWN is required. When SHUTDOWN is issued, all active transactions are rolled back. A special form of closing the database is via the SHUTDOWN COMPACT command. This command rewrites the .data file that contains the information stored in CACHED tables and compacts it to size. This command should be issued periodically, especially when lots of inserts, updates or deletes are performed on the cached tables. Changes to the structure of the database, such as dropping or modifying tables or indexes also create large amounts of unused space that can be reclaimed using this command. Having said that I'm not the HSQLDB expert - invoking stop() might solve the problem but I prefer the SHUTDOWN since it compacts the database on the fly. Cheers, Siegfried Goeschl phillip rhodes wrote: I am not aware of the ability to issue a sql shutdown to an in-process HSQL instance. In your case, it would appear to me that you will have to stop the server. HTH --- Siegfried Goeschl [EMAIL PROTECTED] wrote: Hi Sebastien, I think you need to issue a SQL shutdown command for HSQLDB which also compacts the database Cheers, Siegfried Goeschl Sebastien Arbogast wrote: Hi, I'm using Codeczar tomcat plugin to manipulate my tomcat server for my web application. So when I have to recompile some Java class while my Tomcat server is running I want to execute the following procedure : maven tomcat:stop maven war:webapp maven tomcat:start But then when I try to access my database (HSQLDB in file protocol, In-process mode) through my application, I get the following error message : The database is already in use by another process: [EMAIL PROTECTED] =C:\dev\pfe\schaman\target\webapp\WEB-INF\db\schamandb.lck, exists=true, locked=false, valid=false, fl =null]: The problem seems to be that when the application is stopped, the lock on schamandb.lck is not released. Does anyone know how to solve this situation or do I have to stop the server everytime I have something to recompile ? My configuration is the following : - HSQLDB 1.7.3.3 - Maven 1.0.2 - maven-tomcat-plugin version 1.1 Thx in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HSQLDB locking when using tomcat plugin
Hi Sebastien, I'm also not a Spring expert - actually I never used it - but +) you might be able to derive from org.apache.commons.dbcp.BasicDataSource and overwrite the close() method +) add a custom HSQLDB shutdown bean for Spring +) or write a little servlet which does the magic Cheers, Siegfried Goeschl Sebastien Arbogast wrote: from http://hsqldb.sourceforge.net/doc/guide/ch01.html#N10190 All databases running in different modes can be closed with the SHUTDOWN command, issued as an SQL query. In 1.7.2, in-process databases are no longer closed when the last connection to the database is explicitly closed via JDBC, a SHUTDOWN is required. When SHUTDOWN is issued, all active transactions are rolled back. A special form of closing the database is via the SHUTDOWN COMPACT command. This command rewrites the .data file that contains the information stored in CACHED tables and compacts it to size. This command should be issued periodically, especially when lots of inserts, updates or deletes are performed on the cached tables. Changes to the structure of the database, such as dropping or modifying tables or indexes also create large amounts of unused space that can be reclaimed using this command. Having said that I'm not the HSQLDB expert - invoking stop() might solve the problem but I prefer the SHUTDOWN since it compacts the database on the fly. I agree with you... the cleaner way to do things is to issue that damn SQL SHUTDOWN but I don't know where I can configure something to issue it automatically when my application is stopped. Does anyone know where I can do this ? Can't you just set reload=true in your context.xml? That way when the new war (or exploded war) is deployed, tomcat will reload the webapp and there's no need to stop/start tomcat. Use only in dev-mode! Oh yes it would be great. Anyway my application won't leave dev-mode before a long time ;-). So I customized my context file to look like this ?xml version='1.0' encoding='utf-8'? Context docBase=C:/dev/myapp/target/webapp path=/myapp reload=true /Context But then the problem is that when I recompile a few files, it happens that as soon as the first file is being modified, a reload is initiated while the other files haven't been recompiled yet, which causes numerous exceptions since it breaks the integrity of my application. Where did you configure hsqldb to run? in server.xml or in the webapp? If you configure it in server.xml there should be no locking problems.. HSQLDB is configured to run inside my webapp in In-process mode. So it's configured thanks to this Spring bean configuration : bean id=dataSource class=org.apache.commons.dbcp.BasicDataSource destroy-method=close property name=driverClassNamevalueorg.hsqldb.jdbcDriver/value/property property name=usernamevaluesa/value/property property name=urlvaluejdbc:hsqldb:file:C:\dev\myapp/target/webapp/WEB-INF/db/myappdb/value/property /bean So the file protocol allows me to avoid configuring any database server. The database is a file accessed directly from within the main application process. I know that this is not optimal in terms of performance but I really don't care as my objective for now is to make the deployment process as simple as possible since I'm still in dev mode. I think I really have to find a way to initiate a SHUTDOWN.
Re: Singletons/static variables and Unit testing
Hi Bryan, I think Maven is not guilty but your approach using static initializer and singletons is improvable The JUNIT way +) of defining a lifecycle for an individual test case is setup() and tearDown() +) of providing resources shared across multiple testsuites is using a TestSetup The only trouble is that executing individual tests is not possible since they depend on running the TestSetup before Cheers, Siegfried Goeschl bryan hansen wrote: We are using maven to run our Unit Tests which are accessing the database through Hibernate. It seems that when Maven builds the test suite it is reconfiguring hibernate before each TestCase. So if there are 3 tests in a class it will run those with the same configuration, but when it goes to the next test it will reconfigure hibernate again. I have the configuration code in a static initializer and am accessing it from a Singleton (in fact I copied it from Hibernate's website) and it is still doing it. I have tried setting the various properties for testing and can't seem to make a difference: maven.junit.fork=true maven.junit.jvm=java It has gotten to the point that the build box is throwing out of memories errors because it is trying to allocate so many resources. The only step I can think to do next is to not have maven build my test suite and instead create on myself, but I am afraid that it will become unmaintainble because of all the test cases we have. Any ideas? Thanks, Bryan __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.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: HSQLDB locking when using tomcat plugin
Hi Sebastien, I think you need to issue a SQL shutdown command for HSQLDB which also compacts the database Cheers, Siegfried Goeschl Sebastien Arbogast wrote: Hi, I'm using Codeczar tomcat plugin to manipulate my tomcat server for my web application. So when I have to recompile some Java class while my Tomcat server is running I want to execute the following procedure : maven tomcat:stop maven war:webapp maven tomcat:start But then when I try to access my database (HSQLDB in file protocol, In-process mode) through my application, I get the following error message : The database is already in use by another process: [EMAIL PROTECTED] =C:\dev\pfe\schaman\target\webapp\WEB-INF\db\schamandb.lck, exists=true, locked=false, valid=false, fl =null]: The problem seems to be that when the application is stopped, the lock on schamandb.lck is not released. Does anyone know how to solve this situation or do I have to stop the server everytime I have something to recompile ? My configuration is the following : - HSQLDB 1.7.3.3 - Maven 1.0.2 - maven-tomcat-plugin version 1.1 Thx in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cactus Dashboard Agregator?
Hi Thomas, I would suggest that you write it since it is easy :-) Cheers, Siegfried Goeschl Thomas Van de Velde wrote: I haven't found a dashboard agregator for cactus. Have I missed something? Cheers, Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] plugins language?
Hi Brett, I think Jason van Zyl wrote he would touch Groovy not even with a polestick Is there any Groovy support planned? I use Beanshell and Groovy but Groovy is much more powerful in doing things quickly while Beanshell is easier to grasp Cheers, Siegfried Goeschl Brett Porter wrote: While marmalade is our preferred option for those wanting to port m1 plugins or use ant tasks, java and beanshell will be the preferred options otherwise. Beanshell support is scheduled for alpha-2. /me goes to write a FAQ entry. Cheers, Brett On Apr 12, 2005 1:25 AM, Emmanuel Venisse [EMAIL PROTECTED] wrote: Yura Ivanov said: Hi, I have a question Why will maven 2.0 use only java for writing plugins? I used maven 1.x enough long time, and always there were no enough documentation about using it and many useful thing I was looking in plugins scr. So it was very good place to dig if I had questions. My opinion that it could be not very comfortable for users of maven to look sorce code of plugins if they would be compiled, but I have never like jelly as scripting language. My suggestion is to use some java compatible scripting language for writing plugins, like BeanShell project or Groovy. You can use scripting langage for writing plugins. For this, you use marmalade. See at hello plugin. http://maven.apache.org/maven2/developing-plugins-with-marmalade.html Emmanuel - 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: Getting changelog to work
Hi Frank, +) I'm not sure if the syntax correct - you are using | instead of : (might be a mail problem though) +) the current version of Maven don't use the native cvs client but a Java library - there is a goal to add your CVS password (I have forgotten it) +) last but not least are you using a file-based CVS repo under Windows - I suggest using a CVS server to be on the safe side Cheers, Siegfried Goeschl Frank Verbruggen wrote: Hi Maven development team, my name is Frank Verbruggen, and I'm currently involved in introducing 'your' tool Maven at a major bank from the Netherlands (it is called SNS Bank). We have almost succesfully incorporated everything, but there is just one problem: we can't get the changelog, file activity and developer activity plugins to generate rapports that actually contain changes (ie. it always states no changes have occurred). The directory layout is as follows: + C [root] | + CVS [dir] | + Calculator [dir] | + project.xml [file1] | + project.properties [file2] | + maven.xml [file3] | + Calculator_Domeinlaag [dir] | | | + target [dir] | | | + checkouts [dir] | | | + project.xml [file4] | | | + project.properties[file5] | + Calculator_Servicelaag [dir] | | | + target [dir] | | | + checkouts [dir] | | | + project.xml [like file4] | | | + project.properties [like file5] | | + Calculator_Presentatielaag [dir] | | | + target [dir] | | | + checkouts [dir] | | | + project.xml [like file4] | | | + project.properties [like file5] FILE LISTINGS _ [file1] _ ?xml version=1.0? project pomVersion3/pomVersion groupIdCalculator/groupId currentVersion1.0/currentVersion nameCalculator Demonstration Application/name !-- Project Management section goes here-- organization nameSolidium Group B.V./name urlhttp://www.solidium.nl/url logohttp://www.solidium.nl/folder1/images/solidium-opzet_02.jpg/logo /organization inceptionYear2005/inceptionYear packagecalculator.*/package descriptionThis application is specifically designed to show users the full potential of the Soldium Ontwikkelstraat. It gives a full application supporting most features also supported in major applications. Also, it combines several features of the tools incorporated in the Solidium Onwikkelstraat, such as: Maven, CVS, CruiseControl, Checkstyle, JCoverage, JUnit, PMD and many more. Specifically for managerial information, the application has been carefully released into the CVS. This application is also very suitable for workshop support, and other related presentations. Application description: This app is a calculator. It supports addition, substraction, multiplication and dividing. Also the button captions are configured in a separate file called: keyconfig.txt. It supports full MVC and has a logical separation between program logic and calculation logic. This logical separation is specifically included to model the dependencies within WSAD projects./description shortDescriptionCalculator Demonstration Application/shortDescription siteDirectoryC:/Calculator/CalculatorSite/siteDirectory developers developer nameFrank Verbruggen/name idverfra/id email[EMAIL PROTECTED]/email /developer /developers repository connectionscm|cvs|pserver|verfra:[EMAIL PROTECTED]|c:/cvs|${pom.artifactId}/connection /repository !-- Project Dependency section goes here-- !--Project Build section goes here -- build nagEmailAddress[EMAIL PROTECTED]/nagEmailAddress sourceDirectory${basedir}/checkouts/${pom.artifactId}/src/sourceDirectory unitTestSourceDirectory${basedir}/checkouts/${pom.artifactId}/test/unitTestSourceDirectory /build !-- Project Reports section goes here -- reports reportmaven-changelog-plugin/report reportmaven-file-activity-plugin/report reportmaven-developer-activity-plugin/report /reports /project __ [file2] __ # Proxy settings. maven.proxy.host = THULIUM maven.proxy.port = 8080 maven.proxy.username = verfra # Continue generation of reports on test failures. maven.test.failure.ignore=true # Tasklist tag. [EMAIL PROTECTED] # Don't include reports for parent in overview. maven.xdoc.includeProjectDocumentation=no # Multi project base directory
Re: Instability calculation
Hi Frank, I agree with you that it is odd but the instability is calulated using (Ce / (Ce + Ca). Since it is not used in your project Ca = 0 and therefore you get 1 showing up as 100% instability Having said that I would not put too much weight on the metrics of JDepend since it is simply bean counting ... :-) Cheers, Siegfried Goeschl Frank Verbruggen wrote: In my opinion it is very weird that the instability of a class that is solely dependent on the java core classes, but is not used in this project by other classes is 100%. Think about it ! Java is not instable, every new release has backwards compatibility for the previous version. In my company, we define projects for each abstraction layer. This is common practice in the business where I work (financial coorporations). But because my lowest layer is depended upon only by higher layers, there are no classes recognized which depend on my package. But since it is dependant on java.lang (duh !) I get instability 100% for my package. This is redicilous, how can I circumvent this oddity ? Regards, Frank Verbruggen Solidium Group B.V. Netherlands - 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: Getting changelog to work
Hi Frank, follow the blessed way of putting a CVS Server on a LINUX box. Four years ago I tried it with Windows but it didn't work properly ... On the website of Java User Group Austria you find http://www.javausergroup.at/events/cvs%20intro.pdf some background infos on installing it on a Unix box Cheers, Siegfried Goeschl Frank Verbruggen wrote: So what can I do to make it all work ? Thx in advance Frank Verbruggen Milos Kleint wrote: Siegfried Goeschl wrote: Hi Frank, +) I'm not sure if the syntax correct - you are using | instead of : (might be a mail problem though) +) the current version of Maven don't use the native cvs client but a Java library - there is a goal to add your CVS password (I have forgotten it) +) last but not least are you using a file-based CVS repo under Windows - I suggest using a CVS server to be on the safe side most probably the issue here. AFAIK changelog uses the cvs *client* library from netbeans.org which is jut a pserver client. local cvs repository doesn't use pserver protocol, thus it won't work. regards Milos Kleint Cheers, Siegfried Goeschl Frank Verbruggen wrote: Hi Maven development team, my name is Frank Verbruggen, and I'm currently involved in introducing 'your' tool Maven at a major bank from the Netherlands (it is called SNS Bank). We have almost succesfully incorporated everything, but there is just one problem: we can't get the changelog, file activity and developer activity plugins to generate rapports that actually contain changes (ie. it always states no changes have occurred). The directory layout is as follows: + C [root] | + CVS [dir] | + Calculator [dir] | + project.xml [file1] | + project.properties [file2] | + maven.xml [file3] | + Calculator_Domeinlaag [dir] | | | + target [dir] | | | + checkouts [dir] | | | + project.xml [file4] | | | + project.properties[file5] | + Calculator_Servicelaag [dir] | | | + target [dir] | | | + checkouts [dir] | | | + project.xml [like file4] | | | + project.properties [like file5] | | + Calculator_Presentatielaag [dir] | | | + target [dir] | | | + checkouts [dir] | | | + project.xml [like file4] | | | + project.properties [like file5] FILE LISTINGS _ [file1] _ ?xml version=1.0? project pomVersion3/pomVersion groupIdCalculator/groupId currentVersion1.0/currentVersion nameCalculator Demonstration Application/name !-- Project Management section goes here-- organization nameSolidium Group B.V./name urlhttp://www.solidium.nl/url logohttp://www.solidium.nl/folder1/images/solidium-opzet_02.jpg/logo /organization inceptionYear2005/inceptionYear packagecalculator.*/package descriptionThis application is specifically designed to show users the full potential of the Soldium Ontwikkelstraat. It gives a full application supporting most features also supported in major applications. Also, it combines several features of the tools incorporated in the Solidium Onwikkelstraat, such as: Maven, CVS, CruiseControl, Checkstyle, JCoverage, JUnit, PMD and many more. Specifically for managerial information, the application has been carefully released into the CVS. This application is also very suitable for workshop support, and other related presentations. Application description: This app is a calculator. It supports addition, substraction, multiplication and dividing. Also the button captions are configured in a separate file called: keyconfig.txt. It supports full MVC and has a logical separation between program logic and calculation logic. This logical separation is specifically included to model the dependencies within WSAD projects./description shortDescriptionCalculator Demonstration Application/shortDescription siteDirectoryC:/Calculator/CalculatorSite/siteDirectory developers developer nameFrank Verbruggen/name idverfra/id email[EMAIL PROTECTED]/email /developer /developers repository connectionscm|cvs|pserver|verfra:[EMAIL PROTECTED]|c:/cvs|${pom.artifactId}/connection /repository !-- Project Dependency section goes here-- !--Project Build section goes here -- build nagEmailAddress[EMAIL PROTECTED]/nagEmailAddress sourceDirectory${basedir}/checkouts/${pom.artifactId}/src/sourceDirectory unitTestSourceDirectory${basedir}/checkouts/${pom.artifactId}/test/unitTestSourceDirectory /build !-- Project Reports section goes