Commit Graph

48 Commits

Author SHA1 Message Date
John Dennis Casey a3cf96219f Resolving issue: MNG-379
o Added support for update-all and update-none when prompting the user.

o Added --update-plugins/-F option to force an update of the plugins used in the project.

o Added autoUpdate setting for the plugin registry. This is used when in non-interactive mode, to determine whether to register plugin updates

o Added updateInterval to determine when/how often to check for updates to registered plugins. Supports three syntaxes:

  - 'never'
  - 'always'
  - 'interval:XXX' (where XXX can be a combination of weeks, days, hours, and minutes in the syntax: 1w1d1h1m)
         > this renders the interval syntax similar to 'interval:1w' to check every week.

  NOTE: update intervals are calculated from the time a particular plugin was last checked.

o Added lastChecked attribute for registered plugins, to use as a basis for calculating update-check interval

o Added RuntimeInfo classes for maven-settings and maven-plugin-registry, to help in tracking the file each instance comes from, in addition to merging info which is useful when extracting the user-level instance from the merged instance (for persisting changes to the user instance, f.e.).

o Changed verifyPlugin(..) to take an instance of Settings, to allow persistent decisions across the session (like update-all, update-none in the plugin version manager)

This should take care of outstanding issues with this new feature. I'm closing the JIRA issue now, and we'll deal with any bugs/shortcomings as separate issues.



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@191021 13f79535-47bb-0310-9956-ffa450edef68
2005-06-16 22:38:57 +00:00
John Dennis Casey b813c3d430 Working on issue: MNG-379
Added specified stop-gap patch for issue: MNG-473 (affects settings-builder and registry-builder)

Today I've made the following progress on this so far:

- Added a new project, called maven-plugin-registry, to house the model for this new file.

- Developed/debugged/tested PluginVersionManager/DefaultPluginVersionManager to isolate the plugin-version checks/management code away from the PluginManager

- Added interactiveMode (<interactiveMode>true|false</interactiveMode> directly under the root element of settings.xml, or -B short CLI option or --batch-mode CLI option, where the CLI options turn OFF interactiveMode). This will allow things like the maven-plugins build to register new plugins (and, for now, new versions of plugins) automatically.

- Added user input handler for when interactiveMode = true, to get a yes/no on whether to use the discovered version over the installed version and/or no version at all. If there is no installed version, and the user selects 'n', then the discovered version is used FOR THAT SESSION ONLY, and won't be recorded in the registry.

- Added checks/recording rejected versions against the registry, before attempting to use the discovered version.

Pending:

- Still need to add update-policies, to determine two things:

  1. how often to check for updates
  2. what to do when updates are found (autoUpdate, etc.)



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@190854 13f79535-47bb-0310-9956-ffa450edef68
2005-06-16 01:50:28 +00:00
Brett Leslie Porter 45d95aa6fb update parent references to get access to the ci settings
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@189881 13f79535-47bb-0310-9956-ffa450edef68
2005-06-10 02:42:40 +00:00
Brett Leslie Porter 420d9a5fca remove old cvs ignore files
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@188697 13f79535-47bb-0310-9956-ffa450edef68
2005-06-07 05:24:51 +00:00
Brett Leslie Porter 9d31796e99 PR: MNG-366
reverse the reference. DoxiaMojo depends on maven-core instead of maven-core depending on the reporting api + doxia

