Aussie Hackergarten
5 months ago

By Olivier Lamy
The idea is to organize a Hackergarten in Melbourne and/or Sydney (maybe later in those wild north regions!)
The idea of such meeting is the ability for Open Source users to meet the Open Source contributors.

To do what?
Not only have beers!
Users/curious developers will be able to finally meet those bloody/lazy Open Source who never fix the issues but only think about implementing new non backward compatible features.
So now you will be able ...
Continue reading →

Error Prone compiler with Apache Maven Compiler plugin
8 months ago

By Olivier Lamy
Because you usually write code very fast, you can sometimes made mistakes.
To prevent some stupid errors, folks from Google write the error prone compiler.
Have a look at the various detected patterns (yeah definitely more interesting than checkstyle :P )
Kudos to Alex Eagle for the contribution!.
The configuration to use it: <plugin> <groupId>org.apache.maven.plugins <artifactId>maven-compiler-plugin <version>3.1 ...
Continue reading →

Huge Refactoring: Relocating to Melbourne, Australia
1 year ago

By Olivier Lamy
NOTE: Not usual but this blog entry is not technical, you won't see any xml or java code :-)

That's how my 9 yo daughter see our new future life :-)



NOTE: I tried to explain to her it's not possible to have kangaroo as pet. So she answered to me: "Ok I prefer a koala" :-)

So we wanted to move to an english speaking country.
We merged our specs:
  • wife specs: country with good cupcakes and some beaches.
  • my specs: sunny country and good ...

Continue reading →

Apache Maven site support Markdown !
1 year ago

By Olivier Lamy
Maybe you don't know because that's not very well documented :-) but Maven site support Markdown format ! It's just a matter of configuring the site plugin ! <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.2</version> <dependencies> <dependency> ...
Continue reading →

Test your local patch on a remote Jenkins with Maven
1 year ago

By Olivier Lamy
Recently Kohsuke (@kohsukekawa) wrote a plugin to let you apply a patch on Jenkins job for testing purpose.
See Blog entry.

That's a pretty good idea as most of the time, you can have very long build. Integrations tests with selenium running on various os/browsers (some you don't have or don't want to install) or tests on various databases.

So usually hack, commit/push the change and cross fingers for not break the build on your Jenkins ...
Continue reading →

Publishing a Maven site to a scm (ease Apache svnpubsub usage)
1 year ago

By Olivier Lamy
The Apache Maven team just released a first version of a new plugin to be able to publish Maven websites to a scm. (Maven SCM Publish Plugin)
The first goal was to be able to commit web sites to the svnpubsub Apache infra for websites.

Remember the migration to svnpubsub is mandatory for the end of the year.

Yes you remember as (if you are an Apache committer) how long it can take to have a *.apache.org website live updated :-).

You usually scp ...
Continue reading →

Maven Assembly/Dependency plugins useJvmChmod field WTF ?
1 year ago

By Olivier Lamy
It looks not a lot folks knows a strange named option  from the Assembly and Dependency Maven plugins.
The name is useJvmChmod. Sure when reading this name you can say: "WTF ?????".
Both plugins use a component called plexus-archiver (which pack,unpack files and can set files permissions).
By default on unix platform, this component will fork a process to do chmod command line call and for each files (ouch !!!! for large ...
Continue reading →

Maven Surefire configuration for CI server
1 year ago

By Olivier Lamy
I used this configuration for long time now but not sure you know that.
The use case is an application creating a temp file to store values (File.createTempFile( "wine.txt", "wine" ); )
Running it locally no problem.
But now you have a ci server running the same Maven project with various parameters:
* one fast only executing unit tests
* one longer running selenium integration tests.

On Unix server, the temp directory is shared for all users ...
Continue reading →

Java5 annotations support for Maven plugins
1 year ago

By Olivier Lamy
So finally or at least (depends on your POV :-)), I have pushed some code to support Java5 annotations support for Maven plugins.
The "specs" are here https://cwiki.apache.org/confluence/display/MAVEN/Java+5+Annotations+for+Plugins.
The code is available in the branch http://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189/.
Snapshot are deployed to: https://repository.apache.org/content/repositories/snapshot .
You can have a look ...
Continue reading →

Search and browse with Archiva new UI
2 years ago

By Olivier Lamy

If you follow me, you probably know I'm working on a new UI for Apache Archiva using plain html/javascript technologies (one page load app).
Here some screenshot about new Search and Browsing screens.

The new browsing

The new search
To test it just download:
  • zip with self contained jetty: http://s.apache.org/LAST_ARCHIVABUILD_ZIP
  • war to install in your favorite servlet container: http://s.apache.org/LAST_ARCHIVABUILD_WAR

So all comments ...
Continue reading →

Apache Archiva UI rewrite progress (How it works ? )
2 years ago

