Hey,
while developing my portlet with maven I got an error during the service bulding process. Building services works fine untl I define a reference to a Liferay Entitity.
1<reference package-path="com.liferay.portal.model" entity="User" />
When I wrote this into my service.xml I got the follwing error

:
1
2[INFO] --- liferay-maven-plugin:6.1.1:build-service (default-cli) @ dfinder-portlet ---
313:16:52,142 INFO [main][PropsUtil:110] Global shared lib directory /home/jb01/.m2/repository/javax/servlet/servlet-api/2.5/
413:16:52,142 INFO [main][PropsUtil:121] Global lib directory /home/jb01/.m2/repository/com/liferay/portal/portal-service/6.1.1/
513:16:52,142 INFO [main][PropsUtil:147] Portal lib directory /home/jb01/workspaces/memo/dfinder/dfinder-portlet/target/liferay-work/appServerPortalDir/WEB-INF/lib/
6Loading jar:file:/home/jb01/.m2/repository/com/liferay/portal/portal-impl/6.1.1/portal-impl-6.1.1.jar!/portal.properties
7[INFO] Building from /home/jb01/workspaces/memo/dfinder/dfinder-portlet/src/main/webapp/WEB-INF/service.xml
8java.io.IOException: Unable to open resource in class loader com/liferay/portal/model/service.xml
9[INFO] ------------------------------------------------------------------------
10[INFO] Reactor Summary:
11[INFO]
12[INFO] dfinder ........................................ SUCCESS [5.329s]
13[INFO] dfinder Portlet Service ........................ SUCCESS [3.262s]
14[INFO] dfinder Portlet ................................ SUCCESS [3.263s]
15[INFO] ------------------------------------------------------------------------
16 at com.liferay.portal.kernel.util.StringUtil.read(StringUtil.java:1229)
17 at com.liferay.portal.kernel.util.StringUtil.read(StringUtil.java:1192)
18 at com.liferay.portal.tools.servicebuilder.ServiceBuilder.getEntity(ServiceBuilder.java:929)
19 at com.liferay.portal.tools.servicebuilder.ServiceBuilder._parseEntity(ServiceBuilder.java:4951)
20 at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:636)
21 at com.liferay.maven.plugins.ServiceBuilderMojo.doExecute(ServiceBuilderMojo.java:125)
22 at com.liferay.maven.plugins.AbstractLiferayMojo.execute(AbstractLiferayMojo.java:65)
23 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
24 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
25 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
26 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
27 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
28 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
29 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
30 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
31 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
32 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
33 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
34 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
35 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
36 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
37 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
38 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
39 at java.lang.reflect.Method.invoke(Method.java:601)
40 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
41 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
42 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
43 at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
44[INFO] BUILD SUCCESS
45[INFO] ------------------------------------------------------------------------
46[INFO] Total time: 12.063s
47[INFO] Finished at: Mon Nov 12 13:16:52 CET 2012
48[INFO] Final Memory: 20M/351M
49[INFO] ----------------------------
Is there anybody who help me?
Please sign in to flag this as inappropriate.