Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The mvn command documention appears when you type mvn -help. Besides the options, it takes 0 or more goals to run, and/or 0 or more life-cycle phases to run. If given a life cycle phase, such as "install", it runs all the previous phases in the life cycle, up to that point. If given a goal, such as "eclipse:eclipse", it may run life-cycle phases up to a specified point, depending on the goal implementation. For eclipse:eclipse, the documentation says it runs the phase "generate-resources" - meaning it runs all the life cycle phases up to that point.

Coding dependency scopes: compile vs. provided

compile:

  • the dependency mechanism operates transitively, and dependencies of the dependent artifact are located and included, too.
  • the eclipse:eclipse for Eclipse plug-in projects puts <link>s to the jars in the local repository into the .project file

provided:

  • the dependency mechanism doesn't fetch the dependents of the dependent artifact - the chain stops here
  • the eclipse:eclipse for Eclipse plugin projects doesn't put any <link>s in the .project file. The .classpath file has an entry for the required plugins container, and the plugin container is set up to reference the other project directly