49 Commits

Author SHA1 Message Date
Brett Leslie Porter
4f021380b7 set properties
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@290574 13f79535-47bb-0310-9956-ffa450edef68
2005-09-20 21:58:56 +00:00
Stephane Nicoll
a6a01793d8 PR: MNG-858
Submitted by: Allan Ramirez
Reviewed by: Stephane Nicoll
Documentation of Jar plugin

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@290534 13f79535-47bb-0310-9956-ffa450edef68
2005-09-20 19:22:03 +00:00
Brett Leslie Porter
9a86709abd PR: MNG-249
make compile and package reactor aware



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@225731 13f79535-47bb-0310-9956-ffa450edef68
2005-07-28 09:32:32 +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
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
874a8c1245 add more use of ${} expressions, fix problem when } was not at end
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@164195 13f79535-47bb-0310-9956-ffa450edef68
2005-04-22 08:33:34 +00:00
Brett Leslie Porter
0ee892dfdc change archiving plugins to use a shred archive configuration
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163716 13f79535-47bb-0310-9956-ffa450edef68
2005-03-30 08:14:52 +00:00
Brett Leslie Porter
e3c15069c5 allow empty JARs
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163702 13f79535-47bb-0310-9956-ffa450edef68
2005-03-29 06:02:57 +00:00
Brett Leslie Porter
b512b2e7a2 fix bad message, reformat
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163701 13f79535-47bb-0310-9956-ffa450edef68
2005-03-29 05:55:10 +00:00
Brett Leslie Porter
092c2f75cf convert archive mojos to new execute(). More work is required to reuse the common fields.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163659 13f79535-47bb-0310-9956-ffa450edef68
2005-03-22 13:25:58 +00:00
John Dennis Casey
590e952f02 CHANGES
------------------------

o Factored the layout for a repository into a separate set of components in o.a.m.a.repository.layout

o Added new DefaultRepositoryLayout that uses the repo layout in http://docs.codehaus.org/pages/viewpage.action?pageId=22230 (it is not used by default until we get the repo1 conversion done)

o Added command-line switches to force legacy local-repo or new format (-a/-A, I know, but try to find something that makes more sense!)

o Added path formatting to the repository itself, which is now constructed with a ArtifactRepositoryLayout instance (since layout should be tied to the repository)

o Removed path formatting altogether from the DefaultArtifactHandlerManager.

o Changed the AbstractArtifactBasedComponent (or whatever it's called) to use the repository formatting in the path() and localPath() methods.

o Moved the plugin repo construction (still intact as a hard-coded singleton list) into the DefaultMavenProjectBuilder, where it will eventually build from POM info.

o Added a new method to build an artifact repository for a <distributionManagement/> section, if possible. This reduced the strain on mojos to construct an ArtifactRepository on demand.

o Refactored all *DeployMojo to use #project.distributionManagementArtifactRepository instead of the #settings, #component..ArtifactRepositoryFactory, ... that it used to require. This is a big simplifying step.

o Removed remote artifact repository construction from DefaultMaven, and changed the MavenSession to delegate to MavenProject for remoteArtifactRepositories, just as it does for pluginRepositories.

o Added remoteArtifactRepositories, pluginArtifactRepositories, distributionManagementArtifactRepository to MavenProject as a cache for the higher-level repos used throughout the system. This is project info, so it belongs here.

o Fixed all the tests in maven-core and maven-artifact which I broke. :)

o Dropped what is probably a big format-bomb, since the Eclipse formatter doesn't really handle 'throws Exception' wrapping the right way.

o Added MavenProject to the MavenSession constructor, since there should always be a MavenProject associated with a build, even if it's just the super-pom.

TODO:
--------------------------

