简体   繁体   中英

How to configure Maven in an existing project?

I have been developing a JAVA Fx project for 6 months till now and I have realized that using a tool as Maven (or Gradle) will be necessary in the future. So, my question is: would be easy to use my JavaFx project (I started it as a new JavaFx project with Eclipse IDE) and import Maven in some way over that project? What will I need to do it (with Eclipse IDE or command line) in addition to the 'pom.xml' file?

Thanks!

In my opinion, i think you should make a new project (or a branch to the current project). When i done this for the first time i had a lot of problems with project folder structure and custom jars that needed to be imported. Yes, it's true, there is a plugin for eclipse. I think that you should create a maven project and try to make it work adding the code to that. (that's how i done it)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM