1

Is it possible to create an IntelliJ project purely from the command line?

We are looking a streamlining the on-boarding of new hires and off-shore resources and to minimise the amount of project setup they have to perform. As such, it would be nice if we had the IDE already configured for them to get started.

6
  • Did you consider to use Gradle or Maven? IntelliJ IDEA can open the build files and perform the import. Commented Aug 8, 2019 at 21:39
  • @CrazyCoder we do use Maven, it's triggering that import that I am trying to do programmatically so that when the new user fires up the IDE for the first time it's not blank. Commented Aug 8, 2019 at 22:09
  • Just instruct the users to import pom.xml files, there is no way to trigger project generation via the command line without user interaction. Commented Aug 8, 2019 at 22:11
  • Well that was the question. Might look at the .iml file format and see what I can learn. Commented Aug 8, 2019 at 22:14
  • There is a legacy plug-in for Maven, but we don't recommend using it: maven.apache.org/plugins/maven-idea-plugin/usage.html. Commented Aug 8, 2019 at 22:15

1 Answer 1

1

There is a legacy plug-in for Maven to generate IntelliJ IDEA project files, but we don't recommend using it.

Instead, it would be easier to instruct users to open pom.xml file in the IDE so that the import is performed automatically.

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.