-
Type:
Bug
-
Status: Closed
-
Resolution: Reorganized
-
Affects Version/s: 6.2.0 CE B1, 6.2.0 CE B2
-
Fix Version/s: 6.2.0 CE B1, 6.2.0 CE B2
-
Component/s: Dev Tools, Dev Tools > Maven Support
-
Labels:None
-
Environment:Windows 7 Prof SP1, Java 1.7.0_07; Ubuntu 11.10, Java 6
NPE is thrown while building theme plugin with 'mvn clean install'. Seems that plugin is built correctly and deploys without any problems.
Steps to reproduce:
- Create theme plugin with 'mvn archetype:generate', select liferay-theme-archetype, version 6.2.0-B2,
- Set proper '${liferay.version}' and '${liferay.maven.plugin.version}' (6.2.0-B2)
- Go to created project and type 'mvn clean install'
Build output:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Liferay test theme 1.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ liferay-test-theme --- [INFO] Deleting X:\liferaybeta_workspace\liferay-test-theme\target [INFO] [INFO] --- liferay-maven-plugin:6.2.0-B2:theme-merge (default) @ liferay-test-theme --- [INFO] Parent theme group ID com.liferay.portal [INFO] Parent theme artifact ID portal-web [INFO] Parent theme version 6.2.0-B2 [INFO] Parent theme ID classic [INFO] Copying html/themes/_unstyled/templates to X:\liferaybeta_workspace\liferay-test-theme\target\liferay-test-theme-1.0\templates [INFO] Copying html/themes/_unstyled/css to X:\liferaybeta_workspace\liferay-test-theme\target\liferay-test-theme-1.0\css [INFO] Copying html/themes/_unstyled/images to X:\liferaybeta_workspace\liferay-test-theme\target\liferay-test-theme-1.0\images [INFO] Copying html/themes/_unstyled/js to X:\liferaybeta_workspace\liferay-test-theme\target\liferay-test-theme-1.0\js [INFO] Copying html/themes/_styled/css to X:\liferaybeta_workspace\liferay-test-theme\target\liferay-test-theme-1.0\css [INFO] Copying html/themes/_styled/images to X:\liferaybeta_workspace\liferay-test-theme\target\liferay-test-theme-1.0\images [INFO] Copying X:\liferaybeta_workspace\liferay-test-theme\target\liferay-work\appServerPortalDir\html\themes\classic\css to X:\liferaybeta_workspace\liferay-test-theme\target\liferay-test-theme-1.0\css [INFO] Copying X:\liferaybeta_workspace\liferay-test-theme\target\liferay-work\appServerPortalDir\html\themes\classic\images to X:\liferaybeta_workspace\liferay-test-theme\target\liferay-test-theme-1.0\images [INFO] Copying X:\liferaybeta_workspace\liferay-test-theme\target\liferay-work\appServerPortalDir\html\themes\classic\js to X:\liferaybeta_workspace\liferay-test-theme\target\liferay-test-theme-1.0\js [INFO] Copying X:\liferaybeta_workspace\liferay-test-theme\target\liferay-work\appServerPortalDir\html\themes\classic\templates to X:\liferaybeta_workspace\liferay-test-theme\target\liferay-test-theme-1.0\templates [INFO] [INFO] --- liferay-maven-plugin:6.2.0-B2:build-css (default) @ liferay-test-theme --- Loading jar:file:/X:/liferaybeta_workspace/liferay-test-theme/target/liferay-work/appServerPortalDir/WEB-INF/lib/portal-impl.jar!/system.properties sie 27, 2013 11:05:39 PM com.liferay.portal.kernel.log.Jdk14LogImpl info INFO: Global shared lib directory /C:/Users/kgolebiowski/.m2/repository/javax/servlet/servlet-api/2.5/ sie 27, 2013 11:05:39 PM com.liferay.portal.kernel.log.Jdk14LogImpl info INFO: Global lib directory /C:/Users/kgolebiowski/.m2/repository/com/liferay/portal/portal-service/6.2.0-B2/ sie 27, 2013 11:05:39 PM com.liferay.portal.kernel.log.Jdk14LogImpl info INFO: Portal lib directory /X:/liferaybeta_workspace/liferay-test-theme/target/liferay-work/appServerPortalDir/WEB-INF/lib/ sie 27, 2013 11:05:41 PM com.liferay.portal.kernel.log.Jdk14LogImpl info INFO: Properties for portal loaded from [jar:file:/X:/liferaybeta_workspace/liferay-test-theme/target/liferay-work/appServerPortalDir/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties, jar:file:/X:/liferaybeta_workspace/liferay-test-theme/target/liferay-work/appServerPortalDir/WEB-INF/lib/portal-impl.jar!/portal.properties] Loading jar:file:/X:/liferaybeta_workspace/liferay-test-theme/target/liferay-work/appServerPortalDir/WEB-INF/lib/portal-impl.jar!/portal.properties Loading jar:file:/X:/liferaybeta_workspace/liferay-test-theme/target/liferay-work/appServerPortalDir/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties java.lang.NullPointerException at com.liferay.portal.tools.SassToCssBuilder._parseSassDirectory(SassToCssBuilder.java:220) at com.liferay.portal.tools.SassToCssBuilder.<init>(SassToCssBuilder.java:141) at com.liferay.portal.tools.SassToCssBuilder.main(SassToCssBuilder.java:93) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.liferay.maven.plugins.AbstractLiferayMojo.executeTool(AbstractLiferayMojo.java:217) at com.liferay.maven.plugins.SassToCssBuilderMojo.doExecute(SassToCssBuilderMojo.java:57) at com.liferay.maven.plugins.AbstractLiferayMojo.execute(AbstractLiferayMojo.java:74) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [INFO] [INFO] --- liferay-maven-plugin:6.2.0-B2:build-thumbnail (default) @ liferay-test-theme --- [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ liferay-test-theme --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory X:\liferaybeta_workspace\liferay-test-theme\src\main\resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ liferay-test-theme --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ liferay-test-theme --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory X:\liferaybeta_workspace\liferay-test-theme\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ liferay-test-theme --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ liferay-test-theme --- [INFO] No tests to run. [INFO] Surefire report directory: X:\liferaybeta_workspace\liferay-test-theme\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-war-plugin:2.1.1:war (default-war) @ liferay-test-theme --- [INFO] Packaging webapp [INFO] Assembling webapp [liferay-test-theme] in [X:\liferaybeta_workspace\liferay-test-theme\target\liferay-test-theme-1.0] [INFO] Processing war project [INFO] Copying webapp resources [X:\liferaybeta_workspace\liferay-test-theme\src\main\webapp] [INFO] Webapp assembled in [31 msecs] [INFO] Building war: X:\liferaybeta_workspace\liferay-test-theme\target\liferay-test-theme-1.0.war [WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored (webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true') [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ liferay-test-theme --- [INFO] Installing X:\liferaybeta_workspace\liferay-test-theme\target\liferay-test-theme-1.0.war to C:\Users\kgolebiowski\.m2\repository\net\mypieceofthe\liferaybeta\liferay-test-theme\1.0\liferay-test-theme-1.0.war [INFO] Installing X:\liferaybeta_workspace\liferay-test-theme\pom.xml to C:\Users\kgolebiowski\.m2\repository\net\mypieceofthe\liferaybeta\liferay-test-theme\1.0\liferay-test-theme-1.0.pom [INFO] [INFO] --- liferay-maven-plugin:6.2.0-B2:deploy (default-cli) @ liferay-test-theme --- [INFO] Deploying liferay-test-theme-1.0.war to X:\liferay-portal-6.2.0-ce-b2\deploy [null] Copying 1 file to X:\liferay-portal-6.2.0-ce-b2\deploy [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2:18.902s [INFO] Finished at: Tue Aug 27 23:06:08 CEST 2013 [INFO] Final Memory: 16M/519M [INFO] ------------------------------------------------------------------------