marioosh
marioosh

Reputation: 28576

Why two .war files build with maven from the same project are diffrent?

I did like below - checkout the same project twice and build war twice:

git clone repo ~/p1
git clone repo ~/p2

cd ~/p1 && mvn clean package
cd ~/p2 && mvn clean package

diff ~/p1/target/app.war ~/p2/target/app.war
Files /home/marioosh/p1/target/app.war and /home/marioosh/p2/target/app.war differ

Why these files are different?

Upvotes: 2

Views: 170

Answers (1)

marioosh
marioosh

Reputation: 28576

melihcelik, Thanks for suggestion. I have compared target directories and found the difference. During build Maven geneate in /META-INF/maven/ directory pom.properties files that differ (have different dates)

#Generated by Maven
#Thu Jan 12 13:26:37 CET 2012
version=0.0.1-SNAPSHOT
groupId=net.marioosh.test
artifactId=app

Upvotes: 1

Related Questions