java - How do you create a checksum in Maven then output it to a text file? -
still learning how use maven
, , wondering if there way checksum
on generated war
file.
the maven
goal package
, , i'm trying achieve checksum
value (of packaged war
file) put text file alongside packaged file.
thanks in advance!
got working below pom
code , changing maven
goal verify
<dependency> ... <!-- checksum --> <dependency> <groupid>net.ju-n.maven.plugins</groupid> <artifactid>checksum-maven-plugin</artifactid> <version>1.2</version> <exclusions> <exclusion> <groupid>org.bouncycastle</groupid> <artifactid>bcprov-jdk15on</artifactid> </exclusion> </exclusions> </dependency> <dependency> <groupid>org.bouncycastle</groupid> <artifactid>bcprov-jdk15on</artifactid> <version>1.51</version> </dependency> </dependencies> <plugins> ... <plugin> <groupid>net.ju-n.maven.plugins</groupid> <artifactid>checksum-maven-plugin</artifactid> <version>1.2</version> <executions> <execution> <goals> <goal>artifacts</goal> </goals> </execution> </executions> <configuration> <filesets> <fileset> <includes> <include>**/*.war</include> </includes> </fileset> </filesets> <csvsummary>true</csvsummary> <csvsummaryfile>iridds-checksums.csv</csvsummaryfile> </configuration> <dependencies> <dependency> <groupid>org.bouncycastle</groupid> <artifactid>bcprov-jdk15on</artifactid> <version>1.51</version> </dependency> </dependencies> </plugin> </plugins>
Comments
Post a Comment