From dd18f86b225e9d7917f2f7216a13e1ed7e5b45bd Mon Sep 17 00:00:00 2001 From: Denis Date: Thu, 28 Nov 2013 08:44:33 +0100 Subject: [PATCH] MAVEN-104 ${app.server.classes.portal.dir} needs to be included in classpath to allow LangBuilder initialize properly. It needs to read authorization keys from deployed portal-ext.properties file to use Microsoft Translator service. --- .../java/com/liferay/maven/plugins/AbstractLiferayMojo.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/liferay-maven-plugin/src/main/java/com/liferay/maven/plugins/AbstractLiferayMojo.java b/plugins/liferay-maven-plugin/src/main/java/com/liferay/maven/plugins/AbstractLiferayMojo.java index eabbd262..2906172a 100644 --- a/plugins/liferay-maven-plugin/src/main/java/com/liferay/maven/plugins/AbstractLiferayMojo.java +++ b/plugins/liferay-maven-plugin/src/main/java/com/liferay/maven/plugins/AbstractLiferayMojo.java @@ -420,6 +420,10 @@ protected List getToolsClassPath() throws Exception { toolsClassPath.add(url.toString()); } + + URI uri = appServerClassesPortalDir.toURI(); + URL url = uri.toURL(); + toolsClassPath.add(url.toString()); getLog().debug("Tools class path:"); @@ -635,4 +639,4 @@ protected ClassLoader toClassLoader(List classPath) private static Pattern _majorVersionPattern = Pattern.compile( "(\\d+[.]\\d+)"); -} \ No newline at end of file +}