0

Is it possible to have in the same solution a project in Java, another in Python and another in Scala? Or all the projects must be either in Java either in Scala?

4
  • 2
    What is a Maven "solution"? Commented Jul 23, 2019 at 8:06
  • A Maven solution is the one that is described using a pom.xml file. In such solution we might have sub-projects as modules. These modules are run together using an aggregator (a parent project). So can modules be of different languages? Thanks Commented Jul 23, 2019 at 8:18
  • 1
    @Farah That's called a project (POM is Project Object Model). Commented Jul 23, 2019 at 10:26
  • Yes @AlexyRomanov I only used the term solution to indicate having multiple components aggregated by a pom parent and not a single project. Commented Jul 23, 2019 at 13:30

1 Answer 1

3

You can mix Java and Scala in a single Maven project. Read the following tutorial for more information:

Python and Maven: well python doesn't need to be compiled like Java or Scala code does. Instead, python project building is about resolving dependencies, running unit tests, creating installables and so on. Unfortunately, python has its own way of doing these things that different from Maven. To the extent that it probably doesn't make much sense for Maven to manage python code.

Having said that, you can "lightly integrate" python into a Maven build system by having Maven run a setup.py script as an external command. Here is an article that describes this approach:

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.