The maven-verifier-plugin seems useful, but the example verifications.xml:
maven-verifier-plugin似乎很有用,但是示例verifications.xml:
<verifications><files>
<file>
<location>src/main/resources/file1.txt</location>
</file>
<file>
<location>src/main/resources/file2.txt</location>
<contains>aaaabbbb</contains>
</file>
<file>
<location>src/main/resources/file3.txt</location>
<exists>false</exists>
</file>
is too simple. I want to specify a location inside an archive (e.g., jar or zip) file. How can I do that? Thanks in advance!
太简单了。我想在存档(例如,jar或zip)文件中指定一个位置。我怎样才能做到这一点?提前致谢!
1 个解决方案
#1
A look through the source code only shows files being opened using a File object and File won't extract things from and archive. So you won't be able to do this without modifying the plugin itself.
浏览源代码只显示使用File对象打开的文件,而File不会从中提取和归档。因此,如果不修改插件本身,您将无法做到这一点。
#1
A look through the source code only shows files being opened using a File object and File won't extract things from and archive. So you won't be able to do this without modifying the plugin itself.
浏览源代码只显示使用File对象打开的文件,而File不会从中提取和归档。因此,如果不修改插件本身,您将无法做到这一点。