How to run floodlight under intellij idea

<Reprint please indicate the source>
As an open source controller of SDN, floodlight allows developers to carry out secondary development, but its official tutorial only shows how to run under ant, maven, and eclispe. Running under intellij idea, if you do not perform some configuration, the operation will report an error, the solution is as follows:

  • 1. Go to the floodlight official website to get the source code, or go to github for clone, github address .
  • 2. Import the project file into intellij idea, do not select any framework during the import process, just import it directly.
  • 3. Delete the target directory
  • 4. Mark the src/main/resources directory as a resource folder, the method is: select the directory, right-click, select the Mark As option, there will be a resources in it, select it to mark it as a resource folder ( !!!! ! Step 4 is the most important, the reason floodlight doesn't work properly is also because of this )
  • 5. Open the structure of the project and remove the test from the module as the source (this step may not be needed, but if there is a class with the same name in the error report, please go to step 5)

Then comes the exciting time, it's time to run normally

If there are still students who don't know much, please import floodlight into eclipse, then run it, check the bulidpath, and compare it with the configuration of intellij idea to know where the problem is and how to configure it.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325920973&siteId=291194637