azzazzel-liferay-maven-sdk, y al contrario que, cuando, se crean portlets y hooks da el siguiente fallo.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------
[INFO] Building Maven Liferay Theme Archetype
[INFO] task-segment: [package]
[INFO] ------------------------------------------------------
[INFO] ------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) com.sun:tools:jar:1.4.2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.commsen.liferay:liferay-maven-plugin:maven-plugin:5.2.3-r2
2) com.sun:tools:jar:1.4.2
----------
1 required artifact is missing.
for artifact:
com.commsen.liferay:liferay-maven-plugin:maven-plugin:5.2.3-r2
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Mon Jun 21 10:24:38 CEST 2010
[INFO] Final Memory: 9M/17M
[INFO] ------------------------------------------------------
Un colega se encontro el otro día este mismo problema; y este consiste en que el artefacto liferay-maven-plugin-5.2.3-r2 tiene una dependencia al fichero tools.jar
Inspeccionando el pom de este artefacto en el repositorio local de maven, cai en que este apuntaba a la dependencia de la versión 1.4.2 de java, y que mi JAVA_HOME apunta a la versión 1.5.0_06
SOLUCIÓN:
Cambiar el pom.xml de liferay-maven-plugin para que el tools.jar sea la de la versión 5.
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5.0_06</version>
<scope>system</scope>
<systemPath>
${java.home}/../lib/tools.jar
</systemPath>
</dependency>
Enlaces relacionados:
Creating Liferay Themes
- FIN -
No comments:
Post a Comment