title: Difference between maven scope compile and provided for JAR packaging
body: <p>What is the difference between the maven scope <code>compile</code> and <code>provided</code> when artifact is built as a JAR? If it was WAR, I'd understand - the artifact would be included or not in WEB-INF/lib. But in case of a JAR it doesn't matter - dependencies aren't included. They have to be on classpath when their scope is <code>compile</code> or <code>provided</code>. I know that <code>provided</code> dependencies aren't transitive - but is it only one difference?</p>