Missing required classes_managed library

Im uses play 2.0 and is trying to modulate the project into a subproject. The folder structure $ {project_home} /data/app/models/MyModel.java is created in $ project_home

Look Build.scala

val dataDependencies = Seq(
)

val dataProject = PlayProject(appName + "-data", appVersion, dataDependencies, path = file("data"), mainLang = JAVA)

val main = PlayProject(appName, appVersion, appDependencies, mainLang = JAVA).settings(
  // Add your own project settings here      
).dependsOn(dataProject).aggregate(dataProject)

I ran the eclpsify play command.

In eclipse, I imported two projects, the main project and the data project.

The following error is displayed in the data project

The required library is missing in the project's "-data": '/ path / to / myprojects / data / target / scala-2.9.1 / classes_managed'

What am I doing wrong here? Any help would be appreciated

+3
source share
6 answers

2.0.2 target/scala-2.9.1/classes_managed, clean all eclipse

,

+3

, ( Windows).

  • .classpath, , : <classpathentry path="D:\your_play_project_folder\target\scala-2.10\classes_managed" kind="lib"></classpathentry>

  • "target", : <classpathentry path="target\scala-2.10\classes_managed" kind="lib"></classpathentry>

  • Eclipse.

+8

, 3 :

  • // scala -2.9.1/classes_managed .

  • ( )

  • 2.1-
+2

:

  • / scala -2.9.1/classes_managed .classpath
  • ​​/ scala -2.9.1/classes_managed eclipse: project/properties/Java Build Path → tab Libraries → ...
+2

Try playing clean and then playing eclipse to regenerate the eclipse project files from the command line in the project’s base folder.

+1
source

try the following:

1) sbt> clean/compile in parent, followed by child project
2) add target/src-managed/main as source folder in eclipse, both projects
3) in child
java build path > projects > (add parent)
project references > (add parent)

What does dataProject do by the way? My basic project provides a DAO layer and other nuts and bolts that have nothing to do with Play; so I just define it as a root sbt project and transfer it to the child project viadependsOn(root)

Anyway, hope this question is sorted ...

0
source

All Articles