Maven checksum setup?

Google failed me and I can't find the answer even here on SO - dropping me to actually post my first question here.

I'm trying to get the "mvn install" command to automatically generate checksums for artifacts and put checksums into the repository right along with the artifacts. All that I read seems to indicate that this should happen without my intervention, but all I get is the artifact, the original zip, pom and local xml metadata.

Pom for the project looks like this:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>my.pkg.name</groupId> <artifactId>Logging</artifactId> <version>1.2.0-SNAPSHOT</version> <build> <sourceDirectory>src/java</sourceDirectory> <testSourceDirectory>test/java</testSourceDirectory> <resources> <resource> <directory>src/conf</directory> </resource> </resources> <testResources> <testResource> <directory>test/conf</directory> </testResource> </testResources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>1.5</source> <target>1.5</target> <debug>true</debug> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>2.3</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.4</version> <configuration> <configLocation>checkstyle.xml</configLocation> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring</artifactId> <version>2.5.6.SEC02</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.2</version> <type>jar</type> <scope>compile</scope> </dependency> </dependencies> </project> 

I am sure the answer is simple, but I cannot understand what I am doing wrong. Anyone want to answer this softball?

+4
source share
1 answer

install:install The purpose of the Maven installation createChecksum has an optional createChecksum , which is false by default.

Or set it to true on the command line (as described in Creating checksums ):

 mvn install -DcreateChecksum=true 

Or in the plugin configuration:

 <plugin> <artifactId>maven-install-plugin</artifactId> <version>2.3.1</version> <configuration> <createChecksum>true</createChecksum> </configuration> </plugin> 
+8
source

All Articles