Foros de discusión
liferay-maven-plugin service builder -> service.properties already exists
Paul Gloessl, modificado hace 10 años.
liferay-maven-plugin service builder -> service.properties already exists
New Member Mensajes: 12 Fecha de incorporación: 15/07/13 Mensajes recientes
Hi,
i am using the liferay-maven-plugin 6.2.0-M6.
running mvn liferay:build-service works fine on the first run.
On the second run i get the following error:
if i delete the service.properties manually mvn liferay:build-service works fine again for the next run. but i think this would confuse my buildnumber, istn't it?
i am using the liferay-maven-plugin 6.2.0-M6.
running mvn liferay:build-service works fine on the first run.
On the second run i get the following error:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.070s
[INFO] Finished at: Tue Jul 16 11:52:23 CEST 2013
[INFO] Final Memory: 24M/58M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.2.0-M6:build-service (default-cli) on project demo-db: Destination 'W:\workspaceWorkspaceAtlas_Neu\demo\demo-db\src\main\resources\service.properties' already exists -> [Help 1]
if i delete the service.properties manually mvn liferay:build-service works fine again for the next run. but i think this would confuse my buildnumber, istn't it?
Priyanka Dhingra, modificado hace 10 años.
RE: liferay-maven-plugin service builder -> service.properties already exis
Liferay Master Mensajes: 501 Fecha de incorporación: 20/12/11 Mensajes recientes
you can trry
mvn clean liferay:build-service
mvn clean liferay:build-service
Paul Gloessl, modificado hace 10 años.
RE: liferay-maven-plugin service builder -> service.properties already exis
New Member Mensajes: 12 Fecha de incorporación: 15/07/13 Mensajes recientes
hi priyanka,
i already tried this, but it didn't help.
i already tried this, but it didn't help.
Mika Koivisto, modificado hace 10 años.
RE: liferay-maven-plugin service builder -> service.properties already exis
Liferay Legend Mensajes: 1519 Fecha de incorporación: 7/08/06 Mensajes recientes
That might be a bug. Can file a ticket to http://issues.liferay.com/browse/MAVEN and include the output of
That way I can see where exactly it is failing.
mvn -X liferay:build-service
That way I can see where exactly it is failing.
Paul Gloessl, modificado hace 10 años.
RE: liferay-maven-plugin service builder -> service.properties already exis
New Member Mensajes: 12 Fecha de incorporación: 15/07/13 Mensajes recientes
i opend an Jira issue.
As workaround, before running liferay:build-service I:
As workaround, before running liferay:build-service I:
- delete the service.properties manually
- set an incremented build number in my POM.xml using the <serviceBuildNumber> tag
<plugin>
<groupid>com.liferay.maven.plugins</groupid>
<artifactid>liferay-maven-plugin</artifactid>
<version>${liferay.maven.plugin.version}</version>
<configuration>
<autodeploydir>${liferay.auto.deploy.dir}</autodeploydir>
<appserverdeploydir>${liferay.app.server.deploy.dir}</appserverdeploydir>
<appserverlibglobaldir>${liferay.app.server.lib.global.dir}</appserverlibglobaldir>
<appserverportaldir>${liferay.app.server.portal.dir}</appserverportaldir>
<liferayversion>${liferay.version}</liferayversion>
<plugintype>portlet</plugintype>
<servicebuildnumber>20</servicebuildnumber>
</configuration>
</plugin>
Mika Koivisto, modificado hace 10 años.
RE: liferay-maven-plugin service builder -> service.properties already exis
Liferay Legend Mensajes: 1519 Fecha de incorporación: 7/08/06 Mensajes recientes
Thanks. That's a bug. I'll fix it today.