This is not a great solution, but it gets us closer. It is currently not possible, as before, to get the correct set of reports as they are all loaded into the one container and then everything found is returned.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@188690 13f79535-47bb-0310-9956-ffa450edef68
2005-06-07 04:41:54 +00:00
Brett Leslie Porter 4d43a4d43c only copy directory if it exists
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@188644 13f79535-47bb-0310-9956-ffa450edef68
2005-06-07 01:12:02 +00:00
Emmanuel Venisse 1218c92bd4 o Internationalize site plugin generation.
o Add french translation

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@180168 13f79535-47bb-0310-9956-ffa450edef68
2005-06-05 23:10:11 +00:00
Emmanuel Venisse 1330677e6e i18n template
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@180101 13f79535-47bb-0310-9956-ffa450edef68
2005-06-05 15:22:25 +00:00
Emmanuel Venisse 9543fcc0cc Update template, we now the site descriptor parsing in it for more flexibility
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@179773 13f79535-47bb-0310-9956-ffa450edef68
2005-06-03 11:54:55 +00:00
Emmanuel Venisse 0ce22ce966 Allow user to change the template
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@179471 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 00:23:46 +00:00
Emmanuel Venisse 4c582afdbf Remove unused code.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@179323 13f79535-47bb-0310-9956-ffa450edef68
2005-06-01 00:28:02 +00:00
Emmanuel Venisse 6d4626e2d6 o Fix copy of resources directory for exclude all "default" files
o Fix xhtml for conformance with standard

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@179320 13f79535-47bb-0310-9956-ffa450edef68
2005-06-01 00:24:37 +00:00
Jason van Zyl 6e83944830 o tidy up the site template
o set the classloader used where the template will be found


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@179176 13f79535-47bb-0310-9956-ffa450edef68
2005-05-31 00:39:51 +00:00
Emmanuel Venisse 26141c2358 o Extends AbstractReport to AbstractMojo => we need now to create only one class for a report and a mojo
o Start implementation of internationalization

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@178980 13f79535-47bb-0310-9956-ffa450edef68
2005-05-29 19:52:01 +00:00
Emmanuel Venisse d6ba438cdb Remove unused file
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@178889 13f79535-47bb-0310-9956-ffa450edef68
2005-05-28 21:05:53 +00:00
Emmanuel Venisse 27cbac3e16 Use plexus-site-renderer for generate site with velocity templates.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@178887 13f79535-47bb-0310-9956-ffa450edef68
2005-05-28 20:35:37 +00:00
Brett Leslie Porter d408365aea use resources directory instead
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@178561 13f79535-47bb-0310-9956-ffa450edef68
2005-05-26 01:03:08 +00:00
Jason van Zyl 9401fbb6b0 git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@178538 13f79535-47bb-0310-9956-ffa450edef68 2005-05-25 21:57:20 +00:00
Jason van Zyl cf1e4bb689 o page for emm to look at
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@178537 13f79535-47bb-0310-9956-ffa450edef68
2005-05-25 21:56:08 +00:00
Emmanuel Venisse 87fc42fd0a Flush and close always sink.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@171135 13f79535-47bb-0310-9956-ffa450edef68
2005-05-20 16:31:21 +00:00
Emmanuel Venisse 85818247bb Upgrade doxia version
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@171121 13f79535-47bb-0310-9956-ffa450edef68
2005-05-20 14:37:52 +00:00
Emmanuel Venisse bc7e6e0c98 Clean imports
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@170986 13f79535-47bb-0310-9956-ffa450edef68
2005-05-19 20:07:49 +00:00
Emmanuel Venisse 61cff48ad1 Use new reporting-api dependency
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@170984 13f79535-47bb-0310-9956-ffa450edef68
2005-05-19 19:57:09 +00:00
Emmanuel Venisse 6ffcf006fb o clean import
o Use MavenProject instead of Model for obtain more informations

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@170954 13f79535-47bb-0310-9956-ffa450edef68
2005-05-19 16:27:00 +00:00
Jason van Zyl 85d7de996d o let people know when the project name and url aren't set
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@170090 13f79535-47bb-0310-9956-ffa450edef68
2005-05-13 21:13:04 +00:00
Brett Leslie Porter 2f950bb514 bump versions
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@169997 13f79535-47bb-0310-9956-ffa450edef68
2005-05-13 08:39:42 +00:00
Brett Leslie Porter 3d1c04324d use released versions
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@169969 13f79535-47bb-0310-9956-ffa450edef68
2005-05-13 08:04:45 +00:00
Brett Leslie Porter 7ed8a746d3 update to released versions
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@169961 13f79535-47bb-0310-9956-ffa450edef68
2005-05-13 07:01:57 +00:00
Brett Leslie Porter bcf66ca8a2 set consistent versions
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@169845 13f79535-47bb-0310-9956-ffa450edef68
2005-05-12 16:42:06 +00:00
Brett Leslie Porter 0299978e27 set the site deployment to the live environment, and use the wagon manager to get the authentication credentials
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@169781 13f79535-47bb-0310-9956-ffa450edef68
2005-05-12 06:51:55 +00:00
Brett Leslie Porter 0c6a30ab10 unifyf generated site directory, add default site descriptor
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@169776 13f79535-47bb-0310-9956-ffa450edef68
2005-05-12 06:01:56 +00:00
Emmanuel Venisse f3fa32eebe o Fix html generation
o Categorize reports in "Project Info" and "Project Reports"
o Generate overview page for "Project Info" and "Project Reports" pages

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@169372 13f79535-47bb-0310-9956-ffa450edef68
2005-05-09 22:47:34 +00:00
Emmanuel Venisse 1eb084ce3e Report generate directly xhtml file
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@169076 13f79535-47bb-0310-9956-ffa450edef68
2005-05-07 13:00:47 +00:00
Emmanuel Venisse 040139d102 Generate reports links in menu
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@169073 13f79535-47bb-0310-9956-ffa450edef68
2005-05-07 12:03:10 +00:00
Brett Leslie Porter 57284e462c propogate exception
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@168546 13f79535-47bb-0310-9956-ffa450edef68
2005-05-06 07:07:04 +00:00
Emmanuel Venisse 892ce50601 Add some info traces.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@168224 13f79535-47bb-0310-9956-ffa450edef68
2005-05-05 01:04:33 +00:00
Brett Leslie Porter e4e862dd61 add copyright
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@168037 13f79535-47bb-0310-9956-ffa450edef68
2005-05-04 01:18:19 +00:00
Emmanuel Venisse c20da875f3 Remove System.out
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@168033 13f79535-47bb-0310-9956-ffa450edef68
2005-05-04 00:50:34 +00:00
Emmanuel Venisse e9a7f3ce85 Initial version of site generation with repots.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@168031 13f79535-47bb-0310-9956-ffa450edef68
2005-05-04 00:47:01 +00:00
Emmanuel Venisse d2f4a77b0c Add missing import
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@165243 13f79535-47bb-0310-9956-ffa450edef68
2005-04-29 00:31:36 +00:00
John Dennis Casey a58632b9dd Renamed Plugin.java, AbstractPlugin.java, PluginExecutionRe(quest|sponse) PluginExecutionException to Mojo*
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@165238 13f79535-47bb-0310-9956-ffa450edef68
2005-04-29 00:12:09 +00:00
Emmanuel Venisse 0f6db45c22 o check if plugin version is defined
o refactor the report execution, it use only the MavenReportConfiguration
o obtain reports list via reportManager.getReports

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@165232 13f79535-47bb-0310-9956-ffa450edef68
2005-04-28 23:43:33 +00:00
John Dennis Casey ab91b7f4c2 o Cleaned up field-level annotation support (especially descriptor extraction, generation, and building)
o Converted all "core" plugins (including maven-core-it-plugin) to use field-level annotations
o Removed generation of parameter descriptors for ${/#component.* param specifications.
o Added @readonly for parameters that cannot be overridden by user configuration (List override was dangerous here)
o Added validation against pom-derived configuration for @readonly parameters
o Fixed @parameter alias="" support...now configuration of the mojo instance actually will work with either the real param name or the alias. Would be nice to support multiple aliases, but that might require @alias annotations...
o Added [temporary?] support for null editable attributes for parameters, to support pre-built mojos from the repo.

Annotation support should be just about ready to go...


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@165224 13f79535-47bb-0310-9956-ffa450edef68
2005-04-28 23:05:01 +00:00
Brett Leslie Porter a5c141c146 fix compile error
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@165093 13f79535-47bb-0310-9956-ffa450edef68
2005-04-28 04:02:57 +00:00
Brett Leslie Porter befb54cc12 set correct parent, update wagon dependencies so it doesnt break the deploy plugin when used
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@165081 13f79535-47bb-0310-9956-ffa450edef68
2005-04-28 01:19:44 +00:00
Emmanuel Venisse 3502cae978 Initial version of reporting integration
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@165071 13f79535-47bb-0310-9956-ffa450edef68
2005-04-28 00:03:26 +00:00
Brett Leslie Porter 23b8cd0e46 remove unnecessary maven-core dependencies
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@164322 13f79535-47bb-0310-9956-ffa450edef68
2005-04-23 03:12:07 +00:00
Jason van Zyl 45541c5564 Initial revision
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163909 13f79535-47bb-0310-9956-ffa450edef68
2005-04-12 05:58:10 +00:00