- Write an integration/unit test to ensure that the new repo format works with $classifier (was: $extra) and $groupId[0]/../$groupId[n]. This is a simple adaptation of the old layout, but still needs testing.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163638 13f79535-47bb-0310-9956-ffa450edef68
2005-03-21 08:18:34 +00:00
Emmanuel Venisse
abbecd7c82 Remove unused classes.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163516 13f79535-47bb-0310-9956-ffa450edef68
2005-03-10 09:37:44 +00:00
Emmanuel Venisse
de167c3e10 Add Package in manifest from plugin configuration.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163515 13f79535-47bb-0310-9956-ffa450edef68
2005-03-10 09:36:44 +00:00
Brett Leslie Porter
a44b6f9726 flip pom format
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163511 13f79535-47bb-0310-9956-ffa450edef68
2005-03-10 01:35:25 +00:00
John Dennis Casey
7f6f4452f2 o Changed Set to List for remote repo handling so that we can maintain declarative ordering in remote repos we use.
o Added UserModel support, integrated with maven-artifact and wagon via AuthenticationInfoProvider implementation.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163501 13f79535-47bb-0310-9956-ffa450edef68
2005-03-09 05:48:31 +00:00
Emmanuel Venisse
323eecfc57 - Externalize archiver methods
- Update JarMojo
- Implements WarMojo (Not tested yet)


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163458 13f79535-47bb-0310-9956-ffa450edef68
2005-03-05 14:52:12 +00:00
Brett Leslie Porter
a44ab459bb set phase
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163428 13f79535-47bb-0310-9956-ffa450edef68
2005-02-27 23:58:41 +00:00
Emmanuel Venisse
f793423baf - Rewriting of jar mojo with Plexus Archiver.
- Added full features of m1 plugin


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163421 13f79535-47bb-0310-9956-ffa450edef68
2005-02-27 17:45:41 +00:00
Michal Maczka
095ac2b60a better error handling
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163308 13f79535-47bb-0310-9956-ffa450edef68
2005-01-18 20:44:53 +00:00
John Dennis Casey
9e24a7b410 o Changed maven-core's super-pom from pom.xml to pom-4.0.0.xml
o Added validation logic for non-heritable pom elements to the default project builder
o Changed default builder to select the correct super-pom from the project pom's modelVersion.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163086 13f79535-47bb-0310-9956-ffa450edef68
2004-09-16 14:26:18 +00:00
John Dennis Casey
add8ebca37 o Fixed misuse of basedir and outputDirectory. Previous version includes test resources in resulting jar.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163050 13f79535-47bb-0310-9956-ffa450edef68
2004-09-08 04:05:40 +00:00
Emmanuel Venisse
330d33e5aa Use the correct type for pom installation.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162985 13f79535-47bb-0310-9956-ffa450edef68
2004-08-16 08:45:38 +00:00
Jason van Zyl
8991c26f9c o install the POM for the integration tests
NOTE: this is not how I would like this handled, the artifact layer will
  be responsible for dealing with metadata in a way that is controlled by
  the artifact handler.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162982 13f79535-47bb-0310-9956-ffa450edef68
