Liferay Maven Support in Liferay 6.1 GA3

We've finally released both CE and EE versions of Liferay 6.1 GA3 and along with those releases we've also released the corresponding versions of Liferay Maven Support and Portal artifacts. The version numbers are 6.1.2 for CE GA3 and 6.1.30 for EE GA3. With this release there is one significant improvement in the Liferay Maven Plugin and that is they are no longer directly dependent on a Liferay Portal version. We could have just released one version and it would have worked with either portal version, in fact they both work with any portal version starting from 6.1.0. In the future we will probably move to a single release of Liferay Maven Support which will eventually have it's own release cycle completely independent of the portals release cycle.  

All the archetypes will now have a separate property for Liferay Maven Plugin version called liferay.maven.plugin.version. The plugin will also now require you to tell which portal version you are developing against and you'll do that by providing it liferayVersion in the configuration section. Here's a example from liferay-theme-archetype:


Please remember that the plugin will still be affected any bugs in the Liferay Portal Version so if you have patches installed you should point the plugin to a patched portal bundle by setting the properties. If you discover any bugs in any of the plugin mojos please report them to our MAVEN Jira project.

Hi Mika,

very good news!! MavenPlugin version sheme will be changed ? It will be announced indipendently by LPS releases on Liferay Release Dashboard ?

Best Regards,
Hi Mika,
Good job!
But.. I get an exception upgrading one of my projects with ServiceBuilder from 6.1.1 version to 6.1.2, the exception is "Parameter 'directory' is not a directory".
The stacktrace:
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.1.2:build-service (default-cli) on project test-portlet-service: Parameter 'directory' is not a directory
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(
at org.apache.maven.DefaultMaven.doExecute(
at org.apache.maven.DefaultMaven.execute(
at org.apache.maven.cli.MavenCli.execute(
at org.apache.maven.cli.MavenCli.doMain(
at org.apache.maven.cli.MavenCli.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(
at org.codehaus.plexus.classworlds.launcher.Launcher.main(
Caused by: org.apache.maven.plugin.MojoExecutionException: Parameter 'directory' is not a directory
at com.liferay.maven.plugins.AbstractLiferayMojo.execute(
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
... 19 more
Caused by: java.lang.IllegalArgumentException: Parameter 'directory' is not a directory
at com.liferay.maven.plugins.AbstractLiferayMojo.getToolsClassPath(
at com.liferay.maven.plugins.AbstractLiferayMojo.getProjectClassPath(
at com.liferay.maven.plugins.ServiceBuilderMojo.getProjectClassPath(
at com.liferay.maven.plugins.AbstractLiferayMojo.getProjectClassLoader(
at com.liferay.maven.plugins.ServiceBuilderMojo.doExecute(
at com.liferay.maven.plugins.AbstractLiferayMojo.execute(
... 21 more
Some idea??
Thanks and best regards!
Hi Mika,

do you think maven support should have it's own discussion forum thread, like other Liferay sub-projects ( ?