Fórum

liferay:deploy (maven) fails, because of wrong file name

Daniel Niklas, modificado 10 Anos atrás.

liferay:deploy (maven) fails, because of wrong file name

Junior Member Postagens: 46 Data de Entrada: 08/11/10 Postagens Recentes
Hi,

the maven goal lifera:deploy fails, because the liferay-plugin is searching a wrong file name.
The output is something like this:
INFO --- liferay-maven-plugin:6.2.0-ga1:deploy (default-cli) @ my-theme --
WARNING my-theme-1.0.0-SNAPSHOT.war does not exist


My configuration (for this) looks like:
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>${project.artifactId}</warName>
</configuration>
</plugin>


My artifact file name is then something like "my-theme.war" - without <version>-SNAPSHOT.
Ho can i advice the liferay-maven-plugin to use this file?

Daniel
thumbnail
Jose Jimenez, modificado 10 Anos atrás.

RE: liferay:deploy (maven) fails, because of wrong file name

Regular Member Postagens: 176 Data de Entrada: 23/08/12 Postagens Recentes
Hi Daniel,

If you are using the liferay-plugin for maven you don't need to add the maven-war-plugin.

Attached you have an example of pom.xml.

Also you can create your themes using the liferay-theme-archetype that provides you a valid pom.xml for your theme, in this case you only have to add <properties/> section with the versions that you are using.

I hope this helps.

Jose