Maven
Groovy 1.7.3: AnnoMojo + GroovyMojo!
I waited a lot. Oh boy, I did. .. Rewind back half a year .. Writing Maven plugins, or MOJOs, is a real need when you work with Maven. It just feels unnatural not to. Default Maven behavior and set of plugins is only good for common situations and the moment you’re doing [...]
Artifactory Online – the case of distributing Groovy++
After working with open source Artifactory version and thoroughly exploring it’s add-ons I knew it would come a moment to put my hands on its cloud solution – Artifactory Online. It just made sense to “close the loop” this way .. Тhe moment I’ve heard about online instance, running 24×7 without having to take care [...]
Hudson: Git and Maven plugins
Suddenly, something went wrong .. :( A usual Hudson job pulling sources from Git repository started to fail with NPE: What ?! But it worked half an hour ago. Hmm, that’s interesting … After re-installing Hudson from scratch, installing it locally on my machine, going back and forward with versions, creating simple jobs doing absolutely [...]
Using Groovy++ with Maven – an update
In his comment to “Using Groovy++ with Maven” Joern Schimmelpfeng has correctly pointed out about transitive dependencies that may be added to groovypp POM, eliminating the need to specify them explicitly. He’s right! That’s what we have Maven dependencies mechanism for. It is now fixed so you can use or Full examples: groovypp-all version groovypp [...]
Using Groovy++ with Maven
Note, an update is available. Groovy++ artifacts are now deployed in Maven repository at: http://groovypp.artifactoryonline.com/groovypp/libs-releases-local/ and http://groovypp.artifactoryonline.com/groovypp/libs-snapshots-local/ So you can compile your Groovy++ sources with Maven. As in Groovy, where you pick up either groovy.jar or groovy-all.jar – you can do the same here: Use groovy + groovypp + asm + antlr + commons-cli: [...]
Artifactory Power Pack – is it really powerful ?
We have been using Artifactory in Thomson Reuters (ClearForest) for more than a year now. My first Maven repository manager was Nexus – we were using it in my previous workplace. When I came to Thomson Reuters and started working on new CM infrastructures – I decided to switch to Artifactory, though. Mostly due to [...]
Artifactory 2.1.3 upgrade
I was waiting for Artifactory 2.1.3 upgrade since it includes a long-waited feature of being able to set an include and exclude patterns on virtual repositories. Finally, I’m able to stop Maven and Artifactory from looking in external repos for our company’s snapshots updates. Setting an exclude pattern of “com/company/**” on “remote-repos” does the job. [...]
Maven – Packing and unpacking archives in Mojo with TrueZip, Part II
I’ve already wrote about packing and unpacking archives with TrueZip and TrueZIP Maven Plugin. Previous version to create an archive was: import org.apache.maven.shared.model.fileset.FileSet; import org.codehaus.mojo.truezip.util.DefaultTrueZip; … FileSet fs = new FileSet(); fs.setDirectory( sourceDirectoryPath ); fs.setIncludes( includes ); fs.setExcludes( excludes ); fs.setOutputDirectory( destinationArchivePath ); new DefaultTrueZip().copy( fs, false, getLog()); de.schlichtherle.io.File.umount(); // To update (flush) the [...]
Maven plugin dependencies
One day I’ve realized that if not specified explicitly – I end up working with some pretty outdated Maven components when compiling Mojos. Here’s an explicit list one needs to do a basic Mojo development (links follow to APIs and Maven repositories): <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-container-default</artifactId> <version>1.1.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-utils</artifactId> <version>1.5.15</version> <scope>compile</scope> </dependency> <dependency> [...]
Creating a ${folder} on disk
Never thought I’ll ever do that .. is it a sign of what ? Becoming more pragmatic or more lazy ?.. Some script running on the old system (that is about to be nuked very soon) was failing due to ${apache-tomcat} folder missing. Yeah, I’ve introduced a Maven property to store the Tomcat version and [...]


