Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
María Gutiérrez
Construcción de temas con maven
15 de Dezembro de 2011 03:33
Resposta

María Gutiérrez

Ranking: New Member

Mensagens: 1

Data de entrada: 15 de Dezembro de 2011

Mensagens recentes

Hola 'lista',

os remito un error, por si alguien puede apuntarme qué puedo estar haciendo mal. Gracias de antemano.

Estoy construyendo temas con maven.

Aparentemente, para crear un tema a partir de uno propio es suficiente con informar en el pom.xml la siguiente propiedad:

<liferay.theme.parent> groupId:artifactId:version </liferay.theme.parent>

Pero no consigo que funcione. La traza del error es la siguiente:

+ Error stacktraces are turned on.
Scanning for projects...
------------------------------------------------------------------------
Building pruebas2-theme Theme
task-segment: [clean, package, liferay:deploy]
------------------------------------------------------------------------
[clean:clean {execution: default-clean}]
Deleting file set: /liferay-plugins-mvn/themes/pruebas2-theme/target (included: , excluded: [])
[liferay:theme-merge {execution: default}]
------------------------------------------------------------------------
BUILD ERROR
------------------------------------------------------------------------
Parameter 'directory' is not a directory

------------------------------------------------------------------------
Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Parameter 'directory' is not a directory
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Parameter 'directory' is not a directory
at com.liferay.maven.plugins.ThemeMergeMojo.execute(ThemeMergeMojo.java:49)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: java.lang.IllegalArgumentException: Parameter 'directory' is not a directory
at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:293)
at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:378)
at org.apache.commons.io.FileUtils.iterateFiles(FileUtils.java:396)
at com.liferay.maven.plugins.ThemeMergeMojo.doExecute(ThemeMergeMojo.java:159)
at com.liferay.maven.plugins.ThemeMergeMojo.execute(ThemeMergeMojo.java:46)
... 19 more


Un saludo

María