Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只想将目录下的资源打包src/main/resources到maven发布的jar中。有没有办法做到这一点?
src/main/resources
尝试以下操作:
<build> <resources> <resource> <directory>src/main/resources</directory> <filtering>false</filtering> </resource> </resources> <plugins> <plugin> ... </plugin> </plugins> ... </build>
据我所知,这可能是您要求的。