RE: weblogic tools for maven
On Tue, 2005-01-04 at 22:37, Vincent Massol wrote: I looked at the weblogic plugin at SF and it uses CLI execution which is better than using Ant tasks. Can the Weblogic tools be loaded from the classpath and be used in-process? Would Cargo (http://cargo.codehaus.org) help? (It is probably not good enough for what you wish to do but as it is probably also our direction we might work together). Definitely for the server manipulation and deployment, but I also want to be able to generate WL domains and integrate the whole thing, including maven itself into Workshop. This is why I suggested a separate project. [snip] -Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl [EMAIL PROTECTED] http://maven.apache.org happiness is like a butterfly: the more you chase it, the more it will elude you, but if you turn your attention to other things, it will come and sit softly on your shoulder ... -- Thoreau - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: weblogic tools for maven
-Original Message- From: Jason van Zyl [mailto:[EMAIL PROTECTED] Sent: mercredi 5 janvier 2005 09:02 To: Maven Users List Subject: RE: weblogic tools for maven On Tue, 2005-01-04 at 22:37, Vincent Massol wrote: I looked at the weblogic plugin at SF and it uses CLI execution which is better than using Ant tasks. Can the Weblogic tools be loaded from the classpath and be used in-process? Would Cargo (http://cargo.codehaus.org) help? (It is probably not good enough for what you wish to do but as it is probably also our direction we might work together). Definitely for the server manipulation and deployment, but I also want to be able to generate WL domains and integrate the whole thing, FYI, Cargo does generate WL domains (using the StandaloneConfiguration - which is the default). It would be good to know if supports your use cases and if not I'll be happy to help make it match. including maven itself into Workshop. This is why I suggested a separate project. Another project is very fine and there's no overlap. What I was just hinting at is that maybe this other project would benefit from using the Cargo Java API internally. -Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: giving dependencies without version?
i tried like this with out giving version its giving compilation errors. privious dependency is like this dependency groupIdjsf/groupId artifactIdjsf-api/artifactId version1.0/version /dependency i have changed this dependency like dependency idjsf/id jar jsf-api.jar/jar /dependency and i placed that jar(jsf-api.jar) file in repository.Its giving compilation errors unable to import the class form that api.How can i give dependy for that. I have sevaral jar files without versions. Presently i renamed that jar for to version 1.0. I dont want to rename that jar files.How can i solve this problem. Dion Gillard [EMAIL PROTECTED] wrote: See http://maven.apache.org/reference/project-descriptor.html#dependency_jar On Tue, 4 Jan 2005 22:33:06 -0800 (PST), rajas kumar wrote: Hai, I want to give dependency with out version. Is there any posibility to give like that.I am using local repository. If i remove the version its giving errors. ThanxRegards praveen. - Do you Yahoo!? The all-new My Yahoo! – What will yours do? -- http://www.multitask.com.au/people/dion/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more.
Goals
Hi all, Is there a goal that runs before dependencies are downloaded, that I could attach some Jelly code (pregoal/postgoal) to alter the maven.mode.online property value programmatically? In fact, extending the question further, are there 'internal' goals that always execute whenever you run any Maven plugin goal, and if so, what are they? Thanks in advance, Richard. 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
submitting a file to Perforce using Maven
Hi Everybody, I am in the process of writing a maven automated build script file. The SCM used is Perforce. I have succcessfully writen and tested the p4sync task and got the latest code in to my local machine. However, i am not sure as to how to do a submit. I have used the following script.. p4submit port=172.20.6.53:1666 client=someClient user=someUser change=${p4.change} / However, the file is not getting submitted :( ,,, the icon in perforce client does not change :( I am not sure as to what this change attribute means Can someone please help me. Appreciate if someone can tell me where i can find good documentation abt Maven - Perforce - (writing build scripts which uses perforce tasks) I just want to do a Open for edit and then Submit Please someone send me the steps i have to follow. Thanx in advance Mahen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Goals
build:start, but it is still after dependencies are resolved. You'll need to set the system property (perhaps using the MAVEN_OPTS env var). - Brett On Wed, 5 Jan 2005 09:11:15 -, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, Is there a goal that runs before dependencies are downloaded, that I could attach some Jelly code (pregoal/postgoal) to alter the maven.mode.online property value programmatically? In fact, extending the question further, are there 'internal' goals that always execute whenever you run any Maven plugin goal, and if so, what are they? Thanks in advance, Richard. 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. - 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: giving dependencies without version?
Paste us in your exact dependency and the exact location of the file. This does work. One of them must be out of synch with the other. On Wed, 5 Jan 2005 00:57:56 -0800 (PST), rajas kumar [EMAIL PROTECTED] wrote: i tried like this with out giving version its giving compilation errors. privious dependency is like this dependency groupIdjsf/groupId artifactIdjsf-api/artifactId version1.0/version /dependency i have changed this dependency like dependency idjsf/id jar jsf-api.jar/jar /dependency and i placed that jar(jsf-api.jar) file in repository.Its giving compilation errors unable to import the class form that api.How can i give dependy for that. I have sevaral jar files without versions. Presently i renamed that jar for to version 1.0. I dont want to rename that jar files.How can i solve this problem. -- http://www.multitask.com.au/people/dion/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven Ear plugin case sensitivity issue
Hi, I'm having a lot of trouble with the case sensitivity aspect of the plugin. The problem is that it doesn't check for case sensitivity! - but rather that the file paths match. This presents a problem when working on automounted filesystems, where the canonical and absolute filesystem names will almost never match, or if any symbolic link has been used anywhere in the filepath. e.g. # Reason for the warning: # # the dependency risk:es-core is located at: '/projects/buildmgr/.maven/repository/risk/jars/es-core-0.1.jar' # but was expected to be located at: '/export/projects/buildmgr/.maven/repository/risk/jars/es-core-0.1.jar' ## ## Obviously this is the same thing Can I respectfully suggest an alteration to this plugin to only check what it really means to check. (I'm not 100% sure what that actually is, to be honest). Best Regards, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Ear plugin case sensitivity issue
If you are using 1.6 of the ear plugin, you should upgrade to a later release. See http://maven.apache.org/reference/plugins/ear/announcements/announcement-1.6.1.txt and http://maven.apache.org/reference/plugins/ear/downloads.html I agree the check should only be on the project/types/file portion, not the whole path. On Wed, 5 Jan 2005 12:08:12 +, James Richardson [EMAIL PROTECTED] wrote: Hi, I'm having a lot of trouble with the case sensitivity aspect of the plugin. The problem is that it doesn't check for case sensitivity! - but rather that the file paths match. This presents a problem when working on automounted filesystems, where the canonical and absolute filesystem names will almost never match, or if any symbolic link has been used anywhere in the filepath. e.g. # Reason for the warning: # # the dependency risk:es-core is located at: '/projects/buildmgr/.maven/repository/risk/jars/es-core-0.1.jar' # but was expected to be located at: '/export/projects/buildmgr/.maven/repository/risk/jars/es-core-0.1.jar' ## ## Obviously this is the same thing Can I respectfully suggest an alteration to this plugin to only check what it really means to check. (I'm not 100% sure what that actually is, to be honest). Best Regards, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.multitask.com.au/people/dion/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven Ear plugin case sensitivity issue
1.6 will fail to build completely (caught me out for a while, as cruise was using 1.6, and I was using 1.5, which worked perfectly) 1.6.1 still outputs 20 lines of text for each component...but I don't understand quite what it is trying to achieve.. (Is that because case problems don't happen if you develop on linux?) Best Regards, James -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 05 January 2005 12:13 To: users@maven.apache.org Subject: Re: Maven Ear plugin case sensitivity issue If you are using 1.6 of the ear plugin, you should upgrade to a later release. See http://maven.apache.org/reference/plugins/ear/announcements/announcement- 1.6.1.txt and http://maven.apache.org/reference/plugins/ear/downloads.html I agree the check should only be on the project/types/file portion, not the whole path. On Wed, 5 Jan 2005 12:08:12 +, James Richardson [EMAIL PROTECTED] wrote: Hi, I'm having a lot of trouble with the case sensitivity aspect of the plugin. The problem is that it doesn't check for case sensitivity! - but rather that the file paths match. This presents a problem when working on automounted filesystems, where the canonical and absolute filesystem names will almost never match, or if any symbolic link has been used anywhere in the filepath. e.g. # Reason for the warning: # # the dependency risk:es-core is located at: '/projects/buildmgr/.maven/repository/risk/jars/es-core-0.1.jar' # but was expected to be located at: '/export/projects/buildmgr/.maven/repository/risk/jars/es-core-0.1.jar' ## ## Obviously this is the same thing Can I respectfully suggest an alteration to this plugin to only check what it really means to check. (I'm not 100% sure what that actually is, to be honest). Best Regards, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.multitask.com.au/people/dion/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JavaNCSS plugin issue (hangs)
I've noticed that the Java ncss plugin will hang indefinitely if there are no java source files to count. This can happen, if for example, your subproject contains only auto-generated code (e.g. castor). A src/java directory is required to convince maven that there is any thing at all to compile (thus the check for sourcesPresent is not sufficient). It would be a good thing to check that there were some java source files to count before launching the ncss plugin. I did try to make this change to the plugin, but I'm afraid I've never written any jelly scripts really. My attempt is included below, if its any use to anybody (it doesn't quite work). Best Regards, James goal name=javancss:do-xml description=Generate source code metrics with JavaNCSS mkdir dir=${maven.javancss.docs.dest}/ mkdir dir=${maven.javancss.build.dir}/ ant:echoScanning ${pom.build.sourceDirectory}/ant:echo ant:fileScanner var=ncssSourceFiles ant:fileset dir=${pom.build.sourceDirectory} ant:include name=**/*.java / /ant:fileset /ant:fileScanner j:if test=${ncssSourceFiles.hasFiles() == true} echoGenerating JavaNCSS report/echo java classname=javancss.Main fork=yes classpath fileset dir=${plugin.dir}/plugin-resources/jars include name=**/*.jar/ /fileset /classpath pathelement path=${plugin.getDependencyPath('xerces')}/ j:if test=${enablePackage.equalsIgnoreCase('true')} arg value=-package/ /j:if j:if test=${enableObject.equalsIgnoreCase('true')} arg value=-object/ /j:if j:if test=${enableFunctions.equalsIgnoreCase('true')} arg value=-function/ /j:if arg value=-recursive/ arg value=-xml/ arg value=-out/ arg value=${maven.javancss.build.dir}/javancss-raw-report.xml/ arg value=${pom.build.sourceDirectory}/ /java doc:jsl input=${maven.javancss.build.dir}/javancss-raw-report.xml output=javancss-report.xml stylesheet=${plugin.resources}/${maven.javancss.jsl} outputMode=xml prettyPrint=true / /j:if j:if test=${ncssSourceFiles.hasFiles() == false} ant:echoWarning: JavaNCSS can't be run when there are no source files/ant:echo /j:if /goal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JavaNCSS plugin issue (hangs)
Hi James, I will have a look at it - I need to cross-check since this is actually a JavaNCSS bug. There are a few workaround to skip the JavaNCSS report depending on your setup, the best is probably using maven.javancss.enable=false in the build.properties for your affected project. In this case no JavaNCSS report will registered and therefore generated. Originally this flag was used to skip reports for generated code but it might solve your problem nicely. Thanks Siegfried Goeschl James Richardson wrote: I've noticed that the Java ncss plugin will hang indefinitely if there are no java source files to count. This can happen, if for example, your subproject contains only auto-generated code (e.g. castor). A src/java directory is required to convince maven that there is any thing at all to compile (thus the check for sourcesPresent is not sufficient). It would be a good thing to check that there were some java source files to count before launching the ncss plugin. I did try to make this change to the plugin, but I'm afraid I've never written any jelly scripts really. My attempt is included below, if its any use to anybody (it doesn't quite work). Best Regards, James goal name=javancss:do-xml description=Generate source code metrics with JavaNCSS mkdir dir=${maven.javancss.docs.dest}/ mkdir dir=${maven.javancss.build.dir}/ ant:echoScanning ${pom.build.sourceDirectory}/ant:echo ant:fileScanner var=ncssSourceFiles ant:fileset dir=${pom.build.sourceDirectory} ant:include name=**/*.java / /ant:fileset /ant:fileScanner j:if test=${ncssSourceFiles.hasFiles() == true} echoGenerating JavaNCSS report/echo java classname=javancss.Main fork=yes classpath fileset dir=${plugin.dir}/plugin-resources/jars include name=**/*.jar/ /fileset /classpath pathelement path=${plugin.getDependencyPath('xerces')}/ j:if test=${enablePackage.equalsIgnoreCase('true')} arg value=-package/ /j:if j:if test=${enableObject.equalsIgnoreCase('true')} arg value=-object/ /j:if j:if test=${enableFunctions.equalsIgnoreCase('true')} arg value=-function/ /j:if arg value=-recursive/ arg value=-xml/ arg value=-out/ arg value=${maven.javancss.build.dir}/javancss-raw-report.xml/ arg value=${pom.build.sourceDirectory}/ /java doc:jsl input=${maven.javancss.build.dir}/javancss-raw-report.xml output=javancss-report.xml stylesheet=${plugin.resources}/${maven.javancss.jsl} outputMode=xml prettyPrint=true / /j:if j:if test=${ncssSourceFiles.hasFiles() == false} ant:echoWarning: JavaNCSS can't be run when there are no source files/ant:echo /j:if /goal - 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 Ear plugin case sensitivity issue
Hi James, On Wed, 5 Jan 2005 12:18:41 +, James Richardson [EMAIL PROTECTED] wrote: 1.6.1 still outputs 20 lines of text for each component...but I don't understand quite what it is trying to achieve.. (Is that because case problems don't happen if you develop on linux?) It tries to solve a particular problem, as reported on MPEAR-9 (http://jira.codehaus.org/browse/MPEAR-9). Unfortunately, the fix seems to be causing more problems than it solves. So, there is currently another issue (http://jira.codehaus.org/browse/MPEAR-35) that I'd like to use to provide a final solution for the problem (I haven't done it yet because I was off-line for almost 3 weeks). We have 2 options: 1.Undo the checking 2.Add a property that, if set, would cause the plugin to ignore the warning Option 2 would solve the problem, at the cost of requiring the users to set the property after they got the warning for the first time (the warning would explain that this warning might be normal and hence they should set the property). But if the original error seldom happens, than we better implement option 1. I'm more biased to implement option 1, as I think the original error is pretty rare. Any suggestions/thoughts? -- Felipe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Ear plugin case sensitivity issue
How about: 3) ony check the artifact/types/artifact-version.type part of the overall file name? On Wed, 5 Jan 2005 11:44:38 -0200, Felipe Leme [EMAIL PROTECTED] wrote: Hi James, On Wed, 5 Jan 2005 12:18:41 +, James Richardson [EMAIL PROTECTED] wrote: 1.6.1 still outputs 20 lines of text for each component...but I don't understand quite what it is trying to achieve.. (Is that because case problems don't happen if you develop on linux?) It tries to solve a particular problem, as reported on MPEAR-9 (http://jira.codehaus.org/browse/MPEAR-9). Unfortunately, the fix seems to be causing more problems than it solves. So, there is currently another issue (http://jira.codehaus.org/browse/MPEAR-35) that I'd like to use to provide a final solution for the problem (I haven't done it yet because I was off-line for almost 3 weeks). We have 2 options: 1.Undo the checking 2.Add a property that, if set, would cause the plugin to ignore the warning Option 2 would solve the problem, at the cost of requiring the users to set the property after they got the warning for the first time (the warning would explain that this warning might be normal and hence they should set the property). But if the original error seldom happens, than we better implement option 1. I'm more biased to implement option 1, as I think the original error is pretty rare. Any suggestions/thoughts? -- Felipe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.multitask.com.au/people/dion/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Was5 remote deployments
The Maven/build side is building an ear, and executing was5:run-script. I need to know if I need a local WebSphere install in order to execute was5:run-script, or if there is a way to attain this goal on a remote server. When I tried to run was5:run-script with a different host than the maven host, it looked locally for a was_home and bombed out when it couldn't find one. Should I : 1. Run Maven on my DeploymentManager box in order for it to execute scripts using the was5:run-script goal against a cluster? 2. Run Maven on a box that has a whole or partial WebSphere install so I can use wsadmin to connect to my Deployment Manager, yada,yada,yada? 3. Run Maven on it's own server and somehow execute was5:run-script against the DeploymentManager server? If so, how do I get the was5 plugin to look for was_home on the DeploymentManager, not the maven box? Louis M. Burroughs III, OCTO Dion Gillard [EMAIL PROTECTED] 01/04/2005 10:04 PM Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: bcc: Subject:Re: Was5 remote deployments On Tue, 4 Jan 2005 14:31:22 -0500, Louis Burroughs [EMAIL PROTECTED] wrote: I am trying to set up a build process with Maven running on one box(build box) talking to a Websphere DeploymentManager box that runs a jacl script to deploy my application to a cluster. Do I need to install a full blown instance of Websphere on my build box or can I pick and choose certain libraries to get wsadmin running? So the maven/build side is simply running wsadmin? If so, it's a websphere question rather than a Maven one. From what I know, installing an application remotely is not correctly supported by was5.1 using wsadmin. -- http://www.multitask.com.au/people/dion/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Classpath for ant:style or xml:transform tags
Hi, I'm trying to use an extension function in an XSLT stylesheet however in order to do so, I need to set the classpath on the transformer to include the jar containing this function. After source diving I finally managed to work out that ${pom.getDependencyPath('groupid:artifactid')} would give me the path to the jar, but I can't seem to get this into the classpath style task. I'd be happy to use the xml:transform task but I don't even have a clue how to change the classpath for that either. The relevant section of the maven.xml looks like: ant:style out=${xslOutput} in=${xmlfile} style=${xslFile} ant:classpath ant:pathelement location=${pom.getDependencyPath('groupid:artifactid')}/ /ant:classpath ant:param name=package expression=${basePackage.concat(xmiShortName)}/ /ant:style I've tried setting the classpath attribute on the style tag and other similar tricks. I don't understand how to use maven:addPath, and can't seem to find any useful docs explaining how to use it. Any help would be appreciated. Pointers to useful docs would also be appreciated. andy -- Andrew Thornton [EMAIL PROTECTED] / [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: weblogic tools for maven
How do we get these issues resolved? Should we make up a list of capabilities we want and determine which project serves them best. I am not sure where the workshop stuff would reside. Maybe a separate project for the workshop plugin and use Cargo and the Weblogic plugin for the rest. I think the functionality of Cargo is extremely useful as are the Weblogic plugin and the enhancements we have made. Lets try to determine a direction this week so we can begin consolidating or requesting enhancements to the correct projects. Scott Damon Ryan Developer (720) 514-5389 [EMAIL PROTECTED] -Original Message- From: Jason van Zyl [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 1:02 AM To: Maven Users List Subject: RE: weblogic tools for maven On Tue, 2005-01-04 at 22:37, Vincent Massol wrote: I looked at the weblogic plugin at SF and it uses CLI execution which is better than using Ant tasks. Can the Weblogic tools be loaded from the classpath and be used in-process? Would Cargo (http://cargo.codehaus.org) help? (It is probably not good enough for what you wish to do but as it is probably also our direction we might work together). Definitely for the server manipulation and deployment, but I also want to be able to generate WL domains and integrate the whole thing, including maven itself into Workshop. This is why I suggested a separate project. [snip] -Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl [EMAIL PROTECTED] http://maven.apache.org happiness is like a butterfly: the more you chase it, the more it will elude you, but if you turn your attention to other things, it will come and sit softly on your shoulder ... -- Thoreau - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven Ear plugin case sensitivity issue
Seems to me like the problem will only affect windows development, and then only if the user is lazy with capitalisation. Requiring all users to set a flag to ignore the spurious error that this check generates seems counter-intuitive. In addition, the warning is completely over the top. At most it should be one line. My suggestion would be to: * check only that the artefact name (not including the path) matches what is expected, and then only if a flag is set. * raise a bug with the repository handling code to make sure that dependencies are case sensitive, as Java is case sensitive, even if windows is not. * make an occurrence of this condition cause a build failure when enabled. Cheers James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hsql DB startup
Hello. I have been doing lots of reading about how great it is to use an in-process DB like Hypersonic for testing. Thing is, there are not many examples of how to do this. What I want to do is start an in-memory DB (not a file DB because the test is small) when I run my tests, and then run tests. So the first thing that has to happen when I run maven test is that the DB has to be created. Then I have to execute CREATE statements for the necessary tables. Then I can proceed with my tests. Has anyone done this? Should I use a file-based DB instead of in memory? How do I get the maven test suite to do this one thing first, and only once? Any help is greatly appreciated. Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Variables in Maven
I don't have a terribly good grasp of Ant and now I'm converting a lot of ant scripts into Maven. Is there a definitive guide to the differences between property, attribute, param, j:set var, the differences between them and the differences between Maven and Ant? Is there one definitively better one to use for Maven? How about testing for true, false and 'is set'? And finally, how about reading from a .properties file with a variable=value pair on each line? -Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Variables in Maven
Two additional questions: 1) Within a goal, I want to run something (in this case post-process) by default, unless the user doesn't want to. I was thinking it could check a variable called skip_post_process. If it's false or not set it rus the post-processor. If it's true, it doesn't. Any recommendations as to how this property should be set and checked - (the jelly if, ant property checking or something else)? (have a different entry goal which sets it to true? have it be an -D variable?) 2) any better maven versions of? condition property=build.os.type value=unix os family=unix / /condition condition property=build.os.type value=windows os family=windows / /condition AND tstamp format property=build.timestamp pattern=-MM-dd HH:mm:ss/ /tstamp Randy Xu wrote: I don't have a terribly good grasp of Ant and now I'm converting a lot of ant scripts into Maven. Is there a definitive guide to the differences between property, attribute, param, j:set var, the differences between them and the differences between Maven and Ant? Is there one definitively better one to use for Maven? How about testing for true, false and 'is set'? And finally, how about reading from a .properties file with a variable=value pair on each line? -Randy - 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: Can I do this with maven?
Hi Brett, Have you read the articles about J2EE linked from the Maven website? Here is a newer unpublished version of that document: http://www.apache.org/~brett/site-2/reference/articles.html I read some of the articles and I think I have some basic knowledge now. But there are still questions. What I want is the following: * I want the solution (the point where all peaces are clued together for a customer) to know about its modules, but the modules can't know about there solution since there are many solutions which use a module (so I can't use extend in the module pom) * If a war is created for a solution the build should take care that the newest version of a module/branch of module is used (or a specific version if configured). * In the build process a solution defines which resources are taken from a module and which are provided by the solution itself. This is one way to individualize a solution (for example using different xsl stylesheet to render frontend GUI) The dependencies in the pom are only used to get something from the repository, right? so I have to use multiproject or reactor itself. But these are pure documented. But I can show how I would setup the overall build process maybe you can give some hints. 1.) the solution maven.xml has to handle the checkout of all needed modules in the right version/branch. can I use the version control plugin to do that? Any examples? Is it easy to provide a list of cvs modules which should be checked out? 2.) now all the stuff is there and I have to call some goals on the modules to compile, maybe test and whatever a module needs to be build. (this is defined in the pom/maven.xml of the module) Can you hint me to examples? 3.) After that I have to collect the results and build the final solution war. Well, maybe I could use the artifact of every module, but a module delivers different stuff beneath java classes (xslt, xml, css, images) which is sometimes overwritten by the solution. Do you know a project which needs a similar build process? My knowledge of ant is (so I think) good enough to implement this in the old fashion ant way (maybe whith the help of antlion or something else). But I also would like to use the stuff provided by maven since I think it could help to make the build system more reusable (maybe as plugin). Also I think jelly is more powerful then ant Regards. -- Alexander Rupsch www.dreinhalb.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hsql DB startup
At 11:35 AM -0500 1/5/05, Charles N. Harvey III wrote: Hello. I have been doing lots of reading about how great it is to use an in-process DB like Hypersonic for testing. Thing is, there are not many examples of how to do this. What I want to do is start an in-memory DB (not a file DB because the test is small) when I run my tests, and then run tests. So the first thing that has to happen when I run maven test is that the DB has to be created. Then I have to execute CREATE statements for the necessary tables. Then I can proceed with my tests. Has anyone done this? Should I use a file-based DB instead of in memory? How do I get the maven test suite to do this one thing first, and only once? You can put a preGoal or postGoal element in maven.xml alongside your project.xml. preGoal name=test:test ... Jelly or Ant magic here ... /preGoal It can take some monkeying around to figure out the goal that happens at the right point. I don't have any experience with in-memory DBs, so I'm not entirely sure how you'd make it available to the tests even after doing this. I suppose the JUnit-ish way would be to just do it in the setup method of your tests, but presumably you're trying to minimize overhead? Although, how do you ensure the DB is in a consistent state unless you do it for each test run, which means doing it in setup() ? Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Narrow minds are weapons made for mass destruction -The Ex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hsql DB startup
I set up the HSQL database in the JUnit TestSetup. This drops and re-creates the database for each test class that need the database, but the overhead is quite low, only a few test classes need the database running, and it ensures left over database artifacts will not have any side-effects on future tests. Only starting the database and creating the tables once for all tests can be easily accomplished by keeping around the static connection and have all test classes get that connection instead of doing the setup themselves. The code looks something like this: public class JDBCTest extends TestCase { private static Connection conn; public static Test suite() { TestSuite suite = new TestSuite(JDBCTest.class); TestSetup wrapper = new TestSetup(suite) { protected void setUp() throws Exception { Class.forName(org.hsqldb.jdbcDriver); conn = DriverManager.getConnection(jdbc:hsqldb:., sa, ); // LOAD SCHEMA HERE } protected void tearDown() throws Exception { conn.close(); } }; return wrapper; } public void testSomething() { } } I use a file-based db by replacing jdbc:hsqldb:. with something like jdbc:hsqldb:tmpdb only if I need to view the actual tables or data in the database. -jake On Wednesday 05 January 2005 11:35 am, Charles N. Harvey III wrote: Hello. I have been doing lots of reading about how great it is to use an in-process DB like Hypersonic for testing. Thing is, there are not many examples of how to do this. What I want to do is start an in-memory DB (not a file DB because the test is small) when I run my tests, and then run tests. So the first thing that has to happen when I run maven test is that the DB has to be created. Then I have to execute CREATE statements for the necessary tables. Then I can proceed with my tests. Has anyone done this? Should I use a file-based DB instead of in memory? How do I get the maven test suite to do this one thing first, and only once? Any help is greatly appreciated. Charlie - 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: hsql DB startup
This is exactly what I was looking for. I'm still playing with it to get it to work out correctly, but it is in the right direction, thanks. If I write a TestSuite (AllTests.java), will it run first? That's one thing that I was never sure of. Do the tests all run individually or does the Suite get executed and then it runs the tests? Just curious, I just didn't know how that part of the test framework of maven worked. Thanks again. Charlie Jake Ewerdt said the following on 1/5/2005 3:09 PM: I set up the HSQL database in the JUnit TestSetup. This drops and re-creates the database for each test class that need the database, but the overhead is quite low, only a few test classes need the database running, and it ensures left over database artifacts will not have any side-effects on future tests. Only starting the database and creating the tables once for all tests can be easily accomplished by keeping around the static connection and have all test classes get that connection instead of doing the setup themselves. The code looks something like this: public class JDBCTest extends TestCase { private static Connection conn; public static Test suite() { TestSuite suite = new TestSuite(JDBCTest.class); TestSetup wrapper = new TestSetup(suite) { protected void setUp() throws Exception { Class.forName(org.hsqldb.jdbcDriver); conn = DriverManager.getConnection(jdbc:hsqldb:., sa, ); // LOAD SCHEMA HERE } protected void tearDown() throws Exception { conn.close(); } }; return wrapper; } public void testSomething() { } } I use a file-based db by replacing jdbc:hsqldb:. with something like jdbc:hsqldb:tmpdb only if I need to view the actual tables or data in the database. -jake On Wednesday 05 January 2005 11:35 am, Charles N. Harvey III wrote: Hello. I have been doing lots of reading about how great it is to use an in-process DB like Hypersonic for testing. Thing is, there are not many examples of how to do this. What I want to do is start an in-memory DB (not a file DB because the test is small) when I run my tests, and then run tests. So the first thing that has to happen when I run maven test is that the DB has to be created. Then I have to execute CREATE statements for the necessary tables. Then I can proceed with my tests. Has anyone done this? Should I use a file-based DB instead of in memory? How do I get the maven test suite to do this one thing first, and only once? Any help is greatly appreciated. Charlie - 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 uber-dist Plugin 1.0.10 released on Sourceforge
The maven team is pleased to announce the Maven Uberdist plugin 1.0.10 release! Although it is now version 1.0.10, this is the first public release of the plugin. More info can be found at: http://sourceforge.net/projects/uber-dist/ This plugin provides a mechanism to build what we may call a complex distributions of both maven and non-maven projects or components. Automatic installation is not possible since the plugin is not on any maven public repositories. For a manual installation, you can download the plugin here: http://prdownloads.sourceforge.net/uber-dist/maven-uberdist-plugin-1.0.10.jar?download Have fun! -The maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hsql DB startup
This all has to do with JUnit, nothing maven specific. If you want to write a TestSuite that runs all of the tests you specify, you can use a solution like http://junit.sourceforge.net/doc/faq/faq.htm#organize_3. I'm almost positive that maven will not pick up a test class unless the name of the class ends in Test. However, you can specify that maven runs only the TestSuite like maven -Dtestcase=AllTests test:single. Here's an example of having a TestSetup run only once for all unittests using a different method. // This is not a test class public class DbSetup extends TestSetup { private static Connection _conn; public DbSetup(Test suite) { super(suite); } public void setUp() throws Exception { if (_conn == null) { // will only start database once for all tests Class.forName(org.hsqldb.jdbcDriver); _conn = DriverManager.getConnection(jdbc:hsqldb:., sa, ); // LOAD SCHEMA HERE } } public void tearDown() { // do nothing, db will shut down when JVM exists or _conn is closed } public Connection getConnection() { return _conn; } } // This is a test class public class JDBCTest extends TestCase { private static DbSetup _db; public static Test suite() { TestSuite suite = new TestSuite(JDBCTest.class); _db = new DbSetup(suite); return _db; } public void testSomething() { Connection conn = _db.getConnection(); } } If you go with that solution -jake On Wednesday 05 January 2005 04:01 pm, Charles N. Harvey III wrote: This is exactly what I was looking for. I'm still playing with it to get it to work out correctly, but it is in the right direction, thanks. If I write a TestSuite (AllTests.java), will it run first? That's one thing that I was never sure of. Do the tests all run individually or does the Suite get executed and then it runs the tests? Just curious, I just didn't know how that part of the test framework of maven worked. Thanks again. Charlie Jake Ewerdt said the following on 1/5/2005 3:09 PM: I set up the HSQL database in the JUnit TestSetup. This drops and re-creates the database for each test class that need the database, but the overhead is quite low, only a few test classes need the database running, and it ensures left over database artifacts will not have any side-effects on future tests. Only starting the database and creating the tables once for all tests can be easily accomplished by keeping around the static connection and have all test classes get that connection instead of doing the setup themselves. The code looks something like this: public class JDBCTest extends TestCase { private static Connection conn; public static Test suite() { TestSuite suite = new TestSuite(JDBCTest.class); TestSetup wrapper = new TestSetup(suite) { protected void setUp() throws Exception { Class.forName(org.hsqldb.jdbcDriver); conn = DriverManager.getConnection(jdbc:hsqldb:., sa, ); // LOAD SCHEMA HERE } protected void tearDown() throws Exception { conn.close(); } }; return wrapper; } public void testSomething() { } } I use a file-based db by replacing jdbc:hsqldb:. with something like jdbc:hsqldb:tmpdb only if I need to view the actual tables or data in the database. -jake On Wednesday 05 January 2005 11:35 am, Charles N. Harvey III wrote: Hello. I have been doing lots of reading about how great it is to use an in-process DB like Hypersonic for testing. Thing is, there are not many examples of how to do this. What I want to do is start an in-memory DB (not a file DB because the test is small) when I run my tests, and then run tests. So the first thing that has to happen when I run maven test is that the DB has to be created. Then I have to execute CREATE statements for the necessary tables. Then I can proceed with my tests. Has anyone done this? Should I use a file-based DB instead of in memory? How do I get the maven test suite to do this one thing first, and only once? Any help is greatly appreciated. Charlie - 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]
hsql DB startup
But this means your live system also has to run using HSQL otherwise this test does not make sense right? (Because of the differences in the SQL dialects, for example.) I set up the HSQL database in the JUnit TestSetup. This drops and re-creates the database for each test class that need the database, but the overhead is quite low, only a few test classes need the database running, and it ensures left over database artifacts will not have any side-effects on future tests. Only starting the database and creating the tables once for all tests can be easily accomplished by keeping around the static connection and have all test classes get that connection instead of doing the setup themselves. The code looks something like this: public class JDBCTest extends TestCase { private static Connection conn; public static Test suite() { TestSuite suite = new TestSuite(JDBCTest.class); TestSetup wrapper = new TestSetup(suite) { protected void setUp() throws Exception { Class.forName(org.hsqldb.jdbcDriver); conn = DriverManager.getConnection(jdbc:hsqldb:., sa, ); // LOAD SCHEMA HERE } protected void tearDown() throws Exception { conn.close(); } }; return wrapper; } public void testSomething() { } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Maven uber-dist Plugin 1.0.10 released on Sourceforge
Can you please fix your announcements so it isn't from the maven team? Thanks. If you need better infrastructure such as a maven repository to deploy to that is sync'd to ibiblio, it might be worth moving this to maven-plugins.sf.net, and you could participate in the other plugins there too. Regards, Brett On Wed, 05 Jan 2005 16:21:40 -0500, Eric Giguere [EMAIL PROTECTED] wrote: The maven team is pleased to announce the Maven Uberdist plugin 1.0.10 release! Although it is now version 1.0.10, this is the first public release of the plugin. More info can be found at: http://sourceforge.net/projects/uber-dist/ This plugin provides a mechanism to build what we may call a complex distributions of both maven and non-maven projects or components. Automatic installation is not possible since the plugin is not on any maven public repositories. For a manual installation, you can download the plugin here: http://prdownloads.sourceforge.net/uber-dist/maven-uberdist-plugin-1.0.10.jar?download Have fun! -The maven 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]
Re: hsql DB startup
This is why and how we use HSQL for testing. - It is much faster for developers who are in the habit of continuous testing to use HSQL instead of (for example) Oracle. - We don't have enough Oracle resources (connections, accounts, cpu) to support all the developers using it for continuous testing. - When running inside a debugger (like Eclipse or IntelliJ's), you can step down all the way into the database to see exactly what the sql is doing. - HSQL is only used for developer testing. Cruisecontrol and Maven and QA and everything else use both Oracle and SqlServer. - The driver, uri, username, and password are all in configuration files, so the same TestSetup is used for all databases. - The differences in the databases can be solved the same way as you would solve compatibility issues between Oracle and SqlServer. So developing against HSQL and going live against Oracle could have some issues, all problems should be found and fixed by always running against Oracle with infrastructure tools and in QA. On Wednesday 05 January 2005 04:54 pm, Janos Mucsi wrote: But this means your live system also has to run using HSQL otherwise this test does not make sense right? (Because of the differences in the SQL dialects, for example.) I set up the HSQL database in the JUnit TestSetup. This drops and re-creates the database for each test class that need the database, but the overhead is quite low, only a few test classes need the database running, and it ensures left over database artifacts will not have any side-effects on future tests. Only starting the database and creating the tables once for all tests can be easily accomplished by keeping around the static connection and have all test classes get that connection instead of doing the setup themselves. The code looks something like this: public class JDBCTest extends TestCase { private static Connection conn; public static Test suite() { TestSuite suite = new TestSuite(JDBCTest.class); TestSetup wrapper = new TestSetup(suite) { protected void setUp() throws Exception { Class.forName(org.hsqldb.jdbcDriver); conn = DriverManager.getConnection(jdbc:hsqldb:., sa, ); // LOAD SCHEMA HERE } protected void tearDown() throws Exception { conn.close(); } }; return wrapper; } public void testSomething() { } } - 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: Classpath for ant:style or xml:transform tags
what JAR are you trying to add? Is it xalan itself? There is a problem under some JDKs because xalan needs to be endorsed. Details are in the FAQ. Cheers, Brett On Wed, 05 Jan 2005 14:38:33 +, Andrew Thornton [EMAIL PROTECTED] wrote: Hi, I'm trying to use an extension function in an XSLT stylesheet however in order to do so, I need to set the classpath on the transformer to include the jar containing this function. After source diving I finally managed to work out that ${pom.getDependencyPath('groupid:artifactid')} would give me the path to the jar, but I can't seem to get this into the classpath style task. I'd be happy to use the xml:transform task but I don't even have a clue how to change the classpath for that either. The relevant section of the maven.xml looks like: ant:style out=${xslOutput} in=${xmlfile} style=${xslFile} ant:classpath ant:pathelement location=${pom.getDependencyPath('groupid:artifactid')}/ /ant:classpath ant:param name=package expression=${basePackage.concat(xmiShortName)}/ /ant:style I've tried setting the classpath attribute on the style tag and other similar tricks. I don't understand how to use maven:addPath, and can't seem to find any useful docs explaining how to use it. Any help would be appreciated. Pointers to useful docs would also be appreciated. andy -- Andrew Thornton [EMAIL PROTECTED] / [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]
referencing goal name/maven.dependency.classpath
Three questions. 1) Anyone know how to reference the goal's name within a goal? I'm creating error messages now and it'd be a lot cleaner if I can just output: fail message=[${goal.name}] crap crap crap / 2) If 1 is answerable, is this generalizable to other goal/project variables too? 3) maven.dependency.classpath - I see that this includes ALL dependencies, including maven plugins. Is there a way to distinguish from the ones that _I_ specify? I'm thinking of adding a property in each dependency and then checking for this property. Is there an easier way? -Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: referencing goal name/maven.dependency.classpath
1 2 - no. werkz doesn't expose any of its information to jelly. 3 - ${pom.artifacts}. The war plugin does exactly what you want, so its worth looking in its source. - Brett On Wed, 05 Jan 2005 18:59:50 -0500, Randy Xu [EMAIL PROTECTED] wrote: Three questions. 1) Anyone know how to reference the goal's name within a goal? I'm creating error messages now and it'd be a lot cleaner if I can just output: fail message=[${goal.name}] crap crap crap / 2) If 1 is answerable, is this generalizable to other goal/project variables too? 3) maven.dependency.classpath - I see that this includes ALL dependencies, including maven plugins. Is there a way to distinguish from the ones that _I_ specify? I'm thinking of adding a property in each dependency and then checking for this property. Is there an easier way? -Randy - 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: referencing goal name/maven.dependency.classpath
Brett Porter wrote: 1 2 - no. werkz doesn't expose any of its information to jelly. 3 - ${pom.artifacts}. The war plugin does exactly what you want, so its worth looking in its source. yep thanks! just to avoid confusion - I was wrong about #3. It doesn't include ALL dependencies. It's just because I tried this: copy todir=${user.jars.dir} flatten=true fileset dir=${maven.repo.local} path refid=maven.dependency.classpath / /fileset /copy I wanted to copy all the dependencies to a single directory. we think alike - as soon as I realized how silly I was I looked up the war plugin and did: j:forEach var=lib items=${pom.artifacts} j:set var=dep value=${lib.dependency}/ j:if test=${dep.type =='jar'} ant:copy todir=${user.jars.dir} file=${lib.path}/ /j:if /j:forEach -Randy - Brett On Wed, 05 Jan 2005 18:59:50 -0500, Randy Xu [EMAIL PROTECTED] wrote: Three questions. 1) Anyone know how to reference the goal's name within a goal? I'm creating error messages now and it'd be a lot cleaner if I can just output: fail message=[${goal.name}] crap crap crap / 2) If 1 is answerable, is this generalizable to other goal/project variables too? 3) maven.dependency.classpath - I see that this includes ALL dependencies, including maven plugins. Is there a way to distinguish from the ones that _I_ specify? I'm thinking of adding a property in each dependency and then checking for this property. Is there an easier way? -Randy - 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]
MPNATIVE-10 fix, where is it?
Jira shows it is fixed but i dont see it in CVS I used the instruction on maven's plugin page to download the code Any suggestion? -Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MPNATIVE-10 fix, where is it?
The site needs to be republished. It has moved to subversion. svn co http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk Cheers, Brett On Wed, 5 Jan 2005 16:40:45 -0800, dan tran [EMAIL PROTECTED] wrote: Jira shows it is fixed but i dont see it in CVS I used the instruction on maven's plugin page to download the code Any suggestion? -Dan - 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: Variables in Maven
Try reading dIon Gillard's blog for some Jelly tips. On Wed, 05 Jan 2005 11:41:59 -0500, Randy Xu [EMAIL PROTECTED] wrote: I don't have a terribly good grasp of Ant and now I'm converting a lot of ant scripts into Maven. Is there a definitive guide to the differences between property, attribute, param, j:set var, I think attribute and param belong inside other elements. j:set is what should be used in maven, though ant:property will be passed through in a similar way if necessary. How about testing for true, false and 'is set'? ${foo == 'true'} or ${foo} ${foo == 'false'} or ${!foo} ${foo != null} (note that empty is still set in this case) And finally, how about reading from a .properties file with a variable=value pair on each line? If you read through the tag libraries on the Jelly site (particularly core and util) you should be able to find what you need. - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Goal to compile only certain classes
Short of circumventing or overwriting java:compile, is there a way to compile only certain classes in a project? I'd like the default behavior to be compile everything in /src/java but I want to define a target to compile everything except one directory. I know how to addPath but is there any way to have a goal that removes a directory or a patternset from the build path and then runs java:compile? -Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNLP Plugin: use JAR files that are signed by different certificates?
I am trying to use the JNLP extensions (jnlp plugin 1.4.1, Maven 1.01). I have two issues, if I specify a jar is an extenision (using properties extension tags from the jnlp home page example). The dependancies I specify as extensions do not get copied to the jnlp.dir. Is this right? On Thu, 26 Aug 2004 06:58:18 +, Martin Skopp [EMAIL PROTECTED] wrote: Hi all, just like to keep everybody informed for the case someone else needs the JNLP extension mechanism.. Following Emmanuels comment on http://jira.codehaus.org/browse/MPJNLP-2 I integrated Masas patch into CVS HEAD of maven-plugins/jnlp and added some doc. Hope this is fine for commiting now. Emmanuel, the issue is unassigned yet - would you mind to take it and apply if patch is appropriate? Thanks, Martin On Thu, 2004-08-19 at 00:12, Masahiro Takatsuka wrote: Hi Martin, I haven't touched it for a while. I'll get back to it when I get less busy In the mean time, could you please email me what's not working with the current version? Cheers, Masa Masahiro Takatsuka, PhD Director: ViSLAB The University of Sydney Tel. +61 2 9351 5903, Fax. +61 2 9351 5955 -Original Message- From: Martin Skopp [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 2:03 AM To: Maven Users List Cc: [EMAIL PROTECTED] Subject: Re: JNLP Plugin: use JAR files that are signed bydifferentcertificates? Thanks for the link, Emmanuel. Masa - do you have a fresh diff to contribute to me and/or JIRA? Thanks everybody, Martin On Tue, 2004-08-17 at 14:18, Emmanuel Venisse wrote: It's an open issue. If you want to reimplement it. http://jira.codehaus.org/browse/MPJNLP-2 Emmanuel - Original Message - From: Martin Skopp [EMAIL PROTECTED] To: Maven Users users@maven.apache.org Sent: Tuesday, August 17, 2004 4:03 PM Subject: JNLP Plugin: use JAR files that are signed by differentcertificates? Hi, does the JNLP plugin support using JAR files that are signed by different certificates? Sun recommends to use the extension tag in the jnlp file - is that supported somehow by maven? jnlp ... jar href=myjar1.jar/ extension name=Java Help href=help.jnlp/ ... jnlp See http://java.sun.com/products/javawebstart/faq.html#72 for details Thanks for enlightment, -- Martin Skopp -- Martin Skopp Riege Software International GmbH Support: mailto:[EMAIL PROTECTED], Information: http://www.riege.com This email is intended to be viewed with a nonproportional font. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hsql DB startup
This is not a strictly Maven question. Hi Jake This sounds very interesting. I have two questions: 1. Is testing against an in-process database a better idea than using mock-objects to fake Connection, ResultSet, etc? (I need to test some hand-coded JDBC DAOs which I will redevelop later with Hibernate, but I can not throw them away just yet.) 2. Can you please tell me an example for dealing with SQL dialect differences. (I guess if you use Hibernate, this is taken care of with the dialect setting.) Janos This is why and how we use HSQL for testing. - It is much faster for developers who are in the habit of continuous testing to use HSQL instead of (for example) Oracle. - We don't have enough Oracle resources (connections, accounts, cpu) to support all the developers using it for continuous testing. - When running inside a debugger (like Eclipse or IntelliJ's), you can step down all the way into the database to see exactly what the sql is doing. - HSQL is only used for developer testing. Cruisecontrol and Maven and QA and everything else use both Oracle and SqlServer. - The driver, uri, username, and password are all in configuration files, so the same TestSetup is used for all databases. - The differences in the databases can be solved the same way as you would solve compatibility issues between Oracle and SqlServer. So developing against HSQL and going live against Oracle could have some issues, all problems should be found and fixed by always running against Oracle with infrastructure tools and in QA. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]