
Just a short bash script on how to check out only trunks of Maven projects (single and multi-module).
Note: This works only for default svn layout with default maven layout.
output=`svn ls -R | grep trunk/pom.xml`
for line in $output
do
len=`expr ${#line} - 8`
p=${line:0:$len}
echo $p
res=`svn up --parents $p`
done
Usage: check out the “root” of form the SVN with -N, like this:
svn co -N https://my.com/svn/myRoot
Go to the new directory (cd myRoot) and execute the script.
Categories: howto, linux, maven, open source, software development Tags: bash, checkout, maven, pom, subversion, svn, trunk

At the time of writing this openconnect in Ubuntu 12.10 have a bug, that disconnects the client from the VPN.
There is an issue for it: https://bugs.launchpad.net/ubuntu/+source/openconnect/+bug/1072328
And a solution from Michael R. Crusoe.
Just do:
sudo apt-add-repository ppa:misterc/ppa
sudo apt-get update
sudo apt-get upgrade
That’s it.

Your company decided to use Cisco AnyConnect. You are on Linux, and you are provided with Cisco AnyConnect Linux client, and you are happy: At last, they had Linux in mind… But your happiness lasts only for a half an hour, when you realize, that the client just does not work. Or you might be lucky and the client work as expected, but in that case you wouldn’t be here…
But fear not, there is a better solution for your problem. And it is called Openconnect. What you will need:
- Windows machine with configured AnyConnect — needed just to create an initial configuration; not needed for operation
- any flavor of Linux, – but I’m using Ubuntu, so the there will be some Ubuntu specific parts, but you’ll know how to translate those to your flavor of Linux
- about 1h
Categories: linux, ubuntu Tags: anyconnect, cert, certificate, cisco, how-to, howto, key, linux, non-exportable, openconnect, ubntu, vpn, windows

There is a guide on the topic from Maven. But that guide is missing an example on how to use it from within Mojo.
So let me show you a short example on a topic… Read more…

[Update:] Looks like the originator is Brian Fox from Sonatype with this article.
A short example on how to find out if the given maven execution is the root of execution, — or in other words: how to know if you are inside of a multi-module project module or in the parent?
Just extend your Maven Mojo from this abstract mojo and call isThisTheExecutionRoot()…
import java.io.File;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.AbstractMojo;
public abstract class AbstractMojo extends AbstractMojo {
/** Maven Session.
*
* @parameter default-value="${session}"
* @required
* @readonly
*/
protected MavenSession mavenSession;
/** Base working directory.
*
* @parameter default-value="${project.basedir}"
* @required
* @readonly
*/
protected File basedir;
/**
* Returns true if the current project is located at the Execution Root
* Directory (where mvn was launched)
*
* @return true if execution root
*/
protected final boolean isThisTheExecutionRoot() {
final boolean result = mavenSession.getExecutionRootDirectory()
.equalsIgnoreCase(basedir.toString());
return result;
}
}
This code probably originates from Maven Changes Report Plugin: http://maven.apache.org/plugins/maven-changes-plugin/xref/index.html, but as I failed to find it within 10 minutes, I thought it might worth sharing.

Thanks to new members on the H4E team a new release could be downloaded from update site or Eclipse Marketplace.
The project is hosted under Google Code: http://code.google.com/p/hunspell4eclipse/
Eclipse Marketplace: http://marketplace.eclipse.org/content/hunspell4eclipse-0
Ohloh: https://www.ohloh.net/p/hunspell4eclipse
It is known to work with almost any variation of Eclipse – OS – HW out there.
Have fun with it.

[update: apr. 11. ] I have a new contract. Case closed.
Form today I’m open for new opportunities. I’m seeking for new adventures and possibilities.
It’s time to switch… I’m seeking for a new job in area of Budapest, Hungary. As you could see from my CV, I’m primary a software architect in a field of Java, with more than 20yr of experience in software development. Anyone interested could drop me a mail to a given email address from the CV.
For those interested I have a brand new CV.

If you are developing with Java, I’m sure you ran into a console output that looks like this:
log4j:WARN No appenders could be found for logger (org.apache.openejb.resource.activemq.ActiveMQResourceAdapter).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (org.apache.openejb.resource.activemq.ActiveMQResourceAdapter).log4j:WARN Please initialize the log4j system properly.
The message is clean: provide a log4j configuration. But, hey, I just want to debug/test/… it… Or I just want to change the debug level, but I cannot modify the app, or cannot find the (right) configuration…
I just need a fast solution for this.
So here it is:
- Create a folder and place a log4j.properteies file in it.
- Edit your log4j.properteies for your needs.
- Add the given folder to your apps classpath (as a first entry)
That’s it.
Read more…
Categories: eclipse, FLOSS, open source, oss, software development Tags: debug, eclipse, howto, java, log4j, logging, wtp

This is just a short description on how to use OpenEJB with Tomcat to debug it within Eclipse.
The point is to be able to debug EJB applications from within Eclipse with a lightweight Tomcat container using OpenEJB.
Read more…
Categories: eclipse, FLOSS, howto, java, open source, oss, software development Tags: debug, deploy, eclipse, howto, java, open source, openejb, software, software development, tomcat, war

Changes:
- threshold feature
- update site back to normal
- limited Java support – reports misspelled words (underline), but no proposals
- latest JNA
Link to project page: http://code.google.com/p/hunspell4eclipse/
Categories: eclipse, Hunspell4Eclipse, java, news, open source, oss Tags: eclipse, hunspell, Hunspell4Eclipse, java, open source, plugin, spell, spelling