Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: liferay-maven-plugin version 6.2.10.15 not working
Dear all,
When i build my project with maven this returns the following error.
"[ERROR] Failed to execute goal
com.liferay.maven.plugins:liferay-maven-plugin:6.2.10.15:build-css
(default) on project backoffice-theme: Some problems were encountered
while processing the POMs:
[ERROR] [ERROR] Failed to determine
Java version for profile java8 @ line 699, column 14: 1 problem was
encountered while building the effective model for
joda-time:joda-time:2.7
[ERROR] [ERROR] Failed to determine Java
version for profile java8 @ line 699, column 14"
I already read the following issues:
https://issues.liferay.com/browse/MAVEN-208
https://issues.liferay.com/browse/MAVEN-208
As suggested in the first issue, i am trying to install a older version of the plugin (for example 6.2.10.12, 6.2.10.13 and 7.0.0-m2).
I think the plugin is included in the zip file Liferay EE Artifact which has this and other plugins, correct?. I followed the content in the page "Installing and Managing Liferay Maven Artifacts" unfortunately i couldn't find the link or the page for the EE version of the zip file.
The CE version of the bundle can be accessed in the following link:
https://sourceforge.net/projects/lportal/files/Liferay%20Portal/
I downloaded the zip file liferay-portal-maven-6.2.0-ce-ga1. Unfortunately when i try to install it with the command "ant install", ant returns the following error message:
C:\Users\rscosta\Documents\PEM\programas\SPD_GuiaInstalacaoSoftware\liferay-portal-maven-6.2.0-ce-ga1\build.xml:231:
The following error occurred while executing this line:
C:\Users\rscosta\Documents\PEM\programas\SPD_GuiaInstalacaoSoftware\liferay-portal-maven-6.2.0-ce-ga1\build.xml:291:
Execute failed: java.io.IOException: Cannot run program
"mvn.bat" (in directory
"C:\Users\rscosta\Documents\PEM\programas\SPD_GuiaInstalacaoSoftware\liferay-portal-maven-6.2.0-ce-ga1"):
CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
Any help will be very appreciated.
Best regards,
Rafael Costa
For me it looks like you are facing this issue:
https://issues.liferay.com/browse/MAVEN-206
There is an open source project which fixes the issue above:
https://github.com/openwide-java/liferay-maven-support/tree/MAVEN-206
Powered by Liferay™