2004-08-15 16:19:38 +00:00
Jason van Zyl
d83868e9cd *** empty log message ***
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162928 13f79535-47bb-0310-9956-ffa450edef68
2004-08-09 19:10:11 +00:00
Emmanuel Venisse
db646bfa4a Test if basedir exists before scan the directory.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162864 13f79535-47bb-0310-9956-ffa450edef68
2004-07-19 09:57:43 +00:00
Emmanuel Venisse
dd7093ada6 Create output directory if it doesn't exist.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162863 13f79535-47bb-0310-9956-ffa450edef68
2004-07-19 09:51:15 +00:00
Emmanuel Venisse
07cfd28f67 Fix jar creation with code present in j2ee mojo.
It's a temporary change before use plexus-archiver.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162858 13f79535-47bb-0310-9956-ffa450edef68
2004-07-07 07:18:10 +00:00
Emmanuel Venisse
4abf102820 Add some infos in Manifest.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162857 13f79535-47bb-0310-9956-ffa450edef68
2004-07-06 12:56:52 +00:00
Michal Maczka
d00330c7c2 plugins' poms are using type = plugin
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162844 13f79535-47bb-0310-9956-ffa450edef68
2004-06-27 17:10:32 +00:00
Michal Maczka
4c0ba35e76 implementation of jar:deploy goal
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162820 13f79535-47bb-0310-9956-ffa450edef68
2004-06-20 15:02:33 +00:00
Jason van Zyl
7e90a62081 o some fixes to the install mojo to make the integration test for JAR
installation work.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162796 13f79535-47bb-0310-9956-ffa450edef68
2004-06-18 02:15:49 +00:00
Jason van Zyl
0ce493657a o turn the jar install back on
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162786 13f79535-47bb-0310-9956-ffa450edef68
2004-06-17 20:44:21 +00:00
Jason van Zyl
7e50e98385 o the two mojos are colliding somehow, when this one is activated it clobbers the jar goal.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162785 13f79535-47bb-0310-9956-ffa450edef68
2004-06-17 20:25:16 +00:00
Michal Maczka
1b24da6163 added jar:install goal - needs more testing
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162778 13f79535-47bb-0310-9956-ffa450edef68
2004-06-17 18:59:48 +00:00
Jason van Zyl
0571b62a3c no message
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162767 13f79535-47bb-0310-9956-ffa450edef68
2004-06-16 05:54:52 +00:00
Jason van Zyl
b5ce0c41c3 o update plugins to take advantage of the new default values in the super
model provided by maven-core.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162757 13f79535-47bb-0310-9956-ffa450edef68
2004-06-14 23:22:47 +00:00
Jason van Zyl
8be8744b31 *** empty log message ***
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162753 13f79535-47bb-0310-9956-ffa450edef68
2004-06-14 20:47:08 +00:00
Jason van Zyl
26f67a6c73 o correcting @tags from feedback
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162747 13f79535-47bb-0310-9956-ffa450edef68
2004-06-14 15:13:12 +00:00
Jason van Zyl
a9850685f4 o updating format of the @tags
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162745 13f79535-47bb-0310-9956-ffa450edef68
2004-06-14 12:36:47 +00:00
Jason van Zyl
072609e0b3 o cleaning up the @tags which are now a lot more simple
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162742 13f79535-47bb-0310-9956-ffa450edef68
2004-06-11 16:14:40 +00:00
Jason van Zyl
dd4fc3384f o moving core deps into top-level pom.xml to be shared by all the
component builds.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162741 13f79535-47bb-0310-9956-ffa450edef68
2004-06-10 20:27:50 +00:00
Michal Maczka
368ae57a6b first sketch of jar:install goal
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162740 13f79535-47bb-0310-9956-ffa450edef68
2004-06-10 19:00:04 +00:00
Jason van Zyl
18b1fd115f o get rid of plugin.xml as they are generated now from @tags in the
sources.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162719 13f79535-47bb-0310-9956-ffa450edef68
2004-05-27 02:53:02 +00:00
Jason van Zyl
0d54b2204f turn into a maven plugin and add @tags for descriptor generation.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162708 13f79535-47bb-0310-9956-ffa450edef68
2004-05-20 17:06:34 +00:00
Jason van Zyl
7344c8b0c0 explicit instantiation strategy
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162621 13f79535-47bb-0310-9956-ffa450edef68
2004-03-22 18:13:59 +00:00
Jason van Zyl
b14d2bfd78 explicit instantiation strategy
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162620 13f79535-47bb-0310-9956-ffa450edef68
2004-03-22 18:11:45 +00:00
Jason van Zyl
3d28ca82f2 o update plugin descriptors to match changes in maven-core.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162616 13f79535-47bb-0310-9956-ffa450edef68
2004-03-19 16:13:14 +00:00
Jason van Zyl
c9fbf52230 o update the plugin descriptors for changes made in maven to support 4
flavours of POJOs people might try to integrate into Maven.

  CompilerPlugin is now an "integrated" plugin where any amount of
  arbitrary information can go into the execution and come out. In this
  case the compiler plugin can send back detailed compilation errors for
  use in something like and IDE.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162614 13f79535-47bb-0310-9956-ffa450edef68
2004-03-19 04:11:11 +00:00
Jason van Zyl
ee951b1609 Initial revision
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162606 13f79535-47bb-0310-9956-ffa450edef68
2004-03-15 19:32:20 +00:00