Manually attach main artifact if built by maven-assembly-plugin
I am having problems building a maven project. I have a requirement to produce deterministic jar files, which must be binary-consistent across different builds and versions, in case there are no source code changes in between these builds. For the purpose, I have used this article for guidance. I have successfully managed to build my jars and they are consistent up to my requirements. Here is my configuration: <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> <executions> <execution> <id>step-1-remove-timestamp</id> <phase>prepare-package</phase> <configuration>