Generate pom.xml for maven with libraries

已回答

Hello! I have a simple non-maven project with external libraries. I want to add Maven support. 

I select my project in project-tree, right click, add framework support, maven.

pom.xml is generated without any libraries. how to fix that?

0

See https://stackoverflow.com/a/12508597/104891.

IntelliJ IDEA has no support to convert existing projects into Maven projects, you will have to configure the dependencies manually in pom.xml.

1

thank you. ok, I manually added dependency for xtream lib. It says for me about wrong version. Why is that?

<!-- XSTREAM -->
<dependency>
<groupId>xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.4.8</version>
</dependency>
0

Not sure, maybe you didn't index the repository: http://stackoverflow.com/a/42427510/104891.

1

请先登录再写评论。