How do you “Mavenize” a project using Intellij?
I have seen many posts about using eclipse to Mavenize a project. Is there a easy way to do that in IntelliJ? From what I understand about "Mavenize", it's just add some xml in pom.xml and the directory structure is in src/main/java, src/main/test ....
For those that benefit from a visual, as I did:
Essentially, just right-click on the folder. In this example, it's called StackOverFlow
and choose Add Framework Support
and then check the Maven
box. Please note, that this option only exists when you have created a class within the src
folder.
Right-click on the module, select "Add framework support...", and check the "Maven" technology. (This also creates a pom.xml for you to modify.)
Go to .iml and in the component change the tag to the following
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
This works in 2016.3.1 version: Right click on project -> go to the Maven menu -> show effective POM
ReferenceURL : https://stackoverflow.com/questions/12508180/how-do-you-mavenize-a-project-using-intellij
'program tip' 카테고리의 다른 글
git에게 인덱스 만 숨기라고 어떻게 말합니까? (0) | 2020.12.24 |
---|---|
What does '&.' in '&.sub-title' indicates in scss? (0) | 2020.12.24 |
Return the current user with Django Rest Framework (0) | 2020.12.24 |
How to create an empty matrix in R? (0) | 2020.12.24 |
Azure WebJob "다시 시작 보류"는 무엇을 의미합니까? (0) | 2020.12.24 |