Comments (6)
I cannot reproduce this. Instead, I get the expected behavior for mult-module projects under 1.2 and 1.3-RC1.
Please take a look at the example project which defines several levels of sub-project nesting: https://github.com/typesafehub/sbteclipse/tree/master/example
If I run sbt and invoke eclipse skip-root at the root level, I get three .project/.classpath files like expected: For sub1, sub11 and sub12. Nothing for root, because of skip-root. The .classpath files aren't empty and all projects can be imported into Eclipse. Of course in this example Eclipse will complain, because the root project is needed.
Please verify your setup. If the error still exists, please send my a reproducible test case including a detailed description of your setup.
from sbt-eclipse.
see my modified Build.scala from example
https://gist.github.com/1113400#file_build.scala
jarod@scalala:~/workspace/scala/sbteclipse/example$ sbt
Getting net.java.dev.jna jna 3.2.3 ...
:: retrieving :: org.scala-tools.sbt#boot-app
confs: [default]
1 artifacts copied, 0 already retrieved (838kB/72ms)
Getting Scala 2.8.1 (for sbt)...
:: retrieving :: org.scala-tools.sbt#boot-scala
confs: [default]
3 artifacts copied, 0 already retrieved (15178kB/445ms)
Getting org.scala-tools.sbt sbt_2.8.1 0.10.1 ...
:: retrieving :: org.scala-tools.sbt#boot-app
confs: [default]
36 artifacts copied, 0 already retrieved (6414kB/94ms)
[info] Set current project to default-8283d8 (in build file:/home/jarod/.sbt/plugins/)
[info] Compiling 1 Scala source to /home/jarod/workspace/scala/sbteclipse/example/project/target/scala_2.8.1/classes...
Getting Scala 2.9.0-1 ...
:: retrieving :: org.scala-tools.sbt#boot-scala
confs: [default]
4 artifacts copied, 0 already retrieved (20447kB/555ms)
[info] Set current project to root (in build file:/home/jarod/workspace/scala/sbteclipse/example/)
sbt (root)> project sub1
[info] Set current project to sub1 (in build file:/home/jarod/workspace/scala/sbteclipse/example/)
sbt (sub1)> eclipse
[info] Updating {file:/home/jarod/workspace/scala/sbteclipse/example/}sub1...
[info] Done updating.
[info] Successfully created Eclipse project files. Please select the appropriate Eclipse plugin for Scala 2.9.0-1!
sbt (sub1)>
when it work correctly the below line should appear for every module(when use sbteclipse 1.1)
[info] Updating {file:/home/jarod/workspace/scala/sbteclipse/example/}sub1...
and see the two .classpath files in gist, one is for root module and another is for sub1, their content is the same.
the line
<classpathentry kind="lib" path="/home/jarod/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.6.1.jar"></classpathentry>
shoudn't appear in the root .classpath.
if I run "eclipse" task on root module then the line gone form every .classpath file.
from sbt-eclipse.
OK, I got it. Looks really bad.
Thanks for spotting this!
from sbt-eclipse.
Jarod,
Could you please switch to 1.3-RC2 and try again? Thanks.
Heiko
from sbt-eclipse.
It works like a charm. Thank you for the fix
from sbt-eclipse.
Good to hear. Thanks again for reporting this.
from sbt-eclipse.
Related Issues (20)
- Doesn't see managedSources unless explicitly invoked
- feature request: need a way to specify an alternative default build files directory HOT 15
- Support for multi-project build HOT 1
- relocate from typesafehub org to Lightbend org HOT 4
- documentation infinite loop HOT 1
- Feature: consistent project names
- sbteclipse
- sbteclipse installation i do not understand HOT 1
- sbteclipse plugin doesn't download. HOT 1
- sbteclipse 5.2.5? HOT 1
- [error] a required artifact is not listed by module descriptor: *#*!*.* HOT 2
- Feature Request: allow for custom `createLinkName` function
- Missing entry's in ".classpath" since Java-Secure-Update HOT 3
- Support for Java 9 and above? HOT 3
- Scala Compiler Cannot Apply Installation for Project Settings
- Add support for Java Execution Environments 9, 10, 11, 12, 13 HOT 1
- Missing Scala lib in .classpath HOT 2
- Error using sbteclipse with SBT 1.4.0 HOT 12
- Travis CI is dropped HOT 1
- Getting unresolved dependency for sbteclipse-plugin in sbt 1.2.8 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbt-eclipse.