留言板

Unable to create maven theme in DXP

Vasu K,修改在6 年前。

Unable to create maven theme in DXP

Junior Member 帖子: 37 加入日期: 09-10-5 最近的帖子
Successfully created maven theme using artifact and IDE, but while building it the below is the error. The same error is coming if we build using IDE or maven command prompt.

[DEBUG] (f) _project = MavenProject: com.me:my-theme:1.0-SNAPSHOT @ D:\DXP\maven-wrkspe\my-theme\pom.xml
[DEBUG] (f) _repositorySystemSession = org.eclipse.aether.DefaultRepositorySystemSession@7d3430a7
[DEBUG] (s) diffsDir = D:\DXP\maven-wrkspe\my-theme\src\main\webapp
[DEBUG] (s) name = my-theme
[DEBUG] (s) outputDir = D:\DXP\maven-wrkspe\my-theme\target\build-theme
[DEBUG] (s) parentName = _styled
[DEBUG] (s) templateExtension = ftl
[DEBUG] -- end configuration --
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.040 s
[INFO] Finished at: 2017-09-22T21:03:38-04:00
[INFO] Final Memory: 7M/307M
[INFO] ------------------------------------------------------------------------
---------------------------------------------------
constituent[0]: file:/D:/DXP/apache-maven-3.5.0/bin/../conf/logging/
constituent[1]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/aopalliance-1.0.jar
constituent[2]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/cdi-api-1.0.jar
constituent[3]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/commons-cli-1.4.jar
constituent[4]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/commons-io-2.5.jar
constituent[5]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/commons-lang3-3.5.jar
constituent[6]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/guava-20.0.jar
constituent[7]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/guice-4.0-no_aop.jar
constituent[8]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/jansi-1.13.jar
constituent[9]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/javax.inject-1.jar
constituent[10]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/jcl-over-slf4j-1.7.22.jar
constituent[11]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/jsr250-api-1.0.jar
constituent[12]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-artifact-3.5.0.jar
constituent[13]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-builder-support-3.5.0.jar
constituent[14]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-compat-3.5.0.jar
constituent[15]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-core-3.5.0.jar
constituent[16]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-embedder-3.5.0.jar
constituent[17]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-model-3.5.0.jar
constituent[18]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-model-builder-3.5.0.jar
constituent[19]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-plugin-api-3.5.0.jar
constituent[20]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-repository-metadata-3.5.0.jar
constituent[21]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-resolver-api-1.0.3.jar
constituent[22]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-resolver-connector-basic-1.0.3.jar
constituent[23]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-resolver-impl-1.0.3.jar
constituent[24]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-resolver-provider-3.5.0.jar
constituent[25]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-resolver-spi-1.0.3.jar
constituent[26]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-resolver-transport-wagon-1.0.3.jar
constituent[27]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-resolver-util-1.0.3.jar
constituent[28]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-settings-3.5.0.jar
constituent[29]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-settings-builder-3.5.0.jar
constituent[30]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-shared-utils-3.1.0.jar
constituent[31]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/maven-slf4j-provider-3.5.0.jar
constituent[32]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/org.eclipse.sisu.inject-0.3.3.jar
constituent[33]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/org.eclipse.sisu.plexus-0.3.3.jar
constituent[34]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/plexus-cipher-1.7.jar
constituent[35]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/plexus-component-annotations-1.7.1.jar
constituent[36]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/plexus-interpolation-1.24.jar
constituent[37]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/plexus-sec-dispatcher-1.4.jar
constituent[38]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/plexus-utils-3.0.24.jar
constituent[39]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/slf4j-api-1.7.22.jar
constituent[40]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/wagon-file-2.12.jar
constituent[41]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/wagon-http-2.12-shaded.jar
constituent[42]: file:/D:/DXP/apache-maven-3.5.0/bin/../lib/wagon-provider-api-2.12.jar
---------------------------------------------------
Exception in thread "main" java.util.zip.ZipError: invalid END header (bad central directory offset)
at com.sun.nio.zipfs.ZipFileSystem.zerror(ZipFileSystem.java:1605)
at com.sun.nio.zipfs.ZipFileSystem.initCEN(ZipFileSystem.java:1045)
at com.sun.nio.zipfs.ZipFileSystem.<init>(ZipFileSystem.java:130)
at com.sun.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:117)
at java.nio.file.FileSystems.newFileSystem(FileSystems.java:326)
at java.nio.file.FileSystems.newFileSystem(FileSystems.java:276)
at com.liferay.portal.tools.theme.builder.ThemeBuilder._copyTheme(ThemeBuilder.java:219)
at com.liferay.portal.tools.theme.builder.ThemeBuilder.build(ThemeBuilder.java:157)
at com.liferay.portal.tools.theme.builder.maven.BuildThemeMojo.execute(BuildThemeMojo.java:78)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

D:\DXP\maven-wrkspe\my-theme>
Vasu K,修改在6 年前。

RE: Unable to create maven theme in DXP

Junior Member 帖子: 37 加入日期: 09-10-5 最近的帖子
This is really urgent...


Any help is appreciated. Liferay is releasing new features but they are unstable. Theme generator is too tedious and that can't be used with any build tools.
thumbnail
Joye Luo,修改在6 年前。

RE: Unable to create maven theme in DXP

Regular Member 帖子: 144 加入日期: 16-5-3 最近的帖子
Hey Vasu,

I reproduced your problem on my computer.
And then find the solution.
It caused by com.liferay.frontend.theme.unstyled or com.liferay.frontend.theme.unstyled isn't downloaded completely in your maven local repository. U can delete them and refresh your maven project. Then everything will work.

Hope that can help u solve this problem.
thumbnail
Syed Ali,修改在6 年前。

RE: Unable to create maven theme in DXP

New Member 帖子: 15 加入日期: 14-5-28 最近的帖子
This issue can be because of the dependency files, Delete the target folder of your maven module project and Inside the MAVEN_USER_Path\m2.\repository\com folder delete the "liferay" folder completely and run mvn install in the maven module project.