Branch: refs/heads/master
Home:
https://github.com/forge/core
Commit: ac1b79cb45ef40d02b3bc34cb9581ef17f37d747
https://github.com/forge/core/commit/ac1b79cb45ef40d02b3bc34cb9581ef17f37...
Author: Aslak Knutsen <aslak(a)redhat.com>
Date: 2013-02-18 (Mon, 18 Feb 2013)
Changed paths:
M dev-plugins/src/main/java/org/jboss/forge/dev/mvn/MavenPlugin.java
A dev-plugins/src/main/java/org/jboss/forge/dev/mvn/VersionUpdater.java
A dev-plugins/src/test/java/org/jboss/forge/dev/mvn/update/UpdateEventObservers.java
A
dev-plugins/src/test/java/org/jboss/forge/dev/mvn/update/UpdateMavenPomPluginTest.java
A dev-plugins/src/test/resources/maven-update/pom.xml
A dev-plugins/src/test/resources/maven-update/sub/pom.xml
A
shell-api/src/main/java/org/jboss/forge/project/dependencies/events/UpdatedDependency.java
A
shell-api/src/main/java/org/jboss/forge/project/dependencies/events/UpdatingDependency.java
Log Message:
-----------
Add support for Updating Maven Pom Dependencies
The command will run trough current pom and all children to check if there are
newer version of the defined artifacts available in the Maven repositories.
If one is found, the user will be prompted to see if he wants to update,
ignore or see a complete list of available newer versions.
Two events are fired by this Command:
* UpdatedDependency
Fired when the user has choosen to update a given dependency.
The From and Two Artifact Info is given in the Event. This can be used to
e.g. provide Release Notes for a given Artifact.
* UpdatingDependency
Fired when the user has choosen to update a given dependency, but before
the change has been written to disk. The event allow for Observers to
veto the update. This can be used by other Plugins to warn / abort
updates that would cause an invalid configuration.
Usage$ maven update