Thanks for the quick reply Ramon.
I stuck at point
3- Generate wsdd.
I tried this command mvn liferay:build-wsdd -DserverConfigFileName=fileC://server-config.wsdd -DserviceFileName=C://service.xml -X
It gives me below error.
1
2
3Loading jar:file:/C:/Documents%20and%20Settings/amit.doshi/.m2/repository/com/liferay/portal/portal-impl/6.1.20/portal-impl-6.1.20.jar!/portal.properties
4[INFO] ------------------------------------------------------------------------
5[INFO] BUILD FAILURE
6[INFO] ------------------------------------------------------------------------
7[INFO] Total time: 9.016s
8[INFO] Finished at: Thu Feb 14 18:47:07 IST 2013
9[INFO] Final Memory: 8M/34M
10[INFO] ------------------------------------------------------------------------
11[ERROR] Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.1.20:build-wsdd (default-cli) on project mexico-application-portlet-service: fileC:\server-config.wsdd (The filename, directory name, or volume label syntax is incorrect) -> [Help 1]
12org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.1.20:build-wsdd (default-cli) on project mexico-application-portlet-service: fileC:\server-config.wsdd (The filename, directory name, or volume label syntax is incorrect)
13 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:203)
14 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
15 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
16 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
17 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
18 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
19 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
20 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
21 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
22 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:451)
23 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188)
24 at org.apache.maven.cli.MavenCli.main(MavenCli.java:134)
25 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
26 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
27 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
28 at java.lang.reflect.Method.invoke(Method.java:597)
29 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
30 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
31 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
32 at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
33Caused by: org.apache.maven.plugin.MojoExecutionException: fileC:\server-config.wsdd (The filename, directory name, or volume label syntax is incorrect)
34 at com.liferay.maven.plugins.AbstractLiferayMojo.execute(AbstractLiferayMojo.java:72)
35 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
36 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195)
37 ... 19 more
38Caused by: java.io.FileNotFoundException: fileC:\server-config.wsdd (The filename, directory name, or volume label syntax is incorrect)
39 at java.io.FileOutputStream.open(Native Method)
40 at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
41 at com.liferay.portal.util.FileImpl.write(FileImpl.java:789)
42 at com.liferay.portal.util.FileImpl.write(FileImpl.java:768)
43 at com.liferay.portal.util.FileImpl.write(FileImpl.java:764)
44 at com.liferay.portal.util.FileImpl.write(FileImpl.java:805)
45 at com.liferay.portal.kernel.util.FileUtil.write(FileUtil.java:328)
46 at com.liferay.portal.tools.WSDDBuilder.build(WSDDBuilder.java:60)
47 at com.liferay.maven.plugins.WSDDBuilderMojo.doExecute(WSDDBuilderMojo.java:33)
It would it be great help. if you attach your pom.xml and also the command that you used to generate wsdd.
Thanks & Regards,
Amit Doshi
Be kell jelentkezni ahhoz, hogy ez helytelenként legyen megjelölve.