By Olivier Lamy
Recently I proposed to rewrite the Apache Archiva UI. The goal was to have a new fresh/modern UI :-).
So as IANAD (D for designer) using Twitter Bootstrap was a good solution to help to start.
Regarding web framework buzz :-), I proposed to have a plain html/javascript (without any complicated Java web framework stack) maybe because it's "à la mode" :-).
At the end, it will be a one page load application with only javascript (data transfer ...
Continue reading →

Unit tests with embeded tomcat artifacts
2 years ago

By Olivier Lamy
In the 7.x releases of Apache Tomcat, some maven artifacts are now published which include a nice and fluent embeded api to run a Tomcat instance.

So it's a nice opportunity to use it writing units to test servlets, rest api etc..
But until 7.0.25 it was only possible to do it with using a barcoding port which can cause some issues on ci servers where you are not sure ports are not used by something else running.

I have personally sended a RFC to ITEF ...
Continue reading →

Tomcat Maven plugin archetype. Sample talks more than long documentation :-)
2 years ago

By Olivier Lamy
As code sample talks more than long and borying documentation (or maybe because I don't like to write too long documentation :-) ), I have writen an archetype for the Apache Tomcat Maven Plugin.

Some features describe in this post are now implemented.

As it's not yet released but soon !, just use :

mvn archetype:generate \
-DarchetypeGroupId=org.apache.tomcat.maven \
-DarchetypeArtifactId=tomcat-maven-archetype \
-DarchetypeVersion=2.0-SNAPSHOT \
...
Continue reading →

From a pull request to a jira issue
2 years ago

By Olivier Lamy
After the generate a patch and attach it to a jira issue, it's now the time to have a tool to create an issue from a patch request (the current implementation works only for github pull request).

So the Patch Tracker plugin has now a new goal called to-issue. This goal will read a github pull request and create an issue in your issue tracker (currently only supported for jira).

It's simple :-).
As sample see pull request : ...
Continue reading →

Life is too short to waste time uploading a patch or Maven Patch Tracker plugin
2 years ago

By Olivier Lamy
Life is too short and you don't want to waste time contributing to a project (creating a patch, a entry in the jira issue tracker then upload the patch).
So the Maven Patch Tracker plugin is for you !



You will be able with a maven plugin to do all of this in one command line !
Without any configuration you have to write :

mvn patch-tracker:create
-Dpatch.summary="foo summary"
-Dpatch.serverUrl=http://localhost:8080/browse/MNG -B
-Dpatch.user=uid ...
Continue reading →

Archiva 1.4-M1 released
2 years ago

By Olivier Lamy
The Apache Archiva 1.4-M1 has been released.
Some nice features added:

  • It is now possible to create a staging repository for any managed repository and later merge the results.

  • You can now use REST services to control Archiva or search for artifacts. See REST Services for more information.

  • Database storage for repository metadata has been replaced with a JCR repository based on Apache Jackrabbit by default (other options such as a flat-file storage may ...

Continue reading →

Apache Tomcat Maven Plugin Features
2 years ago

By Olivier Lamy
Recently I posted some informations regarding the move from codehaus to ASF of the Tomcat Maven plugin and about the support of tomcat7 in trunk code.

So now in this post, I'd like to talk of the features I prefer.

Run goal in multi modules with Maven3
Usually with Apache Maven, your application code is splitted in some modules to respect the Separation Of Concern paradigm.
Something like :

root
pom.xml
foo-api
pom.xml
...
Continue reading →

Tomcat Maven Plugin now supports tomcat7
2 years ago

By Olivier Lamy
Hello,
After moving the Tomcat Maven Plugin from Codehaus to Apache in the Tomcat land (see previous post), I have found some time to start hacking on it.
The first feature I wanted to add was support of Apache Tomcat 7.x. So it's now implemented in trunk.
You can test it see how to configure that in your poms: http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html.

NOTE the important changes with the move to Apache and the support of ...
Continue reading →

New default http(s) transport layer in maven core 3.x
2 years ago

By Olivier Lamy
In the current maven core dev trunk, we have recently replace the http(s) transport layer from lightweight wagon (based on default jdk http(s) mechanism) to the wagon http module based on Apache httpclient [1].

See related post.

This change include two improvements:
* connection pool mechanism (to avoid http(s) connection recreation for each artifacts download).
* preemptive authz mechanism which will prevent uploading artifacts twice.

As it's important ...
Continue reading →

Apache Maven Wagon 2.0 released
2 years ago

By Olivier Lamy
Apache Maven Wagon 2.0 has been released with some nice fixes/features.
See full changelog

The most important features are :
* using http(s) connection pooling: see my previous post.
* support of preemptive authentication: yes this will prevent your artifacts to be uploaded twice (as it was done until this release)

You can test that now. Download the shaded jar: wagon-http-2.0-shaded.jar and put it in your $M2_HOME/lib/ext (for maven 3+)

Note this ...
Continue reading →
More Articles (+10)

Pages

Subscribe to Talend Community Coders aggregator - Olivier Lamy