maven-resources-plugin:2.5 - Cannot create resource output directory

前端 未结 9 967
我寻月下人不归
我寻月下人不归 2020-12-18 19:01

I occasionally receive this error when I build my project with

>mvn --version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602         


        
相关标签:
9条回答
  • 2020-12-18 19:52

    In my case the parent directory inside which maven was trying to create a directory was root, so I did a sudo chown -R : /path/to/directory to change permissions before rerunning the mvn command.

    0 讨论(0)
  • 2020-12-18 19:54

    You can use the following in pom.xml

    <build>
        <directory>${project.basedir}/target1</directory>
    </build>
    
    0 讨论(0)
  • 2020-12-18 19:55

    In my case, I opened the jar in 7zip and I opened the target folder. I run my application and received this error. After closing 7zip, the application run fine and build successfully.

    0 讨论(0)
提交回复
热议问题