Blogs
Hi there!
We are glad to announce for all those of you Maven adicted like me
, that now Liferay has its artifacts public in a Maven 2 repository! The community request was listened and answered.
The repository contains artifacts of version 6.0.2 and 6.0.3. The deployed artifacts are:
Core projects:
- portal-client
- portal-impl
- portal-service
- portal-web
- util-bridges
- util-java
- util-taglib
Maven plugins:
- liferay-layouttpl-archetype
- liferay-maven-plugin
- liferay-portlet-archetype
- liferay-theme-archetype
The repository is http://oss.sonatype.org/content/groups/public you can have access to release and snapshot versions of the artifacts. The snapshots artifacts are build and deploy once a day.
To use it you should reference it in your POM (you can also set the repository information in your settings.xml file) and declare your dependencies, like the sample that follows. The artifacts are being synced with Central, so you don't need to declare the repository if you are not using SNAPSHOT versions.
<project>
...
<repositories>
<repository>
<id>liferay-repository</id>
<name>Liferay's Maven repository</name>
<url>http://oss.sonatype.org/content/groups/public</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.liferay</groupId>
<artifactId>portal-service</artifactId>
<version>6.0.3</version>
<scope>provided</scope>
</dependency>
</dependencies>
...
</project>
Then you can use all the Maven functionality to manage your development.
This is one more step to get closer to the Maven community, so let us know if you have questions/ideas/suggestions and please enjoy!!!
Um abraço!
p.s. Liferay's dream #2 completed :-)

