Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (4k points)
I have a project on Bitbucket. Only the sources are committed. To retrieve the project onto a new machine, I used Version Control > Checkout from Version Control from within IntelliJ.

It then asks whether I would like to create a new project from this source, to which I reply Yes. So far, so good. It creates a nice little Java project for me, consisting of a single module.

However, my goal in pulling this project into IntelliJ was to turn it into a Maven project. I cannot find any option anywhere that will let me do this!

Is there a way to have IntelliJ just generate a basic empty pom.xml for me, with a name and an artifactId and a repository? Or, is there a way to import the project as a Maven project in the first place? (Whenever I try to create a project from existing source, it only gives me the option of a Java project.)

1 Answer

0 votes
by (46k points)
It's easy just Right-click on the module, choose "Add framework support...", and review the "Maven" technology.

(This also produces a pom.xml for you to change.)

If you mean appending source repository elements, I assume you need to do that manually–not certain.

Pre-IntelliJ 13 this won't change the project to the Maven Standard Directory Layout, 13+ it will.

Related questions

0 votes
1 answer
asked Nov 20, 2019 in Java by Anvi (10.2k points)
0 votes
1 answer
0 votes
1 answer
asked Nov 12, 2019 in Java by Anvi (10.2k points)
0 votes
1 answer

Browse Categories

...