Archív rubriky 'english'

Eclipse Callisto + mevenide EE

24.9.2006 (Sunday)

This is english edition of one of my previous posts. I decided to write it in english after couple mails that I received where people were asking me to send them the modified jar, because they probably read about the fix in codehause jira.

“I have a problem with mevenide plugin with Eclipse 3.2 (POM
Synchronizer) and I read your workaround on JIRA
(http://jira.codehaus.org/browse/MEVENIDE-394).”

In order to get this working you only need to copy this modified jar to ECPLISE_ROOT/plugins/org.mevenide.ui_0.4.0/mevenide-ui-eclipse-0.4.0.jar.

If you wish to compile it yourself you need to get the mevenide sources from their subversion and replace class ToggleWritePropertiesAction.

I have been using this patch for quite a while and have not experienced any problem with it. If you have any problem or question send me a comment or email, I am glad to contribute.

Good luck using eclipse.

How to multiproject:clean in maven

17.7.2006 (Monday)

I ran into a problem with multiproject:clean. The problem was that if you have multiple projects where one supproject is dependent on another, then you will have a problem because maven tries to get dependencies even when you dont need them (obviously for clean you do not have to need some dependecies). So the multiproject:clean can end up with unsatisfied dependency error.
So I was googleing and found work arround:

<?xml version="1.0" encoding="ISO-8859-1"?>
<project default="all"
xmlns:m="jelly:maven" xmlns:j="jelly:core"

xmlns:ant="jelly:ant">
<goal name="multiproject:clean">

<m:reactor basedir="."
banner="Gathering project list"
includes="**/project.xml"
postProcessing="true"
ignoreFailures="true"
collectOnly="true" />
<j:forEach var="reactorProject"
items="${reactorProjects}">
<!-- this list of things to delete is lifted from clean:clean -->
<ant:delete
dir="${reactorProject.context.getVariable('maven.build.dest')}" />
<ant:delete
dir="${reactorProject.context.getVariable('maven.build.dir')}" />
<ant:delete
file="${reactorProject.context.getVariable('basedir')}/velocity.log"
quiet="true"
failonerror="false" />
</j:forEach>
</goal >

</project>

Surely there could be more, but this is suiteable for me now.More on maven:reactor jelly tag see maven documentation.