Liferay DXP Free Tier    |    From download to running in minutes    |    Get started →

Blogs

Deploying Liferay artifacts to your own maven repository

Mika Koivisto
Mika Koivisto
読了時間: 1分

As part of Liferay 6.1 release we’ve created a new package that has a convenient  script to install Liferay artifacts to your local repository or to a remote repository. This package is provide for both CE and EE releases but it is more useful for EE users because we don’t release EE versions of the artifacts to Maven Central repository.

You can download the 6.1 GA1 package from here and 6.1 EE users can download it from Customer Portal. Once you have downloaded the zip file unzip it. 

In the root of the package you’ll find build.properties. This file defines the remote repository location, repository id and optional gpg signing key and password. You can override settings in this file similarly to those in plugins sdk by creating a build.USERNAME.properties file and overriding the properties you want. If you are just deploying to you local repository there’s no need to override any settings. 

Before you begin you should make sure you have mvn in your path. For remote deployment you should also increase the available memory for maven otherwise you might get a OutOfMemoryError. For windows you can use following in your cmd prompt or set MAVEN_OPTS environment variable.

set MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=128m

For Unix-like systems such as Linux and Mac OS X use

export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m"

To deploy to your local maven repository you can just run:

ページコメント
Is active development of liferay-maven-support is happening ? do you have any release schedules, if people want to contribute how do they do it just fork and send you a pull req ?
Kamesh, it's currently in maintenance mode but development should pick up once we start developing Liferay 6.2 at full force. If you want to contribute open a ticket in MAVEN Jira project, mark the ticket contributed and accept the contributor agreement and send a pull request to me. Also comment the pull request url to the ticket so that others can also see it.

Any issues that are set with fix in version Community backlog is something we are looking for community contributions and of course other ideas are also more than welcome. It's also recommended to solicit others input on contributions on the Contributions forum category http://www.liferay.com/community/forums/-/message_boards/category/555425
As per you mentioned above we do not require to have build.<username>.properties file if we are dealing with local M2 folder (correct me if I miss understood it ) so I just need to extract maven pacakge and hit ant install command ? while doing this I am getting error "Property lp.maven.repository.url was circularly defined."

Now I dont have anything in setting.xml (id ,url) as I am dealing with local M2 how can execute this command without setting this property ?

Help would be appreciated.

Thanks,
Sagar Vyas
Finally found the solution of this problems and others, it seems that apache mvn.bat is renamed to mvn.cmd with maven 3.3.1 version onward provided I have shared all three solution here http://share4gain.blogspot.com/2016/01/solution-possible-errors-while.html

Hope this will help.

Thanks Mika for sharing this.

Thanks,
Sagar Vyas

Related Assets...

結果が見つかりません。

More Blog Entries...

Himanshu Chauhan
11月 20, 2026
Tony Lim
11月 19, 2026