Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Java by (3.4k points)

I am a bit confused about the meaning of a Maven Snapshot and why we build one?

1 Answer

0 votes
by (46k points)

SNAPSHOT is a unique version that shows a current development copy. Unlike normal versions, Maven checks for a fresh SNAPSHOT version in an unknown repository for every build.

Now the data-service team will release SNAPSHOT of its updated code every time to a repository, say data-service: 1.0-SNAPSHOT, replacing an older SNAPSHOT jar.

We use it because we have different artifacts for different builds based on the same code. E.g. We might have one with debugging and one without. One for Java 5.0 and one for Java 6. Generally, it's simpler to have one build which does everything we need

Related questions

0 votes
1 answer
asked Nov 20, 2019 in Java by Anvi (10.2k points)
0 votes
1 answer
0 votes
1 answer
asked Aug 8, 2019 in Java by Suresh (3.4k points)
0 votes
1 answer
asked Jul 14, 2019 in Java by Krishna (2.6k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...