Comments (4)
I'm not a WTP's user. you create war with a native WTP action or via "mvn package" (from eclipse) ?
from m2eclipse-scala.
Just by dragging and dropping the project onto the server in the Servers view.
from m2eclipse-scala.
Unless Scala IDE requires the Scala Classpath Container, m2e-scala should simply remove it from the project classpath, as all the classpath management should be driven by Maven. Doing so, the WTP integration would just work OOTB (provided m2e-wtp is installed).
If that's not an option, then, what you should do is mark the Scala Classpath Container as deployable in m2e-scala. No need to add a dependency on WTP, m2e-wtp or any other 3rd party features : Check if the Maven Classpath Library has the "org.eclipse.jst.component.dependency" classpath attribute. If it does, then copy it and add it to the Scala Classpath Library too.
You'll end up with :
<classpathentry kind="con" path="org.scala-ide.sdt.launching.SCALA_CONTAINER">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
Only problem is it will make all dependencies from that library deployed on WTP servers (*-library, *-dbc, *-swing). If they're not all required at runtime by scala web apps, you should then loop on all individual classpath entries of the Scala Classpath Container. For each jar that must not be deployed (I dunno how you decide that), you add a "org.eclipse.jst.component.nondependency" attribute. See how it's done in m2e-wtp : http://git.eclipse.org/c/m2e-wtp/org.eclipse.m2e.wtp.git/tree/org.eclipse.m2e.wtp/src/org/eclipse/m2e/wtp/WebProjectConfiguratorDelegate.java#n372
from m2eclipse-scala.
I created PR #22 to address the problem.
Currently all the jars from the Scala lib will be deployed, I didn't have time to write all the boilerplate code for specific jar handling.
If you want to test it, a zipped update site is attached to https://issues.jboss.org/browse/JBDS-2259
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.