I am trying my hands on the maven java Akka tutorials on the calculation of pi.
Please I am new to both: maven and Akka but want know if it is possible
to create a maven akka project and then import the project into
Eclipse IDE and be able to run the project in the eclipse IDE.
If it is possible I will be happy for some directions or tutorials
your suggestions are welcomed.
Here You have some information how start Akka, but first You have to know something about maven.
Since the exact link in tostao's post does not work anymore here is the link for the latest version of akka:
Akka Getting Started. Consider replacing current in the url with the actual version, 2.9.10 as of writing.
If you use eclipse you might want to have a look into scala-ide.
Typesafe, the company behind Akka and an important part of the scala world, also offer their own build tool i.e. sbt. Especially their typesafe activator templates are build on top of sbt which might suggest a preference of sbt over maven from their part.
Related
I would like to automate few applications. This application consist of web, mobile (Android + IOS) and API. How to organize this project for this situation.
Im automation in selenium using Java. In C#, once can create a project consists of multiple sub projects. How to do it in Java?
Please advise.
A billion thanks for your help.
It depends on which build automation tool you choose to work with.
When you work with C# you probably use MSBuild
In Java Stack the most popular build automation tools are maven and gradle and both support multi-module projects, It is up to you to choose which one suits your project requirements.
See
Gradle vs. Maven
Multi-Module Project with Maven
Introduction to Gradle
Maven Scopes and Gradle Configurations Explained
I am not 100% sure what your goal is, but when it's about setting up Selenium (JAVA) projects and run them automatically, I can recommend you to use Maven & Jenkins to achieve this goal. Find further information in the following link:
https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html
I hope I could help.
Trying to migrate an ant project to the maven project and was able to use translate to the maven project feature of the eclipse. Though I have an idea of working with maven projects so far, but still would like to know if there are any best practices to follow while migrating it.
Also, would really appreciate if anyone can help like how to set up the same on bamboo that would be ideal for all the working developers.
The steps achieved so far are :
Created pom.xml with all the required jars and repositories.
Created a local .m2 folder with dependencies present and installed.
I would like a meaningful transition from ant to maven. I know how things work on local but when it comes to deploying it to bamboo, I am a bit confused with so much distributed information on the internet.
Any specific leads would be really helpful
I am an experienced Java developer with years of familarity with Eclipse and Maven.
My goal is to create an android application and I am getting familiar with the latest Development environment Android Studio 2.3.2 which obviously uses Java 8 and Gradle. The app shall share code with an Eclipse based project that uses maven and Swing and is also Java 8 based. I am intending to publish the result as an open source project on github.
I found e.g.
https://github.com/uhafner/android-config as an example but that seems to be outdated.
https://github.com/cgeo/cgeo - which explictly states that eclipse is only used for codewriting/testing
Gradle project for plain Java and Android with single source tree suggests an answer for a gradle only approach that has a tutorial link as an answer (which is not accepted) and no example
https://github.com/javadev/calc which is purely maven driven and has two pom.xml files
https://github.com/adrian/upm-swing and https://github.com/adrian/upm-android simply have copied subdirectories instead of any kind of shared config management
How feasible is a combined maven/gradle project structure?
What would be a proper way to structure the project files to accomplish the above goals?
What are good examples projects that follow a similar approach?
My reason to be reluctant with Gradle and IntelliJ is obvious. It is an unfamiliar environment for me and android is not the main target of my development.
Part of the answer seems be covered at:
Can Android Studio be used to run standard Java projects?
I got somewhat of a success with the project https://github.com/BITPlan/can4eve
but would appreciate some help on the android studio / gradle side of things.
The project also has travis support built in and I am also running nightly Jenkins checks based on maven.
I'm trying to understand what's the best way to setup a project
that is a mix of java and scala and that will use lift.
Lift is intended to run embedded by jetty in another application.
I'm comfortable to work in Eclipse and also used to how it
works with ant as build tool.
I'm a relatively newbie in both scala and lift and get confused
about the different build tool and how to set up things.
I don't really understand maven and haven't really looked at sbt,
but it seem to be the choice of scala developers, but I'm also
dependent on quite some javacode.
Any suggestions, links, tutorials or else on how to setup
the best environment so I can work comfortably in Eclipse
and also build releases quite easily given my scala/java/lift/jetty
enrironment?
I would say that if you are comfortable using Ant as a build tool, Maven should be a piece of cake to use instead. It's main advantage is encouraging conforming to conventions rather than lots of configuration meaning that as long as you follow the standards, setup and usage of any most maven projects is a breeze. I strongly recommend that you invest the time to become familiar with this build tool because it will be very valuable experience/knowledge you can continue to use in your Java career.
With Maven aside, if you are convinced that you and the rest of the project's devs will all be using Eclipse, I would recommend using Eclipse's built in project management infrastructure. It uses Ant under the hood so you will be able to leverage you experience to also run/release from the command-line. All you need to do is set up a eclipse Lift project normally and then to add the scala integration, check out Scala IDE for pretty good IDE support of scala development inside of eclipse.
Good luck!
This screencast is what I used to get started. It starts with a git repository for an SBT template and then adds the Eclipsify sbt plugin to make it into an Eclipse project.
I am building a plugin for Eclipse - but as we use Maven as a standard build platform I would like to be able to build the plugin using Maven.
I have found a previous question about using Maven with Eclipse Plugins - but as it is a year old I thought it was worthwhile collecting some new answers:
Is it currently possible to build Eclipse Plugins by Maven AND have nice IDE Integration?
It seems that Tycho has not been driven forward much in the last year - but has anything else been created that fulfils this need or is there an easier way?
Does anyone recommend still the Maven PDE plugin? Is this a cumbersome solution as it is just a wrapper for ANT scripts?
I'm on the Tycho mailing list and I see plenty of feedback that suggests that people are successfully building plug-ins using Maven. My current project isn't doing OSGi development, so I can't vouch from personal experience with the latest version of Tycho. It's also worth pointing out that Tycho currently supports (to the best of my knowledge) a manifest-first approach to building plug-ins (as apposed to POM-first) - this might be a factor in deciding if Maven/Tycho fits your project.
It seems that Tycho has not been driven forward much in the last year - but has anything else been created that fulfils this need or is there an easier way?
The project is definitely active (have a look at the git repository), regardless of the updates of its website and AFAIK Sonatype is using it (successfully) for m2eclipse.