Security in CPS/Networking

[onos] build error: The goal you specified requires a project to execute but there is no POM in this directory

mjune.kim 2020. 8. 21. 12:23

ONOS 위키페이즈를 따라 빌드하려다 보니 아래와 같이 pom.xml 파일을 찾을 수 없다는 에러를 만나게 되는데요.

POM은 Project Object Model 의 약자로 xml 파일은 maven을 이용해 빌드시에 dependencies, source directory, test source directories 등 빌드에 필요한 Configuration 정보를 포함하는 파일입니다.

onos 를 clone하면 tools/build 디렉토리에 pom.xml 파일이 있는데 이를 $ONOS_ROOT 에 link 파일을 생성해 에러를 해결하였습니다. 

$> mvn clean build 

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.328 s
[INFO] Finished at: 2020-08-21T13:17:22+10:00
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory ($ONOS_ROOT). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

 

[해결]

ln -s tools/build/pom.xml pom.xml