This article documents a temporary workaround for developers using Liferay Developer Studio 3.9.7 in a closed environment. At this time Liferay Developer Studio requires users to download dependencies from the Internet. However, this can be a problem for developers who do not have full web access in their development environment.
Resolution
- Prepare a local or accessible NEXUS server. This server must have FULL libraries (from https://repository.liferay.com/nexus/content/groups/public). Administrators can also clone one from other repositories. Internet connections are still required at this point.
- Make sure to have a
.gradle
directory in the user home folder, updated according to the latest project template and dependencies. - Start Liferay Developer Studio.
- Open the New Liferay Workspace Project Wizard to create a Liferay Workspace. An error will show up but the required files have been created successfully on the disk.
- Go to the Liferay Workspace project folder.
- Open the file
settings.gradle
and change the maven repository URL:maven { url "https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public" }
to:maven { url "{your_nexus_server}/nexus/content/groups/public" }
Note: For the Liferay Module project, please modify the URL in the
build.gradle
file. - Open the Import Liferay Workspace Project Wizard and re-import the Liferay Workspace project.
Conteúdo Excluesivo para Assinantes
Uma Subscrição do Liferay Enterprise fornece acesso a mais de 1.500 artigos que incluem práticas recomendadas, solução de problemas e outras soluções valiosas. Faça login para obter acesso completo.
Entrar