Maven specific task
Last time I successfully added a nice checksum-maven-plugin in maven. I
generate the checksum for one of my file. I am using for that this special
configuration:
<fileSets>
<fileSet>
<directory>${basedir}/myfiles</directory>
<includes>
<include>file-name</include>
</includes>
</fileSet>
</fileSets>
It works perfect and generates a file-name.md5 file with checksum inside
/target. Now I need this checksum passed to Java code, but I don't want to
provide this file with my .jar. My first idea was to put a line like this
checksum=caclulated_checksum inside my:
src/main/resources/my.properties
for further reference in the Java code. Is it possible some Maven task do
this for me automatically?
No comments:
Post a Comment