Comments (6)
+1
This on didn't happen with 3.0.2
from m2eclipse-scala.
Moreover, test/scala is no longer automatically added so the source directories.
from m2eclipse-scala.
Hi,
I didn't find solution on side of this plugin (I did lot of tried). The issue come from :
- m2e who add every sourceRoots and testRoots define in the pom.xml regardless of existance, but mark them optional (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=361549). I create a simple project with only a pom.xml, no directory, and I uninstall m2e-scala, and m2e import a java project with missing source folder (see Build Path)
- scala-ide that didn't ignore non-existing directory and failed when it try to compile.
- scala-maven-plugin, since 3.0.2, it change management of source/add-source (my own) see http://davidb.github.com/scala-maven-plugin/changes-report.html#a3.0.2
My suggestions :
-
for pure scala project set
<sourceDirectory>src/main/scala</sourceDirectory> <testSourceDirectory>src/test/scala</testSourceDirectory>
-
create at least the directory define in (with a .keep file for the SCM)
Stephane I applied those change in my fork of gatling. (I can make a pull request if who whish). I redefine sourceDirectory and testSourceDirectory in every scala project, but you can choose to do the opposite define them to scala directory into the parent and redefine in java sub-module.
During the analyse I made some change in m2e-scala, so next version will no longer add implicit the scala directory to match the change made in scala-maven-plugin and m2e 0.12
/davidB
PS: Sorry for late reply, I didn't receive notification
from m2eclipse-scala.
I confirm that forcing the directories did the trick.
Thanks!
from m2eclipse-scala.
It seems to be corrected in recent Scala IDE: scala-ide/scala-ide#262
from m2eclipse-scala.
Thanks for the pointer, François!
from m2eclipse-scala.
Related Issues (20)
- Compiling tests from src/test/scala should produce .class files in target/test-classes. They end up in target/classes instead. HOT 2
- scala-reflect dependency should not be added to .classpath
- Class not found in JUnit java tests for java-scala cycle dependency HOT 1
- Importing Tycho test plugin pom HOT 2
- scala-swing missing from classpath after updating to Scala IDE 4.0.0.m2 HOT 6
- m2eclipse-scala does not set scala library container properly HOT 13
- sample project "prj-scala-only" compilation failure HOT 5
- m2eclipse seems to sort the classpath without a need HOT 5
- update 0.4.3 -> 0.5.0 breaks m2e 1.5 and 1.6 on eclipse 4.3 and 4.4 HOT 3
- java.util.ConcurrentModificationException when running 0.5.0 with scala eclipse 4.0rc1 HOT 1
- XPlugin: configurator does not set compiler plugin property HOT 3
- Eclipse warning: More than one scala library found in the build path
- Post a License
- Error installing plugin with Eclipse Neon? HOT 1
- Mirror down HOT 1
- Installing the plugin from local
- Scala Archetype doesn't show up after installing m2eclipse-scala plugin HOT 2
- SCALA Container still not being detected from Maven plugin HOT 4
- unable to reach update site HOT 3
- DepShield encountered errors while building your project
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 m2eclipse-scala.