Scala feature is bundled with a coupe of plugins, each one has its own
version number. And, recently, from NetBeans 6.0, 6.5 to 6.7, the
underlying architecture changes rapidly, and not compatible with each
other, thus I have to maintain different branch for each NetBeans
release, and change the version number naming rule to relate to
NetBeans version. So just forget about the version number from module
names. I have a plan to maintain a AutoUpdate center for Scala/Erlang
plugins, and will got all these modules version to work for upgrade
aware.
>
> I have a Maven based project, using the Maven scala plugin (Maven
> 2.1.0).
>
> The project is mixed Java and Scala and I'm going back and forth, I
> have a src/main/java and src/main/scala directory.
>
> Using Java from Scala works fine: Java classes are detected and auto-
> completed by the plugin.
>
> Using Scala from Java does not work: that is, I can compile my project
> without errors using Maven but the plugin does not seem to recognize
> any of the Scala packages and classes from within Java code.
That's the issue when Java/Scala code are mixed in same project. The
editor can aware Java code from Scala, but not vice versus until I
implement a Scala->Java Mapping, it's not a easy work, I've evaluated
some prototype work, and need more carefully thinking about it, for
performance and timesheet.
Currently, the best way is to separate Java/Scala code to different
projects. For Maven project, it should work almost smoothly, but you
need to run "mvn install" after source code modified, to reflect the
changes aware for the other projects, the behavior may depend on maven
plugin for NetBeans, I will do some detailed testing and improvement
when I have time, even co-work with the maven plugin developers.
Cheers,
-Caoyuan
NetBeans version. So just forget about the version number from module
names. I have a plan to maintain a AutoUpdate center for Scala/Erlang
plugins, and will got all these modules version to work for upgrade
aware.
That's the issue when Java/Scala code are mixed in same project. Theeditor can aware Java code from Scala, but not vice versus until I
implement a Scala->Java Mapping, it's not a easy work, I've evaluated
some prototype work, and need more carefully thinking about it, for
performance and timesheet.
Currently, the best way is to separate Java/Scala code to different
projects.
For Maven project, it should work almost smoothly, but you
need to run "mvn install" after source code modified, to reflect the
changes aware for the other projects, the behavior may depend on maven
plugin for NetBeans, I will do some detailed testing and improvement
when I have time, even co-work with the maven plugin developers.