Re: Adding a GroovyTestCase to a maven project
On 18/11/2008, at 10:30 AM, Ed wrote: Thanks. That did the trick when executing from the command line. Now I need to figure out how to execute the unit tests from within eclipse. The groovy unit tests are in the src/main/groovy package path and the groovy test class files are in the correct target/test-classes/ classpath, but when I try to run as JUnit test I get: Groovy Runner Error Error running GroovyNetworkFilterTest.groovy failed to find a class file, ensure the Groovy output folder is on the classpath. My eclipse .classpath looks like this: ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=src path=src/main/java/ classpathentry excluding=**/*.java kind=src path=src/main/resources/ * classpathentry kind=src output=target/test-classes path=src/test/java/ classpathentry kind=src output=target/test-classes path=src/test/groovy/* classpathentry excluding=**/*.java kind=src output=target/test-classes path=src/test/resources/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ classpathentry kind=var path=M2_REPO/com/comcast/comcast-common-util/1.5.2/comcast-common- util-1.5.2.jar/ classpathentry kind=var path=M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar/ classpathentry kind=var path=M2_REPO/jpcap/jpcap/0.7/jpcap-0.7.jar/ classpathentry kind=var path=M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar/ classpathentry exported=true kind=con path=GROOVY_SUPPORT/ classpathentry kind=output path=target/classes/ /classpath ...Any ideas? None here sorry. -- LD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding a GroovyTestCase to a maven project
On 17/11/2008, at 1:35 PM, Ed wrote: I'd like to use Groovy for unit testing a maven project, but I'm not sure how to configure the project so the groovy file containing the GroovyTestCase will compile and execute. I added the groovy-all-1.5.6.jar as a dependency in the top level pom. dependency groupIdorg.codehaus.groovy/groupId artifactIdgroovy-all/artifactId version1.5.6/version scopetest/scope /dependency I also added a GroovyTestCase file to src/test/java, and of course, it did not execute. I added the file to a src/test/groovy folder and it still did not execute. Is the only way to get this to work by using the GMaven plugin? It would definitely be easier. -- LD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding a GroovyTestCase to a maven project
On 17/11/2008, at 2:54 PM, Ed wrote: What's the recipe? Seems like there's alot to do. All I had to do was drop the following in build - plugins… plugin groupIdorg.codehaus.groovy.maven/groupId artifactIdgmaven-plugin/artifactId version1.0-rc-3/version extensionstrue/extensions executions execution goals goalgenerateStubs/goal goalcompile/goal goalgenerateTestStubs/goal goaltestCompile/goal /goals /execution /executions /plugin You can probably drop the ‘generateStubs’ and ‘compile’ executions if you only want it for testing. -- LD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Any plugins for Apache DS (or other ldap server?)
On 02/09/2008, at 12:09 PM, Mark Derricutt wrote: I´m looking to hook up some LDAP based integration tests to my app and was wondering if there were any maven plugins for Apache DS similar to the jetty plugin for webservers. Just seeing if anyones done anything like this before I head down the path of doing it myself. I test against an embedded ApacheDS instance in my project. I am writing an LDAP library for Groovy so this was a _huge_ deal for me. You can see my pom @ http://svn.gldapo.codehaus.org/browse/gldapo/ tags/gldapo-0.7/pom.xml?r=293 I posted some brief notes @ http://ldaley.com/2008/06/21/a-case-for- maven-making-gldapo-testing-easier/ on how I went about this. Feel free to ask me questions directly if you want. -- LD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Release fails during SVN commit
If your on Mac OS 10.5, check out http://blogs.exist.com/bporter/2008/02/25/working-around-non-interactive-problems-in-leopards-subversion/ On 21/08/2008, at 6:04 PM, Andreas Heinecke wrote: Hi there, I encountered a strange problem. Since a few weeks I'm not able to perform a release with Maven. The release process fails during executing the release:prepare goal at the same position, always. The point at which the release fails is when Maven tries to commit the release POM's to SVN. This commit fails with the error message that the file which is about to be committed already exists at the position in SVN. But it isn't there. Strange, uh? I actually checked the tagbase configuration of the plugin and tried to alter it, but the effect remains. I don't know what I can try to fix this issue. The last thing altered at the configuration is a switch of the SVN server. We had to switch to a newer SVN version 1.5.0. We also switched to the new 1.5.0 SVN client as we know that there are problems with newer server software and older client software. Please find parts of my pom.xml configuration attached below. Any pointers are welcome. Regards, Andreas. My SCM configuration: scm connectionscm:svn:http://xxx.xxx.xxx.xxx/svndir/project/ connection developerConnectionscm:svn:http://xxx.xxx.xxx.xxx/svndir/project/ develope rConnection urlhttp://xxx.xxx.xxx.xxx/svndir/project/url /scm My release plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-release-plugin/artifactId configuration tagBasehttp://XXX.XXX.XXX.XXX/svndir/project/tags/tagBase autoVersionSubmodulestrue/autoVersionSubmodules preparationGoalsclean install/preparationGoals /configuration /plugin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- LD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: synchronizing version of interdependent projects
On 07/07/2008, at 2:24 PM, Joseph Syjuco wrote: We have a project consisting of 20+ interdependent folders unfortunately whenever 1 project updates its version I am having difficulty modifying projects that has a dependency to it. Right now I had to open each project.xml and search for it. Additionally, since this project has just been turned over to us, I am not familiar with the relationship between this projects/ folders. Is there a way/ tool that will allow me to identify folders or project.xml and it will automatically check and update version information. I am new to maven so apologies if this problem is a basic one If you use the version number 'RELEASE' you will get the latest non snapshot version. LD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I send a single file by scp without generate maven2 repository directory structure in remote machine?
Also, http://docs.atlassian.com/maven-upload-plugin/1.1/ LD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I let Maven run a class before packaging
On 11/04/2008, at 3:15 PM, youhaodeyi wrote: By default, Maven will package all the classes under target/classes directory into a jar file. But some classes are not generated by compiling, by running a Java application. How can I let Maven run a java application before packaging? You can use the ant exec task of the ant run plugin and bind it to the generate-sources phase… http://maven.apache.org/plugins/maven-antrun-plugin/run-mojo.html LD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Remote file copy
On 09/04/2008, at 9:46 PM, [EMAIL PROTECTED] wrote: I have a need to implement Maven style deploy functionality (copy files to multiple remote servers as defined in an xml file on the source machine). Attempts to find something using google have been unsuccessful, mostly due to the generality of the query. What other Apache projects might be best suited for this task? http://docs.atlassian.com/maven-upload-plugin/1.1/usage.html Might do what you need. LD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Use assembly and deploy togeather
On 08/04/2008, at 5:15 PM, Michael Mühlebach wrote: I tried it with this command but my problem is the created zip file does not contain the deployed jar file. It still has a -SNAPSHOT postfix which is quite ugly. On Tue, Apr 8, 2008 at 1:44 AM, Luke Daley [EMAIL PROTECTED] wrote: On 07/04/2008, at 11:14 PM, Michael Mühlebach wrote: I want to create an assembly and deploy it but I have some troubles with it. I tried it with the command: mvn assembly:single deploy I got almost what I expected except: All artifacts from my project, including the one I executed maven for, are snapshot versions! (have the classifier -SNAPSHOT instead of a build date and number). What have I done wrong or did I misunderstand the assembly/deploy build cycle?! I am not sure exactly what you are trying to do, but if you are trying to create another build artifact (such as a distribution zip or something) and have it deployed along side your built jars (or whatever) then you might want to look at the assembly:attached goal. http://maven.apache.org/plugins/maven-assembly-plugin/attached- mojo.html The name of the built assembly is defined by… http://maven.apache.org/plugins/maven-assembly-plugin/single- mojo.html#finalName That documentation says that the default value for that is $ {project.build.finalName} which if you look at the maven model… http://maven.apache.org/ref/2.0.8/maven-model/ maven.html#class_build(look for finalName) Is ${artifactId}-${version}. You are building something with a version of SNAPSHOT which has special significance with maven projects. You mention build date and number, there is no reason you couldn't do that by specifying the finalName parameter in the configuration of your assembly:single execution. Maven doesn't support build numbers out of the box (AFAIK), but there is a plugin http:// commons.ucalgary.ca/projects/maven-buildnumber-plugin/ introduction.html. LD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Use assembly and deploy togeather
On 07/04/2008, at 11:14 PM, Michael Mühlebach wrote: I want to create an assembly and deploy it but I have some troubles with it. I tried it with the command: mvn assembly:single deploy I got almost what I expected except: All artifacts from my project, including the one I executed maven for, are snapshot versions! (have the classifier -SNAPSHOT instead of a build date and number). What have I done wrong or did I misunderstand the assembly/deploy build cycle?! I am not sure exactly what you are trying to do, but if you are trying to create another build artifact (such as a distribution zip or something) and have it deployed along side your built jars (or whatever) then you might want to look at the assembly:attached goal. http://maven.apache.org/plugins/maven-assembly-plugin/attached-mojo.html LD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to deploy an artifact to some predefined location?
On 04/04/2008, at 1:35 AM, Lukasz Guminski wrote: But I'm still not happy with the solution. This is because of the impossibility to avoid generating unnecessary folder structure (/.../latestStableVersion/download/latestStableVersion- download.xml). I would like to have it flat, without using tricks. Any ideas on how to do it? Is there any direct access to webdav- wagon functionality? Atlassian have a plugin that does this: http://svn.atlassian.com/fisheye/browse/public/atlassian/maven- plugins/maven-upload-plugin/trunk/pom.xml I don't know of any docs or anything though so you'll have to work it out from it's pom and source. LD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to deploy an artifact to some predefined location?
On 04/04/2008, at 10:08 AM, Luke Daley wrote: On 04/04/2008, at 1:35 AM, Lukasz Guminski wrote: But I'm still not happy with the solution. This is because of the impossibility to avoid generating unnecessary folder structure (/.../latestStableVersion/download/latestStableVersion- download.xml). I would like to have it flat, without using tricks. Any ideas on how to do it? Is there any direct access to webdav- wagon functionality? Atlassian have a plugin that does this: http://svn.atlassian.com/fisheye/browse/public/atlassian/maven- plugins/maven-upload-plugin/trunk/pom.xml I don't know of any docs or anything though so you'll have to work it out from it's pom and source. Just got this from an Atlassian guy: http://docs.atlassian.com/maven- upload-plugin/1.1-SNAPSHOT/ LD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No Answers yet: - Query on using maven-assembly-plugin.
On 03/04/2008, at 3:58 AM, [EMAIL PROTECTED] wrote: I'm using maven-assembly-plugin in my POM and the assembly descriptor as below to generate a JAR package. The resultant artifact package is in the form of artifact-1.0-DEV.jar. But I require the package in the form of artifact-DEV-1.0.jar. What I need here is the assemblyId should get appended to the POM's artifactId before the version. Can anyone please advise how this can be done. I think you could do this by setting the final name, you can of course construct it dynamically using properties such as current version. http://maven.apache.org/plugins/maven-assembly-plugin/assembly- mojo.html#finalName LD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TextMate Maven Bundle.
Hi all, A Maven bundle for the popular Mac OS text editor TextMate http:// macromates.com/ is now available from the central bundle repository http://macromates.com/svn/Bundles/trunk/Bundles/Maven.tmbundle. This bundle allows you to invoke Maven from within TextMate with a few simple keystrokes. It also colorises mvn's output (one example being the highlighting of test failure notices) which is surprisingly handy. It also scopes key pom sections to allow you to navigate your poms with ease. I also have an APT bundle in the works http://macromates.com/svn/ Bundles/trunk/Review/Bundles/Almost%20Plain%20Text%20(APT).tmbundle that makes writing APT documents significantly easier. If this interests you, please be sure to give it a try and let me know of issues and missing features. Cheers, LD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TextMate Maven Bundle.
On 04/03/2008, at 11:13 AM, John Casey wrote: Cool, you don't by any chance support auto-completion of sections of the pom, do you? I was thinking of something like the behavior of the '(' and '{' characters, for things like plugin and execution (these are the ones that I always mess up the end tags on, since they're singular-followed-by-plural...like /execution\n/executions) I don't explicitly, but the XML bundle has good support for this. Just type TAB (where TAB is the tab key, not a literal 'TAB' of course) and you will get what I think you want. Nice to see someone working on this, though. I'm a big fan of TextMate. :-) Be sure to let me know of any features you would like. LD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]