Commit Graph

8209 Commits

Author SHA1 Message Date
Benjamin Bentmann a9ea4c8b11 o Improved error message
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@798537 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 14:39:42 +00:00
Benjamin Bentmann a151c6c1a3 o Fixed NPE
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@798536 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 14:39:09 +00:00
Benjamin Bentmann fdb57e65ca o Cleaned up code
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@798504 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 12:27:10 +00:00
Benjamin Bentmann f9d5fb4c7a [MNG-2871] Subartifact (ejb-client, test-jar etc.) are not reselved as active project artifacts in build phases prior to package
[MNG-3043] Allow 'mvn test' to work with test-jar dependencies in a reactor

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@798494 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 11:46:04 +00:00
Benjamin Bentmann 0cefc46991 [MNG-4262] Make-like reactor mode fails to find projects selected by relative paths with leading dots
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@798466 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 09:26:51 +00:00
Benjamin Bentmann e3f7710578 o Fixed TCCL handling
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@798226 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 17:23:21 +00:00
Benjamin Bentmann 299a4c0843 [MNG-4052] import scope dependencies prefer to download pom rather than find it in the current project
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@798221 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 17:09:51 +00:00
Benjamin Bentmann ee55d1d8c5 [MNG-4260] Remove old-school reactor mode
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@798081 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 09:13:47 +00:00
Benjamin Bentmann fb0d4c3de9 o Enabled two-phase model building which allows to address inter-model dependencies within a reactor build
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@798077 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 08:33:11 +00:00
Benjamin Bentmann 34e1fa627f o Enabled two-phase model building which allows to address inter-model dependencies within a reactor build
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@797988 13f79535-47bb-0310-9956-ffa450edef68
2009-07-26 20:36:32 +00:00
Benjamin Bentmann 38cec71dcf o Revised API
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@797968 13f79535-47bb-0310-9956-ffa450edef68
2009-07-26 18:18:47 +00:00
Benjamin Bentmann 70f22200a0 o Moved dependency management importer into package dedicated to mixin composition
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@797961 13f79535-47bb-0310-9956-ffa450edef68
2009-07-26 17:43:50 +00:00
Benjamin Bentmann 57f82d7694 o Introduced model cache to avoid repeated building of models that can occur multiple times during a reactor build (e.g. parents and imported POMs)
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@797959 13f79535-47bb-0310-9956-ffa450edef68
2009-07-26 17:36:59 +00:00
Olivier Lamy b2a9420e63 remove unused imports.
fix license headers.
remove empty class.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@797828 13f79535-47bb-0310-9956-ffa450edef68
2009-07-25 19:42:15 +00:00
Benjamin Bentmann 6d2b09b14f o Refactored code
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@797809 13f79535-47bb-0310-9956-ffa450edef68
2009-07-25 18:04:24 +00:00
Benjamin Bentmann fe4d70448e o Made model validation fail upon imported POM with classifier (which isn't supported)
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@797808 13f79535-47bb-0310-9956-ffa450edef68
2009-07-25 18:03:13 +00:00
Jason van Zyl d8ee29d10c o missed the tests, thanks subclipse
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@797695 13f79535-47bb-0310-9956-ffa450edef68
2009-07-25 00:16:45 +00:00
Olivier Lamy 5ad174e3d6 [MNG-4247] Displaying which artifacts are downloaded and from which repo
Only displaying a simple : [INFO] Downloaded http://x.x.x.x:x/....... 
As there is so much places where ArtifactResolutionRequest is created without any access to mavenExecutionRequest.getTransferListener()
Issue id: MNG-4247


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@797678 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24 22:37:39 +00:00
Jason van Zyl aae5e98767 o limit system scoped resolution from interacting with repositories all together.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@797675 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24 22:32:28 +00:00
Olivier Lamy 606336da20 add missing license header
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@797668 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24 22:08:54 +00:00
Olivier Lamy 5d30af902f add missing license header
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@797661 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24 21:30:01 +00:00
Benjamin Bentmann a48ae318c6 o Refactored code
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@797479 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24 14:23:45 +00:00
Benjamin Bentmann 4286488981 o Polished API
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@797477 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24 14:23:00 +00:00
Benjamin Bentmann f48d77ce5e o Made plugin version resolution more robust and ensured we fail fast upon resolution failure instead of some NPE in later execution steps
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@797239 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23 21:50:49 +00:00
Benjamin Bentmann 54c39d9a0f o Added UT for maven.repo.local
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796914 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 23:46:25 +00:00
Benjamin Bentmann 93b2746fe5 o Added UT for PropertyProfileActivator
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796912 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 23:36:22 +00:00
Jason van Zyl 684eed4a0c o using the repository system and repositories to mediate proxy use. proxies restored.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796903 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 22:58:24 +00:00
Benjamin Bentmann 88216c6532 o Re-introduced distinction between user properties and system properties. We have use cases like interpolation and SUREFIRE-121 where we would like to handle user-specified props specially so a single properties soup is not up to the job. However, I opted not to follow the approach from 2.x where we also collect both system properties and user properties in a combined set called execution properties. Code that embeds Maven and programmatically creates an execution request should be not required to assemble such a mixed properties instance, it would enable bad behavior from Maven by subtle API misuse. Also, for things like the lifecycle participant that wants to inject properties, it should be cristal clear whether it injects a user or a system property, the semantics of something like getExecutionProperties().setProperty() would be unclear however.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796900 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 22:43:05 +00:00
Jason van Zyl cf295ef70a o removing unused classes
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796869 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 20:22:04 +00:00
Benjamin Bentmann cec9b2002a o Fixed empty project building helper to pass request repos through if provided for tests that use them
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796864 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 20:13:24 +00:00
Jason van Zyl b69b4ab4f9 o add default plugin artifact repositories in the populator
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796817 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 17:56:18 +00:00
Benjamin Bentmann c6eb6bd219 [MNG-4201] Custom packaging break in trunk (rev 784628)
o Restored compat with 2.x, both in terms of lifecycle configuration and API for implementors of custom mappings

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796801 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 17:15:50 +00:00
Benjamin Bentmann d0ca6d9490 o Fixed parsing of lifecycle mappings to account for version
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796797 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 17:07:46 +00:00
Jason van Zyl 763941c897 o this is covered perfectly well by the ITs
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796758 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 14:56:29 +00:00
Jason van Zyl dd202c29ba o we have it0021 so this is also not necessary
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796752 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 14:49:13 +00:00
Jason van Zyl 0b8922f02c o we already have a number of tests in the core testing simple execution of a pom and a directory with a pom
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796746 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 14:37:54 +00:00
Jason van Zyl 3e10bb2686 o there is an IT for optional dependencies and we'll put a proper UT in the POM construction tests for optional deps.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796742 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 14:31:44 +00:00
Jason van Zyl 4179dbcd41 o cleaning up tests in order to move them to the core using core components, and removing superfluous/repeated tests
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796740 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 14:29:14 +00:00
Benjamin Bentmann 03c8b58235 o Fixed resolution of plugin default config. The project building request provides only the base set of repos, not the final set. In addition to the base set, the final repo list contains POM repos and repos from external profiles. Therefore, the MavenProject instance (which holds the final repo set) has to be queried for the repos.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796657 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 10:03:53 +00:00
Benjamin Bentmann 1329516567 o Added API docs
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796656 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 10:00:43 +00:00
Benjamin Bentmann a6f68f3ce5 o Tweaked exception message to be more presice with respect to remote repos
- First, don't eliminate repos with duplicate ids. Duplicate repos should have been merged up-front, if they weren't this is a bug and should be apparent in the diagnostic output
  - Second, be explicit about the case where no repos are defined to distinguish that from the case where the exception creator did not know the repos (==null)

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796641 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 09:31:58 +00:00
Benjamin Bentmann e40ffd98c1 o Added comment about internal status
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796640 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 09:28:11 +00:00
Benjamin Bentmann ddd5c13075 o Generified code
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796637 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 09:21:11 +00:00
Jason van Zyl 3d9dea68d9 o using the same technique for the embedder as we are for the core tests
o trying on the grid and then i'll share a test jar


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796579 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21 23:30:26 +00:00
Jason van Zyl d738d58150 o working on fixing the problem in the MavenTest where the remote repositories are not being set and causing the test to fail
when a clean local repository is used.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796569 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21 22:28:54 +00:00
Jason van Zyl c5fb845b6b o make sure that the plugin repositories are propagated from the builder request and not from the MavenProject
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796420 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21 18:02:07 +00:00
Jason van Zyl 1267ef7633 o note about dropping support for legacy repositories
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796329 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21 14:55:23 +00:00
Benjamin Bentmann 043c8d6904 o Optimized performance by utilizing that project identity is based on g🅰️v which is just the map key
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@795948 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 18:32:52 +00:00
Benjamin Bentmann 9a6561c6f6 o Optimized performance (the string concatenation in getId() severely affected ReactorArtifactRepository which in turn is heavily used for key calculation/comparision in the plugin & metadata cache)
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@795939 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 18:13:49 +00:00
Jason van Zyl 4363bdecef MNG-4245: can't access protected mirrors with latest 3.0-SNAPSHOT (rev 795227)
Submitted by: Igor Fedorenko


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@795913 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 16:52:08 +00:00