How to create a src/main/resources directory?

后端 未结 10 1077
夕颜
夕颜 2020-12-14 18:57

All my classes were working fine. Then I wanted to create main/resources to add logback.xml in main/resources in my project

I

10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-14 19:30

    If your project is eclipse project then it will automatically recognize the folders
    Open command line, change directory to the folder with the pom.xml
    and past this into the CMD:

    echo This will create all required folders for maven project.
    echo creating  Application\Library sources
    MD "src\main\java"
    echo creating  Application\Library resources
    MD "src\main\resources"
    echo creating  Resource filter files
    MD "src\main\filters"
    echo creating  Web application sources
    MD "src\main\webapp"
    echo creating  Test sources
    MD "src\test\java"
    echo creating  Test resources
    MD "src\test\resources"
    echo creating  Test resource filter files
    MD "src\test\filters"
    echo creating  Integration Tests (primarily for plugins)
    MD "src\it"
    echo creating  Assembly descriptors
    MD "src\assembly"
    echo creating  Site
    MD "src\site"
    

提交回复
热议问题