scala-archetype-simple | a simple maven archetype for project in scala
kandi X-RAY | scala-archetype-simple Summary
kandi X-RAY | scala-archetype-simple Summary
a simple maven archetype for project in scala
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of scala-archetype-simple
scala-archetype-simple Key Features
scala-archetype-simple Examples and Code Snippets
Community Discussions
Trending Discussions on scala-archetype-simple
QUESTION
I'm looking for a up-to-date archetype for developing Scala with Maven framework support. The newest one I could find is this one "https://github.com/davidB/scala-archetype-simple", which is 2 years old. The one that came bundled with IntelliJ preinstalled Maven is even older. I am able to program Scala with the default IBT framework but want to use a library that is exclusively deployed for Maven.
To be honest, I don't have much experience with Maven but I never had problems when using it in my Java projects. But when I use any of the named archetypes at first there is nothing working until I update the scala library. Then at least the importing of classes works. But IntelliJ still gives me all kinds of errors. It looks like the IDE gets confused between Java and Scala syntax for some reason. It gives me the option to autocomplete stuff like List.$plus$plus[B,That](that...
but when I click on that, it is not recognized (List.++(...
is not showing up at all).
Now I'm guessing this is because of a lot of outdated libraries loaded through the archetype (at least I hope). Is there a newer archetype out there or is my only option to update all the dependencies on my own?
It might also be my IntelliJ install on Linux, I'll try it on my windows PC as soon as I get to it.
UPDATE
Okay so I have managed to do it completely without an archetype. But the question still stands, is there an up-to-date archetype out there that doesn't use the 6 year old maven-scala-plugin
, but rather the new scala-maven-plugin
? And why is the only one I can find so old?
ANSWER
Answered 2020-Feb-22 at 15:27The official tutorial at https://docs.scala-lang.org/tutorials/scala-with-maven.html#creating-your-first-project mentions net.alchim31.maven:scala-archetype-simple
which can be found here: https://mvnrepository.com/artifact/net.alchim31.maven/scala-archetype-simple
QUESTION
Hi I wanted to test out the EMR custom step feature.
I created a simple 2 classes Scala application which writes a text file on S3.
Here is the tree
ANSWER
Answered 2019-May-15 at 14:44The most recent version of the EMR at this time (May 2019) is 5.23.0 and it still uses Spark 2.4.0 (https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-release-5x.html#emr-5200-release)
https://spark.apache.org/docs/2.4.0/ :
Spark runs on Java 8+, Python 2.7+/3.4+ and R 3.1+. For the Scala API, Spark 2.4.0 uses Scala 2.11. You will need to use a compatible Scala version (2.11.x).
I believe non-experimental support for Scala 2.12.X is only added in Spark 2.4.3, which is not yet available on EMR: https://spark.apache.org/docs/2.4.3/ :
Spark runs on Java 8+, Python 2.7+/3.4+ and R 3.1+. For the Scala API, Spark 2.4.3 uses Scala 2.12. You will need to use a compatible Scala version (2.12.x).
QUESTION
ANSWER
Answered 2018-Jun-13 at 14:09I tried to follow your exact steps but didn't get the same error. I'm using IntelliJ IDEA Community 2016.2 .
From the error message you received, it looks like you might have a corrupted .m2\settings.xml. I noticed that this file doesn't exist by default on my computer. I tried to create one with only the 'x' character, and that causes an error on my maven build (but not exactly the same as yours).
Try to check that file, and make sure it's content is xml formatted, or erase it completely (if you are sure it's safe).
There is a UI way to see that document in IntelliJ:
1. Open the Maven Project tab
2. Right click on your project title
Maven Project Tab
3. Select " Open 'settings.xml' "
opened settings.xml
4. The setting file content is displayed in your IDE and can be modified
Hope that helps
QUESTION
I am new to scala. And also first time trying to create maven scala project in eclipse (oxygen 3).
First of all, I have eclipse scala plugin installed.
Then, I followed instructions given in this post. As given in the post, I installed eclipse-maven plugin from this repo. Then created new maven project of scala-archetype-simple
archetype. This archetype wasnt present there. So I added it by clicking on "Add archetype" button and following wizard.
However after following all steps, I ended up in following errors:
- Description Resource Path Location Type More than one scala library found in the build path (E:/Program Files/eclipse oxygen 3/eclipse/plugins/org.scala-lang.scala-library_2.12.3.v20170725-052526-VFINAL-6ac6da8.jar, C:/Users/crrma/.m2/repository/org/scala-lang/scala-library/2.10.0/scala-library-2.10.0.jar).At least one has an incompatible version. Please update the project build path so it contains only one compatible scala library. scala Unknown Scala Classpath Problem
- Description Resource Path Location Type scalatest_2.10-2.0.M6-SNAP8.jar of scala build path is cross-compiled with an incompatible version of Scala (2.10.0). In case this report is mistaken, this check can be disabled in the compiler preference page. scala Unknown Scala Version Problem
- Description Resource Path Location Type scalaz-concurrent_2.10-7.0.0.jar of scala build path is cross-compiled with an incompatible version of Scala (2.10.0). In case this report is mistaken, this check can be disabled in the compiler preference page. scala Unknown Scala Version Problem
- Description Resource Path Location Type scalaz-core_2.10-7.0.0.jar of scala build path is cross-compiled with an incompatible version of Scala (2.10.0). In case this report is mistaken, this check can be disabled in the compiler preference page. scala Unknown Scala Version Problem
- Description Resource Path Location Type scalaz-effect_2.10-7.0.0.jar of scala build path is cross-compiled with an incompatible version of Scala (2.10.0). In case this report is mistaken, this check can be disabled in the compiler preference page. scala Unknown Scala Version Problem
- Description Resource Path Location Type specs2_2.10-1.13.jar of scala build path is cross-compiled with an incompatible version of Scala (2.10.0). In case this report is mistaken, this check can be disabled in the compiler preference page. scala Unknown Scala Version Problem
Image of eclipse problems (stackoverflow is not allowing me to embed images due to low reputation points)
Image of eclipse Build path window
Whats wrong here?
...ANSWER
Answered 2018-Apr-02 at 05:31Please try this.
More than one scala library found in the build path
Right click on the project. Click properties
--> Scala Compiler
--> check check box on top Use project settings
--> In scala installation drop down select Latest 2.x bundle(dynamic)
.
X is the maximum version number available in the drop downs.
In case you are using this scala for running Spark programs. The select 2.11 dynamic bundle.
QUESTION
I try to instantiate an ActorSystem like below
...ANSWER
Answered 2017-Dec-22 at 19:52Sure, you should use the Akka version corresponding to your Scala version, 2.12:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install scala-archetype-simple
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page