From b9421dc80af485591a9c50cc8921f912e0def11e Mon Sep 17 00:00:00 2001 From: Ashlee Young Date: Fri, 23 Oct 2015 10:05:40 -0700 Subject: Removing sources to replace with download links instead. Change-Id: Ie28789a725051aec0d1b04dd291b7690a7898668 Signed-off-by: Ashlee Young --- .../maven-core/lifecycle-executor.txt | 217 -- .../maven-core/plugin-manager.txt | 184 - .../maven/apache-maven-3.3.3/maven-core/pom.xml | 238 -- .../maven-core/project-builder.txt | 1 - .../maven/AbstractMavenLifecycleParticipant.java | 77 - .../org/apache/maven/ArtifactFilterManager.java | 51 - .../maven/ArtifactFilterManagerDelegate.java | 34 - .../src/main/java/org/apache/maven/BuildAbort.java | 39 - .../org/apache/maven/BuildFailureException.java | 39 - .../apache/maven/DefaultArtifactFilterManager.java | 112 - .../main/java/org/apache/maven/DefaultMaven.java | 521 --- .../maven/DefaultProjectDependenciesResolver.java | 217 -- .../apache/maven/DuplicateProjectException.java | 61 - .../org/apache/maven/InternalErrorException.java | 36 - .../src/main/java/org/apache/maven/Maven.java | 34 - .../org/apache/maven/MavenExecutionException.java | 55 - .../org/apache/maven/MissingModuleException.java | 48 - .../apache/maven/ProjectBuildFailureException.java | 55 - .../org/apache/maven/ProjectCycleException.java | 39 - .../apache/maven/ProjectDependenciesResolver.java | 95 - .../main/java/org/apache/maven/ReactorReader.java | 255 -- .../java/org/apache/maven/RepositoryUtils.java | 362 -- .../main/java/org/apache/maven/SessionScoped.java | 42 - .../DependencyResolutionRequiredException.java | 35 - .../maven/artifact/InvalidRepositoryException.java | 65 - .../maven/artifact/factory/ArtifactFactory.java | 59 - .../artifact/factory/DefaultArtifactFactory.java | 160 - .../artifact/handler/DefaultArtifactHandler.java | 134 - .../handler/manager/ArtifactHandlerManager.java | 37 - .../manager/DefaultArtifactHandlerManager.java | 73 - .../metadata/AbstractArtifactMetadata.java | 33 - .../ArtifactMetadataRetrievalException.java | 55 - .../artifact/metadata/ArtifactMetadataSource.java | 52 - .../maven/artifact/metadata/ResolutionGroup.java | 46 - .../repository/DefaultRepositoryRequest.java | 134 - .../repository/LegacyLocalRepositoryManager.java | 435 --- .../repository/MavenArtifactRepository.java | 412 -- .../maven/artifact/repository/RepositoryCache.java | 58 - .../artifact/repository/RepositoryRequest.java | 95 - .../repository/layout/DefaultRepositoryLayout.java | 112 - .../metadata/AbstractRepositoryMetadata.java | 255 -- .../metadata/ArtifactRepositoryMetadata.java | 129 - .../repository/metadata/RepositoryMetadata.java | 92 - .../RepositoryMetadataDeploymentException.java | 40 - .../RepositoryMetadataInstallationException.java | 40 - .../metadata/RepositoryMetadataManager.java | 61 - .../RepositoryMetadataResolutionException.java | 40 - .../metadata/io/DefaultMetadataReader.java | 110 - .../metadata/io/MetadataParseException.java | 93 - .../repository/metadata/io/MetadataReader.java | 82 - .../resolver/ArtifactResolutionRequest.java | 329 -- .../resolver/ArtifactResolutionResult.java | 358 -- .../resolver/DefaultResolutionErrorHandler.java | 89 - .../artifact/resolver/ResolutionErrorHandler.java | 31 - .../artifact/resolver/ResolutionListener.java | 109 - .../maven/artifact/resolver/ResolutionNode.java | 251 -- .../filter/AbstractScopeArtifactFilter.java | 107 - .../resolver/filter/AndArtifactFilter.java | 99 - .../filter/CumulativeScopeArtifactFilter.java | 122 - .../resolver/filter/ExcludesArtifactFilter.java | 44 - .../resolver/filter/ExclusionSetFilter.java | 86 - .../resolver/filter/IncludesArtifactFilter.java | 93 - .../resolver/filter/ScopeArtifactFilter.java | 78 - .../apache/maven/bridge/MavenRepositorySystem.java | 785 ---- .../classrealm/ArtifactClassRealmConstituent.java | 76 - .../maven/classrealm/ClassRealmConstituent.java | 74 - .../apache/maven/classrealm/ClassRealmManager.java | 88 - .../classrealm/ClassRealmManagerDelegate.java | 36 - .../apache/maven/classrealm/ClassRealmRequest.java | 100 - .../maven/classrealm/DefaultClassRealmManager.java | 416 -- .../maven/classrealm/DefaultClassRealmRequest.java | 82 - .../BasedirBeanConfigurationPathTranslator.java | 71 - .../configuration/BeanConfigurationException.java | 41 - .../BeanConfigurationPathTranslator.java | 41 - .../configuration/BeanConfigurationRequest.java | 130 - .../BeanConfigurationValuePreprocessor.java | 45 - .../maven/configuration/BeanConfigurator.java | 44 - .../DefaultBeanConfigurationRequest.java | 195 - .../internal/DefaultBeanConfigurator.java | 160 - .../apache/maven/eventspy/AbstractEventSpy.java | 45 - .../java/org/apache/maven/eventspy/EventSpy.java | 77 - .../eventspy/internal/EventSpyDispatcher.java | 158 - .../internal/EventSpyExecutionListener.java | 163 - .../internal/EventSpyRepositoryListener.java | 176 - .../maven/exception/DefaultExceptionHandler.java | 336 -- .../apache/maven/exception/ExceptionHandler.java | 30 - .../apache/maven/exception/ExceptionSummary.java | 79 - .../maven/execution/AbstractExecutionListener.java | 116 - .../org/apache/maven/execution/BuildFailure.java | 61 - .../org/apache/maven/execution/BuildSuccess.java | 44 - .../org/apache/maven/execution/BuildSummary.java | 78 - .../execution/DefaultMavenExecutionRequest.java | 1299 ------- .../DefaultMavenExecutionRequestPopulator.java | 318 -- .../execution/DefaultMavenExecutionResult.java | 109 - .../org/apache/maven/execution/ExecutionEvent.java | 92 - .../apache/maven/execution/ExecutionListener.java | 66 - .../maven/execution/MavenExecutionRequest.java | 443 --- .../MavenExecutionRequestPopulationException.java | 43 - .../execution/MavenExecutionRequestPopulator.java | 74 - .../maven/execution/MavenExecutionResult.java | 70 - .../org/apache/maven/execution/MavenSession.java | 438 --- .../apache/maven/execution/MojoExecutionEvent.java | 86 - .../maven/execution/MojoExecutionListener.java | 40 - .../maven/execution/ProjectDependencyGraph.java | 64 - .../maven/execution/ProjectExecutionEvent.java | 90 - .../maven/execution/ProjectExecutionListener.java | 44 - .../org/apache/maven/execution/ReactorManager.java | 199 - .../apache/maven/execution/SettingsAdapter.java | 126 - .../maven/execution/scope/MojoExecutionScoped.java | 42 - .../execution/scope/WeakMojoExecutionListener.java | 44 - .../scope/internal/MojoExecutionScope.java | 190 - .../internal/MojoExecutionScopeCoreModule.java | 45 - .../scope/internal/MojoExecutionScopeModule.java | 56 - .../maven/extension/internal/CoreExports.java | 75 - .../extension/internal/CoreExportsProvider.java | 53 - .../extension/internal/CoreExtensionEntry.java | 141 - .../apache/maven/graph/DefaultGraphBuilder.java | 488 --- .../maven/graph/DefaultProjectDependencyGraph.java | 134 - .../graph/FilteredProjectDependencyGraph.java | 111 - .../java/org/apache/maven/graph/GraphBuilder.java | 31 - .../DefaultRepositorySystemSessionFactory.java | 271 -- .../internal/aether/LoggingRepositoryListener.java | 141 - .../maven/lifecycle/DefaultLifecycleExecutor.java | 177 - .../apache/maven/lifecycle/DefaultLifecycles.java | 144 - .../maven/lifecycle/LifeCyclePluginAnalyzer.java | 32 - .../java/org/apache/maven/lifecycle/Lifecycle.java | 80 - .../lifecycle/LifecycleExecutionException.java | 111 - .../apache/maven/lifecycle/LifecycleExecutor.java | 89 - .../maven/lifecycle/LifecycleMappingDelegate.java | 52 - .../lifecycle/LifecycleNotFoundException.java | 54 - .../lifecycle/LifecyclePhaseNotFoundException.java | 55 - .../apache/maven/lifecycle/MavenExecutionPlan.java | 202 - .../maven/lifecycle/MissingProjectException.java | 41 - .../maven/lifecycle/MojoExecutionConfigurator.java | 44 - .../maven/lifecycle/NoGoalSpecifiedException.java | 41 - .../lifecycle/internal/BuildListCalculator.java | 67 - .../lifecycle/internal/BuildThreadFactory.java | 39 - .../internal/CompoundProjectExecutionListener.java | 72 - .../lifecycle/internal/DefaultExecutionEvent.java | 77 - .../internal/DefaultExecutionEventCatapult.java | 119 - .../DefaultLifecycleExecutionPlanCalculator.java | 591 --- .../internal/DefaultLifecycleMappingDelegate.java | 158 - .../internal/DefaultLifecyclePluginAnalyzer.java | 258 -- .../DefaultLifecycleTaskSegmentCalculator.java | 155 - .../internal/DefaultMojoExecutionConfigurator.java | 108 - .../internal/DefaultProjectArtifactFactory.java | 53 - .../lifecycle/internal/DependencyContext.java | 114 - .../lifecycle/internal/ExecutionEventCatapult.java | 40 - .../lifecycle/internal/ExecutionPlanItem.java | 84 - .../apache/maven/lifecycle/internal/GoalTask.java | 45 - .../lifecycle/internal/LifecycleDebugLogger.java | 182 - .../internal/LifecycleDependencyResolver.java | 334 -- .../internal/LifecycleExecutionPlanCalculator.java | 67 - .../lifecycle/internal/LifecycleModuleBuilder.java | 154 - .../internal/LifecyclePluginResolver.java | 95 - .../maven/lifecycle/internal/LifecycleStarter.java | 150 - .../maven/lifecycle/internal/LifecycleTask.java | 50 - .../internal/LifecycleTaskSegmentCalculator.java | 61 - .../lifecycle/internal/MojoDescriptorCreator.java | 309 -- .../maven/lifecycle/internal/MojoExecutor.java | 394 -- .../maven/lifecycle/internal/PhaseRecorder.java | 78 - .../lifecycle/internal/ProjectArtifactFactory.java | 38 - .../maven/lifecycle/internal/ProjectBuildList.java | 158 - .../maven/lifecycle/internal/ProjectIndex.java | 70 - .../maven/lifecycle/internal/ProjectSegment.java | 106 - .../lifecycle/internal/ReactorBuildStatus.java | 80 - .../maven/lifecycle/internal/ReactorContext.java | 83 - .../maven/lifecycle/internal/TaskSegment.java | 73 - .../maven/lifecycle/internal/builder/Builder.java | 47 - .../lifecycle/internal/builder/BuilderCommon.java | 199 - .../internal/builder/BuilderNotFoundException.java | 29 - .../multithreaded/ConcurrencyDependencyGraph.java | 153 - .../multithreaded/MultiThreadedBuilder.java | 197 - .../builder/multithreaded/ThreadOutputMuxer.java | 477 --- .../singlethreaded/SingleThreadedBuilder.java | 65 - .../lifecycle/mapping/DefaultLifecycleMapping.java | 111 - .../apache/maven/lifecycle/mapping/Lifecycle.java | 83 - .../maven/lifecycle/mapping/LifecycleMapping.java | 39 - .../plugin/DefaultLifecycleBindingsInjector.java | 171 - .../maven/monitor/event/EventDispatcher.java | 37 - .../apache/maven/monitor/event/EventMonitor.java | 35 - .../apache/maven/plugin/BuildPluginManager.java | 54 - .../java/org/apache/maven/plugin/CacheUtils.java | 211 - .../plugin/CompoundMojoExecutionListener.java | 64 - .../CycleDetectedInPluginGraphException.java | 46 - .../maven/plugin/DebugConfigurationListener.java | 91 - .../maven/plugin/DefaultBuildPluginManager.java | 244 -- .../maven/plugin/DefaultExtensionRealmCache.java | 170 - .../maven/plugin/DefaultPluginArtifactsCache.java | 218 -- .../maven/plugin/DefaultPluginDescriptorCache.java | 219 -- .../maven/plugin/DefaultPluginRealmCache.java | 219 -- .../apache/maven/plugin/ExtensionRealmCache.java | 84 - .../plugin/InvalidPluginDescriptorException.java | 44 - .../maven/plugin/InvalidPluginException.java | 48 - .../org/apache/maven/plugin/LegacySupport.java | 59 - .../apache/maven/plugin/MavenPluginManager.java | 128 - .../apache/maven/plugin/MavenPluginValidator.java | 78 - .../org/apache/maven/plugin/MojoExecution.java | 237 -- .../apache/maven/plugin/PluginArtifactsCache.java | 91 - .../maven/plugin/PluginConfigurationException.java | 74 - .../maven/plugin/PluginContainerException.java | 88 - .../apache/maven/plugin/PluginDescriptorCache.java | 58 - .../plugin/PluginDescriptorParsingException.java | 58 - .../maven/plugin/PluginExecutionException.java | 90 - .../maven/plugin/PluginIncompatibleException.java | 36 - .../apache/maven/plugin/PluginLoaderException.java | 124 - .../org/apache/maven/plugin/PluginManager.java | 82 - .../maven/plugin/PluginManagerException.java | 197 - .../maven/plugin/PluginNotFoundException.java | 58 - .../maven/plugin/PluginParameterException.java | 192 - .../plugin/PluginParameterExpressionEvaluator.java | 482 --- .../org/apache/maven/plugin/PluginRealmCache.java | 85 - .../maven/plugin/PluginResolutionException.java | 47 - .../plugin/internal/DefaultLegacySupport.java | 74 - .../plugin/internal/DefaultMavenPluginManager.java | 946 ----- .../DefaultPluginDependenciesResolver.java | 256 -- .../plugin/internal/DefaultPluginManager.java | 261 -- .../maven/plugin/internal/PlexusUtilsInjector.java | 87 - .../internal/PluginDependenciesResolver.java | 71 - .../PluginDependencyResolutionListener.java | 158 - .../internal/ValidatingConfigurationListener.java | 97 - .../maven/plugin/internal/WagonExcluder.java | 109 - .../plugin/prefix/DefaultPluginPrefixRequest.java | 156 - .../prefix/NoPluginFoundForPrefixException.java | 65 - .../maven/plugin/prefix/PluginPrefixRequest.java | 115 - .../maven/plugin/prefix/PluginPrefixResolver.java | 42 - .../maven/plugin/prefix/PluginPrefixResult.java | 55 - .../internal/DefaultPluginPrefixResolver.java | 294 -- .../prefix/internal/DefaultPluginPrefixResult.java | 90 - .../version/DefaultPluginVersionRequest.java | 165 - .../version/PluginVersionNotFoundException.java | 47 - .../maven/plugin/version/PluginVersionRequest.java | 115 - .../version/PluginVersionResolutionException.java | 107 - .../plugin/version/PluginVersionResolver.java | 42 - .../maven/plugin/version/PluginVersionResult.java | 47 - .../internal/DefaultPluginVersionResolver.java | 408 -- .../internal/DefaultPluginVersionResult.java | 69 - .../DefaultDependencyResolutionRequest.java | 82 - .../project/DefaultDependencyResolutionResult.java | 111 - .../maven/project/DefaultMavenProjectHelper.java | 128 - .../project/DefaultModelBuildingListener.java | 155 - .../maven/project/DefaultProjectBuilder.java | 929 ----- .../project/DefaultProjectBuildingHelper.java | 295 -- .../project/DefaultProjectBuildingRequest.java | 339 -- .../project/DefaultProjectBuildingResult.java | 110 - .../DefaultProjectDependenciesResolver.java | 333 -- .../maven/project/DefaultProjectRealmCache.java | 147 - .../project/DependencyResolutionException.java | 42 - .../maven/project/DependencyResolutionRequest.java | 81 - .../maven/project/DependencyResolutionResult.java | 80 - .../DuplicateArtifactAttachmentException.java | 64 - .../maven/project/DuplicateProjectException.java | 80 - .../apache/maven/project/ExtensionDescriptor.java | 88 - .../maven/project/ExtensionDescriptorBuilder.java | 168 - .../project/InvalidProjectVersionException.java | 59 - .../org/apache/maven/project/MavenProject.java | 1976 ---------- .../apache/maven/project/MavenProjectHelper.java | 76 - .../org/apache/maven/project/ProjectBuilder.java | 98 - .../maven/project/ProjectBuildingException.java | 145 - .../maven/project/ProjectBuildingHelper.java | 81 - .../maven/project/ProjectBuildingRequest.java | 194 - .../maven/project/ProjectBuildingResult.java | 74 - .../maven/project/ProjectDependenciesResolver.java | 40 - .../apache/maven/project/ProjectModelResolver.java | 248 -- .../apache/maven/project/ProjectRealmCache.java | 79 - .../org/apache/maven/project/ProjectSorter.java | 289 -- .../apache/maven/project/ReactorModelCache.java | 103 - .../org/apache/maven/project/ReactorModelPool.java | 106 - .../maven/project/RepositorySessionDecorator.java | 36 - .../project/artifact/ActiveProjectArtifact.java | 403 -- .../project/artifact/ArtifactWithDependencies.java | 33 - .../maven/project/artifact/AttachedArtifact.java | 185 - .../artifact/DefaultMavenMetadataCache.java | 347 -- .../project/artifact/DefaultMetadataSource.java | 37 - .../InvalidDependencyVersionException.java | 55 - .../maven/project/artifact/MavenMetadataCache.java | 38 - .../project/artifact/MavenMetadataSource.java | 770 ---- .../maven/project/artifact/PluginArtifact.java | 94 - .../maven/project/artifact/ProjectArtifact.java | 100 - .../project/artifact/ProjectArtifactMetadata.java | 130 - .../apache/maven/project/path/PathTranslator.java | 41 - .../properties/internal/EnvironmentUtils.java | 70 - .../properties/internal/SystemProperties.java | 51 - .../repository/ArtifactDoesNotExistException.java | 34 - .../maven/repository/ArtifactTransferEvent.java | 343 -- .../ArtifactTransferFailedException.java | 35 - .../maven/repository/ArtifactTransferListener.java | 36 - .../maven/repository/ArtifactTransferResource.java | 66 - .../DelegatingLocalArtifactRepository.java | 195 - .../maven/repository/LocalArtifactRepository.java | 33 - .../LocalRepositoryNotAccessibleException.java | 44 - .../apache/maven/repository/RepositorySystem.java | 164 - .../legacy/metadata/AbstractArtifactMetadata.java | 65 - .../ArtifactMetadataRetrievalException.java | 68 - .../legacy/metadata/ArtifactMetadataSource.java | 78 - .../metadata/DefaultMetadataResolutionRequest.java | 132 - .../legacy/metadata/MetadataResolutionRequest.java | 113 - .../legacy/metadata/ResolutionGroup.java | 83 - .../apache/maven/rtinfo/RuntimeInformation.java | 49 - .../rtinfo/internal/DefaultRuntimeInformation.java | 150 - .../maven/session/scope/internal/SessionScope.java | 169 - .../session/scope/internal/SessionScopeModule.java | 63 - .../settings/DefaultMavenSettingsBuilder.java | 158 - .../maven/settings/MavenSettingsBuilder.java | 81 - .../settings/SettingsConfigurationException.java | 63 - .../org/apache/maven/settings/SettingsUtils.java | 321 -- .../apache/maven/toolchain/DefaultToolchain.java | 190 - .../maven/toolchain/DefaultToolchainManager.java | 140 - .../toolchain/DefaultToolchainManagerPrivate.java | 82 - .../maven/toolchain/DefaultToolchainsBuilder.java | 78 - .../toolchain/MisconfiguredToolchainException.java | 39 - .../apache/maven/toolchain/RequirementMatcher.java | 30 - .../maven/toolchain/RequirementMatcherFactory.java | 109 - .../java/org/apache/maven/toolchain/Toolchain.java | 46 - .../apache/maven/toolchain/ToolchainFactory.java | 44 - .../apache/maven/toolchain/ToolchainManager.java | 64 - .../maven/toolchain/ToolchainManagerPrivate.java | 58 - .../apache/maven/toolchain/ToolchainPrivate.java | 48 - .../apache/maven/toolchain/ToolchainsBuilder.java | 46 - .../building/DefaultToolchainsBuilder.java | 138 - .../building/DefaultToolchainsBuildingRequest.java | 63 - .../building/DefaultToolchainsBuildingResult.java | 66 - .../toolchain/building/ToolchainsBuilder.java | 41 - .../building/ToolchainsBuildingException.java | 93 - .../building/ToolchainsBuildingRequest.java | 64 - .../building/ToolchainsBuildingResult.java | 50 - .../toolchain/io/DefaultToolchainsReader.java | 115 - .../toolchain/io/ToolchainsParseException.java | 94 - .../maven/toolchain/io/ToolchainsReader.java | 83 - .../maven/toolchain/java/DefaultJavaToolChain.java | 55 - .../apache/maven/toolchain/java/JavaToolchain.java | 67 - .../maven/toolchain/java/JavaToolchainFactory.java | 127 - .../maven/toolchain/java/JavaToolchainImpl.java | 87 - .../toolchain/merge/MavenToolchainMerger.java | 103 - .../maven-core/src/main/mdo/extension.mdo | 65 - .../maven-core/src/main/mdo/toolchains.mdo | 231 -- .../main/resources/META-INF/maven/extension.xml | 173 - .../META-INF/plexus/artifact-handlers.xml | 219 -- .../main/resources/META-INF/plexus/components.xml | 134 - .../resources/META-INF/plexus/default-bindings.xml | 399 -- .../org/apache/maven/messages/build.properties | 23 - .../org/apache/maven/messages/messages.properties | 34 - .../apache/maven/messages/messages_de.properties | 34 - .../apache/maven/messages/messages_el.properties | 33 - .../apache/maven/messages/messages_en.properties | 23 - .../apache/maven/messages/messages_es.properties | 33 - .../apache/maven/messages/messages_fr.properties | 33 - .../apache/maven/messages/messages_ja.properties | 34 - .../apache/maven/messages/messages_ko.properties | 34 - .../apache/maven/messages/messages_nl.properties | 33 - .../apache/maven/messages/messages_no.properties | 33 - .../apache/maven/messages/messages_pl.properties | 33 - .../maven/messages/messages_zh_CN.properties | 34 - .../org/apache/maven/project/standalone.xml | 30 - .../maven-core/src/site/apt/artifact-handlers.apt | 59 - .../src/site/apt/configuration-management.apt | 139 - .../src/site/apt/default-bindings.apt.vm | 67 - .../apt/getting-to-container-configured-mojos.apt | 102 - .../maven-core/src/site/apt/index.apt | 77 - .../maven-core/src/site/apt/inheritance.apt | 100 - .../maven-core/src/site/apt/lifecycles.apt.vm | 49 - .../maven-core/src/site/apt/offline-mode.apt | 269 -- .../src/site/apt/plugin-execution-isolation.apt | 57 - .../apt/scripting-support/marmalade-support.apt | 196 - .../2.1-lifecycle-refactor-class-diagram.png | Bin 38152 -> 0 bytes .../2.1-lifecycle-refactor-sequence-diagram.png | Bin 87383 -> 0 bytes .../design/2.1-lifecycle-refactor.graffle | 4024 -------------------- .../maven-core/src/site/site.xml | 42 - .../maven/AbstractCoreMavenComponentTestCase.java | 360 -- .../java/org/apache/maven/DefaultMavenTest.java | 45 - .../maven/MavenLifecycleParticipantTest.java | 173 - .../src/test/java/org/apache/maven/MavenTest.java | 69 - .../maven/ProjectDependenciesResolverTest.java | 114 - .../artifact/handler/ArtifactHandlerTest.java | 89 - .../configuration/DefaultBeanConfiguratorTest.java | 148 - .../exception/DefaultExceptionHandlerTest.java | 60 - .../DefaultMavenExecutionRequestPopulatorTest.java | 62 - .../maven/execution/DefaultMavenExecutionTest.java | 52 - .../scope/internal/MojoExecutionScopeTest.java | 122 - .../graph/DefaultProjectDependencyGraphTest.java | 172 - .../maven/lifecycle/DefaultLifecyclesTest.java | 59 - .../lifecycle/DelegatingMojoExecutionListener.java | 75 - .../DelegatingProjectExecutionListener.java | 82 - .../lifecycle/EmptyLifecyclePluginAnalyzer.java | 77 - .../lifecycle/LifecycleExecutorSubModulesTest.java | 98 - .../maven/lifecycle/LifecycleExecutorTest.java | 553 --- .../maven/lifecycle/MavenExecutionPlanTest.java | 77 - .../lifecycle/MojoExecutionXPathContainer.java | 72 - .../internal/BuildListCalculatorTest.java | 49 - .../lifecycle/internal/BuilderCommonTest.java | 76 - .../internal/ConcurrencyDependencyGraphTest.java | 94 - .../LifecycleExecutionPlanCalculatorTest.java | 82 - .../LifecycleTaskSegmentCalculatorImplTest.java | 57 - .../lifecycle/internal/PhaseRecorderTest.java | 49 - .../lifecycle/internal/ProjectBuildListTest.java | 42 - .../multithreaded/ThreadOutputMuxerTest.java | 167 - .../lifecycle/internal/stub/AboutTheStubs.html | 55 - .../internal/stub/BuildPluginManagerStub.java | 56 - .../internal/stub/CompletionServiceStub.java | 89 - .../internal/stub/DefaultLifecyclesStub.java | 63 - .../internal/stub/ExecutionEventCatapultStub.java | 42 - .../internal/stub/LifeCyclePluginAnalyzerStub.java | 74 - .../stub/LifecycleExecutionPlanCalculatorStub.java | 231 -- .../stub/LifecycleTaskSegmentCalculatorStub.java | 89 - .../maven/lifecycle/internal/stub/LoggerStub.java | 110 - .../lifecycle/internal/stub/MojoExecutorStub.java | 70 - .../internal/stub/PluginPrefixResolverStub.java | 52 - .../internal/stub/PluginVersionResolverStub.java | 48 - .../stub/ProjectDependenciesResolverStub.java | 109 - .../internal/stub/ProjectDependencyGraphStub.java | 227 -- .../stub/ProjectDependencyGraphStubTest.java | 61 - .../org/apache/maven/plugin/PluginManagerTest.java | 342 -- .../maven/plugin/PluginParameterExceptionTest.java | 164 - .../PluginParameterExpressionEvaluatorTest.java | 447 --- .../plugin/internal/DefaultLegacySupportTest.java | 74 - .../project/AbstractMavenProjectTestCase.java | 189 - .../project/DefaultMavenProjectBuilderTest.java | 193 - .../maven/project/EmptyLifecycleExecutor.java | 109 - .../maven/project/EmptyProjectBuildingHelper.java | 62 - .../project/ExtensionDescriptorBuilderTest.java | 101 - .../project/LegacyLocalRepositoryManager.java | 192 - .../org/apache/maven/project/MavenProjectTest.java | 197 - .../apache/maven/project/PomConstructionTest.java | 1878 --------- .../apache/maven/project/ProjectBuilderTest.java | 87 - .../apache/maven/project/ProjectSorterTest.java | 363 -- .../apache/maven/project/TestMetadataSource.java | 51 - .../artifact/DefaultMavenMetadataCacheTest.java | 81 - .../project/artifact/MavenMetadataSourceTest.java | 183 - .../canonical/CanonicalProjectBuilderTest.java | 101 - .../maven/project/harness/PomTestWrapper.java | 121 - .../project/harness/Xpp3DomAttributeIterator.java | 89 - .../project/harness/Xpp3DomAttributePointer.java | 105 - .../maven/project/harness/Xpp3DomNodeIterator.java | 161 - .../maven/project/harness/Xpp3DomNodePointer.java | 155 - .../project/harness/Xpp3DomPointerFactory.java | 61 - .../maven/repository/LegacyRepositoryLayout.java | 89 - .../maven/repository/TestArtifactHandler.java | 83 - .../maven/repository/TestRepositoryConnector.java | 123 - .../repository/TestRepositoryConnectorFactory.java | 48 - .../maven/repository/TestRepositorySystem.java | 329 -- .../internal/DefaultRuntimeInformationTest.java | 81 - .../settings/PomConstructionWithSettingsTest.java | 159 - .../apache/maven/settings/SettingsUtilsTest.java | 126 - .../DefaultToolchainManagerPrivateTest.java | 166 - .../toolchain/DefaultToolchainManagerTest.java | 153 - .../maven/toolchain/DefaultToolchainTest.java | 158 - .../toolchain/RequirementMatcherFactoryTest.java | 72 - .../building/DefaultToolchainsBuilderTest.java | 185 - .../building/ToolchainsBuildingExceptionTest.java | 73 - .../toolchain/merge/MavenToolchainMergerTest.java | 176 - .../cyclic-reference/module-a/pom.xml | 19 - .../cyclic-reference/module-b/pom.xml | 19 - .../default-maven/cyclic-reference/pom.xml | 14 - .../lifecycle-executor/mojo-configuration/pom.xml | 67 - .../lifecycle-executor/project-basic/pom.xml | 79 - .../pom.xml | 72 - .../java/org/apache/maven/lifecycle/test/App.java | 13 - .../org/apache/maven/lifecycle/test/AppTest.java | 38 - .../project-with-inheritance/pom.xml | 628 --- .../project-with-multiple-executions/pom.xml | 112 - .../src/main/mdo/remote-resources.mdo | 61 - .../src/main/mdo/supplemental-model.mdo | 61 - .../pom.xml | 42 - .../pom.xml | 30 - .../module-a/pom.xml | 12 - .../module-b/pom.xml | 12 - .../pom.xml | 13 - .../mng-5003-plugin-realm-cache/pom.xml | 8 - .../pom.xml | 44 - .../tools.jar | 0 .../project-with-build-extensions-plugin/pom.xml | 31 - .../project-with-inheritance/pom.xml | 628 --- .../project-with-plugin-classpath-ordering/pom.xml | 63 - .../sub/pom.xml | 77 - .../org/apache/maven/its/mng3906/a/0.1/a-0.1.jar | Bin 5109 -> 0 bytes .../org/apache/maven/its/mng3906/a/0.1/a-0.1.pom | 56 - .../org/apache/maven/its/mng3906/a/0.2/a-0.2.jar | Bin 5111 -> 0 bytes .../org/apache/maven/its/mng3906/a/0.2/a-0.2.pom | 56 - .../apache/maven/its/mng3906/a/maven-metadata.xml | 13 - .../org/apache/maven/its/mng3906/b/0.1/b-0.1.jar | Bin 5108 -> 0 bytes .../org/apache/maven/its/mng3906/b/0.1/b-0.1.pom | 56 - .../apache/maven/its/mng3906/b/maven-metadata.xml | 12 - .../org/apache/maven/its/mng3906/c/0.1/c-0.1.jar | Bin 5109 -> 0 bytes .../org/apache/maven/its/mng3906/c/0.1/c-0.1.pom | 56 - .../apache/maven/its/mng3906/c/maven-metadata.xml | 12 - .../org/apache/maven/its/mng3906/d/0.1/d-0.1.jar | Bin 5108 -> 0 bytes .../org/apache/maven/its/mng3906/d/0.1/d-0.1.pom | 56 - .../apache/maven/its/mng3906/d/maven-metadata.xml | 12 - .../org/apache/maven/its/mng3906/e/0.1/e-0.1.jar | Bin 5107 -> 0 bytes .../org/apache/maven/its/mng3906/e/0.1/e-0.1.pom | 56 - .../apache/maven/its/mng3906/e/maven-metadata.xml | 12 - .../sub/settings-template.xml | 55 - .../project-builder/it0063/jdk/jre/placeholder.txt | 1 - .../project-builder/it0063/jdk/lib/tools.jar | Bin 345 -> 0 bytes .../test/projects/project-builder/it0063/pom.xml | 55 - .../project-builder/mng-3023/consumer/pom.xml | 66 - .../mng-3023/dependency/dependency-1.jar | Bin 345 -> 0 bytes .../project-builder/mng-3023/dependency/pom.xml | 70 - .../test/projects/project-builder/mng-3023/pom.xml | 37 - .../it0063/jdk/jre/placeholder.txt | 1 - .../it0063/jdk/lib/tools.jar | Bin 345 -> 0 bytes .../project-dependencies-resolver/it0063/pom.xml | 55 - .../project-with-exclusions/pom.xml | 41 - .../org/apache/maven/its/a/0.1/a-0.1.jar | Bin 1898 -> 0 bytes .../org/apache/maven/its/a/0.1/a-0.1.pom | 41 - .../org/apache/maven/its/a/maven-metadata.xml | 12 - .../org/apache/maven/its/b/0.1/b-0.1.jar | Bin 1936 -> 0 bytes .../org/apache/maven/its/b/0.1/b-0.1.pom | 49 - .../org/apache/maven/its/b/maven-metadata.xml | 12 - .../maven-it-plugin/0.1/maven-it-plugin-0.1.jar | Bin 13520 -> 0 bytes .../maven-it-plugin/0.1/maven-it-plugin-0.1.pom | 70 - .../maven/its/plugins/maven-it-plugin/0.1/pom.xml | 70 - .../its/plugins/maven-it-plugin/maven-metadata.xml | 14 - .../apache/maven/its/plugins/maven-metadata.xml | 10 - .../maven-plugin-api/2.0/maven-plugin-api-2.0.jar | Bin 10133 -> 0 bytes .../maven-plugin-api/2.0/maven-plugin-api-2.0.pom | 23 - .../org/apache/maven/maven/2.0/maven-2.0.pom | 264 -- .../0.1/maven-clean-plugin-0.1.jar | Bin 6767 -> 0 bytes .../0.1/maven-clean-plugin-0.1.pom | 70 - .../plugins/maven-clean-plugin/maven-metadata.xml | 14 - .../0.1/maven-compiler-plugin-0.1.jar | Bin 8085 -> 0 bytes .../0.1/maven-compiler-plugin-0.1.pom | 70 - .../maven-compiler-plugin/maven-metadata.xml | 14 - .../0.1/maven-deploy-plugin-0.1.jar | Bin 6777 -> 0 bytes .../0.1/maven-deploy-plugin-0.1.pom | 70 - .../plugins/maven-deploy-plugin/maven-metadata.xml | 14 - .../0.1/maven-install-plugin-0.1.jar | Bin 6781 -> 0 bytes .../0.1/maven-install-plugin-0.1.pom | 70 - .../maven-install-plugin/maven-metadata.xml | 14 - .../maven-jar-plugin/0.1/maven-jar-plugin-0.1.jar | Bin 6790 -> 0 bytes .../maven-jar-plugin/0.1/maven-jar-plugin-0.1.pom | 70 - .../plugins/maven-jar-plugin/maven-metadata.xml | 14 - .../org/apache/maven/plugins/maven-metadata.xml | 45 - .../0.1/maven-plugin-plugin-0.1.jar | Bin 8007 -> 0 bytes .../0.1/maven-plugin-plugin-0.1.pom | 70 - .../plugins/maven-plugin-plugin/maven-metadata.xml | 14 - .../0.1/maven-resources-plugin-0.1.jar | Bin 8034 -> 0 bytes .../0.1/maven-resources-plugin-0.1.pom | 70 - .../maven-resources-plugin/maven-metadata.xml | 14 - .../0.1/maven-surefire-plugin-0.1.jar | Bin 6827 -> 0 bytes .../0.1/maven-surefire-plugin-0.1.pom | 70 - .../maven-surefire-plugin/maven-metadata.xml | 14 - .../plexus/plexus-utils/1.1/plexus-utils-1.1.jar | Bin 168568 -> 0 bytes .../plexus/plexus-utils/1.1/plexus-utils-1.1.pom | 27 - .../artifact-id-inheritance/child/pom.xml | 32 - .../artifact-id-inheritance/pom.xml | 35 - .../basedir-aligned-interpolation/pom.xml | 60 - .../pom-with-unusual-name.xml | 39 - .../baseurl-interpolation/pom.xml | 38 - .../boolean-interpolation/pom.xml | 82 - .../build-extension-inheritance/pom.xml | 49 - .../build-extension-inheritance/sub/pom.xml | 75 - .../complete-model/w-parent/pom.xml | 31 - .../complete-model/w-parent/sub/pom.xml | 319 -- .../complete-model/wo-parent/pom.xml | 313 -- .../config-with-plugin-mng/pom.xml | 39 - .../consecutive_empty_elements/pom.xml | 14 - .../contributors-inheritance/child-2/pom.xml | 45 - .../contributors-inheritance/pom.xml | 35 - .../dependency-inheritance/maven-parent.xml | 31 - .../dependency-inheritance/pom.xml | 48 - .../dependency-inheritance/sub/pom.xml | 34 - .../pom.xml | 19 - .../sub/pom.xml | 17 - .../dependency-order/w-plugin-mngt/pom.xml | 68 - .../dependency-order/wo-plugin-mngt/pom.xml | 66 - .../dependency-scope-inheritance/pom.xml | 16 - .../dependency-scope-inheritance/sub/pom.xml | 19 - .../dependency-scope/pom.xml | 18 - .../dependency-scope/sub/pom.xml | 24 - .../developers-inheritance/child-2/pom.xml | 45 - .../developers-inheritance/pom.xml | 35 - .../distribution-management/pom.xml | 39 - .../dual-execution-ids/pom.xml | 28 - .../dual-execution-ids/sub/pom.xml | 43 - .../nexus-parent.xml | 29 - .../duplicate-exclusions-dependency/pom.xml | 33 - .../duplicate-exclusions-dependency/sub/pom.xml | 16 - .../empty-distMng-repo-url/pom.xml | 15 - .../resources-project-builder/empty-scm/pom.xml | 58 - .../equal-plugin-deps/pom.xml | 64 - .../equal-plugin-exec-ids/pom.xml | 83 - .../execution-configuration-join/pom.xml | 35 - .../execution-configuration-subcollections/pom.xml | 42 - .../execution-configuration/pom.xml | 58 - .../test/resources-project-builder/foo/sub/pom.xml | 418 -- .../full-interpolation/pom.xml | 66 - .../pom.xml | 97 - .../sub/pom.xml | 84 - .../active-profile/pom.xml | 50 - .../active-profile/sub/pom.xml | 54 - .../no-profile/pom.xml | 41 - .../no-profile/sub/pom.xml | 45 - .../interpolation-cli-wins/pom.xml | 39 - .../jdk-activation/pom.xml | 105 - .../join-different-containers-same-id/pom.xml | 66 - .../licenses-inheritance/child-2/pom.xml | 47 - .../licenses-inheritance/pom.xml | 37 - .../limited-inheritance/child/pom.xml | 61 - .../limited-inheritance/pom.xml | 87 - .../mailing-lists-inheritance/child-2/pom.xml | 45 - .../mailing-lists-inheritance/pom.xml | 35 - .../managed-profile-dependency/pom.xml | 55 - .../managed-profile-dependency/sub/pom.xml | 55 - .../merged-filter-order/pom.xml | 44 - .../merged-filter-order/sub/pom.xml | 49 - .../w-plugin-mngt/pom.xml | 64 - .../w-plugin-mngt/sub/pom.xml | 64 - .../wo-plugin-mngt/pom.xml | 62 - .../wo-plugin-mngt/sub/pom.xml | 64 - .../w-plugin-mngt/pom.xml | 59 - .../w-plugin-mngt/sub/pom.xml | 59 - .../wo-plugin-mngt/pom.xml | 57 - .../wo-plugin-mngt/sub/pom.xml | 59 - .../merged-plugin-exec-order/w-plugin-mngt/pom.xml | 71 - .../w-plugin-mngt/sub/pom.xml | 71 - .../wo-plugin-mngt/pom.xml | 69 - .../wo-plugin-mngt/sub/pom.xml | 71 - .../resources-project-builder/micromailer/pom.xml | 124 - .../micromailer/spice-parent-9.pom | 103 - .../multiple-filters/pom.xml | 17 - .../multiple-repos/pom.xml | 44 - .../multiple-repos/sub/pom.xml | 45 - .../nested-build-dir-interpolation/pom.xml | 55 - .../parent-inheritance/child3.xml | 7 - .../parent-inheritance/pom.xml | 11 - .../parent-inheritance/sub/pom.xml | 9 - .../parent-interpolation/pom.xml | 16 - .../parent-interpolation/sub/pom.xml | 9 - .../parent-pom-packaging/pom.xml | 35 - .../parent-pom-packaging/sub/pom.xml | 40 - .../platform-file-separator/pom.xml | 40 - .../plugin-config-append/no-profile/pom.xml | 80 - .../no-profile/subproject/pom.xml | 70 - .../plugin-config-append/with-profile/pom.xml | 90 - .../with-profile/subproject/pom.xml | 80 - .../plugin-config-attributes/w-plugin-mngt/pom.xml | 62 - .../plugin-config-attributes/w-profile/pom.xml | 74 - .../wo-plugin-mngt/pom.xml | 53 - .../plugin-config-merging/child/pom.xml | 76 - .../plugin-config-merging/pom.xml | 72 - .../plugin-config-order/w-plugin-mngt/pom.xml | 68 - .../plugin-config-order/wo-plugin-mngt/pom.xml | 60 - .../plugin-config-properties/pom.xml | 30 - .../plugin-exec-config-order/w-plugin-mngt/pom.xml | 78 - .../wo-plugin-mngt/pom.xml | 70 - .../plugin-exec-goals-order/w-plugin-mngt/pom.xml | 66 - .../plugin-exec-goals-order/wo-plugin-mngt/pom.xml | 57 - .../plugin-exec-inheritance/pom.xml | 75 - .../plugin-exec-inheritance/w-merge/pom.xml | 48 - .../plugin-exec-inheritance/wo-merge/pom.xml | 43 - .../pom.xml | 56 - .../sub/pom.xml | 59 - .../plugin-exec-merging-wo-version/pom.xml | 55 - .../plugin-exec-merging-wo-version/sub/pom.xml | 58 - .../plugin-exec-merging/w-plugin-mngt/pom.xml | 58 - .../plugin-exec-merging/w-plugin-mngt/sub/pom.xml | 59 - .../plugin-exec-merging/wo-plugin-mngt/pom.xml | 56 - .../plugin-exec-merging/wo-plugin-mngt/sub/pom.xml | 59 - .../plugin-exec-order-and-default-exec/pom.xml | 71 - .../plugin-exec-order-with-lifecycle/pom.xml | 52 - .../plugin-exec-order/w-plugin-mngt/pom.xml | 76 - .../plugin-exec-order/wo-plugin-mngt/pom.xml | 67 - .../plugin-exec-w-and-wo-id/w-plugin-mngt/pom.xml | 72 - .../plugin-exec-w-and-wo-id/wo-plugin-mngt/pom.xml | 64 - .../plugin-inheritance-merge-order/pom.xml | 67 - .../plugin-inheritance-merge-order/sub/pom.xml | 72 - .../plugin-inheritance-order/child/pom.xml | 51 - .../plugin-inheritance-order/pom.xml | 68 - .../plugin-inheritance-simple/pom.xml | 17 - .../plugin-inheritance-simple/sub/pom.xml | 20 - .../plugin-injection-merge-order/pom.xml | 133 - .../plugin-management-dependencies/pom.xml | 25 - .../plugin-management-dependencies/sub/pom.xml | 25 - .../plugin-management-duplicate/pom.xml | 39 - .../plugin-management-duplicate/sub/pom.xml | 64 - .../child/pom.xml | 53 - .../plugin-management-for-implicit-plugin/pom.xml | 61 - .../plugin-management-inheritance/pom.xml | 64 - .../plugin-merge-simple/pom.xml | 17 - .../plugin-order/nexus-parent.xml | 19 - .../resources-project-builder/plugin-order/pom.xml | 28 - .../pluginmanagement-inherited/pom.xml | 18 - .../pluginmanagement-inherited/sub/pom.xml | 17 - .../pom-encoding/latin-1/pom.xml | 36 - .../pom-encoding/utf-8/pom.xml | 36 - .../pom-inheritance/pom.xml | 188 - .../pom-inheritance/sub/pom.xml | 36 - .../prerequisites-inheritance/child/pom.xml | 36 - .../prerequisites-inheritance/pom.xml | 33 - .../profile-default-deactivation/pom.xml | 35 - .../profile-dependencies-multiple-profiles/pom.xml | 81 - .../profile-injected-dependencies/pom.xml | 75 - .../profile-injection-order/pom.xml | 68 - .../profile-module-inheritance/pom.xml | 18 - .../profile-module-inheritance/sub/pom.xml | 12 - .../profile-module/pom.xml | 24 - .../profile-plugin-mng-dependencies/pom.xml | 77 - .../profile-plugin-mng-dependencies/sub/pom.xml | 62 - .../profile-plugins/pom.xml | 52 - .../profile-properties-interpolation/pom.xml | 54 - .../properties-inheritance/pom.xml | 34 - .../properties-inheritance/sub/pom.xml | 40 - .../properties-no-duplication/pom.xml | 12 - .../properties-no-duplication/sub/pom.xml | 17 - .../repo-inheritance/pom.xml | 64 - .../reporting-interpolation/pom.xml | 6 - .../reporting-plugin-config/pom.xml | 51 - .../reporting-plugin-config/sub/pom.xml | 48 - .../jetty-parent.xml | 37 - .../single-configuration-inheritance/pom.xml | 41 - .../sytem-property-interpolation/pom.xml | 30 - .../resources-project-builder/unc-path/pom.xml | 41 - .../resources-project-builder/unc-path/sub/pom.xml | 57 - .../dep-mngt-in-profile/pom.xml | 49 - .../unique-dependency-key/dep-mngt/pom.xml | 44 - .../unique-dependency-key/deps-in-profile/pom.xml | 47 - .../unique-dependency-key/deps/pom.xml | 42 - .../artifact-repo-in-profile/pom.xml | 51 - .../unique-repo-id/artifact-repo/pom.xml | 45 - .../unique-repo-id/plugin-repo-in-profile/pom.xml | 51 - .../unique-repo-id/plugin-repo/pom.xml | 45 - .../child/pom.xml | 104 - .../unprefixed-expression-interpolation/pom.xml | 36 - .../url-append/child/pom.xml | 64 - .../url-append/parent/pom.xml | 53 - .../url-inheritance/another-parent/pom.xml | 36 - .../url-inheritance/another-parent/sub/pom.xml | 35 - .../url-inheritance/pom.xml | 74 - .../url-inheritance/sub/pom.xml | 35 - .../url-no-decoding/pom.xml | 64 - .../xml-coalesce-text/pom.xml | 567 --- .../xml-markup-interpolation/pom.xml | 41 - .../xml-whitespace/pom.xml | 43 - .../xml-whitespace/sub/pom.xml | 49 - .../test/resources-settings/repositories/pom.xml | 29 - .../resources-settings/repositories/settings.xml | 55 - .../resources-settings/settings-no-pom/pom.xml | 13 - .../settings-no-pom/settings.xml | 20 - .../test-pom-and-settings-interpolation/pom.xml | 78 - .../settings.xml | 35 - .../org.apache.maven/maven-core/pom.properties | 1 - .../test/resources/META-INF/plexus/components.xml | 113 - .../src/test/resources/canonical-pom.xml | 55 - .../test/resources/dependencyManagement-pom.xml | 65 - .../test/resources/distributionManagement-pom.xml | 44 - .../t01/maven-test/jars/maven-test-a-1.0.jar | 1 - .../t01/maven-test/jars/maven-test-a-1.1.jar | 1 - .../t01/maven-test/jars/maven-test-b-1.0.jar | 1 - .../t01/maven-test/jars/maven-test-b-1.1.jar | 1 - .../t01/maven-test/jars/maven-test-c-1.0.jar | 1 - .../t01/maven-test/jars/maven-test-c-1.1.jar | 1 - .../t01/maven-test/jars/maven-test-d-1.0.jar | 1 - .../t01/maven-test/jars/maven-test-d-1.1.jar | 1 - .../t01/maven-test/jars/maven-test-d-1.2.jar | 1 - .../t01/maven-test/poms/maven-test-a-1.0.pom | 14 - .../t01/maven-test/poms/maven-test-a-1.1.pom | 14 - .../t01/maven-test/poms/maven-test-b-1.0.pom | 7 - .../t01/maven-test/poms/maven-test-b-1.1.pom | 7 - .../t01/maven-test/poms/maven-test-c-1.0.pom | 7 - .../t01/maven-test/poms/maven-test-c-1.1.pom | 7 - .../t01/maven-test/poms/maven-test-d-1.0.pom | 7 - .../t01/maven-test/poms/maven-test-d-1.1.pom | 7 - .../t01/maven-test/poms/maven-test-d-1.2.pom | 7 - .../test/resources/imports-repo/t01/p0/p1/pom.xml | 45 - .../test/resources/imports-repo/t01/p0/p2/pom.xml | 56 - .../test/resources/imports-repo/t01/p0/p3/pom.xml | 59 - .../test/resources/imports-repo/t01/p0/p4/pom.xml | 67 - .../src/test/resources/imports-repo/t01/p0/pom.xml | 26 - .../src/test/resources/local-repo/marker.txt | 1 - .../maven-test/jars/maven-test-a-1.0.jar | 1 - .../maven-test/jars/maven-test-b-1.0.jar | 1 - .../maven-test/jars/maven-test-c-1.0.jar | 1 - .../maven-test/jars/maven-test-d-1.0.jar | 1 - .../maven-test/poms/maven-test-a-1.0.pom | 23 - .../maven-test/poms/maven-test-b-1.0.pom | 23 - .../maven-test/poms/maven-test-c-1.0.pom | 16 - .../maven-test/poms/maven-test-d-1.1.pom | 7 - .../maven-test/poms/maven-test-d-1.2.pom | 7 - .../jars/maven-snapshot-a-1.0-SNAPSHOT.jar | 1 - ...en-snapshot-a-1.0-SNAPSHOT.jar.snapshot-version | 1 - .../jars/maven-snapshot-b-1.0-SNAPSHOT.jar | 1 - ...en-snapshot-b-1.0-SNAPSHOT.jar.snapshot-version | 1 - .../jars/maven-snapshot-e-1.0-SNAPSHOT.jar | 1 - ...en-snapshot-e-1.0-SNAPSHOT.jar.snapshot-version | 1 - .../poms/maven-test-snapshot-resolving-1.0.pom | 49 - .../apache/maven/MavenLifecycleParticipantTest.xml | 9 - .../apache/maven/execution/test-extension-1.jar | Bin 4208 -> 0 bytes .../junit/junit/3.8.1/junit-3.8.1.jar | Bin 121070 -> 0 bytes .../junit/junit/3.8.1/junit-3.8.1.jar.md5 | 1 - .../junit/junit/3.8.1/junit-3.8.1.jar.sha1 | 1 - .../junit/junit/3.8.1/junit-3.8.1.pom | 29 - .../junit/junit/3.8.1/junit-3.8.1.pom.md5 | 1 - .../junit/junit/3.8.1/junit-3.8.1.pom.sha1 | 1 - .../org/apache/apache/3/apache-3.pom | 82 - .../org/apache/apache/3/apache-3.pom.md5 | 1 - .../org/apache/apache/3/apache-3.pom.sha1 | 1 - .../3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.jar | Bin 163984 -> 0 bytes .../maven-artifact-3.0-SNAPSHOT.jar.md5 | 1 - .../maven-artifact-3.0-SNAPSHOT.jar.sha1 | 1 - .../3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.pom | 112 - .../maven-artifact-3.0-SNAPSHOT.pom.md5 | 1 - .../maven-artifact-3.0-SNAPSHOT.pom.sha1 | 1 - .../test/test-extension/1/test-extension-1.jar | Bin 4208 -> 0 bytes .../test/test-extension/1/test-extension-1.pom | 73 - .../test/test-extension/1/test-extension-1.pom.md5 | 1 - .../test-extension/1/test-extension-1.pom.sha1 | 1 - .../1/test-lifecycle-and-artifactHandler-1.jar | Bin 2582 -> 0 bytes .../1/test-lifecycle-and-artifactHandler-1.pom | 44 - .../1/test-lifecycle-and-artifactHandler-1.pom.md5 | 1 - .../test-lifecycle-and-artifactHandler-1.pom.sha1 | 1 - .../apache/maven/maven-parent/4/maven-parent-4.pom | 304 -- .../maven/maven-parent/4/maven-parent-4.pom.md5 | 1 - .../maven/maven-parent/4/maven-parent-4.pom.sha1 | 1 - .../apache/maven/maven-parent/5/maven-parent-5.pom | 466 --- .../maven/maven-parent/5/maven-parent-5.pom.md5 | 1 - .../maven/maven-parent/5/maven-parent-5.pom.sha1 | 1 - .../1.0-beta-2/wagon-provider-api-1.0-beta-2.jar | Bin 46326 -> 0 bytes .../wagon-provider-api-1.0-beta-2.jar.md5 | 1 - .../wagon-provider-api-1.0-beta-2.jar.sha1 | 1 - .../1.0-beta-2/wagon-provider-api-1.0-beta-2.pom | 21 - .../wagon-provider-api-1.0-beta-2.pom.md5 | 1 - .../wagon-provider-api-1.0-beta-2.pom.sha1 | 1 - .../wagon/wagon/1.0-beta-2/wagon-1.0-beta-2.pom | 170 - .../wagon/1.0-beta-2/wagon-1.0-beta-2.pom.md5 | 1 - .../wagon/1.0-beta-2/wagon-1.0-beta-2.pom.sha1 | 1 - .../plexus-active-collections-1.0-beta-1.jar | Bin 15961 -> 0 bytes .../plexus-active-collections-1.0-beta-1.jar.md5 | 1 - .../plexus-active-collections-1.0-beta-1.jar.sha1 | 1 - .../plexus-active-collections-1.0-beta-1.pom | 51 - .../plexus-active-collections-1.0-beta-1.pom.md5 | 1 - .../plexus-active-collections-1.0-beta-1.pom.sha1 | 1 - .../plexus-classworlds-1.2-alpha-10.jar | Bin 42472 -> 0 bytes .../plexus-classworlds-1.2-alpha-10.jar.md5 | 1 - .../plexus-classworlds-1.2-alpha-10.jar.sha1 | 1 - .../plexus-classworlds-1.2-alpha-10.pom | 94 - .../plexus-classworlds-1.2-alpha-10.pom.md5 | 1 - .../plexus-classworlds-1.2-alpha-10.pom.sha1 | 1 - .../1.2-alpha-7/plexus-classworlds-1.2-alpha-7.jar | Bin 42636 -> 0 bytes .../plexus-classworlds-1.2-alpha-7.jar.md5 | 1 - .../plexus-classworlds-1.2-alpha-7.jar.sha1 | 1 - .../1.2-alpha-7/plexus-classworlds-1.2-alpha-7.pom | 78 - .../plexus-classworlds-1.2-alpha-7.pom.md5 | 1 - .../plexus-classworlds-1.2-alpha-7.pom.sha1 | 1 - .../plexus-component-api-1.0-alpha-16.jar | Bin 33149 -> 0 bytes .../plexus-component-api-1.0-alpha-16.jar.md5 | 1 - .../plexus-component-api-1.0-alpha-16.jar.sha1 | 1 - .../plexus-component-api-1.0-alpha-16.pom | 63 - .../plexus-component-api-1.0-alpha-16.pom.md5 | 1 - .../plexus-component-api-1.0-alpha-16.pom.sha1 | 1 - .../plexus-component-api-1.0-alpha-32.jar | Bin 36108 -> 0 bytes .../plexus-component-api-1.0-alpha-32.jar.md5 | 1 - .../plexus-component-api-1.0-alpha-32.jar.sha1 | 1 - .../plexus-component-api-1.0-alpha-32.pom | 61 - .../plexus-component-api-1.0-alpha-32.pom.md5 | 1 - .../plexus-component-api-1.0-alpha-32.pom.sha1 | 1 - .../1.1.6/plexus-components-1.1.6.pom | 60 - .../1.1.6/plexus-components-1.1.6.pom.md5 | 1 - .../1.1.6/plexus-components-1.1.6.pom.sha1 | 1 - .../plexus-container-default-1.0-alpha-16.jar | Bin 210679 -> 0 bytes .../plexus-container-default-1.0-alpha-16.jar.md5 | 1 - .../plexus-container-default-1.0-alpha-16.jar.sha1 | 1 - .../plexus-container-default-1.0-alpha-16.pom | 56 - .../plexus-container-default-1.0-alpha-16.pom.md5 | 1 - .../plexus-container-default-1.0-alpha-16.pom.sha1 | 1 - .../plexus-container-default-1.0-alpha-32.jar | Bin 238880 -> 0 bytes .../plexus-container-default-1.0-alpha-32.jar.md5 | 1 - .../plexus-container-default-1.0-alpha-32.jar.sha1 | 1 - .../plexus-container-default-1.0-alpha-32.pom | 98 - .../plexus-container-default-1.0-alpha-32.pom.md5 | 1 - .../plexus-container-default-1.0-alpha-32.pom.sha1 | 1 - .../plexus-containers-1.0-alpha-16.pom | 49 - .../plexus-containers-1.0-alpha-16.pom.md5 | 1 - .../plexus-containers-1.0-alpha-16.pom.sha1 | 1 - .../plexus-containers-1.0-alpha-32.pom | 49 - .../plexus-containers-1.0-alpha-32.pom.md5 | 1 - .../plexus-containers-1.0-alpha-32.pom.sha1 | 1 - .../plexus/plexus-utils/1.1/plexus-utils-1.1.jar | Bin 168568 -> 0 bytes .../plexus-utils/1.1/plexus-utils-1.1.jar.md5 | 1 - .../plexus-utils/1.1/plexus-utils-1.1.jar.sha1 | 1 - .../plexus/plexus-utils/1.1/plexus-utils-1.1.pom | 27 - .../plexus-utils/1.1/plexus-utils-1.1.pom.md5 | 1 - .../plexus-utils/1.1/plexus-utils-1.1.pom.sha1 | 1 - .../plexus-utils/1.4.5/plexus-utils-1.4.5.jar | Bin 205043 -> 0 bytes .../plexus-utils/1.4.5/plexus-utils-1.4.5.jar.md5 | 1 - .../plexus-utils/1.4.5/plexus-utils-1.4.5.jar.sha1 | 1 - .../plexus-utils/1.4.5/plexus-utils-1.4.5.pom | 61 - .../plexus-utils/1.4.5/plexus-utils-1.4.5.pom.md5 | 1 - .../plexus-utils/1.4.5/plexus-utils-1.4.5.pom.sha1 | 1 - .../plexus/plexus/1.0.10/plexus-1.0.10.pom | 273 -- .../plexus/plexus/1.0.10/plexus-1.0.10.pom.md5 | 1 - .../plexus/plexus/1.0.10/plexus-1.0.10.pom.sha1 | 1 - .../plexus/plexus/1.0.11/plexus-1.0.11.pom | 308 -- .../plexus/plexus/1.0.11/plexus-1.0.11.pom.md5 | 1 - .../plexus/plexus/1.0.11/plexus-1.0.11.pom.sha1 | 1 - .../codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom | 205 - .../plexus/plexus/1.0.4/plexus-1.0.4.pom.md5 | 1 - .../plexus/plexus/1.0.4/plexus-1.0.4.pom.sha1 | 1 - .../codehaus/plexus/plexus/1.0.8/plexus-1.0.8.pom | 259 -- .../plexus/plexus/1.0.8/plexus-1.0.8.pom.md5 | 1 - .../plexus/plexus/1.0.8/plexus-1.0.8.pom.sha1 | 1 - .../codehaus/plexus/plexus/1.0.9/plexus-1.0.9.pom | 257 -- .../plexus/plexus/1.0.9/plexus-1.0.9.pom.md5 | 1 - .../plexus/plexus/1.0.9/plexus-1.0.9.pom.sha1 | 1 - .../extension/test-extension-repo/repo-marker.txt | 1 - .../maven/lifecycle/LifecycleExecutorTest.xml | 9 - .../resources/org/apache/maven/lifecycle/pom.xml | 628 --- .../org/apache/maven/plugin/PluginManagerTest.xml | 9 - .../maven/project/AbstractMavenProjectTestCase.xml | 9 - .../apache/maven/project/PomConstructionTest.xml | 13 - .../maven/project/workspace/buildFromFile/pom.xml | 8 - .../tests/project-caching/1/project-caching-1.pom | 8 - .../tests/project-caching/maven-metadata-local.xml | 11 - .../project/workspace/buildModelLineage/pom.xml | 7 - .../resolveParentPom/childAndParent/child/pom.xml | 10 - .../resolveParentPom/childAndParent/pom.xml | 7 - .../project/workspace/resolveParentPom/pom.xml | 10 - .../settings/PomConstructionWithSettingsTest.xml | 9 - .../org/apache/maven/toolchain/global.xml | 35 - .../toolchain/model/toolchains-jdks-extend.xml | 45 - .../toolchain/model/toolchains-jdks-extra.xml | 45 - .../maven/toolchain/model/toolchains-jdks.xml | 43 - .../resources/org/apache/maven/toolchain/user.xml | 35 - .../plexus/plexus-utils/1.1/plexus-utils-1.1.jar | Bin 168568 -> 0 bytes .../plexus-utils/1.1/plexus-utils-1.1.jar.sha1 | 1 - .../plexus/plexus-utils/1.1/plexus-utils-1.1.pom | 27 - .../plexus-utils/1.1/plexus-utils-1.1.pom.sha1 | 1 - .../maven-core/src/test/resources/pom.xml | 52 - .../project-dynamism/plugin-level-dep.pom.xml | 24 - .../test/resources/project-dynamism/pom-interp.xml | 28 - .../resources/project-dynamism/pom-relative.xml | 36 - .../src/test/resources/project-dynamism/pom.xml | 36 - .../src/test/resources/projects/bad-dependency.xml | 27 - .../src/test/resources/projects/bad-project.xml | 20 - ...oject-which-needs-directory-alignment-child.xml | 33 - .../project-which-needs-directory-alignment.xml | 135 - ...oject-which-needs-directory-alignment-child.xml | 29 - .../projects/build-path-expression-pom.xml | 14 - .../src/test/resources/projects/build.properties | 18 - .../child-which-inherits-from-super-model.xml | 28 - .../resources/projects/child-with-bogus-parent.xml | 29 - .../src/test/resources/projects/child.xml | 33 - .../projects/duplicate-plugins-merged-pom.xml | 48 - .../resources/projects/fully-populated-child.xml | 168 - .../grandchild-check/child/grandchild/pom.xml | 10 - .../projects/grandchild-check/child/pom.xml | 13 - .../resources/projects/grandchild-check/pom.xml | 7 - ...pom-resolves-from-property-based-repository.xml | 31 - .../projects/modelsource/module01/pom.xml | 12 - .../test/resources/projects/modelsource/pom.xml | 13 - .../src/test/resources/projects/project.xml | 162 - .../projects/versionless-managed-dependency.xml | 24 - .../maven-test/jars/maven-test-b-1.0.jar | Bin 18874 -> 0 bytes .../maven-test/jars/maven-test-b-1.0.jar.md5 | 1 - .../maven-test/poms/maven-test-b-1.0.pom | 21 - .../jars/maven-snapshot-a-1.0-SNAPSHOT.jar | 1 - ...en-snapshot-a-1.0-SNAPSHOT.jar.snapshot-version | 1 - .../jars/maven-snapshot-b-1.0-SNAPSHOT.jar | 1 - ...en-snapshot-b-1.0-SNAPSHOT.jar.snapshot-version | 1 - .../jars/maven-snapshot-c-1.0-SNAPSHOT.jar | 1 - ...en-snapshot-c-1.0-SNAPSHOT.jar.snapshot-version | 1 - .../maven-test/jars/maven-test-z-1.0.jar | 1 - .../resources/withActiveByDefaultProfile-pom.xml | 40 - 963 files changed, 86431 deletions(-) delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/lifecycle-executor.txt delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/plugin-manager.txt delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/project-builder.txt delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/AbstractMavenLifecycleParticipant.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ArtifactFilterManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ArtifactFilterManagerDelegate.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/BuildAbort.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/BuildFailureException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/DefaultArtifactFilterManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/DefaultMaven.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/DefaultProjectDependenciesResolver.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/DuplicateProjectException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/InternalErrorException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/Maven.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/MavenExecutionException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/MissingModuleException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ProjectBuildFailureException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ProjectCycleException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ProjectDependenciesResolver.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ReactorReader.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/SessionScoped.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/DependencyResolutionRequiredException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/InvalidRepositoryException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/factory/ArtifactFactory.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/factory/DefaultArtifactFactory.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/handler/DefaultArtifactHandler.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/ArtifactHandlerManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/metadata/AbstractArtifactMetadata.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/metadata/ArtifactMetadataRetrievalException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/metadata/ArtifactMetadataSource.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/metadata/ResolutionGroup.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/DefaultRepositoryRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/MavenArtifactRepository.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/RepositoryCache.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/RepositoryRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/layout/DefaultRepositoryLayout.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadata.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/ArtifactRepositoryMetadata.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadata.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadataDeploymentException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadataInstallationException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadataManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadataResolutionException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/DefaultMetadataReader.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/MetadataParseException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/MetadataReader.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionResult.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/DefaultResolutionErrorHandler.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ResolutionErrorHandler.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ResolutionListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ResolutionNode.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/AbstractScopeArtifactFilter.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/AndArtifactFilter.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/CumulativeScopeArtifactFilter.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExcludesArtifactFilter.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionSetFilter.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/IncludesArtifactFilter.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ScopeArtifactFilter.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ArtifactClassRealmConstituent.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmConstituent.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmManagerDelegate.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationPathTranslator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationValuePreprocessor.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/DefaultBeanConfigurationRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/internal/DefaultBeanConfigurator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/AbstractEventSpy.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/EventSpy.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyDispatcher.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyExecutionListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyRepositoryListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/exception/ExceptionHandler.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/exception/ExceptionSummary.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/AbstractExecutionListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/BuildFailure.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/BuildSuccess.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/BuildSummary.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionResult.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ExecutionEvent.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ExecutionListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequestPopulationException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequestPopulator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionResult.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MojoExecutionEvent.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MojoExecutionListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ProjectDependencyGraph.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ProjectExecutionEvent.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ProjectExecutionListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ReactorManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/SettingsAdapter.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/MojoExecutionScoped.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/WeakMojoExecutionListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScope.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeCoreModule.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeModule.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExports.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExportsProvider.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExtensionEntry.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/graph/DefaultProjectDependencyGraph.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/graph/FilteredProjectDependencyGraph.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/graph/GraphBuilder.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/internal/aether/LoggingRepositoryListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifeCyclePluginAnalyzer.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/Lifecycle.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutionException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutor.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleMappingDelegate.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleNotFoundException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecyclePhaseNotFoundException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/MavenExecutionPlan.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/MissingProjectException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/MojoExecutionConfigurator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/NoGoalSpecifiedException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildListCalculator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildThreadFactory.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/CompoundProjectExecutionListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultExecutionEvent.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultExecutionEventCatapult.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleMappingDelegate.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzer.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleTaskSegmentCalculator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultMojoExecutionConfigurator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultProjectArtifactFactory.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DependencyContext.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ExecutionEventCatapult.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ExecutionPlanItem.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/GoalTask.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDebugLogger.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolver.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleExecutionPlanCalculator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleModuleBuilder.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecyclePluginResolver.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleTask.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleTaskSegmentCalculator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoDescriptorCreator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/PhaseRecorder.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectArtifactFactory.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectBuildList.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectIndex.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectSegment.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ReactorBuildStatus.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ReactorContext.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/TaskSegment.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/Builder.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderCommon.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderNotFoundException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ConcurrencyDependencyGraph.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ThreadOutputMuxer.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/singlethreaded/SingleThreadedBuilder.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/mapping/DefaultLifecycleMapping.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/mapping/Lifecycle.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/mapping/LifecycleMapping.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/model/plugin/DefaultLifecycleBindingsInjector.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/monitor/event/EventDispatcher.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/monitor/event/EventMonitor.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/BuildPluginManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/CacheUtils.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/CompoundMojoExecutionListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/CycleDetectedInPluginGraphException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DebugConfigurationListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultExtensionRealmCache.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginArtifactsCache.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginDescriptorCache.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginRealmCache.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/ExtensionRealmCache.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/InvalidPluginDescriptorException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/InvalidPluginException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/LegacySupport.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/MavenPluginManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/MavenPluginValidator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/MojoExecution.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginArtifactsCache.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginConfigurationException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginContainerException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginDescriptorCache.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginDescriptorParsingException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginExecutionException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginIncompatibleException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginLoaderException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginManagerException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginNotFoundException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginRealmCache.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginResolutionException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultLegacySupport.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginDependenciesResolver.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/PlexusUtilsInjector.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/PluginDependenciesResolver.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/PluginDependencyResolutionListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/ValidatingConfigurationListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/WagonExcluder.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/DefaultPluginPrefixRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/NoPluginFoundForPrefixException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/PluginPrefixRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/PluginPrefixResolver.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/PluginPrefixResult.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResult.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/DefaultPluginVersionRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionNotFoundException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionResolutionException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionResolver.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionResult.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResult.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultDependencyResolutionRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultDependencyResolutionResult.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectHelper.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultModelBuildingListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingHelper.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingResult.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectDependenciesResolver.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectRealmCache.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionResult.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DuplicateArtifactAttachmentException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DuplicateProjectException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ExtensionDescriptor.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ExtensionDescriptorBuilder.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/InvalidProjectVersionException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/MavenProject.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/MavenProjectHelper.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuilder.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingHelper.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingResult.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectDependenciesResolver.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectModelResolver.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectRealmCache.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectSorter.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ReactorModelCache.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ReactorModelPool.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/RepositorySessionDecorator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/ArtifactWithDependencies.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/AttachedArtifact.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/DefaultMavenMetadataCache.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/DefaultMetadataSource.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/InvalidDependencyVersionException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/MavenMetadataCache.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/PluginArtifact.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/ProjectArtifact.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/ProjectArtifactMetadata.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/path/PathTranslator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/properties/internal/EnvironmentUtils.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/properties/internal/SystemProperties.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactDoesNotExistException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactTransferEvent.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactTransferFailedException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactTransferListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactTransferResource.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/DelegatingLocalArtifactRepository.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/LocalArtifactRepository.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/LocalRepositoryNotAccessibleException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/RepositorySystem.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/AbstractArtifactMetadata.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/ArtifactMetadataRetrievalException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/ArtifactMetadataSource.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/DefaultMetadataResolutionRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/MetadataResolutionRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/ResolutionGroup.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/rtinfo/RuntimeInformation.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformation.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScope.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScopeModule.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/settings/MavenSettingsBuilder.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/settings/SettingsConfigurationException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/settings/SettingsUtils.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchain.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchainManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchainManagerPrivate.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchainsBuilder.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/MisconfiguredToolchainException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/RequirementMatcher.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/RequirementMatcherFactory.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/Toolchain.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainFactory.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainManagerPrivate.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainPrivate.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainsBuilder.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilder.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuildingRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuildingResult.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuilder.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuildingException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuildingRequest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuildingResult.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/io/DefaultToolchainsReader.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/io/ToolchainsParseException.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/io/ToolchainsReader.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/java/DefaultJavaToolChain.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchain.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchainImpl.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/merge/MavenToolchainMerger.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/mdo/extension.mdo delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/mdo/toolchains.mdo delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/META-INF/maven/extension.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/META-INF/plexus/artifact-handlers.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/META-INF/plexus/components.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/META-INF/plexus/default-bindings.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/build.properties delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages.properties delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_de.properties delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_el.properties delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_en.properties delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_es.properties delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_fr.properties delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_ja.properties delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_ko.properties delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_nl.properties delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_no.properties delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_pl.properties delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_zh_CN.properties delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/project/standalone.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/artifact-handlers.apt delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/configuration-management.apt delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/default-bindings.apt.vm delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/getting-to-container-configured-mojos.apt delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/index.apt delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/inheritance.apt delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/lifecycles.apt.vm delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/offline-mode.apt delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/plugin-execution-isolation.apt delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/scripting-support/marmalade-support.apt delete mode 100755 framework/src/maven/apache-maven-3.3.3/maven-core/src/site/resources/design/2.1-lifecycle-refactor-class-diagram.png delete mode 100755 framework/src/maven/apache-maven-3.3.3/maven-core/src/site/resources/design/2.1-lifecycle-refactor-sequence-diagram.png delete mode 100755 framework/src/maven/apache-maven-3.3.3/maven-core/src/site/resources/design/2.1-lifecycle-refactor.graffle delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/site/site.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/DefaultMavenTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/MavenLifecycleParticipantTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/MavenTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/ProjectDependenciesResolverTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/artifact/handler/ArtifactHandlerTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/configuration/DefaultBeanConfiguratorTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/exception/DefaultExceptionHandlerTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulatorTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenExecutionTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/graph/DefaultProjectDependencyGraphTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/DelegatingMojoExecutionListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/DelegatingProjectExecutionListener.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/EmptyLifecyclePluginAnalyzer.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/LifecycleExecutorSubModulesTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/LifecycleExecutorTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/MavenExecutionPlanTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/MojoExecutionXPathContainer.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/BuildListCalculatorTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/BuilderCommonTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/ConcurrencyDependencyGraphTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/LifecycleExecutionPlanCalculatorTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/LifecycleTaskSegmentCalculatorImplTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/PhaseRecorderTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/ProjectBuildListTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ThreadOutputMuxerTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/AboutTheStubs.html delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/BuildPluginManagerStub.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/CompletionServiceStub.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/DefaultLifecyclesStub.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/ExecutionEventCatapultStub.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifeCyclePluginAnalyzerStub.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifecycleExecutionPlanCalculatorStub.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifecycleTaskSegmentCalculatorStub.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LoggerStub.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/MojoExecutorStub.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/PluginPrefixResolverStub.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/PluginVersionResolverStub.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/ProjectDependenciesResolverStub.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/ProjectDependencyGraphStub.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/ProjectDependencyGraphStubTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/plugin/PluginManagerTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExceptionTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/plugin/internal/DefaultLegacySupportTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/EmptyLifecycleExecutor.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/EmptyProjectBuildingHelper.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/ExtensionDescriptorBuilderTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/MavenProjectTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/ProjectSorterTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/TestMetadataSource.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/artifact/DefaultMavenMetadataCacheTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/artifact/MavenMetadataSourceTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/canonical/CanonicalProjectBuilderTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/PomTestWrapper.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomAttributeIterator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomAttributePointer.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomNodeIterator.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomNodePointer.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomPointerFactory.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/LegacyRepositoryLayout.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/TestArtifactHandler.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/TestRepositoryConnector.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/TestRepositoryConnectorFactory.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/TestRepositorySystem.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformationTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/settings/PomConstructionWithSettingsTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/settings/SettingsUtilsTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/DefaultToolchainManagerPrivateTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/DefaultToolchainManagerTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/DefaultToolchainTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/RequirementMatcherFactoryTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilderTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/building/ToolchainsBuildingExceptionTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/merge/MavenToolchainMergerTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/default-maven/cyclic-reference/module-a/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/default-maven/cyclic-reference/module-b/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/default-maven/cyclic-reference/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/mojo-configuration/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-basic/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-additional-lifecycle-elements/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-additional-lifecycle-elements/src/main/java/org/apache/maven/lifecycle/test/App.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-additional-lifecycle-elements/src/test/java/org/apache/maven/lifecycle/test/AppTest.java delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-multiple-executions/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-multiple-executions/src/main/mdo/remote-resources.mdo delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-multiple-executions/src/main/mdo/supplemental-model.mdo delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-plugin-level-configuration-only/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-listener/lifecycle-listener-dependency-injection/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-listener/lifecycle-participant-reactor-dependency-injection/module-a/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-listener/lifecycle-participant-reactor-dependency-injection/module-b/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-listener/lifecycle-participant-reactor-dependency-injection/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/mng-5003-plugin-realm-cache/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-contributing-system-scope-plugin-dep/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-contributing-system-scope-plugin-dep/tools.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-build-extensions-plugin/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/0.1/a-0.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/0.1/a-0.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/0.2/a-0.2.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/0.2/a-0.2.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/b/0.1/b-0.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/b/0.1/b-0.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/b/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/c/0.1/c-0.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/c/0.1/c-0.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/c/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/d/0.1/d-0.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/d/0.1/d-0.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/d/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/e/0.1/e-0.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/e/0.1/e-0.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/e/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/settings-template.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/it0063/jdk/jre/placeholder.txt delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/it0063/jdk/lib/tools.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/it0063/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/mng-3023/consumer/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/mng-3023/dependency/dependency-1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/mng-3023/dependency/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/mng-3023/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-dependencies-resolver/it0063/jdk/jre/placeholder.txt delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-dependencies-resolver/it0063/jdk/lib/tools.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-dependencies-resolver/it0063/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-dependencies-resolver/project-with-exclusions/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/a/0.1/a-0.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/a/0.1/a-0.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/a/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/b/0.1/b-0.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/b/0.1/b-0.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/b/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-it-plugin/0.1/maven-it-plugin-0.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-it-plugin/0.1/maven-it-plugin-0.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-it-plugin/0.1/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-it-plugin/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/maven/2.0/maven-2.0.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-clean-plugin/0.1/maven-clean-plugin-0.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-clean-plugin/0.1/maven-clean-plugin-0.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-clean-plugin/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-compiler-plugin/0.1/maven-compiler-plugin-0.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-compiler-plugin/0.1/maven-compiler-plugin-0.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-deploy-plugin/0.1/maven-deploy-plugin-0.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-deploy-plugin/0.1/maven-deploy-plugin-0.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-install-plugin/0.1/maven-install-plugin-0.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-install-plugin/0.1/maven-install-plugin-0.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-jar-plugin/0.1/maven-jar-plugin-0.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-jar-plugin/0.1/maven-jar-plugin-0.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-jar-plugin/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-plugin-plugin/0.1/maven-plugin-plugin-0.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-plugin-plugin/0.1/maven-plugin-plugin-0.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-plugin-plugin/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-resources-plugin/0.1/maven-resources-plugin-0.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-resources-plugin/0.1/maven-resources-plugin-0.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-resources-plugin/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-surefire-plugin/0.1/maven-surefire-plugin-0.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-surefire-plugin/0.1/maven-surefire-plugin-0.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/artifact-id-inheritance/child/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/artifact-id-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/basedir-aligned-interpolation/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/basedir-interpolation/pom-with-unusual-name.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/baseurl-interpolation/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/boolean-interpolation/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/build-extension-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/build-extension-inheritance/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/complete-model/w-parent/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/complete-model/w-parent/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/complete-model/wo-parent/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/config-with-plugin-mng/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/consecutive_empty_elements/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/contributors-inheritance/child-2/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/contributors-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-inheritance/maven-parent.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-inheritance/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-management-with-interpolation/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-management-with-interpolation/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-order/w-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-order/wo-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-scope-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-scope-inheritance/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-scope/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-scope/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/developers-inheritance/child-2/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/developers-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/distribution-management/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dual-execution-ids/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dual-execution-ids/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/duplicate-exclusions-dependency/nexus-parent.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/duplicate-exclusions-dependency/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/duplicate-exclusions-dependency/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/empty-distMng-repo-url/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/empty-scm/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/equal-plugin-deps/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/equal-plugin-exec-ids/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/execution-configuration-join/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/execution-configuration-subcollections/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/execution-configuration/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/foo/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/full-interpolation/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/id-container-joining-with-empty-elements/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/id-container-joining-with-empty-elements/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/inherited-properties-interpolation/active-profile/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/inherited-properties-interpolation/active-profile/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/inherited-properties-interpolation/no-profile/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/inherited-properties-interpolation/no-profile/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/interpolation-cli-wins/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/jdk-activation/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/join-different-containers-same-id/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/licenses-inheritance/child-2/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/licenses-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/limited-inheritance/child/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/limited-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/mailing-lists-inheritance/child-2/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/mailing-lists-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/managed-profile-dependency/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/managed-profile-dependency/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-filter-order/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-filter-order/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-class-path-order/w-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-class-path-order/w-plugin-mngt/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-class-path-order/wo-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-class-path-order/wo-plugin-mngt/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-goals-order/w-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-goals-order/w-plugin-mngt/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-goals-order/wo-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-goals-order/wo-plugin-mngt/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-order/w-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-order/w-plugin-mngt/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-order/wo-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-order/wo-plugin-mngt/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/micromailer/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/micromailer/spice-parent-9.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/multiple-filters/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/multiple-repos/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/multiple-repos/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/nested-build-dir-interpolation/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-inheritance/child3.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-inheritance/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-interpolation/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-interpolation/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-pom-packaging/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-pom-packaging/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/platform-file-separator/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-append/no-profile/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-append/no-profile/subproject/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-append/with-profile/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-append/with-profile/subproject/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-attributes/w-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-attributes/w-profile/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-attributes/wo-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-merging/child/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-merging/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-order/w-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-order/wo-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-properties/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-config-order/w-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-config-order/wo-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-goals-order/w-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-goals-order/wo-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-inheritance/w-merge/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-inheritance/wo-merge/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging-version-insensitive/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging-version-insensitive/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging-wo-version/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging-wo-version/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging/w-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging/w-plugin-mngt/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging/wo-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging/wo-plugin-mngt/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-order-and-default-exec/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-order-with-lifecycle/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-order/w-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-order/wo-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-w-and-wo-id/w-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-w-and-wo-id/wo-plugin-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-merge-order/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-merge-order/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-order/child/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-order/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-simple/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-simple/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-injection-merge-order/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-dependencies/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-dependencies/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-duplicate/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-duplicate/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-for-implicit-plugin/child/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-for-implicit-plugin/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-merge-simple/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-order/nexus-parent.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-order/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pluginmanagement-inherited/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pluginmanagement-inherited/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pom-encoding/latin-1/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pom-encoding/utf-8/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pom-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pom-inheritance/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/prerequisites-inheritance/child/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/prerequisites-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-default-deactivation/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-dependencies-multiple-profiles/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-injected-dependencies/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-injection-order/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-module-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-module-inheritance/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-module/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-plugin-mng-dependencies/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-plugin-mng-dependencies/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-plugins/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-properties-interpolation/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/properties-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/properties-inheritance/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/properties-no-duplication/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/properties-no-duplication/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/repo-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/reporting-interpolation/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/reporting-plugin-config/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/reporting-plugin-config/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/single-configuration-inheritance/jetty-parent.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/single-configuration-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/sytem-property-interpolation/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unc-path/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unc-path/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-dependency-key/dep-mngt-in-profile/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-dependency-key/dep-mngt/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-dependency-key/deps-in-profile/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-dependency-key/deps/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-repo-id/artifact-repo-in-profile/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-repo-id/artifact-repo/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-repo-id/plugin-repo-in-profile/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-repo-id/plugin-repo/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unprefixed-expression-interpolation/child/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unprefixed-expression-interpolation/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-append/child/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-append/parent/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-inheritance/another-parent/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-inheritance/another-parent/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-inheritance/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-inheritance/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-no-decoding/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/xml-coalesce-text/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/xml-markup-interpolation/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/xml-whitespace/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/xml-whitespace/sub/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/repositories/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/repositories/settings.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/settings-no-pom/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/settings-no-pom/settings.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/test-pom-and-settings-interpolation/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/test-pom-and-settings-interpolation/settings.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/META-INF/plexus/components.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/canonical-pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/dependencyManagement-pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/distributionManagement-pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-a-1.0.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-a-1.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-b-1.0.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-b-1.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-c-1.0.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-c-1.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-d-1.0.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-d-1.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-d-1.2.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-a-1.0.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-a-1.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-b-1.0.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-b-1.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-c-1.0.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-c-1.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-d-1.0.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-d-1.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-d-1.2.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/p1/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/p2/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/p3/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/p4/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/marker.txt delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/jars/maven-test-a-1.0.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/jars/maven-test-b-1.0.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/jars/maven-test-c-1.0.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/jars/maven-test-d-1.0.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-a-1.0.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-b-1.0.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-c-1.0.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-d-1.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-d-1.2.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-a-1.0-SNAPSHOT.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-a-1.0-SNAPSHOT.jar.snapshot-version delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-b-1.0-SNAPSHOT.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-b-1.0-SNAPSHOT.jar.snapshot-version delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-e-1.0-SNAPSHOT.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-e-1.0-SNAPSHOT.jar.snapshot-version delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/poms/maven-test-snapshot-resolving-1.0.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/MavenLifecycleParticipantTest.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/execution/test-extension-1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.jar.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.jar.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/apache/3/apache-3.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/apache/3/apache-3.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/apache/3/apache-3.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.jar.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.jar.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-extension/1/test-extension-1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-extension/1/test-extension-1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-extension/1/test-extension-1.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-extension/1/test-extension-1.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-lifecycle-and-artifactHandler/1/test-lifecycle-and-artifactHandler-1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-lifecycle-and-artifactHandler/1/test-lifecycle-and-artifactHandler-1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-lifecycle-and-artifactHandler/1/test-lifecycle-and-artifactHandler-1.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-lifecycle-and-artifactHandler/1/test-lifecycle-and-artifactHandler-1.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/4/maven-parent-4.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/4/maven-parent-4.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/4/maven-parent-4.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/5/maven-parent-5.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/5/maven-parent-5.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/5/maven-parent-5.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.jar.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.jar.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon/1.0-beta-2/wagon-1.0-beta-2.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon/1.0-beta-2/wagon-1.0-beta-2.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon/1.0-beta-2/wagon-1.0-beta-2.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.jar.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.jar.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.jar.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.jar.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.jar.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.jar.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.jar.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.jar.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.jar.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.jar.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.jar.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.jar.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.jar.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.jar.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-16/plexus-containers-1.0-alpha-16.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-16/plexus-containers-1.0-alpha-16.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-16/plexus-containers-1.0-alpha-16.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-32/plexus-containers-1.0-alpha-32.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-32/plexus-containers-1.0-alpha-32.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-32/plexus-containers-1.0-alpha-32.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.10/plexus-1.0.10.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.10/plexus-1.0.10.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.10/plexus-1.0.10.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.11/plexus-1.0.11.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.11/plexus-1.0.11.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.11/plexus-1.0.11.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.8/plexus-1.0.8.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.8/plexus-1.0.8.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.8/plexus-1.0.8.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.9/plexus-1.0.9.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.9/plexus-1.0.9.pom.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.9/plexus-1.0.9.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/repo-marker.txt delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/lifecycle/LifecycleExecutorTest.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/lifecycle/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/plugin/PluginManagerTest.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/AbstractMavenProjectTestCase.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/PomConstructionTest.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/buildFromFile/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/buildFromRepo/tests/project-caching/1/project-caching-1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/buildFromRepo/tests/project-caching/maven-metadata-local.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/buildModelLineage/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/resolveParentPom/childAndParent/child/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/resolveParentPom/childAndParent/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/resolveParentPom/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/settings/PomConstructionWithSettingsTest.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/global.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/model/toolchains-jdks-extend.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/model/toolchains-jdks-extra.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/model/toolchains-jdks.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/user.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom.sha1 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/project-dynamism/plugin-level-dep.pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/project-dynamism/pom-interp.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/project-dynamism/pom-relative.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/project-dynamism/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/bad-dependency.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/bad-project.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/base-directory-alignment/project-which-needs-directory-alignment-child.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/base-directory-alignment/project-which-needs-directory-alignment.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/base-directory-alignment/subproject/project-which-needs-directory-alignment-child.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/build-path-expression-pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/build.properties delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/child-which-inherits-from-super-model.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/child-with-bogus-parent.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/child.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/duplicate-plugins-merged-pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/fully-populated-child.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/grandchild-check/child/grandchild/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/grandchild-check/child/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/grandchild-check/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/import-scope-pom-resolves-from-property-based-repository.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/modelsource/module01/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/modelsource/pom.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/project.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/versionless-managed-dependency.xml delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/maven-test/jars/maven-test-b-1.0.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/maven-test/jars/maven-test-b-1.0.jar.md5 delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/maven-test/poms/maven-test-b-1.0.pom delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-a-1.0-SNAPSHOT.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-a-1.0-SNAPSHOT.jar.snapshot-version delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-b-1.0-SNAPSHOT.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-b-1.0-SNAPSHOT.jar.snapshot-version delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-c-1.0-SNAPSHOT.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-c-1.0-SNAPSHOT.jar.snapshot-version delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-2/maven-test/jars/maven-test-z-1.0.jar delete mode 100644 framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/withActiveByDefaultProfile-pom.xml (limited to 'framework/src/maven/apache-maven-3.3.3/maven-core') diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/lifecycle-executor.txt b/framework/src/maven/apache-maven-3.3.3/maven-core/lifecycle-executor.txt deleted file mode 100644 index 41e98bfd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/lifecycle-executor.txt +++ /dev/null @@ -1,217 +0,0 @@ -We have a lifecycle mapping for the packaging of *jar* below. You see that for this packaging we have a *default* lifecycle and a list of phases where each phase is a comma separated list of goals to run and they are in the form groupId:artifactId:version. - - - - - default - - org.apache.maven.plugins:maven-resources-plugin:resources - org.apache.maven.plugins:maven-compiler-plugin:compile - org.apache.maven.plugins:maven-resources-plugin:testResources - org.apache.maven.plugins:maven-compiler-plugin:testCompile - org.apache.maven.plugins:maven-surefire-plugin:test - org.apache.maven.plugins:maven-jar-plugin:jar - org.apache.maven.plugins:maven-install-plugin:install - org.apache.maven.plugins:maven-deploy-plugin:deploy - - - - - -We need to turn this list of phases into a set of plugin objects that have an xml representation like the following: - - - - org.apache.maven.plugins - maven-resources-plugin - - - - process - - - - - . - . - . - - -We need this form so that the model builder can make the first pass at merging. Full merging cannot be done because we don't know what the version of the plugin is yet that the user has requested. For plugins in the default lifecycle they are typically defined in the plugin management section of the parent POM. When the merging is complete we are going to have something that looks like the following: - - - - org.apache.maven.plugins - maven-resources-plugin - 1.0 - - - - process - - - - - . - . - . - - -Once we have the version of the plugins the appropriate call to the plugin manager can be made to get the MojoDescriptor for the goal that needs to be run. In the MojoDescriptor we are interested in the element and element. From these elements we need to make a component configuration for the MojoExecution. The actual DOM like structure we create is of type PlexusConfiguration and is the type we use with the ComponentConfigurator to initialize fields in a Plexus component. Typically this is done within Plexus with the configuration supplied with component configuration, but in Maven we take configuration values from the POM. So we have to use the ComponentConfigurator outside of Plexus in order to configurure the Maven Mojo which is just a Plexus component. We can use the information from the MojoDescriptor along with the merged configuration information that is now present in the POM to create the complete PlexusConfiguration used to populate values in the Maven Mojo. - -foreach configuration element: - - if read only and being set squawk - - - find the parameter - - get value from expression or default - - if required and null squawk - - - - ${localRepository} - ${project.resources} - ${project.repositories} - ${project.remoteArtifactRepositories} - ${basedir}/src/main/appended-resources - ${excludeScope} - ${includeScope} - ${excludeGroupIds} - ${remoteresources.skip} - ${project.build.directory}/maven-shared-archive-resources - ${excludeArtifactIds} - ${excludeTransitive} - ${includeGroupIds} - ${session} - ${project} - ${includeArtifactIds} - - - - - appendedResourcesDirectory - java.io.File - false - true - - - attached - boolean - false - true - - - excludeArtifactIds - java.lang.String - false - true - - - excludeGroupIds - java.lang.String - false - true - - - excludeScope - java.lang.String - false - true - - - excludeTransitive - boolean - false - true - - - includeArtifactIds - java.lang.String - false - true - - - includeGroupIds - java.lang.String - false - true - - - includeScope - java.lang.String - false - true - - - localRepository - org.apache.maven.artifact.repository.ArtifactRepository - true - false - - - mavenSession - org.apache.maven.execution.MavenSession - true - false - The Maven session. - - - outputDirectory - java.io.File - false - true - - - project - org.apache.maven.project.MavenProject - true - false - - - properties - java.util.Map - false - true - - - remoteArtifactRepositories - java.util.List - true - false - - - repositories - java.util.List - true - false - - - resourceBundles - java.util.List - true - true - - - resources - java.util.List - true - false - - - skip - boolean - false - true - - - supplementalModels - java.lang.String[] - false - true - - - -- we need to know what came from the POM, and validate those -- plugin in any default values -- check to see if anything is missing - -In the case of something like Modello where it is common to specify the configuration for all the goals outside the execution block we need to account for creating the right configuration element which includes only those configuration elements for a particular goal that that particular goal understands. We need to walk through the parameters of the Mojo in question and only take the configuration options that apply. diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/plugin-manager.txt b/framework/src/maven/apache-maven-3.3.3/maven-core/plugin-manager.txt deleted file mode 100644 index f3fcf8e9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/plugin-manager.txt +++ /dev/null @@ -1,184 +0,0 @@ -h3. Plugins - -* Execution model -* Metadata model -* Metadata tooling - ** Metadata extractor - ** Metadata reader - ** Metadata writer - ** Metadata adapter (if required for the target system) -* Maven packaging and lifecycle -* Maven test harness for plugin execution model -* Eclipse IDE tooling for plugin execution model and metadata model - -- we also seem to have information like the plugin lifecycle model that's burried inside the maven execution model -- we also seem to have artifact information tangled inside the plugin model -- we have to deal with scripting implementations (groovy, beanshell, ruby) -- we need to deal with a shared context for plugins, like the guarded mojos -- we need to deal with plugins as core application logic which can also interact with plugins - -* Along with this comes the testing strategies that make this work -* The repository model where plugins can be stored and cataloged -* Bridging this into an OSGi system: if this could be done then we can basically take over p2 - -TODO - -- dealing with processing of input and adapting GAVs before searching i.e. plugin groups in Maven and default searching -- how to deal with resolution from different places like local/remote/workspace -- how to incorporate the metadata processor to start with -- create a hook to programmatically configure the test -- create a plugin processor -- directory -- jar -- hooks for loading - -- i could make an annotation that marked another class as its plugin discoverer, i could just add it to the - the component descriptor and when it's loaded we can add the discoverer, that would be simpler. i could - also do this with the lister as well -i'l -// 1 the metadata -> model plugin/mojo descriptor -// 2 tools for doing the mapping -// 3 the component model -> interfaces for the plugin - -// The plugin manager should load up a directory structure of plugins. -// - a plugin per directory where the plugin is present with its deps -// - a plugin that has its dependencies packaged up with it -// - implement filters and create a test where a plugin fails if the right classes are not filtered -// - plugins with a dependency the same as the core but different versions, make it fail then fix it - - /* - * - * h2. Concerns for the plugin manager - * - * h3. resolving the dependencies of a plugin - these could be resolved remotely at runtime or, - - * they could be resolved from a local repository - i think we need a simple dependency model here - * that is more mercury related and not Maven related i.e no POMs - workspace resolver - we need - * tools to pre-populate this repository - * - * h3. create an isolated classloader - * - * h3. lookup the plugin with a configuration - * - * h3. execute the plugin - * - * h3. plugins may have to deal with particular actions when a plugin is - installed - loaded - - * unloaded - update - uninstalled - * - * h3. plugins should be able to have specific metadata for a plugin model and that be translated - - * dependencies - resources - configuration - extension points of plugins - * - * For a particular application plugin there will be a declarative descriptor for that plugin type. - * - * - nexus - the plugin class - UI to contribute - what JS to hook into the UI - what resources to - * load into the UI - having packed or unpacked plugins, and positioning resources if necessary - - * maven can work out of the classloader, nexus plugins probably couldn't given the js and image - * resources - * - * We need to look at Maven, and Nexus as use cases and figure out what each of them needs to be - * able to do - * - * - now what is really the difference between this and loading a component in plexus - custom - * classloading capability - remote resolution of dependencies - do we want a model for sharing - * information among plugins, is this more like an extension point - do we need a sort of bus for - * application data - do we need a dictionary for our applications like Apple does. We could easily - * hook into this and this is the model we need to follow - how many of our REST services do not map - * directory to a method in the application interface? - * - * - research extension points versus plugins - * - * from igor: two plugins A and B, both depend on the same library but use different versions, say - * lib 1.0 and lib 2.0 when debugger hits a breakpoint inside a class from the library, IDE needs to - * know which version of library the class comes from - */ - -This document outlines the concerns of a general plugin manager that would be used in conjunction with any Plexus-based application. The following outlined concerns are an attempt to describe what a plugin manager would need to do for Maven and for Nexus. - -h2. Concerns for the plugin manager - -h3. Resolving the dependencies of a plugin - -A plugin manager would need to know how to find the dependencies of a plugin whether that be from a workspace of an IDE, a local Maven repository, or a remote Maven repository. During development in an IDE we would need layered resolution approach that would allow resolution from the workspace, then the local Maven repository and then from any number of remote Maven repositories. During development from the command line we would need a layered resolution approach that would allow resolution from the local Maven repository and then from any number of remote Maven repositories. In production the resolution for the dependencies could also be layered but would depend on the preferred model for the given application. In the case of Maven no plugin dependencies are shipped with a Maven plugin, but in the case of Nexus we would probably want to include the dependencies for self-containment. - -h4. Working with POMs during development - -During the development of a plugin we would want to make it easy for a developer to create a plugin which means we would allow the direct use of a POM to state the dependencies of a given plugin and any tooling we created would be responsible for turning the dependency information in the POM into plugin metadata which described the dependencies of the plugin. - -We are looking at using Mercury for the resolution and retrieval of the plugin dependencies so during development we would translate the POMs into dependency information that Mercury can understand, and in production we would have the pre-digested format that Mercury could utilize to resolve and retrieve dependencies. We need to be careful that we are using Mercury during development and production so that we don’t get in the situation where Maven 2.x is resolving different then Mercury is. We can still leverage POMs during development but we need to make sure Mercury is doing the work. - -With respect to development inside an IDE the workspace from which we would like to resolve and retrieve dependencies is a read-only local repository to Mercury which is put at the front-end of the search order of any repository that Mercury will consult for artifacts. - -h4. Generation of plugin metadata and packaging - -To create the packaging for a plugin a special Maven packaging would be created with an accompanying life-cycle in order to create the plugin metadata required and create an archive of the plugin that can be consumed at runtime. - -h3. Creation of an isolated classloader - -The plugin artifact and its dependency artifacts will be loaded in an isolated ClassRealm which is simply an extension of the standard URLClassLoader. Mercury would be responsible for resolving and retrieving the dependencies which would then be used to populate a ClassRealm where there would be a connection to the host applications ClassRealm as the parent but the search order would be child first, and the parent ClassRealm can optionally choose to limit the searching to particular classes. The application ClassRealm, or parent ClassRealm, should only expose the API in the form of and application interface and model classes that may be required by plugins. - -For debugging purposes we also need to keep track of what versions of artifacts are being used so that when we are debugging in the IDE we can find the specific sources for a given version of a library so that the developer can debug the correct version of a library being used for a plugin. - -h3. Discovery all Plexus components - -Once the ClassRealm is populated with the plugin artifact and its dependency artifacts a discovery operation must be performed on the plugin ClassRealm in order to discover any Plexus components that may be present in any of the artifacts required for the plugins execution. - -h3. Looking up the plugin with a configuration - -Once the ClassRealm has been populated and all Plexus components have been discovered a lookup can be performed to retrieve the primary plugin component. Currently the component would need to be looked up and then the BasicComponentConfigurator would need to configure the component with a given Plexus configuration. We will discuss later how we would retrieve the Plexus configuration required for a given plugin. - -When a plugin has a complete and valid configuration, the plugin would be looked up in the Plexus container and be ready to perform any operations requested of it. - -h3. Execution of the plugin - -I still need to do some work here to figure out how a dispatching to a particular plugin would occur because everything needs to be mediated through the host application. For a given action that is possible for a user to perform in the UI we need to know the URI that is to be used with its given parameters. That URI in turn must map internally to a method in a given component which belongs to a plugin. This mapping should actually be more generalized and it shouldn’t matter internally whether this maps to the core application or extension of the application in the form of plugins. - -In the short term we are working with the model where the URI maps to a resource, and the resource itself is a Plexus component which can itself have a reference to the host application in order to perform its work. This may not occur in the first versions of the plugin API but a resource needs to simply become the mapping mechanism by which parameters are taken from the REST side of the application and mapped into a method call within a given Plexus component. Whether that be the core Nexus application or a component provided by a plugin. - -At the very least in the short term the resource needs to know how to lookup the component that is required to perform the work. This needs to be made simple, for the time being we can write and test plugins working in the same realm until we get complete isolation working. - -h3. Plugins need a specific metadata model - -Each application will have its own model for plugins. Much of this model will be common across applications but there will always be issues specific to a particular applications’s plugins. Some of the issues that need to be taken into consideration: - -* Plugin dependencies -* Plugin resources like Javascript files or images -* Configuration metadata and default configuration values -* Extension points that plugins might expose - -h3. The plugin manager may have to deal with particular actions when a plugin is - -* installation -* activation -* update -* deactivation -* un-installation - -When a plugin is installed we may want to check the license and make users agree. We may also want to unpack the given plugin in a particular location. - -We might want to separate between installation and activation, it might be nice to allow a user to activate/deactivate a plugin instead of having to uninstall and reinstall a plugin in particular cases. This would prevent having to reconfigure the plugin again. For example it might be nice to turn off LDAP authentication without having to uninstall the plugin. - -These particular phases in a plugin’s lifecycle can probably be generalized to all plugins so could be something implemented in all plugins. Here we could have the descriptor either point to methods for each of these phases to execute or we could create a lifecycle in Plexus for these phases. - -For a particular application plugin there will be a declarative descriptor for that plugin type. - -h3. Some general notes on Nexus - -The plugin metadata: -* the plugin class -* UI to contribute -* what JS to hook into the UI -* what resources to load into the UI -* having packed or unpacked plugins, and positioning resources if necessary -* maven can work out of the classloader, nexus plugins probably couldn't given the js and image resources - -h3. Other issues - -We need to look at Maven, and Nexus as use cases and figure out what each of them needs to be able to do - -* now what is really the difference between this and loading a component in plexus -* do we want a model for sharing information among plugins, is this more like an extension point -* do we need a sort of bus for application data -* do we need a dictionary for our applications like Apple does. We could easily hook into this and this is the model we need to follow. Following the model of apple applications the dictionary is what the REST URI should attach to. Not creating custom logic in the resource code. -* how many of our REST services do not map directory to a method in the application interface? - -- an example of adding js -- an example of adding a URI diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/pom.xml deleted file mode 100644 index c1d6c167..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/pom.xml +++ /dev/null @@ -1,238 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven - maven - 3.3.3 - - - maven-core - - Maven Core - Maven Core classes. - - - scm:git:https://git-wip-us.apache.org/repos/asf/maven.git - scm:git:https://git-wip-us.apache.org/repos/asf/maven.git - maven-3.3.3 - - - - RedundantThrows,NewlineAtEndOfFile,ParameterNumber,MethodLength,FileLength,JavadocType,MethodName,MagicNumber,ConstantName,VisibilityModifier,InnerAssignment - - - - - - org.apache.maven - maven-model - - - - org.apache.maven - maven-settings - - - org.apache.maven - maven-settings-builder - - - org.apache.maven - maven-repository-metadata - - - org.apache.maven - maven-artifact - - - org.apache.maven - maven-plugin-api - - - org.apache.maven - maven-model-builder - - - org.apache.maven - maven-aether-provider - - - org.eclipse.aether - aether-impl - - - org.eclipse.aether - aether-api - - - org.eclipse.aether - aether-util - - - - org.eclipse.sisu - org.eclipse.sisu.plexus - - - org.sonatype.sisu - sisu-guice - no_aop - - - org.codehaus.plexus - plexus-interpolation - - - org.codehaus.plexus - plexus-utils - - - org.codehaus.plexus - plexus-classworlds - - - org.codehaus.plexus - plexus-component-annotations - - - org.sonatype.plexus - plexus-sec-dispatcher - - - commons-jxpath - commons-jxpath - test - - - org.mockito - mockito-core - 1.9.5 - test - - - - - - - src/main/resources - true - - - - - - org.apache.rat - apache-rat-plugin - - - lifecycle-executor.txt - plugin-manager.txt - project-builder.txt - src/site/resources/design/** - - - - - - org.eclipse.m2e - lifecycle-mapping - 1.0.0 - - - - - - org.codehaus.mojo - buildnumber-maven-plugin - [1.2,) - - create-timestamp - - - - - - - - - - - - - - - org.codehaus.plexus - plexus-component-metadata - - - org.eclipse.sisu - sisu-maven-plugin - - - org.codehaus.modello - modello-maven-plugin - - 1.1.0 - - src/main/mdo/toolchains.mdo - - - - - plugin-site-doc - pre-site - - xdoc - - - 1.0.0 - - src/main/mdo/extension.mdo - - - - - - - org.codehaus.mojo - buildnumber-maven-plugin - - - create-noncanonicalrev - - create-timestamp - - - 'NON-CANONICAL_'yyyy-MM-dd'T'HH:mm:ss_'${user.name}' - nonCanonicalRevision - - - - create-buildnumber - - create - - - false - false - ${nonCanonicalRevision} - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/project-builder.txt b/framework/src/maven/apache-maven-3.3.3/maven-core/project-builder.txt deleted file mode 100644 index a9aab65b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/project-builder.txt +++ /dev/null @@ -1 +0,0 @@ -Maven Project Builder and Maven Model Builder diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/AbstractMavenLifecycleParticipant.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/AbstractMavenLifecycleParticipant.java deleted file mode 100644 index 20f6c802..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/AbstractMavenLifecycleParticipant.java +++ /dev/null @@ -1,77 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.MavenSession; - -/** - * Allows core extensions to participate in Maven build session lifecycle. - * - * All callback methods (will) follow beforeXXX/afterXXX naming pattern to - * indicate at what lifecycle point it is being called. - * - * @see example - * @see MNG-4224 - * @since 3.0-alpha-3 - */ -public abstract class AbstractMavenLifecycleParticipant -{ - - /** - * Invoked after all MavenProject instances have been created. - * - * This callback is intended to allow extensions to manipulate MavenProjects - * before they are sorted and actual build execution starts. - */ - public void afterProjectsRead( MavenSession session ) - throws MavenExecutionException - { - // do nothing - } - - /** - * Invoked after MavenSession instance has been created. - * - * This callback is intended to allow extensions to inject execution properties, - * activate profiles and perform similar tasks that affect MavenProject - * instance construction. - */ - // TODO: This is too early for build extensions, so maybe just remove it? - public void afterSessionStart( MavenSession session ) - throws MavenExecutionException - { - // do nothing - } - - /** - * Invoked after all projects were built. - * - * This callback is intended to allow extensions to perform cleanup of any - * allocated external resources after the build. It is invoked on best-effort - * basis and may be missed due to an Error or RuntimeException in Maven core - * code. - * @since 3.2.1, MNG-5389 - */ - public void afterSessionEnd( MavenSession session ) - throws MavenExecutionException - { - // do nothing - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ArtifactFilterManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ArtifactFilterManager.java deleted file mode 100644 index 2cf9f996..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ArtifactFilterManager.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Set; - -import org.apache.maven.artifact.resolver.filter.ArtifactFilter; - -public interface ArtifactFilterManager -{ - /** - * Returns a filter for core + extension artifacts. - * - * @deprecated use {@code META-INF/maven/extension.xml} to define artifacts exported by Maven core and plugin - * extensions. - */ - ArtifactFilter getArtifactFilter(); - - /** - * Returns a filter for only the core artifacts. - */ - ArtifactFilter getCoreArtifactFilter(); - - /** - * Exclude an extension artifact (doesn't affect getArtifactFilter's result, only getExtensionArtifactFilter). - * - * @deprecated use {@code META-INF/maven/extension.xml} to define artifacts exported by Maven core and plugin - * extensions. - */ - void excludeArtifact( String artifactId ); - - Set getCoreArtifactExcludes(); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ArtifactFilterManagerDelegate.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ArtifactFilterManagerDelegate.java deleted file mode 100644 index 13893254..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ArtifactFilterManagerDelegate.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Set; - -/** - * @deprecated use {@code META-INF/maven/extension.xml} to define artifacts exported by Maven core extensions. - */ -public interface ArtifactFilterManagerDelegate -{ - - void addExcludes( Set excludes ); - - void addCoreExcludes( Set excludes ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/BuildAbort.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/BuildAbort.java deleted file mode 100644 index 3255e32b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/BuildAbort.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * A special throwable used to signal a graceful abort of the build. - */ -public class BuildAbort - extends Error -{ - - public BuildAbort( String message ) - { - super( message ); - } - - public BuildAbort( String message, Throwable cause ) - { - super( message, cause ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/BuildFailureException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/BuildFailureException.java deleted file mode 100644 index d35b0d2a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/BuildFailureException.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * One or more builds failed. - * - * @author Brett Porter - */ -public class BuildFailureException - extends Exception -{ - public BuildFailureException( String message ) - { - super( message ); - } - - public BuildFailureException( String message, Throwable cause ) - { - super( message, cause ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/DefaultArtifactFilterManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/DefaultArtifactFilterManager.java deleted file mode 100644 index 1962f917..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/DefaultArtifactFilterManager.java +++ /dev/null @@ -1,112 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Set; - -import javax.inject.Inject; -import javax.inject.Named; -import javax.inject.Singleton; - -import org.apache.maven.artifact.resolver.filter.ArtifactFilter; -import org.apache.maven.artifact.resolver.filter.ExclusionSetFilter; -import org.apache.maven.extension.internal.CoreExportsProvider; - -/** - * @author Jason van Zyl - */ -@Named -@Singleton -@SuppressWarnings( "deprecation" ) -public class DefaultArtifactFilterManager - implements ArtifactFilterManager -{ - - // this is a live injected collection - protected final List delegates; - - protected Set excludedArtifacts; - - private final Set coreArtifacts; - - @Inject - public DefaultArtifactFilterManager( List delegates, - CoreExportsProvider coreExports ) - { - this.delegates = delegates; - this.coreArtifacts = coreExports.get().getExportedArtifacts(); - } - - private synchronized Set getExcludedArtifacts() - { - if ( excludedArtifacts == null ) - { - excludedArtifacts = new LinkedHashSet( coreArtifacts ); - } - return excludedArtifacts; - } - - /** - * Returns the artifact filter for the core + extension artifacts. - * - * @see org.apache.maven.ArtifactFilterManager#getArtifactFilter() - */ - public ArtifactFilter getArtifactFilter() - { - Set excludes = new LinkedHashSet( getExcludedArtifacts() ); - - for ( ArtifactFilterManagerDelegate delegate : delegates ) - { - delegate.addExcludes( excludes ); - } - - return new ExclusionSetFilter( excludes ); - } - - /** - * Returns the artifact filter for the standard core artifacts. - * - * @see org.apache.maven.ArtifactFilterManager#getExtensionDependencyFilter() - */ - public ArtifactFilter getCoreArtifactFilter() - { - return new ExclusionSetFilter( getCoreArtifactExcludes() ); - } - - public void excludeArtifact( String artifactId ) - { - getExcludedArtifacts().add( artifactId ); - } - - public Set getCoreArtifactExcludes() - { - Set excludes = new LinkedHashSet( coreArtifacts ); - - for ( ArtifactFilterManagerDelegate delegate : delegates ) - { - delegate.addCoreExcludes( excludes ); - } - - return excludes; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/DefaultMaven.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/DefaultMaven.java deleted file mode 100644 index 94e75e02..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/DefaultMaven.java +++ /dev/null @@ -1,521 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.Date; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; - -import org.apache.maven.artifact.ArtifactUtils; -import org.apache.maven.execution.DefaultMavenExecutionResult; -import org.apache.maven.execution.ExecutionEvent; -import org.apache.maven.execution.MavenExecutionRequest; -import org.apache.maven.execution.MavenExecutionResult; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.execution.ProjectDependencyGraph; -import org.apache.maven.graph.GraphBuilder; -import org.apache.maven.internal.aether.DefaultRepositorySystemSessionFactory; -import org.apache.maven.lifecycle.internal.ExecutionEventCatapult; -import org.apache.maven.lifecycle.internal.LifecycleStarter; -import org.apache.maven.model.building.ModelProblem; -import org.apache.maven.model.building.Result; -import org.apache.maven.plugin.LegacySupport; -import org.apache.maven.project.MavenProject; -import org.apache.maven.project.ProjectBuilder; -import org.apache.maven.repository.LocalRepositoryNotAccessibleException; -import org.apache.maven.session.scope.internal.SessionScope; -import org.codehaus.plexus.PlexusContainer; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.component.repository.exception.ComponentLookupException; -import org.codehaus.plexus.logging.Logger; -import org.eclipse.aether.DefaultRepositorySystemSession; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.repository.WorkspaceReader; -import org.eclipse.aether.util.repository.ChainedWorkspaceReader; - -import com.google.common.collect.Iterables; - -/** - * @author Jason van Zyl - */ -@Component( role = Maven.class ) -public class DefaultMaven - implements Maven -{ - - @Requirement - private Logger logger; - - @Requirement - protected ProjectBuilder projectBuilder; - - @Requirement - private LifecycleStarter lifecycleStarter; - - @Requirement - protected PlexusContainer container; - - @Requirement - private ExecutionEventCatapult eventCatapult; - - @Requirement - private LegacySupport legacySupport; - - @Requirement - private SessionScope sessionScope; - - @Requirement - private DefaultRepositorySystemSessionFactory repositorySessionFactory; - - @Requirement( hint = GraphBuilder.HINT ) - private GraphBuilder graphBuilder; - - @Override - public MavenExecutionResult execute( MavenExecutionRequest request ) - { - MavenExecutionResult result; - - try - { - result = doExecute( request ); - } - catch ( OutOfMemoryError e ) - { - result = addExceptionToResult( new DefaultMavenExecutionResult(), e ); - } - catch ( RuntimeException e ) - { - //TODO Hack to make the cycle detection the same for the new graph builder - if ( e.getCause() instanceof ProjectCycleException ) - { - result = addExceptionToResult( new DefaultMavenExecutionResult(), e.getCause() ); - } - else - { - result = addExceptionToResult( new DefaultMavenExecutionResult(), - new InternalErrorException( "Internal error: " + e, e ) ); - } - } - finally - { - legacySupport.setSession( null ); - } - - return result; - } - - // - // 1) Setup initial properties. - // - // 2) Validate local repository directory is accessible. - // - // 3) Create RepositorySystemSession. - // - // 4) Create MavenSession. - // - // 5) Execute AbstractLifecycleParticipant.afterSessionStart(session) - // - // 6) Get reactor projects looking for general POM errors - // - // 7) Create ProjectDependencyGraph using trimming which takes into account --projects and reactor mode. - // This ensures that the projects passed into the ReactorReader are only those specified. - // - // 8) Create ReactorReader with the getProjectMap( projects ). NOTE that getProjectMap(projects) is the code that - // checks for duplicate projects definitions in the build. Ideally this type of duplicate checking should be - // part of getting the reactor projects in 6). The duplicate checking is conflated with getProjectMap(projects). - // - // 9) Execute AbstractLifecycleParticipant.afterProjectsRead(session) - // - // 10) Create ProjectDependencyGraph without trimming (as trimming was done in 7). A new topological sort is - // required after the execution of 9) as the AbstractLifecycleParticipants are free to mutate the MavenProject - // instances, which may change dependencies which can, in turn, affect the build order. - // - // 11) Execute LifecycleStarter.start() - // - @SuppressWarnings( "checkstyle:methodlength" ) - private MavenExecutionResult doExecute( MavenExecutionRequest request ) - { - request.setStartTime( new Date() ); - - MavenExecutionResult result = new DefaultMavenExecutionResult(); - - try - { - validateLocalRepository( request ); - } - catch ( LocalRepositoryNotAccessibleException e ) - { - return addExceptionToResult( result, e ); - } - - // - // We enter the session scope right after the MavenSession creation and before any of the - // AbstractLifecycleParticipant lookups - // so that @SessionScoped components can be @Injected into AbstractLifecycleParticipants. - // - sessionScope.enter(); - try - { - DefaultRepositorySystemSession repoSession = - (DefaultRepositorySystemSession) newRepositorySession( request ); - MavenSession session = new MavenSession( container, repoSession, request, result ); - - sessionScope.seed( MavenSession.class, session ); - - legacySupport.setSession( session ); - - return doExecute( request, session, result, repoSession ); - } - finally - { - sessionScope.exit(); - } - } - - private MavenExecutionResult doExecute( MavenExecutionRequest request, MavenSession session, - MavenExecutionResult result, DefaultRepositorySystemSession repoSession ) - { - try - { - for ( AbstractMavenLifecycleParticipant listener : getLifecycleParticipants( Collections - .emptyList() ) ) - { - listener.afterSessionStart( session ); - } - } - catch ( MavenExecutionException e ) - { - return addExceptionToResult( result, e ); - } - - eventCatapult.fire( ExecutionEvent.Type.ProjectDiscoveryStarted, session, null ); - - Result graphResult = buildGraph( session, result ); - - if ( graphResult.hasErrors() ) - { - return addExceptionToResult( result, - Iterables.toArray( graphResult.getProblems(), ModelProblem.class )[0] - .getException() ); - } - - try - { - session.setProjectMap( getProjectMap( session.getProjects() ) ); - } - catch ( DuplicateProjectException e ) - { - return addExceptionToResult( result, e ); - } - - WorkspaceReader reactorWorkspace; - try - { - reactorWorkspace = container.lookup( WorkspaceReader.class, ReactorReader.HINT ); - } - catch ( ComponentLookupException e ) - { - return addExceptionToResult( result, e ); - } - - // - // Desired order of precedence for local artifact repositories - // - // Reactor - // Workspace - // User Local Repository - // - repoSession.setWorkspaceReader( ChainedWorkspaceReader.newInstance( reactorWorkspace, - repoSession.getWorkspaceReader() ) ); - - repoSession.setReadOnly(); - - ClassLoader originalClassLoader = Thread.currentThread().getContextClassLoader(); - try - { - for ( AbstractMavenLifecycleParticipant listener : getLifecycleParticipants( session.getProjects() ) ) - { - Thread.currentThread().setContextClassLoader( listener.getClass().getClassLoader() ); - - listener.afterProjectsRead( session ); - } - } - catch ( MavenExecutionException e ) - { - return addExceptionToResult( result, e ); - } - finally - { - Thread.currentThread().setContextClassLoader( originalClassLoader ); - } - - // - // The projects need to be topologically after the participants have run their afterProjectsRead(session) - // because the participant is free to change the dependencies of a project which can potentially change the - // topological order of the projects, and therefore can potentially change the build order. - // - // Note that participants may affect the topological order of the projects but it is - // not expected that a participant will add or remove projects from the session. - // - - graphResult = buildGraph( session, result ); - - if ( graphResult.hasErrors() ) - { - return addExceptionToResult( result, - Iterables.toArray( graphResult.getProblems(), ModelProblem.class )[0] - .getException() ); - } - - try - { - if ( result.hasExceptions() ) - { - return result; - } - - result.setTopologicallySortedProjects( session.getProjects() ); - - result.setProject( session.getTopLevelProject() ); - - lifecycleStarter.execute( session ); - - validateActivatedProfiles( session.getProjects(), request.getActiveProfiles() ); - - if ( session.getResult().hasExceptions() ) - { - return addExceptionToResult( result, session.getResult().getExceptions().get( 0 ) ); - } - } - finally - { - try - { - afterSessionEnd( session.getProjects(), session ); - } - catch ( MavenExecutionException e ) - { - return addExceptionToResult( result, e ); - } - } - - return result; - } - - private void afterSessionEnd( Collection projects, MavenSession session ) - throws MavenExecutionException - { - ClassLoader originalClassLoader = Thread.currentThread().getContextClassLoader(); - try - { - for ( AbstractMavenLifecycleParticipant listener : getLifecycleParticipants( projects ) ) - { - Thread.currentThread().setContextClassLoader( listener.getClass().getClassLoader() ); - - listener.afterSessionEnd( session ); - } - } - finally - { - Thread.currentThread().setContextClassLoader( originalClassLoader ); - } - } - - public RepositorySystemSession newRepositorySession( MavenExecutionRequest request ) - { - return repositorySessionFactory.newRepositorySession( request ); - } - - private void validateLocalRepository( MavenExecutionRequest request ) - throws LocalRepositoryNotAccessibleException - { - File localRepoDir = request.getLocalRepositoryPath(); - - logger.debug( "Using local repository at " + localRepoDir ); - - localRepoDir.mkdirs(); - - if ( !localRepoDir.isDirectory() ) - { - throw new LocalRepositoryNotAccessibleException( "Could not create local repository at " + localRepoDir ); - } - } - - private Collection getLifecycleParticipants( Collection projects ) - { - Collection lifecycleListeners = - new LinkedHashSet(); - - ClassLoader originalClassLoader = Thread.currentThread().getContextClassLoader(); - try - { - try - { - lifecycleListeners.addAll( container.lookupList( AbstractMavenLifecycleParticipant.class ) ); - } - catch ( ComponentLookupException e ) - { - // this is just silly, lookupList should return an empty list! - logger.warn( "Failed to lookup lifecycle participants: " + e.getMessage() ); - } - - Collection scannedRealms = new HashSet(); - - for ( MavenProject project : projects ) - { - ClassLoader projectRealm = project.getClassRealm(); - - if ( projectRealm != null && scannedRealms.add( projectRealm ) ) - { - Thread.currentThread().setContextClassLoader( projectRealm ); - - try - { - lifecycleListeners.addAll( container.lookupList( AbstractMavenLifecycleParticipant.class ) ); - } - catch ( ComponentLookupException e ) - { - // this is just silly, lookupList should return an empty list! - logger.warn( "Failed to lookup lifecycle participants: " + e.getMessage() ); - } - } - } - } - finally - { - Thread.currentThread().setContextClassLoader( originalClassLoader ); - } - - return lifecycleListeners; - } - - private MavenExecutionResult addExceptionToResult( MavenExecutionResult result, Throwable e ) - { - if ( !result.getExceptions().contains( e ) ) - { - result.addException( e ); - } - - return result; - } - - private void validateActivatedProfiles( List projects, List activeProfileIds ) - { - Collection notActivatedProfileIds = new LinkedHashSet( activeProfileIds ); - - for ( MavenProject project : projects ) - { - for ( List profileIds : project.getInjectedProfileIds().values() ) - { - notActivatedProfileIds.removeAll( profileIds ); - } - } - - for ( String notActivatedProfileId : notActivatedProfileIds ) - { - logger.warn( "The requested profile \"" + notActivatedProfileId - + "\" could not be activated because it does not exist." ); - } - } - - private Map getProjectMap( Collection projects ) - throws DuplicateProjectException - { - Map index = new LinkedHashMap(); - Map> collisions = new LinkedHashMap>(); - - for ( MavenProject project : projects ) - { - String projectId = ArtifactUtils.key( project.getGroupId(), project.getArtifactId(), project.getVersion() ); - - MavenProject collision = index.get( projectId ); - - if ( collision == null ) - { - index.put( projectId, project ); - } - else - { - List pomFiles = collisions.get( projectId ); - - if ( pomFiles == null ) - { - pomFiles = new ArrayList( Arrays.asList( collision.getFile(), project.getFile() ) ); - collisions.put( projectId, pomFiles ); - } - else - { - pomFiles.add( project.getFile() ); - } - } - } - - if ( !collisions.isEmpty() ) - { - throw new DuplicateProjectException( "Two or more projects in the reactor" - + " have the same identifier, please make sure that ::" - + " is unique for each project: " + collisions, collisions ); - } - - return index; - } - - private Result buildGraph( MavenSession session, MavenExecutionResult result ) - { - Result graphResult = graphBuilder.build( session ); - for ( ModelProblem problem : graphResult.getProblems() ) - { - if ( problem.getSeverity() == ModelProblem.Severity.WARNING ) - { - logger.warn( problem.toString() ); - } - else - { - logger.error( problem.toString() ); - } - } - - if ( !graphResult.hasErrors() ) - { - ProjectDependencyGraph projectDependencyGraph = graphResult.get(); - session.setProjects( projectDependencyGraph.getSortedProjects() ); - session.setAllProjects( projectDependencyGraph.getSortedProjects() ); - session.setProjectDependencyGraph( projectDependencyGraph ); - } - - return graphResult; - } - - @Deprecated - // 5 January 2014 - protected Logger getLogger() - { - return logger; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/DefaultProjectDependenciesResolver.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/DefaultProjectDependenciesResolver.java deleted file mode 100644 index fa8be382..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/DefaultProjectDependenciesResolver.java +++ /dev/null @@ -1,217 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collection; -import java.util.Collections; -import java.util.HashSet; -import java.util.Iterator; -import java.util.LinkedHashSet; -import java.util.Set; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.ArtifactUtils; -import org.apache.maven.artifact.resolver.ArtifactNotFoundException; -import org.apache.maven.artifact.resolver.ArtifactResolutionException; -import org.apache.maven.artifact.resolver.ArtifactResolutionRequest; -import org.apache.maven.artifact.resolver.ArtifactResolutionResult; -import org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException; -import org.apache.maven.artifact.resolver.ResolutionErrorHandler; -import org.apache.maven.artifact.resolver.filter.CumulativeScopeArtifactFilter; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.project.MavenProject; -import org.apache.maven.project.artifact.ProjectArtifact; -import org.apache.maven.repository.RepositorySystem; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; - -@Deprecated -@Component( role = ProjectDependenciesResolver.class ) -public class DefaultProjectDependenciesResolver - implements ProjectDependenciesResolver -{ - - @Requirement - private RepositorySystem repositorySystem; - - @Requirement - private ResolutionErrorHandler resolutionErrorHandler; - - public Set resolve( MavenProject project, Collection scopesToResolve, MavenSession session ) - throws ArtifactResolutionException, ArtifactNotFoundException - { - return resolve( Collections.singleton( project ), scopesToResolve, session ); - } - - public Set resolve( MavenProject project, Collection scopesToCollect, - Collection scopesToResolve, MavenSession session ) - throws ArtifactResolutionException, ArtifactNotFoundException - { - Set mavenProjects = Collections.singleton( project ); - return resolveImpl( mavenProjects, scopesToCollect, scopesToResolve, session, - getIgnorableArtifacts( mavenProjects ) ); - } - - public Set resolve( Collection projects, Collection scopesToResolve, - MavenSession session ) - throws ArtifactResolutionException, ArtifactNotFoundException - { - return resolveImpl( projects, null, scopesToResolve, session, getIgnorableArtifacts( projects ) ); - } - - public Set resolve( MavenProject project, Collection scopesToCollect, - Collection scopesToResolve, MavenSession session, - Set ignoreableArtifacts ) - throws ArtifactResolutionException, ArtifactNotFoundException - { - return resolveImpl( Collections.singleton( project ), scopesToCollect, scopesToResolve, session, - getIgnorableArtifacts( ignoreableArtifacts ) ); - } - - - private Set resolveImpl( Collection projects, Collection scopesToCollect, - Collection scopesToResolve, MavenSession session, - Set projectIds ) - throws ArtifactResolutionException, ArtifactNotFoundException - { - Set resolved = new LinkedHashSet(); - - if ( projects == null || projects.isEmpty() ) - { - return resolved; - } - - if ( ( scopesToCollect == null || scopesToCollect.isEmpty() ) - && ( scopesToResolve == null || scopesToResolve.isEmpty() ) ) - { - return resolved; - } - - /* - - Logic for transitive global exclusions - - List exclusions = new ArrayList(); - - for ( Dependency d : project.getDependencies() ) - { - if ( d.getExclusions() != null ) - { - for ( Exclusion e : d.getExclusions() ) - { - exclusions.add( e.getGroupId() + ":" + e.getArtifactId() ); - } - } - } - - ArtifactFilter scopeFilter = new ScopeArtifactFilter( scope ); - - ArtifactFilter filter; - - if ( ! exclusions.isEmpty() ) - { - filter = new AndArtifactFilter( Arrays.asList( new ArtifactFilter[]{ - new ExcludesArtifactFilter( exclusions ), scopeFilter } ) ); - } - else - { - filter = scopeFilter; - } - */ - - CumulativeScopeArtifactFilter resolutionScopeFilter = new CumulativeScopeArtifactFilter( scopesToResolve ); - - CumulativeScopeArtifactFilter collectionScopeFilter = new CumulativeScopeArtifactFilter( scopesToCollect ); - collectionScopeFilter = new CumulativeScopeArtifactFilter( collectionScopeFilter, resolutionScopeFilter ); - - ArtifactResolutionRequest request = - new ArtifactResolutionRequest().setResolveRoot( false ).setResolveTransitively( true ).setCollectionFilter( - collectionScopeFilter ).setResolutionFilter( resolutionScopeFilter ).setLocalRepository( - session.getLocalRepository() ).setOffline( session.isOffline() ).setForceUpdate( - session.getRequest().isUpdateSnapshots() ); - request.setServers( session.getRequest().getServers() ); - request.setMirrors( session.getRequest().getMirrors() ); - request.setProxies( session.getRequest().getProxies() ); - - for ( MavenProject project : projects ) - { - request.setArtifact( new ProjectArtifact( project ) ); - request.setArtifactDependencies( project.getDependencyArtifacts() ); - request.setManagedVersionMap( project.getManagedVersionMap() ); - request.setRemoteRepositories( project.getRemoteArtifactRepositories() ); - - ArtifactResolutionResult result = repositorySystem.resolve( request ); - - try - { - resolutionErrorHandler.throwErrors( request, result ); - } - catch ( MultipleArtifactsNotFoundException e ) - { - - Collection missing = new HashSet( e.getMissingArtifacts() ); - - for ( Iterator it = missing.iterator(); it.hasNext(); ) - { - String key = ArtifactUtils.key( it.next() ); - if ( projectIds.contains( key ) ) - { - it.remove(); - } - } - - if ( !missing.isEmpty() ) - { - throw e; - } - } - - resolved.addAll( result.getArtifacts() ); - } - - return resolved; - } - - - private Set getIgnorableArtifacts( Collection projects ) - { - Set projectIds = new HashSet( projects.size() * 2 ); - - for ( MavenProject p : projects ) - { - String key = ArtifactUtils.key( p.getGroupId(), p.getArtifactId(), p.getVersion() ); - projectIds.add( key ); - } - return projectIds; - } - - private Set getIgnorableArtifacts( Iterable artifactIterable ) - { - Set projectIds = new HashSet(); - - for ( Artifact artifact : artifactIterable ) - { - String key = ArtifactUtils.key( artifact ); - projectIds.add( key ); - } - return projectIds; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/DuplicateProjectException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/DuplicateProjectException.java deleted file mode 100644 index b1398729..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/DuplicateProjectException.java +++ /dev/null @@ -1,61 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; - -/** - * Signals a collision of two or more projects with the same g:a:v during a reactor build. - * - * @author Benjamin Bentmann - */ -public class DuplicateProjectException - extends MavenExecutionException -{ - - private Map> collisions; - - /** - * Creates a new exception with specified details. - * - * @param message The message text, may be {@code null}. - * @param collisions The POM files of the projects that collided, indexed by their g:a:v, may be {@code null}. - */ - public DuplicateProjectException( String message, Map> collisions ) - { - super( message, (File) null ); - - this.collisions = ( collisions != null ) ? collisions : new LinkedHashMap>(); - } - - /** - * Gets the POM files of the projects that collided. - * - * @return The POM files of the projects that collided, indexed by their g:a:v, never {@code null}. - */ - public Map> getCollisions() - { - return collisions; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/InternalErrorException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/InternalErrorException.java deleted file mode 100644 index afe92c1b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/InternalErrorException.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Signals an internal error in Maven itself, e.g. a programming bug. - * - * @author Benjamin Bentmann - */ -public class InternalErrorException - extends MavenExecutionException -{ - - public InternalErrorException( String message, Throwable cause ) - { - super( message, cause ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/Maven.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/Maven.java deleted file mode 100644 index 85638476..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/Maven.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.MavenExecutionRequest; -import org.apache.maven.execution.MavenExecutionResult; - -/** - * @author Jason van Zyl - */ -public interface Maven -{ - @Deprecated - String POMv4 = "pom.xml"; - - MavenExecutionResult execute( MavenExecutionRequest request ); -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/MavenExecutionException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/MavenExecutionException.java deleted file mode 100644 index 5708e525..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/MavenExecutionException.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; - -import org.apache.maven.project.ProjectBuildingException; - -/** - * @author Jason van Zyl - */ -public class MavenExecutionException - extends Exception -{ - private File pomFile; - - public MavenExecutionException( String message, File pomFile ) - { - super( message ); - this.pomFile = pomFile; - } - - public MavenExecutionException( String message, File pomFile, ProjectBuildingException cause ) - { - super( message, cause ); - this.pomFile = pomFile; - } - - public MavenExecutionException( String message, Throwable cause ) - { - super( message, cause ); - } - - public File getPomFile() - { - return pomFile; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/MissingModuleException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/MissingModuleException.java deleted file mode 100644 index c920a6ea..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/MissingModuleException.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; - -public class MissingModuleException - extends MavenExecutionException -{ - - private File moduleFile; - private final String moduleName; - - public MissingModuleException( String moduleName, File moduleFile, File pomFile ) - { - super( "The module: " + moduleName + " cannot be found in file: " + moduleFile, pomFile ); - this.moduleName = moduleName; - this.moduleFile = moduleFile; - } - - public File getModuleFile() - { - return moduleFile; - } - - public String getModuleName() - { - return moduleName; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ProjectBuildFailureException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ProjectBuildFailureException.java deleted file mode 100644 index 66ed3a08..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ProjectBuildFailureException.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.plugin.MojoFailureException; - -/** - * Exception which occurs when a normal (i.e. non-aggregator) mojo fails to - * execute. In this case, the mojo failed while executing against a particular - * project instance, so we can wrap the {@link MojoFailureException} with context - * information including projectId that caused the failure. - * - * @author jdcasey - * - */ -public class ProjectBuildFailureException - extends BuildFailureException -{ - - private final String projectId; - - public ProjectBuildFailureException( String projectId, MojoFailureException cause ) - { - super( "Build for project: " + projectId + " failed during execution of mojo.", cause ); - - this.projectId = projectId; - } - - public MojoFailureException getMojoFailureException() - { - return (MojoFailureException) getCause(); - } - - public String getProjectId() - { - return projectId; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ProjectCycleException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ProjectCycleException.java deleted file mode 100644 index ecd8ecac..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ProjectCycleException.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.codehaus.plexus.util.dag.CycleDetectedException; - -/** - * @author jdcasey - */ -public class ProjectCycleException - extends BuildFailureException -{ - public ProjectCycleException( String message ) - { - super( message ); - } - - public ProjectCycleException( String message, CycleDetectedException cause ) - { - super( message, cause ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ProjectDependenciesResolver.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ProjectDependenciesResolver.java deleted file mode 100644 index 01e62278..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ProjectDependenciesResolver.java +++ /dev/null @@ -1,95 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collection; -import java.util.Set; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.resolver.ArtifactNotFoundException; -import org.apache.maven.artifact.resolver.ArtifactResolutionException; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.project.MavenProject; - -@Deprecated -/** - * @deprecated As of 3.2.2, and there is no direct replacement. This is an internal class which was not marked as such, - * but should have been. - * @author jvanzyl - * - */ -public interface ProjectDependenciesResolver -{ - - /** - * Resolves the transitive dependencies of the specified project. - * - * @param project The project whose dependencies should be resolved, must not be {@code null}. - * @param scopesToResolve The dependency scopes that should be resolved, may be {@code null}. - * @param session The current build session, must not be {@code null}. - * @return The transitive dependencies of the specified project that match the requested scopes, never {@code null}. - */ - Set resolve( MavenProject project, Collection scopesToResolve, MavenSession session ) - throws ArtifactResolutionException, ArtifactNotFoundException; - - /** - * Resolves the transitive dependencies of the specified project. - * - * @param project The project whose dependencies should be resolved, must not be {@code null}. - * @param scopesToCollect The dependency scopes that should be collected, may be {@code null}. - * @param scopesToResolve The dependency scopes that should be collected and also resolved, may be {@code null}. - * @param session The current build session, must not be {@code null}. - * @return The transitive dependencies of the specified project that match the requested scopes, never {@code null}. - */ - Set resolve( MavenProject project, Collection scopesToCollect, - Collection scopesToResolve, MavenSession session ) - throws ArtifactResolutionException, ArtifactNotFoundException; - - /** - * Resolves the transitive dependencies of the specified project. - * - * @param project The project whose dependencies should be resolved, must not be {@code null}. - * @param scopesToCollect The dependency scopes that should be collected, may be {@code null}. - * @param scopesToResolve The dependency scopes that should be collected and also resolved, may be {@code null}. - * @param session The current build session, must not be {@code null}. - * @param ignoreableArtifacts Artifacts that need not be resolved - * @return The transitive dependencies of the specified project that match the requested scopes, never {@code null}. - */ - Set resolve( MavenProject project, Collection scopesToCollect, - Collection scopesToResolve, MavenSession session, Set ignoreableArtifacts ) - throws ArtifactResolutionException, ArtifactNotFoundException; - - /** - * Resolves the transitive dependencies of the specified projects. Note that dependencies which can't be resolved - * from any repository but are present among the set of specified projects will not cause an exception. Instead, - * those unresolved artifacts will be returned in the result set, allowing the caller to take special care of - * artifacts that haven't been build yet. - * - * @param projects The projects whose dependencies should be resolved, may be {@code null}. - * @param scopes The dependency scopes that should be resolved, may be {@code null}. - * @param session The current build session, must not be {@code null}. - * @return The transitive dependencies of the specified projects that match the requested scopes, never - * {@code null}. - */ - Set resolve( Collection projects, Collection scopes, - MavenSession session ) - throws ArtifactResolutionException, ArtifactNotFoundException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ReactorReader.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ReactorReader.java deleted file mode 100644 index 252bdd09..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/ReactorReader.java +++ /dev/null @@ -1,255 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; - -import javax.inject.Inject; -import javax.inject.Named; - -import org.apache.maven.artifact.ArtifactUtils; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.model.Model; -import org.apache.maven.project.MavenProject; -import org.apache.maven.repository.internal.MavenWorkspaceReader; -import org.eclipse.aether.artifact.Artifact; -import org.eclipse.aether.repository.WorkspaceRepository; -import org.eclipse.aether.util.artifact.ArtifactIdUtils; - -/** - * An implementation of a workspace reader that knows how to search the Maven reactor for artifacts, either - * as packaged jar if it has been built, or only compile output directory if packaging hasn't happened yet. - * - * @author Jason van Zyl - */ -@Named( ReactorReader.HINT ) -@SessionScoped -class ReactorReader - implements MavenWorkspaceReader -{ - public static final String HINT = "reactor"; - - private static final Collection COMPILE_PHASE_TYPES = Arrays.asList( "jar", "ejb-client" ); - - private Map projectsByGAV; - - private Map> projectsByGA; - - private WorkspaceRepository repository; - - @Inject - public ReactorReader( MavenSession session ) - { - projectsByGAV = session.getProjectMap(); - - projectsByGA = new HashMap>( projectsByGAV.size() * 2 ); - for ( MavenProject project : projectsByGAV.values() ) - { - String key = ArtifactUtils.versionlessKey( project.getGroupId(), project.getArtifactId() ); - - List projects = projectsByGA.get( key ); - - if ( projects == null ) - { - projects = new ArrayList( 1 ); - projectsByGA.put( key, projects ); - } - - projects.add( project ); - } - - repository = new WorkspaceRepository( "reactor", new HashSet( projectsByGAV.keySet() ) ); - } - - // - // Public API - // - - public WorkspaceRepository getRepository() - { - return repository; - } - - public File findArtifact( Artifact artifact ) - { - String projectKey = ArtifactUtils.key( artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion() ); - - MavenProject project = projectsByGAV.get( projectKey ); - - if ( project != null ) - { - File file = find( project, artifact ); - if ( file == null && project != project.getExecutionProject() ) - { - file = find( project.getExecutionProject(), artifact ); - } - return file; - } - - return null; - } - - public List findVersions( Artifact artifact ) - { - String key = ArtifactUtils.versionlessKey( artifact.getGroupId(), artifact.getArtifactId() ); - - List projects = projectsByGA.get( key ); - if ( projects == null || projects.isEmpty() ) - { - return Collections.emptyList(); - } - - List versions = new ArrayList(); - - for ( MavenProject project : projects ) - { - if ( find( project, artifact ) != null ) - { - versions.add( project.getVersion() ); - } - } - - return Collections.unmodifiableList( versions ); - } - - @Override - public Model findModel( Artifact artifact ) - { - String projectKey = ArtifactUtils.key( artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion() ); - MavenProject project = projectsByGAV.get( projectKey ); - return project == null ? null : project.getModel(); - } - - // - // Implementation - // - - private File find( MavenProject project, Artifact artifact ) - { - if ( "pom".equals( artifact.getExtension() ) ) - { - return project.getFile(); - } - - Artifact projectArtifact = findMatchingArtifact( project, artifact ); - - if ( hasArtifactFileFromPackagePhase( projectArtifact ) ) - { - return projectArtifact.getFile(); - } - else if ( !hasBeenPackaged( project ) ) - { - // fallback to loose class files only if artifacts haven't been packaged yet - // and only for plain old jars. Not war files, not ear files, not anything else. - - if ( isTestArtifact( artifact ) ) - { - if ( project.hasLifecyclePhase( "test-compile" ) ) - { - return new File( project.getBuild().getTestOutputDirectory() ); - } - } - else - { - String type = artifact.getProperty( "type", "" ); - if ( project.hasLifecyclePhase( "compile" ) && COMPILE_PHASE_TYPES.contains( type ) ) - { - return new File( project.getBuild().getOutputDirectory() ); - } - } - } - - // The fall-through indicates that the artifact cannot be found; - // for instance if package produced nothing or classifier problems. - return null; - } - - private boolean hasArtifactFileFromPackagePhase( Artifact projectArtifact ) - { - return projectArtifact != null && projectArtifact.getFile() != null && projectArtifact.getFile().exists(); - } - - private boolean hasBeenPackaged( MavenProject project ) - { - return project.hasLifecyclePhase( "package" ) || project.hasLifecyclePhase( "install" ) - || project.hasLifecyclePhase( "deploy" ); - } - - /** - * Tries to resolve the specified artifact from the artifacts of the given project. - * - * @param project The project to try to resolve the artifact from, must not be null. - * @param requestedArtifact The artifact to resolve, must not be null. - * @return The matching artifact from the project or null if not found. Note that this - */ - private Artifact findMatchingArtifact( MavenProject project, Artifact requestedArtifact ) - { - String requestedRepositoryConflictId = ArtifactIdUtils.toVersionlessId( requestedArtifact ); - - Artifact mainArtifact = RepositoryUtils.toArtifact( project.getArtifact() ); - if ( requestedRepositoryConflictId.equals( ArtifactIdUtils.toVersionlessId( mainArtifact ) ) ) - { - return mainArtifact; - } - - for ( Artifact attachedArtifact : RepositoryUtils.toArtifacts( project.getAttachedArtifacts() ) ) - { - if ( attachedArtifactComparison( requestedArtifact, attachedArtifact ) ) - { - return attachedArtifact; - } - } - - return null; - } - - private boolean attachedArtifactComparison( Artifact requested, Artifact attached ) - { - // - // We are taking as much as we can from the DefaultArtifact.equals(). The requested artifact has no file so - // we want to remove that from the comparison. - // - return requested.getArtifactId().equals( attached.getArtifactId() ) - && requested.getGroupId().equals( attached.getGroupId() ) - && requested.getVersion().equals( attached.getVersion() ) - && requested.getExtension().equals( attached.getExtension() ) - && requested.getClassifier().equals( attached.getClassifier() ); - } - - /** - * Determines whether the specified artifact refers to test classes. - * - * @param artifact The artifact to check, must not be {@code null}. - * @return {@code true} if the artifact refers to test classes, {@code false} otherwise. - */ - private static boolean isTestArtifact( Artifact artifact ) - { - return ( "test-jar".equals( artifact.getProperty( "type", "" ) ) ) - || ( "jar".equals( artifact.getExtension() ) && "tests".equals( artifact.getClassifier() ) ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java deleted file mode 100644 index d7fd88e2..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java +++ /dev/null @@ -1,362 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.List; -import java.util.Map; - -import org.apache.maven.artifact.handler.ArtifactHandler; -import org.apache.maven.artifact.handler.DefaultArtifactHandler; -import org.apache.maven.artifact.handler.manager.ArtifactHandlerManager; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy; -import org.eclipse.aether.artifact.Artifact; -import org.eclipse.aether.artifact.ArtifactProperties; -import org.eclipse.aether.artifact.ArtifactType; -import org.eclipse.aether.artifact.ArtifactTypeRegistry; -import org.eclipse.aether.artifact.DefaultArtifact; -import org.eclipse.aether.artifact.DefaultArtifactType; -import org.eclipse.aether.graph.Dependency; -import org.eclipse.aether.graph.DependencyFilter; -import org.eclipse.aether.graph.DependencyNode; -import org.eclipse.aether.graph.Exclusion; -import org.eclipse.aether.repository.Authentication; -import org.eclipse.aether.repository.Proxy; -import org.eclipse.aether.repository.RemoteRepository; -import org.eclipse.aether.repository.RepositoryPolicy; -import org.eclipse.aether.util.repository.AuthenticationBuilder; - -/** - * Warning: This is an internal utility class that is only public for technical reasons, it is not part - * of the public API. In particular, this class can be changed or deleted without prior notice. - * - * @author Benjamin Bentmann - */ -public class RepositoryUtils -{ - - private static String nullify( String string ) - { - return ( string == null || string.length() <= 0 ) ? null : string; - } - - private static org.apache.maven.artifact.Artifact toArtifact( Dependency dependency ) - { - if ( dependency == null ) - { - return null; - } - - org.apache.maven.artifact.Artifact result = toArtifact( dependency.getArtifact() ); - result.setScope( dependency.getScope() ); - result.setOptional( dependency.isOptional() ); - - return result; - } - - public static org.apache.maven.artifact.Artifact toArtifact( Artifact artifact ) - { - if ( artifact == null ) - { - return null; - } - - ArtifactHandler handler = newHandler( artifact ); - - /* - * NOTE: From Artifact.hasClassifier(), an empty string and a null both denote "no classifier". However, some - * plugins only check for null, so be sure to nullify an empty classifier. - */ - org.apache.maven.artifact.Artifact result = - new org.apache.maven.artifact.DefaultArtifact( artifact.getGroupId(), artifact.getArtifactId(), - artifact.getVersion(), null, - artifact.getProperty( ArtifactProperties.TYPE, - artifact.getExtension() ), - nullify( artifact.getClassifier() ), handler ); - - result.setFile( artifact.getFile() ); - result.setResolved( artifact.getFile() != null ); - - List trail = new ArrayList( 1 ); - trail.add( result.getId() ); - result.setDependencyTrail( trail ); - - return result; - } - - public static void toArtifacts( Collection artifacts, - Collection nodes, List trail, - DependencyFilter filter ) - { - for ( DependencyNode node : nodes ) - { - org.apache.maven.artifact.Artifact artifact = toArtifact( node.getDependency() ); - - List nodeTrail = new ArrayList( trail.size() + 1 ); - nodeTrail.addAll( trail ); - nodeTrail.add( artifact.getId() ); - - if ( filter == null || filter.accept( node, Collections.emptyList() ) ) - { - artifact.setDependencyTrail( nodeTrail ); - artifacts.add( artifact ); - } - - toArtifacts( artifacts, node.getChildren(), nodeTrail, filter ); - } - } - - public static Artifact toArtifact( org.apache.maven.artifact.Artifact artifact ) - { - if ( artifact == null ) - { - return null; - } - - String version = artifact.getVersion(); - if ( version == null && artifact.getVersionRange() != null ) - { - version = artifact.getVersionRange().toString(); - } - - Map props = null; - if ( org.apache.maven.artifact.Artifact.SCOPE_SYSTEM.equals( artifact.getScope() ) ) - { - String localPath = ( artifact.getFile() != null ) ? artifact.getFile().getPath() : ""; - props = Collections.singletonMap( ArtifactProperties.LOCAL_PATH, localPath ); - } - - Artifact result = - new DefaultArtifact( artifact.getGroupId(), artifact.getArtifactId(), artifact.getClassifier(), - artifact.getArtifactHandler().getExtension(), version, props, - newArtifactType( artifact.getType(), artifact.getArtifactHandler() ) ); - result = result.setFile( artifact.getFile() ); - - return result; - } - - public static Dependency toDependency( org.apache.maven.artifact.Artifact artifact, - Collection exclusions ) - { - if ( artifact == null ) - { - return null; - } - - Artifact result = toArtifact( artifact ); - - List excl = null; - if ( exclusions != null ) - { - excl = new ArrayList( exclusions.size() ); - for ( org.apache.maven.model.Exclusion exclusion : exclusions ) - { - excl.add( toExclusion( exclusion ) ); - } - } - - return new Dependency( result, artifact.getScope(), artifact.isOptional(), excl ); - } - - public static List toRepos( List repos ) - { - if ( repos == null ) - { - return null; - } - - List results = new ArrayList( repos.size() ); - for ( ArtifactRepository repo : repos ) - { - results.add( toRepo( repo ) ); - } - return results; - } - - public static RemoteRepository toRepo( ArtifactRepository repo ) - { - RemoteRepository result = null; - if ( repo != null ) - { - RemoteRepository.Builder builder = - new RemoteRepository.Builder( repo.getId(), getLayout( repo ), repo.getUrl() ); - builder.setSnapshotPolicy( toPolicy( repo.getSnapshots() ) ); - builder.setReleasePolicy( toPolicy( repo.getReleases() ) ); - builder.setAuthentication( toAuthentication( repo.getAuthentication() ) ); - builder.setProxy( toProxy( repo.getProxy() ) ); - builder.setMirroredRepositories( toRepos( repo.getMirroredRepositories() ) ); - result = builder.build(); - } - return result; - } - - public static String getLayout( ArtifactRepository repo ) - { - try - { - return repo.getLayout().getId(); - } - catch ( LinkageError e ) - { - /* - * NOTE: getId() was added in 3.x and is as such not implemented by plugins compiled against 2.x APIs. - */ - String className = repo.getLayout().getClass().getSimpleName(); - if ( className.endsWith( "RepositoryLayout" ) ) - { - String layout = className.substring( 0, className.length() - "RepositoryLayout".length() ); - if ( layout.length() > 0 ) - { - layout = Character.toLowerCase( layout.charAt( 0 ) ) + layout.substring( 1 ); - return layout; - } - } - return ""; - } - } - - private static RepositoryPolicy toPolicy( ArtifactRepositoryPolicy policy ) - { - RepositoryPolicy result = null; - if ( policy != null ) - { - result = new RepositoryPolicy( policy.isEnabled(), policy.getUpdatePolicy(), policy.getChecksumPolicy() ); - } - return result; - } - - private static Authentication toAuthentication( org.apache.maven.artifact.repository.Authentication auth ) - { - Authentication result = null; - if ( auth != null ) - { - AuthenticationBuilder authBuilder = new AuthenticationBuilder(); - authBuilder.addUsername( auth.getUsername() ).addPassword( auth.getPassword() ); - authBuilder.addPrivateKey( auth.getPrivateKey(), auth.getPassphrase() ); - result = authBuilder.build(); - } - return result; - } - - private static Proxy toProxy( org.apache.maven.repository.Proxy proxy ) - { - Proxy result = null; - if ( proxy != null ) - { - AuthenticationBuilder authBuilder = new AuthenticationBuilder(); - authBuilder.addUsername( proxy.getUserName() ).addPassword( proxy.getPassword() ); - result = new Proxy( proxy.getProtocol(), proxy.getHost(), proxy.getPort(), authBuilder.build() ); - } - return result; - } - - public static ArtifactHandler newHandler( Artifact artifact ) - { - String type = artifact.getProperty( ArtifactProperties.TYPE, artifact.getExtension() ); - DefaultArtifactHandler handler = new DefaultArtifactHandler( type ); - handler.setExtension( artifact.getExtension() ); - handler.setLanguage( artifact.getProperty( ArtifactProperties.LANGUAGE, null ) ); - String addedToClasspath = artifact.getProperty( ArtifactProperties.CONSTITUTES_BUILD_PATH, "" ); - handler.setAddedToClasspath( Boolean.parseBoolean( addedToClasspath ) ); - String includesDependencies = artifact.getProperty( ArtifactProperties.INCLUDES_DEPENDENCIES, "" ); - handler.setIncludesDependencies( Boolean.parseBoolean( includesDependencies ) ); - return handler; - } - - public static ArtifactType newArtifactType( String id, ArtifactHandler handler ) - { - return new DefaultArtifactType( id, handler.getExtension(), handler.getClassifier(), handler.getLanguage(), - handler.isAddedToClasspath(), handler.isIncludesDependencies() ); - } - - public static Dependency toDependency( org.apache.maven.model.Dependency dependency, - ArtifactTypeRegistry stereotypes ) - { - ArtifactType stereotype = stereotypes.get( dependency.getType() ); - if ( stereotype == null ) - { - stereotype = new DefaultArtifactType( dependency.getType() ); - } - - boolean system = dependency.getSystemPath() != null && dependency.getSystemPath().length() > 0; - - Map props = null; - if ( system ) - { - props = Collections.singletonMap( ArtifactProperties.LOCAL_PATH, dependency.getSystemPath() ); - } - - Artifact artifact = - new DefaultArtifact( dependency.getGroupId(), dependency.getArtifactId(), dependency.getClassifier(), null, - dependency.getVersion(), props, stereotype ); - - List exclusions = new ArrayList( dependency.getExclusions().size() ); - for ( org.apache.maven.model.Exclusion exclusion : dependency.getExclusions() ) - { - exclusions.add( toExclusion( exclusion ) ); - } - - Dependency result = new Dependency( artifact, dependency.getScope(), dependency.isOptional(), exclusions ); - - return result; - } - - private static Exclusion toExclusion( org.apache.maven.model.Exclusion exclusion ) - { - return new Exclusion( exclusion.getGroupId(), exclusion.getArtifactId(), "*", "*" ); - } - - public static ArtifactTypeRegistry newArtifactTypeRegistry( ArtifactHandlerManager handlerManager ) - { - return new MavenArtifactTypeRegistry( handlerManager ); - } - - static class MavenArtifactTypeRegistry - implements ArtifactTypeRegistry - { - - private final ArtifactHandlerManager handlerManager; - - public MavenArtifactTypeRegistry( ArtifactHandlerManager handlerManager ) - { - this.handlerManager = handlerManager; - } - - public ArtifactType get( String stereotypeId ) - { - ArtifactHandler handler = handlerManager.getArtifactHandler( stereotypeId ); - return newArtifactType( stereotypeId, handler ); - } - - } - - public static Collection toArtifacts( Collection artifactsToConvert ) - { - List artifacts = new ArrayList(); - for ( org.apache.maven.artifact.Artifact a : artifactsToConvert ) - { - artifacts.add( toArtifact( a ) ); - } - return artifacts; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/SessionScoped.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/SessionScoped.java deleted file mode 100644 index 63b1eb77..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/SessionScoped.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import static java.lang.annotation.ElementType.TYPE; -import static java.lang.annotation.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -import com.google.inject.ScopeAnnotation; - -/** - * Indicates that annotated component should be instantiated before session starts and discarded after session execution - * completes. - * - * @author Jason van Zyl - * @since 3.2.0 - */ -@Target( { TYPE } ) -@Retention( RUNTIME ) -@ScopeAnnotation -public @interface SessionScoped -{ -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/DependencyResolutionRequiredException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/DependencyResolutionRequiredException.java deleted file mode 100644 index b54ba070..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/DependencyResolutionRequiredException.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.apache.maven.artifact; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Exception that occurs when an artifact file is used, but has not been resolved. - * - * @author Brett Porter - * @todo it may be better for artifact.getFile() to throw it - perhaps it is a runtime exception? - */ -public class DependencyResolutionRequiredException - extends Exception -{ - public DependencyResolutionRequiredException( Artifact artifact ) - { - super( "Attempted to access the artifact " + artifact + "; which has not yet been resolved" ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/InvalidRepositoryException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/InvalidRepositoryException.java deleted file mode 100644 index 62991f11..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/InvalidRepositoryException.java +++ /dev/null @@ -1,65 +0,0 @@ -package org.apache.maven.artifact; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.net.MalformedURLException; - -import org.codehaus.plexus.component.repository.exception.ComponentLookupException; - -/** - * Error constructing an artifact repository. - * - * @author Brett Porter - */ -public class InvalidRepositoryException - extends Exception -{ - private final String repositoryId; - - public InvalidRepositoryException( String message, String repositoryId, MalformedURLException cause ) - { - super( message, cause ); - this.repositoryId = repositoryId; - } - - protected InvalidRepositoryException( String message, String repositoryId, ComponentLookupException cause ) - { - super( message, cause ); - this.repositoryId = repositoryId; - } - - @Deprecated - public InvalidRepositoryException( String message, Throwable t ) - { - super( message, t ); - this.repositoryId = null; - } - - public InvalidRepositoryException( String message, String repositoryId ) - { - super( message ); - this.repositoryId = repositoryId; - } - - public String getRepositoryId() - { - return repositoryId; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/factory/ArtifactFactory.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/factory/ArtifactFactory.java deleted file mode 100644 index a16f64f6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/factory/ArtifactFactory.java +++ /dev/null @@ -1,59 +0,0 @@ -package org.apache.maven.artifact.factory; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.versioning.VersionRange; - -@Deprecated -public interface ArtifactFactory -{ - @Deprecated - String ROLE = ArtifactFactory.class.getName(); - - Artifact createArtifact( String groupId, String artifactId, String version, String scope, String type ); - - Artifact createArtifactWithClassifier( String groupId, String artifactId, String version, String type, - String classifier ); - - Artifact createDependencyArtifact( String groupId, String artifactId, VersionRange versionRange, String type, - String classifier, String scope ); - - Artifact createDependencyArtifact( String groupId, String artifactId, VersionRange versionRange, String type, - String classifier, String scope, boolean optional ); - - Artifact createDependencyArtifact( String groupId, String artifactId, VersionRange versionRange, String type, - String classifier, String scope, String inheritedScope ); - - Artifact createDependencyArtifact( String groupId, String artifactId, VersionRange versionRange, String type, - String classifier, String scope, String inheritedScope, boolean optional ); - - Artifact createBuildArtifact( String groupId, String artifactId, String version, String packaging ); - - Artifact createProjectArtifact( String groupId, String artifactId, String version ); - - Artifact createParentArtifact( String groupId, String artifactId, String version ); - - Artifact createPluginArtifact( String groupId, String artifactId, VersionRange versionRange ); - - Artifact createProjectArtifact( String groupId, String artifactId, String version, String scope ); - - Artifact createExtensionArtifact( String groupId, String artifactId, VersionRange versionRange ); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/factory/DefaultArtifactFactory.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/factory/DefaultArtifactFactory.java deleted file mode 100644 index dfcac019..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/factory/DefaultArtifactFactory.java +++ /dev/null @@ -1,160 +0,0 @@ -package org.apache.maven.artifact.factory; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.DefaultArtifact; -import org.apache.maven.artifact.handler.ArtifactHandler; -import org.apache.maven.artifact.handler.manager.ArtifactHandlerManager; -import org.apache.maven.artifact.versioning.VersionRange; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; - -@Component( role = ArtifactFactory.class ) -public class DefaultArtifactFactory - implements ArtifactFactory -{ - @Requirement - private ArtifactHandlerManager artifactHandlerManager; - - public Artifact createArtifact( String groupId, String artifactId, String version, String scope, String type ) - { - return createArtifact( groupId, artifactId, version, scope, type, null, null ); - } - - public Artifact createArtifactWithClassifier( String groupId, String artifactId, String version, String type, - String classifier ) - { - return createArtifact( groupId, artifactId, version, null, type, classifier, null ); - } - - public Artifact createDependencyArtifact( String groupId, String artifactId, VersionRange versionRange, - String type, String classifier, String scope ) - { - return createArtifact( groupId, artifactId, versionRange, type, classifier, scope, null ); - } - - public Artifact createDependencyArtifact( String groupId, String artifactId, VersionRange versionRange, - String type, String classifier, String scope, boolean optional ) - { - return createArtifact( groupId, artifactId, versionRange, type, classifier, scope, null, optional ); - } - - public Artifact createDependencyArtifact( String groupId, String artifactId, VersionRange versionRange, - String type, String classifier, String scope, String inheritedScope ) - { - return createArtifact( groupId, artifactId, versionRange, type, classifier, scope, inheritedScope ); - } - - public Artifact createDependencyArtifact( String groupId, String artifactId, VersionRange versionRange, - String type, String classifier, String scope, String inheritedScope, - boolean optional ) - { - return createArtifact( groupId, artifactId, versionRange, type, classifier, scope, inheritedScope, optional ); - } - - public Artifact createBuildArtifact( String groupId, String artifactId, String version, String packaging ) - { - return createArtifact( groupId, artifactId, version, null, packaging, null, null ); - } - - public Artifact createProjectArtifact( String groupId, String artifactId, String version ) - { - return createProjectArtifact( groupId, artifactId, version, null ); - } - - public Artifact createParentArtifact( String groupId, String artifactId, String version ) - { - return createProjectArtifact( groupId, artifactId, version ); - } - - public Artifact createPluginArtifact( String groupId, String artifactId, VersionRange versionRange ) - { - return createArtifact( groupId, artifactId, versionRange, "maven-plugin", null, Artifact.SCOPE_RUNTIME, null ); - } - - public Artifact createProjectArtifact( String groupId, String artifactId, String version, String scope ) - { - return createArtifact( groupId, artifactId, version, scope, "pom" ); - } - - public Artifact createExtensionArtifact( String groupId, String artifactId, VersionRange versionRange ) - { - return createArtifact( groupId, artifactId, versionRange, "jar", null, Artifact.SCOPE_RUNTIME, null ); - } - - private Artifact createArtifact( String groupId, String artifactId, String version, String scope, String type, - String classifier, String inheritedScope ) - { - VersionRange versionRange = null; - if ( version != null ) - { - versionRange = VersionRange.createFromVersion( version ); - } - return createArtifact( groupId, artifactId, versionRange, type, classifier, scope, inheritedScope ); - } - - private Artifact createArtifact( String groupId, String artifactId, VersionRange versionRange, String type, - String classifier, String scope, String inheritedScope ) - { - return createArtifact( groupId, artifactId, versionRange, type, classifier, scope, inheritedScope, false ); - } - - private Artifact createArtifact( String groupId, String artifactId, VersionRange versionRange, String type, - String classifier, String scope, String inheritedScope, boolean optional ) - { - String desiredScope = Artifact.SCOPE_RUNTIME; - - if ( inheritedScope == null ) - { - desiredScope = scope; - } - else if ( Artifact.SCOPE_TEST.equals( scope ) || Artifact.SCOPE_PROVIDED.equals( scope ) ) - { - return null; - } - else if ( Artifact.SCOPE_COMPILE.equals( scope ) && Artifact.SCOPE_COMPILE.equals( inheritedScope ) ) - { - // added to retain compile artifactScope. Remove if you want compile inherited as runtime - desiredScope = Artifact.SCOPE_COMPILE; - } - - if ( Artifact.SCOPE_TEST.equals( inheritedScope ) ) - { - desiredScope = Artifact.SCOPE_TEST; - } - - if ( Artifact.SCOPE_PROVIDED.equals( inheritedScope ) ) - { - desiredScope = Artifact.SCOPE_PROVIDED; - } - - if ( Artifact.SCOPE_SYSTEM.equals( scope ) ) - { - // system scopes come through unchanged... - desiredScope = Artifact.SCOPE_SYSTEM; - } - - ArtifactHandler handler = artifactHandlerManager.getArtifactHandler( type ); - - return new DefaultArtifact( groupId, artifactId, versionRange, desiredScope, type, classifier, handler, - optional ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/handler/DefaultArtifactHandler.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/handler/DefaultArtifactHandler.java deleted file mode 100644 index 628f38bc..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/handler/DefaultArtifactHandler.java +++ /dev/null @@ -1,134 +0,0 @@ -package org.apache.maven.artifact.handler; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.codehaus.plexus.component.annotations.Component; - -/** - * @author Brett Porter - * @author Jason van Zyl - */ -@Component( role = ArtifactHandler.class ) -public class DefaultArtifactHandler - implements ArtifactHandler -{ - private String extension; - - private String type; - - private String classifier; - - private String directory; - - private String packaging; - - private boolean includesDependencies; - - private String language; - - private boolean addedToClasspath; - - public DefaultArtifactHandler() - { - } - - public DefaultArtifactHandler( String type ) - { - this.type = type; - } - - public String getExtension() - { - if ( extension == null ) - { - extension = type; - } - return extension; - } - - public void setExtension( String extension ) - { - this.extension = extension; - } - - public String getType() - { - return type; - } - - public String getClassifier() - { - return classifier; - } - - public String getDirectory() - { - if ( directory == null ) - { - directory = getPackaging() + "s"; - } - return directory; - } - - public String getPackaging() - { - if ( packaging == null ) - { - packaging = type; - } - return packaging; - } - - public boolean isIncludesDependencies() - { - return includesDependencies; - } - - public void setIncludesDependencies( boolean includesDependencies ) - { - this.includesDependencies = includesDependencies; - } - - public String getLanguage() - { - if ( language == null ) - { - language = "none"; - } - - return language; - } - - public void setLanguage( String language ) - { - this.language = language; - } - - public boolean isAddedToClasspath() - { - return addedToClasspath; - } - - public void setAddedToClasspath( boolean addedToClasspath ) - { - this.addedToClasspath = addedToClasspath; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/ArtifactHandlerManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/ArtifactHandlerManager.java deleted file mode 100644 index cada9e93..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/ArtifactHandlerManager.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.apache.maven.artifact.handler.manager; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Map; - -import org.apache.maven.artifact.handler.ArtifactHandler; - -/** - * @author Jason van Zyl - */ -public interface ArtifactHandlerManager -{ - String ROLE = ArtifactHandlerManager.class.getName(); - - ArtifactHandler getArtifactHandler( String type ); - - @Deprecated - void addHandlers( Map handlers ); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java deleted file mode 100644 index 6be636b0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java +++ /dev/null @@ -1,73 +0,0 @@ -package org.apache.maven.artifact.handler.manager; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Map; -import java.util.Set; -import java.util.concurrent.ConcurrentHashMap; - -import org.apache.maven.artifact.handler.ArtifactHandler; -import org.apache.maven.artifact.handler.DefaultArtifactHandler; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; - -/** - * @author Jason van Zyl - */ -@Component( role = ArtifactHandlerManager.class ) -public class DefaultArtifactHandlerManager - implements ArtifactHandlerManager -{ - - @Requirement( role = ArtifactHandler.class ) - private Map artifactHandlers; - - private Map unmanagedHandlers = new ConcurrentHashMap(); - - public ArtifactHandler getArtifactHandler( String type ) - { - ArtifactHandler handler = unmanagedHandlers.get( type ); - - if ( handler == null ) - { - handler = artifactHandlers.get( type ); - - if ( handler == null ) - { - handler = new DefaultArtifactHandler( type ); - } - } - - return handler; - } - - public void addHandlers( Map handlers ) - { - // legacy support for maven-gpg-plugin:1.0 - unmanagedHandlers.putAll( handlers ); - } - - @Deprecated - public Set getHandlerTypes() - { - return artifactHandlers.keySet(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/metadata/AbstractArtifactMetadata.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/metadata/AbstractArtifactMetadata.java deleted file mode 100644 index 5ef3a980..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/metadata/AbstractArtifactMetadata.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.apache.maven.artifact.metadata; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.Artifact; - -@Deprecated -public abstract class AbstractArtifactMetadata - extends org.apache.maven.repository.legacy.metadata.AbstractArtifactMetadata - implements org.apache.maven.artifact.metadata.ArtifactMetadata -{ - protected AbstractArtifactMetadata( Artifact artifact ) - { - super( artifact ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/metadata/ArtifactMetadataRetrievalException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/metadata/ArtifactMetadataRetrievalException.java deleted file mode 100644 index e419ef9e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/metadata/ArtifactMetadataRetrievalException.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.apache.maven.artifact.metadata; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.Artifact; - -@Deprecated -public class ArtifactMetadataRetrievalException - extends org.apache.maven.repository.legacy.metadata.ArtifactMetadataRetrievalException -{ - - /** @deprecated use {@link #ArtifactMetadataRetrievalException(String, Throwable, Artifact)} */ - @Deprecated - public ArtifactMetadataRetrievalException( String message ) - { - super( message, null, null ); - } - - /** @deprecated use {@link #ArtifactMetadataRetrievalException(String, Throwable, Artifact)} */ - @Deprecated - public ArtifactMetadataRetrievalException( Throwable cause ) - { - super( null, cause, null ); - } - - /** @deprecated use {@link #ArtifactMetadataRetrievalException(String, Throwable, Artifact)} */ - @Deprecated - public ArtifactMetadataRetrievalException( String message, - Throwable cause ) - { - super( message, cause, null ); - } - - public ArtifactMetadataRetrievalException( String message, Throwable cause, Artifact artifact ) - { - super( message, cause, artifact ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/metadata/ArtifactMetadataSource.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/metadata/ArtifactMetadataSource.java deleted file mode 100644 index ccd58363..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/metadata/ArtifactMetadataSource.java +++ /dev/null @@ -1,52 +0,0 @@ -package org.apache.maven.artifact.metadata; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.versioning.ArtifactVersion; -import org.apache.maven.repository.legacy.metadata.MetadataResolutionRequest; - -@Deprecated -public interface ArtifactMetadataSource - extends org.apache.maven.repository.legacy.metadata.ArtifactMetadataSource -{ - - ResolutionGroup retrieve( MetadataResolutionRequest request ) - throws ArtifactMetadataRetrievalException; - - ResolutionGroup retrieve( Artifact artifact, ArtifactRepository localRepository, - List remoteRepositories ) - throws ArtifactMetadataRetrievalException; - - List retrieveAvailableVersions( MetadataResolutionRequest request ) - throws ArtifactMetadataRetrievalException; - - List retrieveAvailableVersions( Artifact artifact, ArtifactRepository localRepository, - List remoteRepositories ) - throws ArtifactMetadataRetrievalException; - - List retrieveAvailableVersionsFromDeploymentRepository( Artifact artifact, - ArtifactRepository localRepository, - ArtifactRepository remoteRepository ) - throws ArtifactMetadataRetrievalException; -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/metadata/ResolutionGroup.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/metadata/ResolutionGroup.java deleted file mode 100644 index c219b24e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/metadata/ResolutionGroup.java +++ /dev/null @@ -1,46 +0,0 @@ -package org.apache.maven.artifact.metadata; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; -import java.util.Map; -import java.util.Set; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.repository.ArtifactRepository; - -@Deprecated -public class ResolutionGroup - extends org.apache.maven.repository.legacy.metadata.ResolutionGroup -{ - - public ResolutionGroup( Artifact pomArtifact, Set artifacts, - List resolutionRepositories ) - { - super( pomArtifact, artifacts, resolutionRepositories ); - } - - public ResolutionGroup( Artifact pomArtifact, Artifact relocatedArtifact, Set artifacts, - Map managedVersions, List resolutionRepositories ) - { - super( pomArtifact, relocatedArtifact, artifacts, managedVersions, resolutionRepositories ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/DefaultRepositoryRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/DefaultRepositoryRequest.java deleted file mode 100644 index 6b18789d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/DefaultRepositoryRequest.java +++ /dev/null @@ -1,134 +0,0 @@ -package org.apache.maven.artifact.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.List; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.project.MavenProject; - -/** - * Collects basic settings to access the repository system. - * - * @author Benjamin Bentmann - */ -public class DefaultRepositoryRequest - implements RepositoryRequest -{ - - private boolean offline; - - private boolean forceUpdate; - - private ArtifactRepository localRepository; - - private List remoteRepositories; - - /** - * Creates an empty repository request. - */ - public DefaultRepositoryRequest() - { - // enables no-arg constructor - } - - /** - * Creates a shallow copy of the specified repository request. - * - * @param repositoryRequest The repository request to copy from, must not be {@code null}. - */ - public DefaultRepositoryRequest( RepositoryRequest repositoryRequest ) - { - setLocalRepository( repositoryRequest.getLocalRepository() ); - setRemoteRepositories( repositoryRequest.getRemoteRepositories() ); - setOffline( repositoryRequest.isOffline() ); - setForceUpdate( repositoryRequest.isForceUpdate() ); - } - - public static RepositoryRequest getRepositoryRequest( MavenSession session, MavenProject project ) - { - RepositoryRequest request = new DefaultRepositoryRequest(); - - request.setLocalRepository( session.getLocalRepository() ); - if ( project != null ) - { - request.setRemoteRepositories( project.getPluginArtifactRepositories() ); - } - request.setOffline( session.isOffline() ); - request.setForceUpdate( session.getRequest().isUpdateSnapshots() ); - - return request; - } - - public boolean isOffline() - { - return offline; - } - - public DefaultRepositoryRequest setOffline( boolean offline ) - { - this.offline = offline; - - return this; - } - - public boolean isForceUpdate() - { - return forceUpdate; - } - - public DefaultRepositoryRequest setForceUpdate( boolean forceUpdate ) - { - this.forceUpdate = forceUpdate; - - return this; - } - - public ArtifactRepository getLocalRepository() - { - return localRepository; - } - - public DefaultRepositoryRequest setLocalRepository( ArtifactRepository localRepository ) - { - this.localRepository = localRepository; - - return this; - } - - public List getRemoteRepositories() - { - if ( remoteRepositories == null ) - { - remoteRepositories = new ArrayList(); - } - - return remoteRepositories; - } - - public DefaultRepositoryRequest setRemoteRepositories( List remoteRepositories ) - { - this.remoteRepositories = remoteRepositories; - - return this; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java deleted file mode 100644 index f56fb459..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java +++ /dev/null @@ -1,435 +0,0 @@ -package org.apache.maven.artifact.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.Collections; -import java.util.List; - -import org.apache.maven.RepositoryUtils; -import org.apache.maven.artifact.metadata.ArtifactMetadata; -import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout; -import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout; -import org.apache.maven.artifact.repository.metadata.RepositoryMetadataStoreException; -import org.apache.maven.repository.Proxy; -import org.eclipse.aether.DefaultRepositorySystemSession; -import org.eclipse.aether.RepositorySystem; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.artifact.Artifact; -import org.eclipse.aether.metadata.Metadata; -import org.eclipse.aether.repository.LocalArtifactRegistration; -import org.eclipse.aether.repository.LocalArtifactRequest; -import org.eclipse.aether.repository.LocalArtifactResult; -import org.eclipse.aether.repository.LocalMetadataRegistration; -import org.eclipse.aether.repository.LocalMetadataRequest; -import org.eclipse.aether.repository.LocalMetadataResult; -import org.eclipse.aether.repository.LocalRepository; -import org.eclipse.aether.repository.LocalRepositoryManager; -import org.eclipse.aether.repository.RemoteRepository; - -/** - * Warning: This is an internal utility class that is only public for technical reasons, it is not part - * of the public API. In particular, this class can be changed or deleted without prior notice. - * - * @author Benjamin Bentmann - */ -public class LegacyLocalRepositoryManager - implements LocalRepositoryManager -{ - - private final ArtifactRepository delegate; - - private final LocalRepository repo; - - private final boolean realLocalRepo; - - public static RepositorySystemSession overlay( ArtifactRepository repository, RepositorySystemSession session, - RepositorySystem system ) - { - if ( repository == null || repository.getBasedir() == null ) - { - return session; - } - - if ( session != null ) - { - LocalRepositoryManager lrm = session.getLocalRepositoryManager(); - if ( lrm != null && lrm.getRepository().getBasedir().equals( new File( repository.getBasedir() ) ) ) - { - return session; - } - } - else - { - session = new DefaultRepositorySystemSession(); - } - - final LocalRepositoryManager llrm = new LegacyLocalRepositoryManager( repository ); - - return new DefaultRepositorySystemSession( session ).setLocalRepositoryManager( llrm ); - } - - private LegacyLocalRepositoryManager( ArtifactRepository delegate ) - { - if ( delegate == null ) - { - throw new IllegalArgumentException( "local repository delegate missing" ); - } - this.delegate = delegate; - - ArtifactRepositoryLayout layout = delegate.getLayout(); - repo = - new LocalRepository( new File( delegate.getBasedir() ), - ( layout != null ) ? layout.getClass().getSimpleName() : "legacy" ); - - /* - * NOTE: "invoker:install" vs "appassembler:assemble": Both mojos use the artifact installer to put an artifact - * into a repository. In the first case, the result needs to be a proper local repository that one can use for - * local artifact resolution. In the second case, the result needs to precisely obey the path information of the - * repository's layout to allow pointing at artifacts within the repository. Unfortunately, - * DefaultRepositoryLayout does not correctly describe the layout of a local repository which unlike a remote - * repository never uses timestamps in the filename of a snapshot artifact. The discrepancy gets notable when a - * remotely resolved snapshot artifact gets passed into pathOf(). So producing a proper local artifact path - * using DefaultRepositoryLayout requires us to enforce usage of the artifact's base version. This - * transformation however contradicts the other use case of precisely obeying the repository's layout. The below - * flag tries to detect which use case applies to make both plugins happy. - */ - realLocalRepo = ( layout instanceof DefaultRepositoryLayout ) && "local".equals( delegate.getId() ); - } - - public LocalRepository getRepository() - { - return repo; - } - - public String getPathForLocalArtifact( Artifact artifact ) - { - if ( realLocalRepo ) - { - return delegate.pathOf( RepositoryUtils.toArtifact( artifact.setVersion( artifact.getBaseVersion() ) ) ); - } - return delegate.pathOf( RepositoryUtils.toArtifact( artifact ) ); - } - - public String getPathForRemoteArtifact( Artifact artifact, RemoteRepository repository, String context ) - { - return delegate.pathOf( RepositoryUtils.toArtifact( artifact ) ); - } - - public String getPathForLocalMetadata( Metadata metadata ) - { - return delegate.pathOfLocalRepositoryMetadata( new ArtifactMetadataAdapter( metadata ), delegate ); - } - - public String getPathForRemoteMetadata( Metadata metadata, RemoteRepository repository, String context ) - { - return delegate.pathOfLocalRepositoryMetadata( new ArtifactMetadataAdapter( metadata ), - new ArtifactRepositoryAdapter( repository ) ); - } - - public LocalArtifactResult find( RepositorySystemSession session, LocalArtifactRequest request ) - { - String path = getPathForLocalArtifact( request.getArtifact() ); - File file = new File( getRepository().getBasedir(), path ); - - LocalArtifactResult result = new LocalArtifactResult( request ); - if ( file.isFile() ) - { - result.setFile( file ); - result.setAvailable( true ); - } - - return result; - } - - public LocalMetadataResult find( RepositorySystemSession session, LocalMetadataRequest request ) - { - Metadata metadata = request.getMetadata(); - - String path; - if ( request.getRepository() == null ) - { - path = getPathForLocalMetadata( metadata ); - } - else - { - path = getPathForRemoteMetadata( metadata, request.getRepository(), request.getContext() ); - } - - File file = new File( getRepository().getBasedir(), path ); - - LocalMetadataResult result = new LocalMetadataResult( request ); - if ( file.isFile() ) - { - result.setFile( file ); - } - - return result; - } - - public void add( RepositorySystemSession session, LocalArtifactRegistration request ) - { - // noop - } - - public void add( RepositorySystemSession session, LocalMetadataRegistration request ) - { - // noop - } - - static class ArtifactMetadataAdapter - implements ArtifactMetadata - { - - private final Metadata metadata; - - public ArtifactMetadataAdapter( Metadata metadata ) - { - this.metadata = metadata; - } - - public boolean storedInArtifactVersionDirectory() - { - return metadata.getVersion().length() > 0; - } - - public boolean storedInGroupDirectory() - { - return metadata.getArtifactId().length() <= 0; - } - - public String getGroupId() - { - return nullify( metadata.getGroupId() ); - } - - public String getArtifactId() - { - return nullify( metadata.getArtifactId() ); - } - - public String getBaseVersion() - { - return nullify( metadata.getVersion() ); - } - - private String nullify( String str ) - { - return ( str == null || str.length() <= 0 ) ? null : str; - } - - public Object getKey() - { - return metadata.toString(); - } - - public String getRemoteFilename() - { - return metadata.getType(); - } - - public String getLocalFilename( ArtifactRepository repository ) - { - return insertRepositoryKey( getRemoteFilename(), repository.getKey() ); - } - - private String insertRepositoryKey( String filename, String repositoryKey ) - { - String result; - int idx = filename.indexOf( '.' ); - if ( idx < 0 ) - { - result = filename + '-' + repositoryKey; - } - else - { - result = filename.substring( 0, idx ) + '-' + repositoryKey + filename.substring( idx ); - } - return result; - } - - public void merge( org.apache.maven.repository.legacy.metadata.ArtifactMetadata metadata ) - { - // not used - } - - public void merge( ArtifactMetadata metadata ) - { - // not used - } - - public void storeInLocalRepository( ArtifactRepository localRepository, ArtifactRepository remoteRepository ) - throws RepositoryMetadataStoreException - { - // not used - } - - public String extendedToString() - { - return metadata.toString(); - } - - } - - static class ArtifactRepositoryAdapter - implements ArtifactRepository - { - - private final RemoteRepository repository; - - public ArtifactRepositoryAdapter( RemoteRepository repository ) - { - this.repository = repository; - } - - public String pathOf( org.apache.maven.artifact.Artifact artifact ) - { - return null; - } - - public String pathOfRemoteRepositoryMetadata( ArtifactMetadata artifactMetadata ) - { - return null; - } - - public String pathOfLocalRepositoryMetadata( ArtifactMetadata metadata, ArtifactRepository repository ) - { - return null; - } - - public String getUrl() - { - return repository.getUrl(); - } - - public void setUrl( String url ) - { - } - - public String getBasedir() - { - return null; - } - - public String getProtocol() - { - return repository.getProtocol(); - } - - public String getId() - { - return repository.getId(); - } - - public void setId( String id ) - { - } - - public ArtifactRepositoryPolicy getSnapshots() - { - return null; - } - - public void setSnapshotUpdatePolicy( ArtifactRepositoryPolicy policy ) - { - } - - public ArtifactRepositoryPolicy getReleases() - { - return null; - } - - public void setReleaseUpdatePolicy( ArtifactRepositoryPolicy policy ) - { - } - - public ArtifactRepositoryLayout getLayout() - { - return null; - } - - public void setLayout( ArtifactRepositoryLayout layout ) - { - } - - public String getKey() - { - return getId(); - } - - public boolean isUniqueVersion() - { - return true; - } - - public boolean isBlacklisted() - { - return false; - } - - public void setBlacklisted( boolean blackListed ) - { - } - - public org.apache.maven.artifact.Artifact find( org.apache.maven.artifact.Artifact artifact ) - { - return null; - } - - public List findVersions( org.apache.maven.artifact.Artifact artifact ) - { - return Collections.emptyList(); - } - - public boolean isProjectAware() - { - return false; - } - - public void setAuthentication( Authentication authentication ) - { - } - - public Authentication getAuthentication() - { - return null; - } - - public void setProxy( Proxy proxy ) - { - } - - public Proxy getProxy() - { - return null; - } - - public List getMirroredRepositories() - { - return Collections.emptyList(); - } - - public void setMirroredRepositories( List mirroredRepositories ) - { - } - - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/MavenArtifactRepository.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/MavenArtifactRepository.java deleted file mode 100644 index 8e45b203..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/MavenArtifactRepository.java +++ /dev/null @@ -1,412 +0,0 @@ -package org.apache.maven.artifact.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.Collections; -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.metadata.ArtifactMetadata; -import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout; -import org.apache.maven.repository.Proxy; - -//TODO: completely separate local and remote artifact repositories -public class MavenArtifactRepository - implements ArtifactRepository -{ - private String id; - - private String url; - - private String basedir; - - private String protocol; - - private ArtifactRepositoryLayout layout; - - private ArtifactRepositoryPolicy snapshots; - - private ArtifactRepositoryPolicy releases; - - private Authentication authentication; - - private Proxy proxy; - - private List mirroredRepositories = Collections.emptyList(); - - public MavenArtifactRepository() - { - } - - /** - * Create a remote download repository. - * - * @param id the unique identifier of the repository - * @param url the URL of the repository - * @param layout the layout of the repository - * @param snapshots the policies to use for snapshots - * @param releases the policies to use for releases - */ - public MavenArtifactRepository( String id, String url, ArtifactRepositoryLayout layout, - ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases ) - { - this.id = id; - this.url = url; - this.layout = layout; - this.snapshots = snapshots; - this.releases = releases; - // - // Derive these from the URL - // - this.protocol = protocol( url ); - this.basedir = basedir( url ); - } - - public String pathOf( Artifact artifact ) - { - return layout.pathOf( artifact ); - } - - public String pathOfRemoteRepositoryMetadata( ArtifactMetadata artifactMetadata ) - { - return layout.pathOfRemoteRepositoryMetadata( artifactMetadata ); - } - - public String pathOfLocalRepositoryMetadata( ArtifactMetadata metadata, ArtifactRepository repository ) - { - return layout.pathOfLocalRepositoryMetadata( metadata, repository ); - } - - public void setLayout( ArtifactRepositoryLayout layout ) - { - this.layout = layout; - } - - public ArtifactRepositoryLayout getLayout() - { - return layout; - } - - public void setSnapshotUpdatePolicy( ArtifactRepositoryPolicy snapshots ) - { - this.snapshots = snapshots; - } - - public ArtifactRepositoryPolicy getSnapshots() - { - return snapshots; - } - - public void setReleaseUpdatePolicy( ArtifactRepositoryPolicy releases ) - { - this.releases = releases; - } - - public ArtifactRepositoryPolicy getReleases() - { - return releases; - } - - public String getKey() - { - return getId(); - } - - public String toString() - { - StringBuilder sb = new StringBuilder(); - - sb.append( " id: " ).append( getId() ).append( "\n" ); - sb.append( " url: " ).append( getUrl() ).append( "\n" ); - sb.append( " layout: " ).append( layout != null ? layout : "none" ).append( "\n" ); - - if ( proxy != null ) - { - sb.append( " proxy: " ).append( proxy.getHost() ).append( ":" ).append( proxy.getPort() ).append( "\n" ); - } - - if ( snapshots != null ) - { - sb.append( "snapshots: [enabled => " ).append( snapshots.isEnabled() ); - sb.append( ", update => " ).append( snapshots.getUpdatePolicy() ).append( "]\n" ); - } - - if ( releases != null ) - { - sb.append( " releases: [enabled => " ).append( releases.isEnabled() ); - sb.append( ", update => " ).append( releases.getUpdatePolicy() ).append( "]\n" ); - } - - return sb.toString(); - } - - public Artifact find( Artifact artifact ) - { - File artifactFile = new File( getBasedir(), pathOf( artifact ) ); - - // We need to set the file here or the resolver will fail with an NPE, not fully equipped to deal - // with multiple local repository implementations yet. - artifact.setFile( artifactFile ); - - return artifact; - } - - public List findVersions( Artifact artifact ) - { - return Collections.emptyList(); - } - - public String getId() - { - return id; - } - - public String getUrl() - { - return url; - } - - public String getBasedir() - { - return basedir; - } - - public String getProtocol() - { - return protocol; - } - - public void setId( String id ) - { - this.id = id; - } - - public void setUrl( String url ) - { - this.url = url; - - this.protocol = protocol( url ); - this.basedir = basedir( url ); - } - - // Path Utils - - /** - * Return the protocol name. - *
- * E.g: for input - * http://www.codehause.org this method will return http - * - * @param url the url - * @return the host name - */ - private static String protocol( final String url ) - { - final int pos = url.indexOf( ":" ); - - if ( pos == -1 ) - { - return ""; - } - return url.substring( 0, pos ).trim(); - } - - /** - * Derive the path portion of the given URL. - * - * @param url the repository URL - * @return the basedir of the repository - * @todo need to URL decode for spaces? - */ - private String basedir( String url ) - { - String retValue = null; - - if ( protocol.equalsIgnoreCase( "file" ) ) - { - retValue = url.substring( protocol.length() + 1 ); - retValue = decode( retValue ); - // special case: if omitted // on protocol, keep path as is - if ( retValue.startsWith( "//" ) ) - { - retValue = retValue.substring( 2 ); - - if ( retValue.length() >= 2 && ( retValue.charAt( 1 ) == '|' || retValue.charAt( 1 ) == ':' ) ) - { - // special case: if there is a windows drive letter, then keep the original return value - retValue = retValue.charAt( 0 ) + ":" + retValue.substring( 2 ); - } - else - { - // Now we expect the host - int index = retValue.indexOf( "/" ); - if ( index >= 0 ) - { - retValue = retValue.substring( index + 1 ); - } - - // special case: if there is a windows drive letter, then keep the original return value - if ( retValue.length() >= 2 && ( retValue.charAt( 1 ) == '|' || retValue.charAt( 1 ) == ':' ) ) - { - retValue = retValue.charAt( 0 ) + ":" + retValue.substring( 2 ); - } - else if ( index >= 0 ) - { - // leading / was previously stripped - retValue = "/" + retValue; - } - } - } - - // special case: if there is a windows drive letter using |, switch to : - if ( retValue.length() >= 2 && retValue.charAt( 1 ) == '|' ) - { - retValue = retValue.charAt( 0 ) + ":" + retValue.substring( 2 ); - } - - // normalize separators - retValue = new File( retValue ).getPath(); - } - - if ( retValue == null ) - { - retValue = "/"; - } - return retValue.trim(); - } - - /** - * Decodes the specified (portion of a) URL. Note: This decoder assumes that ISO-8859-1 is used to - * convert URL-encoded bytes to characters. - * - * @param url The URL to decode, may be null. - * @return The decoded URL or null if the input was null. - */ - private static String decode( String url ) - { - String decoded = url; - if ( url != null ) - { - int pos = -1; - while ( ( pos = decoded.indexOf( '%', pos + 1 ) ) >= 0 ) - { - if ( pos + 2 < decoded.length() ) - { - String hexStr = decoded.substring( pos + 1, pos + 3 ); - char ch = (char) Integer.parseInt( hexStr, 16 ); - decoded = decoded.substring( 0, pos ) + ch + decoded.substring( pos + 3 ); - } - } - } - return decoded; - } - - public int hashCode() - { - final int prime = 31; - int result = 1; - result = prime * result + ( ( getId() == null ) ? 0 : getId().hashCode() ); - return result; - } - - public boolean equals( Object obj ) - { - if ( this == obj ) - { - return true; - } - if ( obj == null ) - { - return false; - } - if ( getClass() != obj.getClass() ) - { - return false; - } - - ArtifactRepository other = (ArtifactRepository) obj; - - return eq( getId(), other.getId() ); - } - - protected static boolean eq( T s1, T s2 ) - { - return s1 != null ? s1.equals( s2 ) : s2 == null; - } - - public Authentication getAuthentication() - { - return authentication; - } - - public void setAuthentication( Authentication authentication ) - { - this.authentication = authentication; - } - - public Proxy getProxy() - { - return proxy; - } - - public void setProxy( Proxy proxy ) - { - this.proxy = proxy; - } - - public boolean isBlacklisted() - { - return false; - } - - public void setBlacklisted( boolean blackListed ) - { - // no op - } - - public boolean isUniqueVersion() - { - return true; - } - - public boolean isProjectAware() - { - return false; - } - - public List getMirroredRepositories() - { - return mirroredRepositories; - } - - public void setMirroredRepositories( List mirroredRepositories ) - { - if ( mirroredRepositories != null ) - { - this.mirroredRepositories = mirroredRepositories; - } - else - { - this.mirroredRepositories = Collections.emptyList(); - } - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/RepositoryCache.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/RepositoryCache.java deleted file mode 100644 index bf79d698..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/RepositoryCache.java +++ /dev/null @@ -1,58 +0,0 @@ -package org.apache.maven.artifact.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Caches auxiliary data used during repository access like already processed metadata. The data in the cache is meant - * for exclusive consumption by the repository system and is opaque to the cache implementation. - * - * @author Benjamin Bentmann - */ -@Deprecated -// -// Used by Tycho and will break users and force them to upgrade to Maven 3.1 so we should really leave -// this here, possibly indefinitely. -// -public interface RepositoryCache -{ - - /** - * Puts the specified data into the cache. Warning: The cache will directly save the provided - * reference. If the cached data is mutable, i.e. could be modified after being put into the cache, the caller is - * responsible for creating a copy of the original data and store the copy in the cache. - * - * @param request The repository request from which this cache was retrieved, must not be {@code null}. - * @param key The key to use associate the data with, must not be {@code null}. - * @param data The data to store in the cache, may be {@code null}. - */ - void put( RepositoryRequest request, Object key, Object data ); - - /** - * Gets the specified data from the cache. Warning: The cache will directly return the saved - * reference. If the cached data is to be modified after its retrieval, the caller is responsible to create a copy - * of the returned data and use this instead of the cache record. - * - * @param request The repository request from which this cache was retrieved, must not be {@code null}. - * @param key The key to use for lookup of the data, must not be {@code null}. - * @return The requested data or {@code null} if none was present in the cache. - */ - Object get( RepositoryRequest request, Object key ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/RepositoryRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/RepositoryRequest.java deleted file mode 100644 index 55f60686..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/RepositoryRequest.java +++ /dev/null @@ -1,95 +0,0 @@ -package org.apache.maven.artifact.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -/** - * Collects basic settings to access the repository system. - * - * @author Benjamin Bentmann - */ -public interface RepositoryRequest -{ - - /** - * Indicates whether network access to remote repositories has been disabled. - * - * @return {@code true} if remote access has been disabled, {@code false} otherwise. - */ - boolean isOffline(); - - /** - * Enables/disables network access to remote repositories. - * - * @param offline {@code true} to disable remote access, {@code false} to allow network access. - * @return This request, never {@code null}. - */ - RepositoryRequest setOffline( boolean offline ); - - /** - * Indicates whether remote repositories should be re-checked for updated artifacts/metadata regardless of their - * configured update policy. - * - * @return {@code true} if remote repositories should be re-checked for updated artifacts/metadata, {@code false} - * otherwise. - */ - boolean isForceUpdate(); - - /** - * Enables/disabled forced checks for updated artifacts/metadata on remote repositories. - * - * @param forceUpdate {@code true} to forcibly check the remote repositories for updated artifacts/metadata, {@code - * false} to use the update policy configured on each repository. - * @return This request, never {@code null}. - */ - RepositoryRequest setForceUpdate( boolean forceUpdate ); - - /** - * Gets the local repository to use. - * - * @return The local repository to use or {@code null} if not set. - */ - ArtifactRepository getLocalRepository(); - - /** - * Sets the local repository to use. - * - * @param localRepository The local repository to use. - * @return This request, never {@code null}. - */ - RepositoryRequest setLocalRepository( ArtifactRepository localRepository ); - - /** - * Gets the remote repositories to use. - * - * @return The remote repositories to use, never {@code null}. - */ - List getRemoteRepositories(); - - /** - * Sets the remote repositories to use. - * - * @param remoteRepositories The remote repositories to use. - * @return This request, never {@code null}. - */ - RepositoryRequest setRemoteRepositories( List remoteRepositories ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/layout/DefaultRepositoryLayout.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/layout/DefaultRepositoryLayout.java deleted file mode 100644 index 70c0b14c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/layout/DefaultRepositoryLayout.java +++ /dev/null @@ -1,112 +0,0 @@ -package org.apache.maven.artifact.repository.layout; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.handler.ArtifactHandler; -import org.apache.maven.artifact.metadata.ArtifactMetadata; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.codehaus.plexus.component.annotations.Component; - -/** - * @author jdcasey - */ -@Component( role = ArtifactRepositoryLayout.class, hint = "default" ) -public class DefaultRepositoryLayout - implements ArtifactRepositoryLayout -{ - private static final char PATH_SEPARATOR = '/'; - - private static final char GROUP_SEPARATOR = '.'; - - private static final char ARTIFACT_SEPARATOR = '-'; - - public String getId() - { - return "default"; - } - - public String pathOf( Artifact artifact ) - { - ArtifactHandler artifactHandler = artifact.getArtifactHandler(); - - StringBuilder path = new StringBuilder( 128 ); - - path.append( formatAsDirectory( artifact.getGroupId() ) ).append( PATH_SEPARATOR ); - path.append( artifact.getArtifactId() ).append( PATH_SEPARATOR ); - path.append( artifact.getBaseVersion() ).append( PATH_SEPARATOR ); - path.append( artifact.getArtifactId() ).append( ARTIFACT_SEPARATOR ).append( artifact.getVersion() ); - - if ( artifact.hasClassifier() ) - { - path.append( ARTIFACT_SEPARATOR ).append( artifact.getClassifier() ); - } - - if ( artifactHandler.getExtension() != null && artifactHandler.getExtension().length() > 0 ) - { - path.append( GROUP_SEPARATOR ).append( artifactHandler.getExtension() ); - } - - return path.toString(); - } - - public String pathOfLocalRepositoryMetadata( ArtifactMetadata metadata, ArtifactRepository repository ) - { - return pathOfRepositoryMetadata( metadata, metadata.getLocalFilename( repository ) ); - } - - private String pathOfRepositoryMetadata( ArtifactMetadata metadata, - String filename ) - { - StringBuilder path = new StringBuilder( 128 ); - - path.append( formatAsDirectory( metadata.getGroupId() ) ).append( PATH_SEPARATOR ); - if ( !metadata.storedInGroupDirectory() ) - { - path.append( metadata.getArtifactId() ).append( PATH_SEPARATOR ); - - if ( metadata.storedInArtifactVersionDirectory() ) - { - path.append( metadata.getBaseVersion() ).append( PATH_SEPARATOR ); - } - } - - path.append( filename ); - - return path.toString(); - } - - public String pathOfRemoteRepositoryMetadata( ArtifactMetadata metadata ) - { - return pathOfRepositoryMetadata( metadata, metadata.getRemoteFilename() ); - } - - private String formatAsDirectory( String directory ) - { - return directory.replace( GROUP_SEPARATOR, PATH_SEPARATOR ); - } - - @Override - public String toString() - { - return getId(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadata.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadata.java deleted file mode 100644 index e1e5fe3f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadata.java +++ /dev/null @@ -1,255 +0,0 @@ -package org.apache.maven.artifact.repository.metadata; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.IOException; -import java.io.Reader; -import java.io.Writer; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.metadata.ArtifactMetadata; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy; -import org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader; -import org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Writer; -import org.codehaus.plexus.util.IOUtil; -import org.codehaus.plexus.util.ReaderFactory; -import org.codehaus.plexus.util.WriterFactory; -import org.codehaus.plexus.util.xml.pull.XmlPullParserException; - -/** - * Shared methods of the repository metadata handling. - * - * @author Brett Porter - */ -public abstract class AbstractRepositoryMetadata - implements RepositoryMetadata -{ - private Metadata metadata; - - protected AbstractRepositoryMetadata( Metadata metadata ) - { - this.metadata = metadata; - } - - public String getRemoteFilename() - { - return "maven-metadata.xml"; - } - - public String getLocalFilename( ArtifactRepository repository ) - { - return "maven-metadata-" + repository.getKey() + ".xml"; - } - - public void storeInLocalRepository( ArtifactRepository localRepository, - ArtifactRepository remoteRepository ) - throws RepositoryMetadataStoreException - { - try - { - updateRepositoryMetadata( localRepository, remoteRepository ); - } - catch ( IOException e ) - { - throw new RepositoryMetadataStoreException( "Error updating group repository metadata", e ); - } - catch ( XmlPullParserException e ) - { - throw new RepositoryMetadataStoreException( "Error updating group repository metadata", e ); - } - } - - protected void updateRepositoryMetadata( ArtifactRepository localRepository, - ArtifactRepository remoteRepository ) - throws IOException, XmlPullParserException - { - MetadataXpp3Reader mappingReader = new MetadataXpp3Reader(); - - Metadata metadata = null; - - File metadataFile = new File( localRepository.getBasedir(), - localRepository.pathOfLocalRepositoryMetadata( this, remoteRepository ) ); - - if ( metadataFile.length() == 0 ) - { - if ( !metadataFile.delete() ) - { - // sleep for 10ms just in case this is windows holding a file lock - try - { - Thread.sleep( 10 ); - } - catch ( InterruptedException e ) - { - // ignore - } - metadataFile.delete(); // if this fails, forget about it, we'll try to overwrite it anyway so no need - // to delete on exit - } - } - else if ( metadataFile.exists() ) - { - Reader reader = null; - - try - { - reader = ReaderFactory.newXmlReader( metadataFile ); - - metadata = mappingReader.read( reader, false ); - } - finally - { - IOUtil.close( reader ); - } - } - - boolean changed; - - // If file could not be found or was not valid, start from scratch - if ( metadata == null ) - { - metadata = this.metadata; - - changed = true; - } - else - { - changed = metadata.merge( this.metadata ); - } - - // beware meta-versions! - String version = metadata.getVersion(); - if ( version != null && ( Artifact.LATEST_VERSION.equals( version ) || Artifact.RELEASE_VERSION.equals( - version ) ) ) - { - // meta-versions are not valid values...don't write them. - metadata.setVersion( null ); - } - - if ( changed || !metadataFile.exists() ) - { - Writer writer = null; - try - { - metadataFile.getParentFile().mkdirs(); - writer = WriterFactory.newXmlWriter( metadataFile ); - - MetadataXpp3Writer mappingWriter = new MetadataXpp3Writer(); - - mappingWriter.write( writer, metadata ); - } - finally - { - IOUtil.close( writer ); - } - } - else - { - metadataFile.setLastModified( System.currentTimeMillis() ); - } - } - - public String toString() - { - return "repository metadata for: \'" + getKey() + "\'"; - } - - protected static Metadata createMetadata( Artifact artifact, - Versioning versioning ) - { - Metadata metadata = new Metadata(); - metadata.setGroupId( artifact.getGroupId() ); - metadata.setArtifactId( artifact.getArtifactId() ); - metadata.setVersion( artifact.getVersion() ); - metadata.setVersioning( versioning ); - return metadata; - } - - protected static Versioning createVersioning( Snapshot snapshot ) - { - Versioning versioning = new Versioning(); - versioning.setSnapshot( snapshot ); - versioning.updateTimestamp(); - return versioning; - } - - public void setMetadata( Metadata metadata ) - { - this.metadata = metadata; - } - - public Metadata getMetadata() - { - return metadata; - } - - public void merge( org.apache.maven.repository.legacy.metadata.ArtifactMetadata metadata ) - { - // TODO: not sure that it should assume this, maybe the calls to addMetadata should pre-merge, then artifact replaces? - AbstractRepositoryMetadata repoMetadata = (AbstractRepositoryMetadata) metadata; - this.metadata.merge( repoMetadata.getMetadata() ); - } - - public void merge( ArtifactMetadata metadata ) - { - // TODO: not sure that it should assume this, maybe the calls to addMetadata should pre-merge, then artifact replaces? - AbstractRepositoryMetadata repoMetadata = (AbstractRepositoryMetadata) metadata; - this.metadata.merge( repoMetadata.getMetadata() ); - } - - public String extendedToString() - { - StringBuilder buffer = new StringBuilder(); - - buffer.append( "\nRepository Metadata\n--------------------------" ); - buffer.append( "\nGroupId: " ).append( getGroupId() ); - buffer.append( "\nArtifactId: " ).append( getArtifactId() ); - buffer.append( "\nMetadata Type: " ).append( getClass().getName() ); - - return buffer.toString(); - } - - public int getNature() - { - return RELEASE; - } - - public ArtifactRepositoryPolicy getPolicy( ArtifactRepository repository ) - { - int nature = getNature(); - if ( ( nature & RepositoryMetadata.RELEASE_OR_SNAPSHOT ) == RepositoryMetadata.RELEASE_OR_SNAPSHOT ) - { - ArtifactRepositoryPolicy policy = new ArtifactRepositoryPolicy( repository.getReleases() ); - policy.merge( repository.getSnapshots() ); - return policy; - } - else if ( ( nature & RepositoryMetadata.SNAPSHOT ) != 0 ) - { - return repository.getSnapshots(); - } - else - { - return repository.getReleases(); - } - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/ArtifactRepositoryMetadata.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/ArtifactRepositoryMetadata.java deleted file mode 100644 index 85fc6018..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/ArtifactRepositoryMetadata.java +++ /dev/null @@ -1,129 +0,0 @@ -package org.apache.maven.artifact.repository.metadata; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.ArtifactUtils; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.versioning.ArtifactVersion; -import org.apache.maven.artifact.versioning.Restriction; -import org.apache.maven.artifact.versioning.VersionRange; - -/** - * Metadata for the artifact directory of the repository. - * - * @author Brett Porter - */ -public class ArtifactRepositoryMetadata - extends AbstractRepositoryMetadata -{ - private Artifact artifact; - - public ArtifactRepositoryMetadata( Artifact artifact ) - { - this( artifact, null ); - } - - public ArtifactRepositoryMetadata( Artifact artifact, - Versioning versioning ) - { - super( createMetadata( artifact, versioning ) ); - this.artifact = artifact; - } - - public boolean storedInGroupDirectory() - { - return false; - } - - public boolean storedInArtifactVersionDirectory() - { - return false; - } - - public String getGroupId() - { - return artifact.getGroupId(); - } - - public String getArtifactId() - { - return artifact.getArtifactId(); - } - - public String getBaseVersion() - { - // Don't want the artifact's version in here, as this is stored in the directory above that - return null; - } - - public Object getKey() - { - return "artifact " + artifact.getGroupId() + ":" + artifact.getArtifactId(); - } - - public boolean isSnapshot() - { - // Don't consider the artifact's version in here, as this is stored in the directory above that - return false; - } - - public int getNature() - { - if ( artifact.getVersion() != null ) - { - return artifact.isSnapshot() ? SNAPSHOT : RELEASE; - } - - VersionRange range = artifact.getVersionRange(); - if ( range != null ) - { - for ( Restriction restriction : range.getRestrictions() ) - { - if ( isSnapshot( restriction.getLowerBound() ) || isSnapshot( restriction.getUpperBound() ) ) - { - return RELEASE_OR_SNAPSHOT; - } - } - } - - return RELEASE; - } - - private boolean isSnapshot( ArtifactVersion version ) - { - return version != null && ArtifactUtils.isSnapshot( version.getQualifier() ); - } - - public ArtifactRepository getRepository() - { - return null; - } - - public void setRepository( ArtifactRepository remoteRepository ) - { - /* - * NOTE: Metadata at the g:a level contains a collection of available versions. After merging, we can't tell - * which repository provides which version so the metadata manager must not restrict the artifact resolution to - * the repository with the most recent updates. - */ - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadata.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadata.java deleted file mode 100644 index 22e3ade8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadata.java +++ /dev/null @@ -1,92 +0,0 @@ -package org.apache.maven.artifact.repository.metadata; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy; - -/** - * Describes repository directory metadata. - * - * @author Brett Porter - * @todo not happy about the store method - they use "this" - */ -public interface RepositoryMetadata - extends org.apache.maven.artifact.metadata.ArtifactMetadata -{ - - int RELEASE = 1; - - int SNAPSHOT = 2; - - int RELEASE_OR_SNAPSHOT = RELEASE | SNAPSHOT; - - /** - * Get the repository the metadata was located in. - * - * @return the repository - */ - ArtifactRepository getRepository(); - - /** - * Set the repository the metadata was located in. - * - * @param remoteRepository the repository - */ - void setRepository( ArtifactRepository remoteRepository ); - - /** - * Get the repository metadata associated with this marker. - * - * @return the metadata, or null if none loaded - */ - Metadata getMetadata(); - - /** - * Set the metadata contents. - * - * @param metadata the metadata - */ - void setMetadata( Metadata metadata ); - - /** - * Whether this represents a snapshot. - * - * @return if it is a snapshot - */ - boolean isSnapshot(); - - /** - * Gets the artifact quality this metadata refers to. One of {@link #RELEASE}, {@link #SNAPSHOT} or - * {@link #RELEASE_OR_SNAPSHOT}. - * - * @return The artifact quality this metadata refers to. - */ - int getNature(); - - /** - * Gets the policy that applies to this metadata regarding the specified repository. - * - * @param repository The repository for which to determine the policy, must not be {@code null}. - * @return The policy, never {@code null}. - */ - ArtifactRepositoryPolicy getPolicy( ArtifactRepository repository ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadataDeploymentException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadataDeploymentException.java deleted file mode 100644 index 94545650..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadataDeploymentException.java +++ /dev/null @@ -1,40 +0,0 @@ -package org.apache.maven.artifact.repository.metadata; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Error while deploying repository metadata. - * - * @author Brett Porter - */ -public class RepositoryMetadataDeploymentException - extends Throwable -{ - public RepositoryMetadataDeploymentException( String message ) - { - super( message ); - } - - public RepositoryMetadataDeploymentException( String message, - Exception e ) - { - super( message, e ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadataInstallationException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadataInstallationException.java deleted file mode 100644 index 55bb57ed..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadataInstallationException.java +++ /dev/null @@ -1,40 +0,0 @@ -package org.apache.maven.artifact.repository.metadata; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Error while installing repository metadata. - * - * @author Brett Porter - */ -public class RepositoryMetadataInstallationException - extends Throwable -{ - public RepositoryMetadataInstallationException( String message ) - { - super( message ); - } - - public RepositoryMetadataInstallationException( String message, - Exception e ) - { - super( message, e ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadataManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadataManager.java deleted file mode 100644 index 35626e58..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadataManager.java +++ /dev/null @@ -1,61 +0,0 @@ -package org.apache.maven.artifact.repository.metadata; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.artifact.metadata.ArtifactMetadata; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.RepositoryRequest; - -public interface RepositoryMetadataManager -{ - - void resolve( RepositoryMetadata repositoryMetadata, RepositoryRequest repositoryRequest ) - throws RepositoryMetadataResolutionException; - - void resolve( RepositoryMetadata repositoryMetadata, List repositories, - ArtifactRepository localRepository ) - throws RepositoryMetadataResolutionException; - - void resolveAlways( RepositoryMetadata metadata, ArtifactRepository localRepository, - ArtifactRepository remoteRepository ) - throws RepositoryMetadataResolutionException; - - /** - * Deploy metadata to the remote repository. - * - * @param metadata the metadata to deploy - * @param localRepository the local repository to install to first - * @param deploymentRepository the remote repository to deploy to - */ - void deploy( ArtifactMetadata metadata, ArtifactRepository localRepository, - ArtifactRepository deploymentRepository ) - throws RepositoryMetadataDeploymentException; - - /** - * Install the metadata in the local repository. - * - * @param metadata the metadata - * @param localRepository the local repository - */ - void install( ArtifactMetadata metadata, ArtifactRepository localRepository ) - throws RepositoryMetadataInstallationException; -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadataResolutionException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadataResolutionException.java deleted file mode 100644 index 8a6f38d4..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/RepositoryMetadataResolutionException.java +++ /dev/null @@ -1,40 +0,0 @@ -package org.apache.maven.artifact.repository.metadata; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Error while retrieving repository metadata from the repository. - * - * @author Brett Porter - */ -public class RepositoryMetadataResolutionException - extends Exception -{ - public RepositoryMetadataResolutionException( String message ) - { - super( message ); - } - - public RepositoryMetadataResolutionException( String message, - Exception e ) - { - super( message, e ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/DefaultMetadataReader.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/DefaultMetadataReader.java deleted file mode 100644 index 6a1578d8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/DefaultMetadataReader.java +++ /dev/null @@ -1,110 +0,0 @@ -package org.apache.maven.artifact.repository.metadata.io; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.IOException; -import java.io.InputStream; -import java.io.Reader; -import java.util.Map; - -import org.apache.maven.artifact.repository.metadata.Metadata; -import org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.util.IOUtil; -import org.codehaus.plexus.util.ReaderFactory; -import org.codehaus.plexus.util.xml.pull.XmlPullParserException; - -/** - * Handles deserialization of metadata from some kind of textual format like XML. - * - * @author Benjamin Bentmann - */ -@Component( role = MetadataReader.class ) -public class DefaultMetadataReader - implements MetadataReader -{ - - public Metadata read( File input, Map options ) - throws IOException - { - if ( input == null ) - { - throw new IllegalArgumentException( "input file missing" ); - } - - Metadata metadata = read( ReaderFactory.newXmlReader( input ), options ); - - return metadata; - } - - public Metadata read( Reader input, Map options ) - throws IOException - { - if ( input == null ) - { - throw new IllegalArgumentException( "input reader missing" ); - } - - try - { - MetadataXpp3Reader r = new MetadataXpp3Reader(); - return r.read( input, isStrict( options ) ); - } - catch ( XmlPullParserException e ) - { - throw new MetadataParseException( e.getMessage(), e.getLineNumber(), e.getColumnNumber(), e ); - } - finally - { - IOUtil.close( input ); - } - } - - public Metadata read( InputStream input, Map options ) - throws IOException - { - if ( input == null ) - { - throw new IllegalArgumentException( "input stream missing" ); - } - - try - { - MetadataXpp3Reader r = new MetadataXpp3Reader(); - return r.read( input, isStrict( options ) ); - } - catch ( XmlPullParserException e ) - { - throw new MetadataParseException( e.getMessage(), e.getLineNumber(), e.getColumnNumber(), e ); - } - finally - { - IOUtil.close( input ); - } - } - - private boolean isStrict( Map options ) - { - Object value = ( options != null ) ? options.get( IS_STRICT ) : null; - return value == null || Boolean.parseBoolean( value.toString() ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/MetadataParseException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/MetadataParseException.java deleted file mode 100644 index e3e141b1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/MetadataParseException.java +++ /dev/null @@ -1,93 +0,0 @@ -package org.apache.maven.artifact.repository.metadata.io; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.IOException; - -/** - * Signals a failure to parse the metadata due to invalid syntax (e.g. non-wellformed XML or unknown elements). - * - * @author Benjamin Bentmann - */ -public class MetadataParseException - extends IOException -{ - - /** - * The one-based index of the line containing the error. - */ - private final int lineNumber; - - /** - * The one-based index of the column containing the error. - */ - private final int columnNumber; - - /** - * Creates a new parser exception with the specified details. - * - * @param message The error message, may be {@code null}. - * @param lineNumber The one-based index of the line containing the error or {@code -1} if unknown. - * @param columnNumber The one-based index of the column containing the error or {@code -1} if unknown. - */ - public MetadataParseException( String message, int lineNumber, int columnNumber ) - { - super( message ); - this.lineNumber = lineNumber; - this.columnNumber = columnNumber; - } - - /** - * Creates a new parser exception with the specified details. - * - * @param message The error message, may be {@code null}. - * @param lineNumber The one-based index of the line containing the error or {@code -1} if unknown. - * @param columnNumber The one-based index of the column containing the error or {@code -1} if unknown. - * @param cause The nested cause of this error, may be {@code null}. - */ - public MetadataParseException( String message, int lineNumber, int columnNumber, Throwable cause ) - { - super( message ); - initCause( cause ); - this.lineNumber = lineNumber; - this.columnNumber = columnNumber; - } - - /** - * Gets the one-based index of the line containing the error. - * - * @return The one-based index of the line containing the error or a non-positive value if unknown. - */ - public int getLineNumber() - { - return lineNumber; - } - - /** - * Gets the one-based index of the column containing the error. - * - * @return The one-based index of the column containing the error or non-positive value if unknown. - */ - public int getColumnNumber() - { - return columnNumber; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/MetadataReader.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/MetadataReader.java deleted file mode 100644 index 232246fd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/MetadataReader.java +++ /dev/null @@ -1,82 +0,0 @@ -package org.apache.maven.artifact.repository.metadata.io; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.IOException; -import java.io.InputStream; -import java.io.Reader; -import java.util.Map; - -import org.apache.maven.artifact.repository.metadata.Metadata; - -/** - * Handles deserialization of metadata from some kind of textual format like XML. - * - * @author Benjamin Bentmann - */ -public interface MetadataReader -{ - - /** - * The key for the option to enable strict parsing. This option is of type {@link Boolean} and defaults to {@code - * true}. If {@code false}, unknown elements will be ignored instead of causing a failure. - */ - String IS_STRICT = "org.apache.maven.artifact.repository.metadata.io.isStrict"; - - /** - * Reads the metadata from the specified file. - * - * @param input The file to deserialize the metadata from, must not be {@code null}. - * @param options The options to use for deserialization, may be {@code null} to use the default values. - * @return The deserialized metadata, never {@code null}. - * @throws IOException If the metadata could not be deserialized. - * @throws MetadataParseException If the input format could not be parsed. - */ - Metadata read( File input, Map options ) - throws IOException, MetadataParseException; - - /** - * Reads the metadata from the specified character reader. The reader will be automatically closed before the method - * returns. - * - * @param input The reader to deserialize the metadata from, must not be {@code null}. - * @param options The options to use for deserialization, may be {@code null} to use the default values. - * @return The deserialized metadata, never {@code null}. - * @throws IOException If the metadata could not be deserialized. - * @throws MetadataParseException If the input format could not be parsed. - */ - Metadata read( Reader input, Map options ) - throws IOException, MetadataParseException; - - /** - * Reads the metadata from the specified byte stream. The stream will be automatically closed before the method - * returns. - * - * @param input The stream to deserialize the metadata from, must not be {@code null}. - * @param options The options to use for deserialization, may be {@code null} to use the default values. - * @return The deserialized metadata, never {@code null}. - * @throws IOException If the metadata could not be deserialized. - * @throws MetadataParseException If the input format could not be parsed. - */ - Metadata read( InputStream input, Map options ) - throws IOException, MetadataParseException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionRequest.java deleted file mode 100644 index 050ec478..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionRequest.java +++ /dev/null @@ -1,329 +0,0 @@ -package org.apache.maven.artifact.resolver; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.RepositoryCache; -import org.apache.maven.artifact.repository.RepositoryRequest; -import org.apache.maven.artifact.resolver.filter.ArtifactFilter; -import org.apache.maven.settings.Mirror; -import org.apache.maven.settings.Proxy; -import org.apache.maven.settings.Server; - -/** - * A resolution request allows you to either use an existing MavenProject, or a coordinate (gid:aid:version) - * to process a POMs dependencies. - * - * @author Jason van Zyl - */ -public class ArtifactResolutionRequest - implements RepositoryRequest -{ - - private Artifact artifact; - - // Needs to go away - // These are really overrides now, projects defining dependencies for a plugin that override what is - // specified in the plugin itself. - private Set artifactDependencies; - - private ArtifactRepository localRepository; - - private List remoteRepositories; - - private ArtifactFilter collectionFilter; - - private ArtifactFilter resolutionFilter; - - // Needs to go away - private List listeners = new ArrayList(); - - // This is like a filter but overrides all transitive versions - private Map managedVersionMap; - - private boolean resolveRoot = true; - - private boolean resolveTransitively = false; - - private boolean offline; - - private boolean forceUpdate; - - private List servers; - - private List mirrors; - - private List proxies; - - public ArtifactResolutionRequest() - { - // nothing here - } - - public ArtifactResolutionRequest( RepositoryRequest request ) - { - setLocalRepository( request.getLocalRepository() ); - setRemoteRepositories( request.getRemoteRepositories() ); - setOffline( request.isOffline() ); - setForceUpdate( request.isForceUpdate() ); - } - - public Artifact getArtifact() - { - return artifact; - } - - public ArtifactResolutionRequest setArtifact( Artifact artifact ) - { - this.artifact = artifact; - - return this; - } - - public ArtifactResolutionRequest setArtifactDependencies( Set artifactDependencies ) - { - this.artifactDependencies = artifactDependencies; - - return this; - } - - public Set getArtifactDependencies() - { - return artifactDependencies; - } - - public ArtifactRepository getLocalRepository() - { - return localRepository; - } - - public ArtifactResolutionRequest setLocalRepository( ArtifactRepository localRepository ) - { - this.localRepository = localRepository; - - return this; - } - - public List getRemoteRepositories() - { - return remoteRepositories; - } - - public ArtifactResolutionRequest setRemoteRepositories( List remoteRepositories ) - { - this.remoteRepositories = remoteRepositories; - - return this; - } - - /** - * Gets the artifact filter that controls traversal of the dependency graph. - * - * @return The filter used to determine which of the artifacts in the dependency graph should be traversed or - * {@code null} to collect all transitive dependencies. - */ - public ArtifactFilter getCollectionFilter() - { - return collectionFilter; - } - - public ArtifactResolutionRequest setCollectionFilter( ArtifactFilter filter ) - { - this.collectionFilter = filter; - - return this; - } - - /** - * Gets the artifact filter that controls downloading of artifact files. This filter operates on those artifacts - * that have been included by the {@link #getCollectionFilter()}. - * - * @return The filter used to determine which of the artifacts should have their files resolved or {@code null} to - * resolve the files for all collected artifacts. - */ - public ArtifactFilter getResolutionFilter() - { - return resolutionFilter; - } - - public ArtifactResolutionRequest setResolutionFilter( ArtifactFilter filter ) - { - this.resolutionFilter = filter; - - return this; - } - - public List getListeners() - { - return listeners; - } - - public ArtifactResolutionRequest setListeners( List listeners ) - { - this.listeners = listeners; - - return this; - } - - public ArtifactResolutionRequest addListener( ResolutionListener listener ) - { - listeners.add( listener ); - - return this; - } - - public Map getManagedVersionMap() - { - return managedVersionMap; - } - - public ArtifactResolutionRequest setManagedVersionMap( Map managedVersionMap ) - { - this.managedVersionMap = managedVersionMap; - - return this; - } - - public ArtifactResolutionRequest setResolveRoot( boolean resolveRoot ) - { - this.resolveRoot = resolveRoot; - - return this; - } - - public boolean isResolveRoot() - { - return resolveRoot; - } - - public ArtifactResolutionRequest setResolveTransitively( boolean resolveDependencies ) - { - this.resolveTransitively = resolveDependencies; - - return this; - } - - public boolean isResolveTransitively() - { - return resolveTransitively; - } - - public String toString() - { - StringBuilder sb = new StringBuilder() - .append( "REQUEST: " ).append( "\n" ) - .append( "artifact: " ).append( artifact ).append( "\n" ) - .append( artifactDependencies ).append( "\n" ) - .append( "localRepository: " ).append( localRepository ).append( "\n" ) - .append( "remoteRepositories: " ).append( remoteRepositories ).append( "\n" ); - - return sb.toString(); - } - - public boolean isOffline() - { - return offline; - } - - public ArtifactResolutionRequest setOffline( boolean offline ) - { - this.offline = offline; - - return this; - } - - public boolean isForceUpdate() - { - return forceUpdate; - } - - public ArtifactResolutionRequest setForceUpdate( boolean forceUpdate ) - { - this.forceUpdate = forceUpdate; - - return this; - } - - public ArtifactResolutionRequest setServers( List servers ) - { - this.servers = servers; - - return this; - } - - public List getServers() - { - if ( servers == null ) - { - servers = new ArrayList(); - } - - return servers; - } - - public ArtifactResolutionRequest setMirrors( List mirrors ) - { - this.mirrors = mirrors; - - return this; - } - - public List getMirrors() - { - if ( mirrors == null ) - { - mirrors = new ArrayList(); - } - - return mirrors; - } - - public ArtifactResolutionRequest setProxies( List proxies ) - { - this.proxies = proxies; - - return this; - } - - public List getProxies() - { - if ( proxies == null ) - { - proxies = new ArrayList(); - } - - return proxies; - } - - // - // Used by Tycho and will break users and force them to upgrade to Maven 3.1 so we should really leave - // this here, possibly indefinitely. - // - public ArtifactResolutionRequest setCache( RepositoryCache cache ) - { - return this; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionResult.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionResult.java deleted file mode 100644 index 86bfdb60..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionResult.java +++ /dev/null @@ -1,358 +0,0 @@ -package org.apache.maven.artifact.resolver; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Collections; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Set; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.versioning.OverConstrainedVersionException; - -/** - * Specific problems during resolution that we want to account for: - *

- * - missing metadata - version range violations - version circular dependencies - missing artifacts - * - network/transfer errors - file system errors: permissions - * - * @author Jason van Zyl - * @TODO carlos: all these possible has*Exceptions and get*Exceptions methods make the clients too - * complex requiring a long list of checks, need to create a parent/interfact/encapsulation - * for the types of exceptions - */ -public class ArtifactResolutionResult -{ - private Artifact originatingArtifact; - - private List missingArtifacts; - - // Exceptions - - private List exceptions; - - private List versionRangeViolations; - - private List metadataResolutionExceptions; - - private List circularDependencyExceptions; - - private List errorArtifactExceptions; - - // file system errors - - private List repositories; - - private Set artifacts; - - private Set resolutionNodes; - - public Artifact getOriginatingArtifact() - { - return originatingArtifact; - } - - public ArtifactResolutionResult setOriginatingArtifact( final Artifact originatingArtifact ) - { - this.originatingArtifact = originatingArtifact; - - return this; - } - - public void addArtifact( Artifact artifact ) - { - if ( artifacts == null ) - { - artifacts = new LinkedHashSet(); - } - - artifacts.add( artifact ); - } - - public Set getArtifacts() - { - if ( artifacts == null ) - { - artifacts = new LinkedHashSet(); - } - - return artifacts; - } - - public void setArtifacts( Set artifacts ) - { - this.artifacts = artifacts; - } - - public Set getArtifactResolutionNodes() - { - if ( resolutionNodes == null ) - { - resolutionNodes = new LinkedHashSet(); - } - - return resolutionNodes; - } - - public void setArtifactResolutionNodes( Set resolutionNodes ) - { - this.resolutionNodes = resolutionNodes; - } - - public boolean hasMissingArtifacts() - { - return missingArtifacts != null && !missingArtifacts.isEmpty(); - } - - public List getMissingArtifacts() - { - return missingArtifacts == null ? Collections.emptyList() : missingArtifacts; - } - - public ArtifactResolutionResult addMissingArtifact( Artifact artifact ) - { - missingArtifacts = initList( missingArtifacts ); - - missingArtifacts.add( artifact ); - - return this; - } - - public ArtifactResolutionResult setUnresolvedArtifacts( final List unresolvedArtifacts ) - { - this.missingArtifacts = unresolvedArtifacts; - - return this; - } - - public boolean isSuccess() - { - return !( hasMissingArtifacts() || hasExceptions() ); - } - - // ------------------------------------------------------------------------ - // Exceptions - // ------------------------------------------------------------------------ - - public boolean hasExceptions() - { - return exceptions != null && !exceptions.isEmpty(); - } - - public List getExceptions() - { - return exceptions == null ? Collections.emptyList() : exceptions; - } - - // ------------------------------------------------------------------------ - // Version Range Violations - // ------------------------------------------------------------------------ - - public boolean hasVersionRangeViolations() - { - return versionRangeViolations != null; - } - - /** - * @TODO this needs to accept a {@link OverConstrainedVersionException} as returned by - * {@link #getVersionRangeViolation(int)} but it's not used like that in - * {@link DefaultLegacyArtifactCollector} - */ - public ArtifactResolutionResult addVersionRangeViolation( Exception e ) - { - versionRangeViolations = initList( versionRangeViolations ); - - versionRangeViolations.add( e ); - - exceptions = initList( exceptions ); - - exceptions.add( e ); - - return this; - } - - public OverConstrainedVersionException getVersionRangeViolation( int i ) - { - return (OverConstrainedVersionException) versionRangeViolations.get( i ); - } - - public List getVersionRangeViolations() - { - return versionRangeViolations == null ? Collections.emptyList() : versionRangeViolations; - } - - // ------------------------------------------------------------------------ - // Metadata Resolution Exceptions: ArtifactResolutionExceptions - // ------------------------------------------------------------------------ - - public boolean hasMetadataResolutionExceptions() - { - return metadataResolutionExceptions != null; - } - - public ArtifactResolutionResult addMetadataResolutionException( ArtifactResolutionException e ) - { - metadataResolutionExceptions = initList( metadataResolutionExceptions ); - - metadataResolutionExceptions.add( e ); - - exceptions = initList( exceptions ); - - exceptions.add( e ); - - return this; - } - - public ArtifactResolutionException getMetadataResolutionException( int i ) - { - return metadataResolutionExceptions.get( i ); - } - - public List getMetadataResolutionExceptions() - { - return metadataResolutionExceptions == null ? Collections.emptyList() - : metadataResolutionExceptions; - } - - // ------------------------------------------------------------------------ - // ErrorArtifactExceptions: ArtifactResolutionExceptions - // ------------------------------------------------------------------------ - - public boolean hasErrorArtifactExceptions() - { - return errorArtifactExceptions != null; - } - - public ArtifactResolutionResult addErrorArtifactException( ArtifactResolutionException e ) - { - errorArtifactExceptions = initList( errorArtifactExceptions ); - - errorArtifactExceptions.add( e ); - - exceptions = initList( exceptions ); - - exceptions.add( e ); - - return this; - } - - public List getErrorArtifactExceptions() - { - if ( errorArtifactExceptions == null ) - { - return Collections.emptyList(); - } - - return errorArtifactExceptions; - } - - // ------------------------------------------------------------------------ - // Circular Dependency Exceptions - // ------------------------------------------------------------------------ - - public boolean hasCircularDependencyExceptions() - { - return circularDependencyExceptions != null; - } - - public ArtifactResolutionResult addCircularDependencyException( CyclicDependencyException e ) - { - circularDependencyExceptions = initList( circularDependencyExceptions ); - - circularDependencyExceptions.add( e ); - - exceptions = initList( exceptions ); - - exceptions.add( e ); - - return this; - } - - public CyclicDependencyException getCircularDependencyException( int i ) - { - return circularDependencyExceptions.get( i ); - } - - public List getCircularDependencyExceptions() - { - if ( circularDependencyExceptions == null ) - { - return Collections.emptyList(); - } - - return circularDependencyExceptions; - } - - // ------------------------------------------------------------------------ - // Repositories - // ------------------------------------------------------------------------ - - public List getRepositories() - { - if ( repositories == null ) - { - return Collections.emptyList(); - } - - return repositories; - } - - public ArtifactResolutionResult setRepositories( final List repositories ) - { - this.repositories = repositories; - - return this; - } - - // - // Internal - // - - private List initList( final List l ) - { - if ( l == null ) - { - return new ArrayList(); - } - return l; - } - - public String toString() - { - StringBuilder sb = new StringBuilder(); - - if ( artifacts != null ) - { - int i = 1; - sb.append( "---------" ).append( "\n" ); - sb.append( artifacts.size() ).append( "\n" ); - for ( Artifact a : artifacts ) - { - sb.append( i ).append( " " ).append( a ).append( "\n" ); - i++; - } - sb.append( "---------" ).append( "\n" ); - } - - return sb.toString(); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/DefaultResolutionErrorHandler.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/DefaultResolutionErrorHandler.java deleted file mode 100644 index a8caa79b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/DefaultResolutionErrorHandler.java +++ /dev/null @@ -1,89 +0,0 @@ -package org.apache.maven.artifact.resolver; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import org.codehaus.plexus.component.annotations.Component; - -/** - * @author Benjamin Bentmann - */ -@Component( role = ResolutionErrorHandler.class ) -public class DefaultResolutionErrorHandler - implements ResolutionErrorHandler -{ - - public void throwErrors( ArtifactResolutionRequest request, ArtifactResolutionResult result ) - throws ArtifactResolutionException - { - // Metadata cannot be found - - if ( result.hasMetadataResolutionExceptions() ) - { - throw result.getMetadataResolutionException( 0 ); - } - - // Metadata cannot be retrieved - - // Cyclic Dependency Error - - if ( result.hasCircularDependencyExceptions() ) - { - throw result.getCircularDependencyException( 0 ); - } - - // Version Range Violation - - if ( result.hasVersionRangeViolations() ) - { - throw result.getVersionRangeViolation( 0 ); - } - - // Transfer Error - - if ( result.hasErrorArtifactExceptions() ) - { - throw result.getErrorArtifactExceptions().get( 0 ); - } - - if ( result.hasMissingArtifacts() ) - { - throw new MultipleArtifactsNotFoundException( request.getArtifact(), toList( result.getArtifacts() ), - result.getMissingArtifacts(), - request.getRemoteRepositories() ); - } - - // this should never happen since we checked all possible error sources before but better be sure - if ( result.hasExceptions() ) - { - throw new ArtifactResolutionException( "Unknown error during artifact resolution, " + request + ", " - + result.getExceptions(), request.getArtifact(), request.getRemoteRepositories() ); - } - } - - private static List toList( Collection items ) - { - return ( items != null ) ? new ArrayList( items ) : null; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ResolutionErrorHandler.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ResolutionErrorHandler.java deleted file mode 100644 index c54e5b6c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ResolutionErrorHandler.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.apache.maven.artifact.resolver; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * @author Benjamin Bentmann - */ -public interface ResolutionErrorHandler -{ - - void throwErrors( ArtifactResolutionRequest request, ArtifactResolutionResult result ) - throws ArtifactResolutionException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ResolutionListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ResolutionListener.java deleted file mode 100644 index 97687de2..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ResolutionListener.java +++ /dev/null @@ -1,109 +0,0 @@ -package org.apache.maven.artifact.resolver; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.versioning.VersionRange; - -/** - * Listens to the resolution process and handles events. - * - * @author Brett Porter - */ -public interface ResolutionListener -{ - String ROLE = ResolutionListener.class.getName(); - - int TEST_ARTIFACT = 1; - - int PROCESS_CHILDREN = 2; - - int FINISH_PROCESSING_CHILDREN = 3; - - int INCLUDE_ARTIFACT = 4; - - int OMIT_FOR_NEARER = 5; - - int UPDATE_SCOPE = 6; - - @Deprecated - int MANAGE_ARTIFACT = 7; - - int OMIT_FOR_CYCLE = 8; - - /** - * this event means that the artifactScope has NOT been updated to a farther node artifactScope because current - * node is in the first level pom - */ - int UPDATE_SCOPE_CURRENT_POM = 9; - - int SELECT_VERSION_FROM_RANGE = 10; - - int RESTRICT_RANGE = 11; - - int MANAGE_ARTIFACT_VERSION = 12; - - int MANAGE_ARTIFACT_SCOPE = 13; - - int MANAGE_ARTIFACT_SYSTEM_PATH = 14; - - void testArtifact( Artifact node ); - - void startProcessChildren( Artifact artifact ); - - void endProcessChildren( Artifact artifact ); - - void includeArtifact( Artifact artifact ); - - void omitForNearer( Artifact omitted, - Artifact kept ); - - void updateScope( Artifact artifact, - String scope ); - - @Deprecated - void manageArtifact( Artifact artifact, - Artifact replacement ); - - // TODO Use the following two instead of manageArtifact - // TODO Remove ResolutionListenerDM interface - - //void manageArtifactVersion( Artifact artifact, Artifact replacement ); - - //void manageArtifactScope( Artifact artifact, Artifact replacement ); - - void omitForCycle( Artifact artifact ); - - /** - * This event means that the artifactScope has NOT been updated to a farther node artifactScope because current - * node is in the first level pom - * - * @param artifact current node artifact, the one in the first level pom - * @param ignoredScope artifactScope that was ignored because artifact was in first level pom - */ - void updateScopeCurrentPom( Artifact artifact, - String ignoredScope ); - - void selectVersionFromRange( Artifact artifact ); - - void restrictRange( Artifact artifact, - Artifact replacement, - VersionRange newRange ); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ResolutionNode.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ResolutionNode.java deleted file mode 100644 index ae6c9214..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/ResolutionNode.java +++ /dev/null @@ -1,251 +0,0 @@ -package org.apache.maven.artifact.resolver; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Collections; -import java.util.Iterator; -import java.util.LinkedList; -import java.util.List; -import java.util.Set; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.resolver.filter.ArtifactFilter; -import org.apache.maven.artifact.versioning.ArtifactVersion; -import org.apache.maven.artifact.versioning.OverConstrainedVersionException; - -public class ResolutionNode -{ - private Artifact artifact; - - private List children; - - private final List parents; - - private final int depth; - - private final ResolutionNode parent; - - private final List remoteRepositories; - - private boolean active = true; - - private List trail; - - public ResolutionNode( Artifact artifact, List remoteRepositories ) - { - this.artifact = artifact; - this.remoteRepositories = remoteRepositories; - depth = 0; - parents = Collections.emptyList(); - parent = null; - } - - public ResolutionNode( Artifact artifact, List remoteRepositories, ResolutionNode parent ) - { - this.artifact = artifact; - this.remoteRepositories = remoteRepositories; - depth = parent.depth + 1; - parents = new ArrayList(); - parents.addAll( parent.parents ); - parents.add( parent.getKey() ); - this.parent = parent; - } - - public Artifact getArtifact() - { - return artifact; - } - - public Object getKey() - { - return artifact.getDependencyConflictId(); - } - - public void addDependencies( Set artifacts, List remoteRepositories, - ArtifactFilter filter ) - throws CyclicDependencyException, OverConstrainedVersionException - { - if ( artifacts != null && !artifacts.isEmpty() ) - { - children = new ArrayList( artifacts.size() ); - - for ( Artifact a : artifacts ) - { - if ( parents.contains( a.getDependencyConflictId() ) ) - { - a.setDependencyTrail( getDependencyTrail() ); - - throw new CyclicDependencyException( "A dependency has introduced a cycle", a ); - } - - children.add( new ResolutionNode( a, remoteRepositories, this ) ); - } - } - else - { - children = Collections.emptyList(); - } - trail = null; - } - - /** - * @return {@link List} < {@link String} > with artifact ids - * @throws OverConstrainedVersionException - */ - public List getDependencyTrail() - throws OverConstrainedVersionException - { - List trial = getTrail(); - - List ret = new ArrayList( trial.size() ); - - for ( Artifact artifact : trial ) - { - ret.add( artifact.getId() ); - } - - return ret; - } - - private List getTrail() - throws OverConstrainedVersionException - { - if ( trail == null ) - { - List ids = new LinkedList(); - ResolutionNode node = this; - while ( node != null ) - { - Artifact artifact = node.getArtifact(); - if ( artifact.getVersion() == null ) - { - // set the recommended version - ArtifactVersion selected = artifact.getSelectedVersion(); - // MNG-2123: null is a valid response to getSelectedVersion, don't - // assume it won't ever be. - if ( selected != null ) - { - artifact.selectVersion( selected.toString() ); - } - else - { - throw new OverConstrainedVersionException( "Unable to get a selected Version for " - + artifact.getArtifactId(), artifact ); - } - } - - ids.add( 0, artifact ); - node = node.parent; - } - trail = ids; - } - return trail; - } - - public boolean isResolved() - { - return children != null; - } - - /** - * Test whether the node is direct or transitive dependency. - */ - public boolean isChildOfRootNode() - { - return parent != null && parent.parent == null; - } - - public Iterator getChildrenIterator() - { - return children.iterator(); - } - - public int getDepth() - { - return depth; - } - - public List getRemoteRepositories() - { - return remoteRepositories; - } - - public boolean isActive() - { - return active; - } - - public void enable() - { - active = true; - - // TODO: if it was null, we really need to go find them now... or is this taken care of by the ordering? - if ( children != null ) - { - for ( ResolutionNode node : children ) - { - node.enable(); - } - } - } - - public void disable() - { - active = false; - if ( children != null ) - { - for ( ResolutionNode node : children ) - { - node.disable(); - } - } - } - - public boolean filterTrail( ArtifactFilter filter ) - throws OverConstrainedVersionException - { - boolean success = true; - if ( filter != null ) - { - for ( Artifact artifact : getTrail() ) - { - if ( !filter.include( artifact ) ) - { - success = false; - } - } - } - return success; - } - - @Override - public String toString() - { - return artifact.toString() + " (" + depth + "; " + ( active ? "enabled" : "disabled" ) + ")"; - } - - public void setArtifact( Artifact artifact ) - { - this.artifact = artifact; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/AbstractScopeArtifactFilter.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/AbstractScopeArtifactFilter.java deleted file mode 100644 index 95872dbb..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/AbstractScopeArtifactFilter.java +++ /dev/null @@ -1,107 +0,0 @@ -package org.apache.maven.artifact.resolver.filter; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.Artifact; - -/** - * Filter to only retain objects in the given artifactScope or better. - * - * @author Brett Porter - */ -abstract class AbstractScopeArtifactFilter - implements ArtifactFilter -{ - - private boolean compileScope; - - private boolean runtimeScope; - - private boolean testScope; - - private boolean providedScope; - - private boolean systemScope; - - void addScopeInternal( String scope ) - { - if ( Artifact.SCOPE_COMPILE.equals( scope ) ) - { - systemScope = true; - providedScope = true; - compileScope = true; - } - else if ( Artifact.SCOPE_RUNTIME.equals( scope ) ) - { - compileScope = true; - runtimeScope = true; - } - else if ( Artifact.SCOPE_COMPILE_PLUS_RUNTIME.equals( scope ) ) - { - systemScope = true; - providedScope = true; - compileScope = true; - runtimeScope = true; - } - else if ( Artifact.SCOPE_RUNTIME_PLUS_SYSTEM.equals( scope ) ) - { - systemScope = true; - compileScope = true; - runtimeScope = true; - } - else if ( Artifact.SCOPE_TEST.equals( scope ) ) - { - systemScope = true; - providedScope = true; - compileScope = true; - runtimeScope = true; - testScope = true; - } - } - - public boolean include( Artifact artifact ) - { - if ( Artifact.SCOPE_COMPILE.equals( artifact.getScope() ) ) - { - return compileScope; - } - else if ( Artifact.SCOPE_RUNTIME.equals( artifact.getScope() ) ) - { - return runtimeScope; - } - else if ( Artifact.SCOPE_TEST.equals( artifact.getScope() ) ) - { - return testScope; - } - else if ( Artifact.SCOPE_PROVIDED.equals( artifact.getScope() ) ) - { - return providedScope; - } - else if ( Artifact.SCOPE_SYSTEM.equals( artifact.getScope() ) ) - { - return systemScope; - } - else - { - return true; - } - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/AndArtifactFilter.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/AndArtifactFilter.java deleted file mode 100644 index 5c6689de..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/AndArtifactFilter.java +++ /dev/null @@ -1,99 +0,0 @@ -package org.apache.maven.artifact.resolver.filter; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Iterator; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Set; - -import org.apache.maven.artifact.Artifact; - -/** - * Apply multiple filters. - * - * @author Brett Porter - */ -public class AndArtifactFilter - implements ArtifactFilter -{ - private Set filters; - - public AndArtifactFilter() - { - this.filters = new LinkedHashSet(); - } - - public AndArtifactFilter( List filters ) - { - this.filters = new LinkedHashSet( filters ); - } - - public boolean include( Artifact artifact ) - { - boolean include = true; - for ( Iterator i = filters.iterator(); i.hasNext() && include; ) - { - ArtifactFilter filter = i.next(); - if ( !filter.include( artifact ) ) - { - include = false; - } - } - return include; - } - - public void add( ArtifactFilter artifactFilter ) - { - filters.add( artifactFilter ); - } - - public List getFilters() - { - return new ArrayList( filters ); - } - - @Override - public int hashCode() - { - int hash = 17; - hash = hash * 31 + filters.hashCode(); - return hash; - } - - @Override - public boolean equals( Object obj ) - { - if ( this == obj ) - { - return true; - } - - if ( !( obj instanceof AndArtifactFilter ) ) - { - return false; - } - - AndArtifactFilter other = (AndArtifactFilter) obj; - - return filters.equals( other.filters ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/CumulativeScopeArtifactFilter.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/CumulativeScopeArtifactFilter.java deleted file mode 100644 index fb0afcfb..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/CumulativeScopeArtifactFilter.java +++ /dev/null @@ -1,122 +0,0 @@ -package org.apache.maven.artifact.resolver.filter; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collection; -import java.util.HashSet; -import java.util.Set; - -/** - * Filter to only retain objects in the given scope or better. This implementation allows the accumulation of multiple - * scopes and their associated implied scopes, so that the user can filter apply a series of implication rules in a - * single step. This should be a more efficient implementation of multiple standard {@link ScopeArtifactFilter} - * instances ORed together. - * - * @author Brett Porter - * @author jdcasey - */ -public class CumulativeScopeArtifactFilter - extends AbstractScopeArtifactFilter -{ - - private Set scopes; - - /** - * Create a new filter with the specified scopes and their implied scopes enabled. - * - * @param scopes The scopes to enable, along with all implied scopes, may be {@code null}. - */ - public CumulativeScopeArtifactFilter( Collection scopes ) - { - this.scopes = new HashSet(); - - addScopes( scopes ); - } - - /** - * Creates a new filter that combines the specified filters. - * - * @param filters The filters to combine, may be {@code null}. - */ - public CumulativeScopeArtifactFilter( CumulativeScopeArtifactFilter... filters ) - { - this.scopes = new HashSet(); - - if ( filters != null ) - { - for ( CumulativeScopeArtifactFilter filter : filters ) - { - addScopes( filter.getScopes() ); - } - } - } - - private void addScopes( Collection scopes ) - { - if ( scopes != null ) - { - for ( String scope : scopes ) - { - addScope( scope ); - } - } - } - - private void addScope( String scope ) - { - this.scopes.add( scope ); - - addScopeInternal( scope ); - } - - public Set getScopes() - { - return scopes; - } - - @Override - public int hashCode() - { - int hash = 17; - - hash = hash * 31 + scopes.hashCode(); - - return hash; - } - - @Override - public boolean equals( Object obj ) - { - if ( this == obj ) - { - return true; - } - - if ( !( obj instanceof CumulativeScopeArtifactFilter ) ) - { - return false; - } - - CumulativeScopeArtifactFilter that = (CumulativeScopeArtifactFilter) obj; - - return scopes.equals( that.scopes ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExcludesArtifactFilter.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExcludesArtifactFilter.java deleted file mode 100644 index b6ef02e5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExcludesArtifactFilter.java +++ /dev/null @@ -1,44 +0,0 @@ -package org.apache.maven.artifact.resolver.filter; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.artifact.Artifact; - -/** - * Filter to exclude from a list of artifact patterns. - * - * @author Brett Porter - * @todo I think this is equiv. to exclusion set filter in maven-core - */ -public class ExcludesArtifactFilter - extends IncludesArtifactFilter -{ - public ExcludesArtifactFilter( List patterns ) - { - super( patterns ); - } - - public boolean include( Artifact artifact ) - { - return !super.include( artifact ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionSetFilter.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionSetFilter.java deleted file mode 100644 index c3dc9812..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionSetFilter.java +++ /dev/null @@ -1,86 +0,0 @@ -package org.apache.maven.artifact.resolver.filter; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Arrays; -import java.util.LinkedHashSet; -import java.util.Set; - -import org.apache.maven.artifact.Artifact; - -/** - * @author Jason van Zyl - */ -public class ExclusionSetFilter - implements ArtifactFilter -{ - private Set excludes; - - public ExclusionSetFilter( String[] excludes ) - { - this.excludes = new LinkedHashSet( Arrays.asList( excludes ) ); - } - - public ExclusionSetFilter( Set excludes ) - { - this.excludes = excludes; - } - - public boolean include( Artifact artifact ) - { - String id = artifact.getArtifactId(); - - if ( excludes.contains( id ) ) - { - return false; - } - - id = artifact.getGroupId() + ':' + id; - - return !excludes.contains( id ); - - } - - @Override - public int hashCode() - { - int hash = 17; - hash = hash * 31 + excludes.hashCode(); - return hash; - } - - @Override - public boolean equals( Object obj ) - { - if ( this == obj ) - { - return true; - } - - if ( !( obj instanceof ExclusionSetFilter ) ) - { - return false; - } - - ExclusionSetFilter other = (ExclusionSetFilter) obj; - - return excludes.equals( other.excludes ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/IncludesArtifactFilter.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/IncludesArtifactFilter.java deleted file mode 100644 index 403e1251..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/IncludesArtifactFilter.java +++ /dev/null @@ -1,93 +0,0 @@ -package org.apache.maven.artifact.resolver.filter; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Iterator; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Set; - -import org.apache.maven.artifact.Artifact; - -/** - * Filter to include from a list of artifact patterns. - * - * @author Brett Porter - */ -public class IncludesArtifactFilter - implements ArtifactFilter -{ - private final Set patterns; - - public IncludesArtifactFilter( List patterns ) - { - this.patterns = new LinkedHashSet( patterns ); - } - - public boolean include( Artifact artifact ) - { - String id = artifact.getGroupId() + ":" + artifact.getArtifactId(); - - boolean matched = false; - for ( Iterator i = patterns.iterator(); i.hasNext() & !matched; ) - { - // TODO: what about wildcards? Just specifying groups? versions? - if ( id.equals( i.next() ) ) - { - matched = true; - } - } - return matched; - } - - public List getPatterns() - { - return new ArrayList( patterns ); - } - - @Override - public int hashCode() - { - int hash = 17; - hash = hash * 31 + patterns.hashCode(); - - return hash; - } - - @Override - public boolean equals( Object obj ) - { - if ( this == obj ) - { - return true; - } - - // make sure IncludesArtifactFilter is not equal ExcludesArtifactFilter! - if ( obj == null || getClass() != obj.getClass() ) - { - return false; - } - - IncludesArtifactFilter other = (IncludesArtifactFilter) obj; - - return patterns.equals( other.patterns ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ScopeArtifactFilter.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ScopeArtifactFilter.java deleted file mode 100644 index 1d131b71..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ScopeArtifactFilter.java +++ /dev/null @@ -1,78 +0,0 @@ -package org.apache.maven.artifact.resolver.filter; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Filter to only retain objects in the given artifactScope or better. - * - * @author Brett Porter - */ -public class ScopeArtifactFilter - extends AbstractScopeArtifactFilter -{ - - private final String scope; - - public ScopeArtifactFilter( String scope ) - { - this.scope = scope; - - addScopeInternal( scope ); - } - - public String getScope() - { - return scope; - } - - @Override - public int hashCode() - { - int hash = 17; - - hash = hash * 31 + ( scope != null ? scope.hashCode() : 0 ); - - return hash; - } - - @Override - public boolean equals( Object obj ) - { - if ( this == obj ) - { - return true; - } - - if ( !( obj instanceof ScopeArtifactFilter ) ) - { - return false; - } - - ScopeArtifactFilter other = (ScopeArtifactFilter) obj; - - return equals( scope, other.scope ); - } - - private static boolean equals( T str1, T str2 ) - { - return str1 != null ? str1.equals( str2 ) : str2 == null; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java deleted file mode 100644 index f33bc328..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java +++ /dev/null @@ -1,785 +0,0 @@ -package org.apache.maven.bridge; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.net.MalformedURLException; -import java.net.URL; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import org.apache.maven.RepositoryUtils; -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.DefaultArtifact; -import org.apache.maven.artifact.InvalidRepositoryException; -import org.apache.maven.artifact.handler.ArtifactHandler; -import org.apache.maven.artifact.handler.manager.ArtifactHandlerManager; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy; -import org.apache.maven.artifact.repository.Authentication; -import org.apache.maven.artifact.repository.MavenArtifactRepository; -import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout; -import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout2; -import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout; -import org.apache.maven.artifact.resolver.filter.ExcludesArtifactFilter; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.artifact.versioning.VersionRange; -import org.apache.maven.execution.MavenExecutionRequest; -import org.apache.maven.model.Dependency; -import org.apache.maven.model.Exclusion; -import org.apache.maven.model.Plugin; -import org.apache.maven.repository.Proxy; -import org.apache.maven.repository.RepositorySystem; -import org.apache.maven.settings.Mirror; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.util.StringUtils; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.repository.AuthenticationContext; -import org.eclipse.aether.repository.AuthenticationSelector; -import org.eclipse.aether.repository.ProxySelector; -import org.eclipse.aether.repository.RemoteRepository; - -/** - * @author Jason van Zyl - */ -@Component( role = MavenRepositorySystem.class, hint = "default" ) -public class MavenRepositorySystem -{ - @Requirement - private ArtifactHandlerManager artifactHandlerManager; - - @Requirement( role = ArtifactRepositoryLayout.class ) - private Map layouts; - - // DefaultProjectBuilder - public Artifact createArtifact( String groupId, String artifactId, String version, String scope, String type ) - { - return XcreateArtifact( groupId, artifactId, version, scope, type ); - } - - // DefaultProjectBuilder - public Artifact createProjectArtifact( String groupId, String artifactId, String metaVersionId ) - { - return XcreateProjectArtifact( groupId, artifactId, metaVersionId ); - } - - // DefaultProjectBuilder - public Artifact createDependencyArtifact( Dependency d ) - { - if ( d.getVersion() == null ) - { - return null; - } - - VersionRange versionRange; - try - { - versionRange = VersionRange.createFromVersionSpec( d.getVersion() ); - } - catch ( InvalidVersionSpecificationException e ) - { - return null; - } - - Artifact artifact = - XcreateDependencyArtifact( d.getGroupId(), d.getArtifactId(), versionRange, d.getType(), - d.getClassifier(), d.getScope(), d.isOptional() ); - - if ( Artifact.SCOPE_SYSTEM.equals( d.getScope() ) && d.getSystemPath() != null ) - { - artifact.setFile( new File( d.getSystemPath() ) ); - } - - if ( !d.getExclusions().isEmpty() ) - { - List exclusions = new ArrayList(); - - for ( Exclusion exclusion : d.getExclusions() ) - { - exclusions.add( exclusion.getGroupId() + ':' + exclusion.getArtifactId() ); - } - - artifact.setDependencyFilter( new ExcludesArtifactFilter( exclusions ) ); - } - - return artifact; - } - - // DefaultProjectBuilder - public Artifact createExtensionArtifact( String groupId, String artifactId, String version ) - { - VersionRange versionRange; - try - { - versionRange = VersionRange.createFromVersionSpec( version ); - } - catch ( InvalidVersionSpecificationException e ) - { - return null; - } - - return XcreateExtensionArtifact( groupId, artifactId, versionRange ); - } - - // DefaultProjectBuilder - public Artifact createParentArtifact( String groupId, String artifactId, String version ) - { - return XcreateParentArtifact( groupId, artifactId, version ); - } - - // DefaultProjectBuilder - public Artifact createPluginArtifact( Plugin plugin ) - { - VersionRange versionRange; - try - { - String version = plugin.getVersion(); - if ( StringUtils.isEmpty( version ) ) - { - version = "RELEASE"; - } - versionRange = VersionRange.createFromVersionSpec( version ); - } - catch ( InvalidVersionSpecificationException e ) - { - return null; - } - - return XcreatePluginArtifact( plugin.getGroupId(), plugin.getArtifactId(), versionRange ); - } - - public void injectMirror( List repositories, List mirrors ) - { - if ( repositories != null && mirrors != null ) - { - for ( ArtifactRepository repository : repositories ) - { - Mirror mirror = getMirror( repository, mirrors ); - injectMirror( repository, mirror ); - } - } - } - - private Mirror getMirror( RepositorySystemSession session, ArtifactRepository repository ) - { - if ( session != null ) - { - org.eclipse.aether.repository.MirrorSelector selector = session.getMirrorSelector(); - if ( selector != null ) - { - RemoteRepository repo = selector.getMirror( RepositoryUtils.toRepo( repository ) ); - if ( repo != null ) - { - Mirror mirror = new Mirror(); - mirror.setId( repo.getId() ); - mirror.setUrl( repo.getUrl() ); - mirror.setLayout( repo.getContentType() ); - return mirror; - } - } - } - return null; - } - - public void injectMirror( RepositorySystemSession session, List repositories ) - { - if ( repositories != null && session != null ) - { - for ( ArtifactRepository repository : repositories ) - { - Mirror mirror = getMirror( session, repository ); - injectMirror( repository, mirror ); - } - } - } - - private void injectMirror( ArtifactRepository repository, Mirror mirror ) - { - if ( mirror != null ) - { - ArtifactRepository original = - createArtifactRepository( repository.getId(), repository.getUrl(), repository.getLayout(), - repository.getSnapshots(), repository.getReleases() ); - - repository.setMirroredRepositories( Collections.singletonList( original ) ); - - repository.setId( mirror.getId() ); - repository.setUrl( mirror.getUrl() ); - - if ( StringUtils.isNotEmpty( mirror.getLayout() ) ) - { - repository.setLayout( getLayout( mirror.getLayout() ) ); - } - } - } - - private Authentication getAuthentication( RepositorySystemSession session, ArtifactRepository repository ) - { - if ( session != null ) - { - AuthenticationSelector selector = session.getAuthenticationSelector(); - if ( selector != null ) - { - RemoteRepository repo = RepositoryUtils.toRepo( repository ); - org.eclipse.aether.repository.Authentication auth = selector.getAuthentication( repo ); - if ( auth != null ) - { - repo = new RemoteRepository.Builder( repo ).setAuthentication( auth ).build(); - AuthenticationContext authCtx = AuthenticationContext.forRepository( session, repo ); - Authentication result = - new Authentication( authCtx.get( AuthenticationContext.USERNAME ), - authCtx.get( AuthenticationContext.PASSWORD ) ); - result.setPrivateKey( authCtx.get( AuthenticationContext.PRIVATE_KEY_PATH ) ); - result.setPassphrase( authCtx.get( AuthenticationContext.PRIVATE_KEY_PASSPHRASE ) ); - authCtx.close(); - return result; - } - } - } - return null; - } - - public void injectAuthentication( RepositorySystemSession session, List repositories ) - { - if ( repositories != null && session != null ) - { - for ( ArtifactRepository repository : repositories ) - { - repository.setAuthentication( getAuthentication( session, repository ) ); - } - } - } - - private Proxy getProxy( RepositorySystemSession session, ArtifactRepository repository ) - { - if ( session != null ) - { - ProxySelector selector = session.getProxySelector(); - if ( selector != null ) - { - RemoteRepository repo = RepositoryUtils.toRepo( repository ); - org.eclipse.aether.repository.Proxy proxy = selector.getProxy( repo ); - if ( proxy != null ) - { - Proxy p = new Proxy(); - p.setHost( proxy.getHost() ); - p.setProtocol( proxy.getType() ); - p.setPort( proxy.getPort() ); - if ( proxy.getAuthentication() != null ) - { - repo = new RemoteRepository.Builder( repo ).setProxy( proxy ).build(); - AuthenticationContext authCtx = AuthenticationContext.forProxy( session, repo ); - p.setUserName( authCtx.get( AuthenticationContext.USERNAME ) ); - p.setPassword( authCtx.get( AuthenticationContext.PASSWORD ) ); - p.setNtlmDomain( authCtx.get( AuthenticationContext.NTLM_DOMAIN ) ); - p.setNtlmHost( authCtx.get( AuthenticationContext.NTLM_WORKSTATION ) ); - authCtx.close(); - } - return p; - } - } - } - return null; - } - - public void injectProxy( RepositorySystemSession session, List repositories ) - { - if ( repositories != null && session != null ) - { - for ( ArtifactRepository repository : repositories ) - { - repository.setProxy( getProxy( session, repository ) ); - } - } - } - - private ArtifactRepositoryLayout getLayout( String id ) - { - ArtifactRepositoryLayout layout = layouts.get( id ); - - return layout; - } - - - // - // Taken from LegacyRepositorySystem - // - - public static org.apache.maven.model.Repository fromSettingsRepository( org.apache.maven.settings.Repository - settingsRepository ) - { - org.apache.maven.model.Repository modelRepository = new org.apache.maven.model.Repository(); - modelRepository.setId( settingsRepository.getId() ); - modelRepository.setLayout( settingsRepository.getLayout() ); - modelRepository.setName( settingsRepository.getName() ); - modelRepository.setUrl( settingsRepository.getUrl() ); - modelRepository.setReleases( fromSettingsRepositoryPolicy( settingsRepository.getReleases() ) ); - modelRepository.setSnapshots( fromSettingsRepositoryPolicy( settingsRepository.getSnapshots() ) ); - return modelRepository; - } - - public static org.apache.maven.model.RepositoryPolicy fromSettingsRepositoryPolicy( - org.apache.maven.settings.RepositoryPolicy settingsRepositoryPolicy ) - { - org.apache.maven.model.RepositoryPolicy modelRepositoryPolicy = new org.apache.maven.model.RepositoryPolicy(); - if ( settingsRepositoryPolicy != null ) - { - modelRepositoryPolicy.setEnabled( settingsRepositoryPolicy.isEnabled() ); - modelRepositoryPolicy.setUpdatePolicy( settingsRepositoryPolicy.getUpdatePolicy() ); - modelRepositoryPolicy.setChecksumPolicy( settingsRepositoryPolicy.getChecksumPolicy() ); - } - return modelRepositoryPolicy; - } - - public static ArtifactRepository buildArtifactRepository( org.apache.maven.settings.Repository repo ) - throws InvalidRepositoryException - { - return buildArtifactRepository( fromSettingsRepository( repo ) ); - } - - public static ArtifactRepository buildArtifactRepository( org.apache.maven.model.Repository repo ) - throws InvalidRepositoryException - { - if ( repo != null ) - { - String id = repo.getId(); - - if ( StringUtils.isEmpty( id ) ) - { - throw new InvalidRepositoryException( "Repository identifier missing", "" ); - } - - String url = repo.getUrl(); - - if ( StringUtils.isEmpty( url ) ) - { - throw new InvalidRepositoryException( "URL missing for repository " + id, id ); - } - - ArtifactRepositoryPolicy snapshots = buildArtifactRepositoryPolicy( repo.getSnapshots() ); - - ArtifactRepositoryPolicy releases = buildArtifactRepositoryPolicy( repo.getReleases() ); - - ArtifactRepositoryLayout layout = new DefaultRepositoryLayout(); - - return createArtifactRepository( id, url, layout, snapshots, releases ); - } - else - { - return null; - } - } - - public static ArtifactRepositoryPolicy buildArtifactRepositoryPolicy( org.apache.maven.model.RepositoryPolicy - policy ) - { - boolean enabled = true; - - String updatePolicy = null; - - String checksumPolicy = null; - - if ( policy != null ) - { - enabled = policy.isEnabled(); - - if ( policy.getUpdatePolicy() != null ) - { - updatePolicy = policy.getUpdatePolicy(); - } - if ( policy.getChecksumPolicy() != null ) - { - checksumPolicy = policy.getChecksumPolicy(); - } - } - - return new ArtifactRepositoryPolicy( enabled, updatePolicy, checksumPolicy ); - } - - public ArtifactRepository createArtifactRepository( String id, String url, String layoutId, - ArtifactRepositoryPolicy snapshots, - ArtifactRepositoryPolicy releases ) - throws Exception - { - ArtifactRepositoryLayout layout = layouts.get( layoutId ); - - checkLayout( id, layoutId, layout ); - - return createArtifactRepository( id, url, layout, snapshots, releases ); - } - - private void checkLayout( String repositoryId, String layoutId, ArtifactRepositoryLayout layout ) - throws Exception - { - if ( layout == null ) - { - throw new Exception( String.format( "Cannot find ArtifactRepositoryLayout instance for: %s %s", layoutId, - repositoryId ) ); - } - } - - public static ArtifactRepository createArtifactRepository( String id, String url, - ArtifactRepositoryLayout repositoryLayout, - ArtifactRepositoryPolicy snapshots, - ArtifactRepositoryPolicy releases ) - { - if ( snapshots == null ) - { - snapshots = new ArtifactRepositoryPolicy(); - } - - if ( releases == null ) - { - releases = new ArtifactRepositoryPolicy(); - } - - ArtifactRepository repository; - if ( repositoryLayout instanceof ArtifactRepositoryLayout2 ) - { - repository = - ( (ArtifactRepositoryLayout2) repositoryLayout ).newMavenArtifactRepository( id, url, snapshots, - releases ); - } - else - { - repository = new MavenArtifactRepository( id, url, repositoryLayout, snapshots, releases ); - } - - return repository; - } - - // ArtifactFactory - private Artifact XcreateArtifact( String groupId, String artifactId, String version, String scope, String type ) - { - return XcreateArtifact( groupId, artifactId, version, scope, type, null, null ); - } - - private Artifact XcreateDependencyArtifact( String groupId, String artifactId, VersionRange versionRange, - String type, String classifier, String scope, boolean optional ) - { - return XcreateArtifact( groupId, artifactId, versionRange, type, classifier, scope, null, optional ); - } - - private Artifact XcreateProjectArtifact( String groupId, String artifactId, String version ) - { - return XcreateProjectArtifact( groupId, artifactId, version, null ); - } - - private Artifact XcreateParentArtifact( String groupId, String artifactId, String version ) - { - return XcreateProjectArtifact( groupId, artifactId, version ); - } - - private Artifact XcreatePluginArtifact( String groupId, String artifactId, VersionRange versionRange ) - { - return XcreateArtifact( groupId, artifactId, versionRange, "maven-plugin", null, Artifact.SCOPE_RUNTIME, null ); - } - - private Artifact XcreateProjectArtifact( String groupId, String artifactId, String version, String scope ) - { - return XcreateArtifact( groupId, artifactId, version, scope, "pom" ); - } - - private Artifact XcreateExtensionArtifact( String groupId, String artifactId, VersionRange versionRange ) - { - return XcreateArtifact( groupId, artifactId, versionRange, "jar", null, Artifact.SCOPE_RUNTIME, null ); - } - - private Artifact XcreateArtifact( String groupId, String artifactId, String version, String scope, String type, - String classifier, String inheritedScope ) - { - VersionRange versionRange = null; - if ( version != null ) - { - versionRange = VersionRange.createFromVersion( version ); - } - return XcreateArtifact( groupId, artifactId, versionRange, type, classifier, scope, inheritedScope ); - } - - private Artifact XcreateArtifact( String groupId, String artifactId, VersionRange versionRange, String type, - String classifier, String scope, String inheritedScope ) - { - return XcreateArtifact( groupId, artifactId, versionRange, type, classifier, scope, inheritedScope, false ); - } - - private Artifact XcreateArtifact( String groupId, String artifactId, VersionRange versionRange, String type, - String classifier, String scope, String inheritedScope, boolean optional ) - { - String desiredScope = Artifact.SCOPE_RUNTIME; - - if ( inheritedScope == null ) - { - desiredScope = scope; - } - else if ( Artifact.SCOPE_TEST.equals( scope ) || Artifact.SCOPE_PROVIDED.equals( scope ) ) - { - return null; - } - else if ( Artifact.SCOPE_COMPILE.equals( scope ) && Artifact.SCOPE_COMPILE.equals( inheritedScope ) ) - { - // added to retain compile artifactScope. Remove if you want compile inherited as runtime - desiredScope = Artifact.SCOPE_COMPILE; - } - - if ( Artifact.SCOPE_TEST.equals( inheritedScope ) ) - { - desiredScope = Artifact.SCOPE_TEST; - } - - if ( Artifact.SCOPE_PROVIDED.equals( inheritedScope ) ) - { - desiredScope = Artifact.SCOPE_PROVIDED; - } - - if ( Artifact.SCOPE_SYSTEM.equals( scope ) ) - { - // system scopes come through unchanged... - desiredScope = Artifact.SCOPE_SYSTEM; - } - - ArtifactHandler handler = artifactHandlerManager.getArtifactHandler( type ); - - return new DefaultArtifact( groupId, artifactId, versionRange, desiredScope, type, classifier, handler, - optional ); - } - - // - // Code taken from LegacyRepositorySystem - // - - public ArtifactRepository createDefaultRemoteRepository( MavenExecutionRequest request ) - throws Exception - { - return createRepository( RepositorySystem.DEFAULT_REMOTE_REPO_URL, RepositorySystem.DEFAULT_REMOTE_REPO_ID, - true, ArtifactRepositoryPolicy.UPDATE_POLICY_DAILY, false, - ArtifactRepositoryPolicy.UPDATE_POLICY_DAILY, - ArtifactRepositoryPolicy.CHECKSUM_POLICY_WARN ); - } - - public ArtifactRepository createRepository( String url, String repositoryId, boolean releases, - String releaseUpdates, boolean snapshots, String snapshotUpdates, - String checksumPolicy ) throws Exception - { - ArtifactRepositoryPolicy snapshotsPolicy = - new ArtifactRepositoryPolicy( snapshots, snapshotUpdates, checksumPolicy ); - - ArtifactRepositoryPolicy releasesPolicy = - new ArtifactRepositoryPolicy( releases, releaseUpdates, checksumPolicy ); - - return createArtifactRepository( repositoryId, url, "default", snapshotsPolicy, releasesPolicy ); - } - - public Set getRepoIds( List repositories ) - { - Set repoIds = new HashSet(); - - if ( repositories != null ) - { - for ( ArtifactRepository repository : repositories ) - { - repoIds.add( repository.getId() ); - } - } - - return repoIds; - } - - - public ArtifactRepository createLocalRepository( MavenExecutionRequest request, File localRepository ) - throws Exception - { - return createRepository( "file://" + localRepository.toURI().getRawPath(), - RepositorySystem.DEFAULT_LOCAL_REPO_ID, true, - ArtifactRepositoryPolicy.UPDATE_POLICY_ALWAYS, true, - ArtifactRepositoryPolicy.UPDATE_POLICY_ALWAYS, - ArtifactRepositoryPolicy.CHECKSUM_POLICY_IGNORE ); - } - - private static final String WILDCARD = "*"; - - private static final String EXTERNAL_WILDCARD = "external:*"; - - public static Mirror getMirror( ArtifactRepository repository, List mirrors ) - { - String repoId = repository.getId(); - - if ( repoId != null && mirrors != null ) - { - for ( Mirror mirror : mirrors ) - { - if ( repoId.equals( mirror.getMirrorOf() ) && matchesLayout( repository, mirror ) ) - { - return mirror; - } - } - - for ( Mirror mirror : mirrors ) - { - if ( matchPattern( repository, mirror.getMirrorOf() ) && matchesLayout( repository, mirror ) ) - { - return mirror; - } - } - } - - return null; - } - - /** - * This method checks if the pattern matches the originalRepository. Valid patterns: * = everything external:* = - * everything not on the localhost and not file based. repo,repo1 = repo or repo1 *,!repo1 = everything except repo1 - * - * @param originalRepository to compare for a match. - * @param pattern used for match. Currently only '*' is supported. - * @return true if the repository is a match to this pattern. - */ - static boolean matchPattern( ArtifactRepository originalRepository, String pattern ) - { - boolean result = false; - String originalId = originalRepository.getId(); - - // simple checks first to short circuit processing below. - if ( WILDCARD.equals( pattern ) || pattern.equals( originalId ) ) - { - result = true; - } - else - { - // process the list - String[] repos = pattern.split( "," ); - for ( String repo : repos ) - { - // see if this is a negative match - if ( repo.length() > 1 && repo.startsWith( "!" ) ) - { - if ( repo.substring( 1 ).equals( originalId ) ) - { - // explicitly exclude. Set result and stop processing. - result = false; - break; - } - } - // check for exact match - else if ( repo.equals( originalId ) ) - { - result = true; - break; - } - // check for external:* - else if ( EXTERNAL_WILDCARD.equals( repo ) && isExternalRepo( originalRepository ) ) - { - result = true; - // don't stop processing in case a future segment explicitly excludes this repo - } - else if ( WILDCARD.equals( repo ) ) - { - result = true; - // don't stop processing in case a future segment explicitly excludes this repo - } - } - } - return result; - } - - /** - * Checks the URL to see if this repository refers to an external repository - * - * @param originalRepository - * @return true if external. - */ - static boolean isExternalRepo( ArtifactRepository originalRepository ) - { - try - { - URL url = new URL( originalRepository.getUrl() ); - return !( url.getHost().equals( "localhost" ) || url.getHost().equals( "127.0.0.1" ) - || url.getProtocol().equals( "file" ) ); - } - catch ( MalformedURLException e ) - { - // bad url just skip it here. It should have been validated already, but the wagon lookup will deal with it - return false; - } - } - - static boolean matchesLayout( ArtifactRepository repository, Mirror mirror ) - { - return matchesLayout( RepositoryUtils.getLayout( repository ), mirror.getMirrorOfLayouts() ); - } - - /** - * Checks whether the layouts configured for a mirror match with the layout of the repository. - * - * @param repoLayout The layout of the repository, may be {@code null}. - * @param mirrorLayout The layouts supported by the mirror, may be {@code null}. - * @return {@code true} if the layouts associated with the mirror match the layout of the original repository, - * {@code false} otherwise. - */ - static boolean matchesLayout( String repoLayout, String mirrorLayout ) - { - boolean result = false; - - // simple checks first to short circuit processing below. - if ( StringUtils.isEmpty( mirrorLayout ) || WILDCARD.equals( mirrorLayout ) ) - { - result = true; - } - else if ( mirrorLayout.equals( repoLayout ) ) - { - result = true; - } - else - { - // process the list - String[] layouts = mirrorLayout.split( "," ); - for ( String layout : layouts ) - { - // see if this is a negative match - if ( layout.length() > 1 && layout.startsWith( "!" ) ) - { - if ( layout.substring( 1 ).equals( repoLayout ) ) - { - // explicitly exclude. Set result and stop processing. - result = false; - break; - } - } - // check for exact match - else if ( layout.equals( repoLayout ) ) - { - result = true; - break; - } - else if ( WILDCARD.equals( layout ) ) - { - result = true; - // don't stop processing in case a future segment explicitly excludes this repo - } - } - } - - return result; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ArtifactClassRealmConstituent.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ArtifactClassRealmConstituent.java deleted file mode 100644 index 562d6f47..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ArtifactClassRealmConstituent.java +++ /dev/null @@ -1,76 +0,0 @@ -package org.apache.maven.classrealm; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; - -import org.eclipse.aether.artifact.Artifact; - -/** - * @author Benjamin Bentmann - */ -class ArtifactClassRealmConstituent - implements ClassRealmConstituent -{ - - private final Artifact artifact; - - public ArtifactClassRealmConstituent( Artifact artifact ) - { - this.artifact = artifact; - } - - public String getGroupId() - { - return artifact.getGroupId(); - } - - public String getArtifactId() - { - return artifact.getArtifactId(); - } - - public String getType() - { - return artifact.getExtension(); - } - - public String getClassifier() - { - return artifact.getClassifier(); - } - - public String getVersion() - { - return artifact.getBaseVersion(); - } - - public File getFile() - { - return artifact.getFile(); - } - - @Override - public String toString() - { - return artifact.toString(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmConstituent.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmConstituent.java deleted file mode 100644 index f658eb43..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmConstituent.java +++ /dev/null @@ -1,74 +0,0 @@ -package org.apache.maven.classrealm; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; - -/** - * Describes a constituent of a class realm. - * - * @author Benjamin Bentmann - */ -public interface ClassRealmConstituent -{ - - /** - * Gets the group id of the constituent's artifact. - * - * @return The group id, never {@code null}. - */ - String getGroupId(); - - /** - * Gets the artifact id of the constituent's artifact. - * - * @return The artifact id, never {@code null}. - */ - String getArtifactId(); - - /** - * Gets the type of the constituent's artifact. - * - * @return The type, never {@code null}. - */ - String getType(); - - /** - * Gets the classifier of the constituent's artifact. - * - * @return The classifier or an empty string, never {@code null}. - */ - String getClassifier(); - - /** - * Gets the version of the constituent's artifact. - * - * @return The version, never {@code null}. - */ - String getVersion(); - - /** - * Gets the file of the constituent's artifact. - * - * @return The file, never {@code null}. - */ - File getFile(); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmManager.java deleted file mode 100644 index e5d15143..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmManager.java +++ /dev/null @@ -1,88 +0,0 @@ -package org.apache.maven.classrealm; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; -import java.util.Map; - -import org.apache.maven.model.Model; -import org.apache.maven.model.Plugin; -import org.codehaus.plexus.classworlds.realm.ClassRealm; -import org.eclipse.aether.artifact.Artifact; - -/** - * Manages the class realms used by Maven. Warning: This is an internal utility interface that is only - * public for technical reasons, it is not part of the public API. In particular, this interface can be changed or - * deleted without prior notice. - * - * @author Benjamin Bentmann - */ -public interface ClassRealmManager -{ - - /** - * Gets the class realm hosting the Maven core. - * - * @return The class realm hosting the Maven core, never {@code null}. - */ - ClassRealm getCoreRealm(); - - /** - * Gets the class realm exposing the Maven API. This is basically a restricted view on the Maven core realm. - * - * @return The class realm exposing the Maven API, never {@code null}. - */ - ClassRealm getMavenApiRealm(); - - /** - * Creates a new class realm for the specified project and its build extensions. - * - * @param model The model of the project for which to create a realm, must not be {@code null}. - * @param artifacts The artifacts to add to the class realm, may be {@code null}. Unresolved artifacts (i.e. with a - * missing file) will automatically be excluded from the realm. - * @return The new project realm, never {@code null}. - */ - ClassRealm createProjectRealm( Model model, List artifacts ); - - /** - * Creates a new class realm for the specified build extension. - * - * @param extension The extension plugin for which to create a realm, must not be {@code null}. - * @param artifacts The artifacts to add to the class realm, may be {@code null}. Unresolved artifacts (i.e. with a - * missing file) will automatically be excluded from the realm. - * @return The new extension realm, never {@code null}. - */ - ClassRealm createExtensionRealm( Plugin extension, List artifacts ); - - /** - * Creates a new class realm for the specified plugin. - * - * @param plugin The plugin for which to create a realm, must not be {@code null}. - * @param parent The parent realm for the new realm, may be {@code null}. - * @param parentImports The packages/types to import from the parent realm, may be {@code null}. - * @param foreignImports The packages/types to import from foreign realms, may be {@code null}. - * @param artifacts The artifacts to add to the class realm, may be {@code null}. Unresolved artifacts (i.e. with a - * missing file) will automatically be excluded from the realm. - * @return The new plugin realm, never {@code null}. - */ - ClassRealm createPluginRealm( Plugin plugin, ClassLoader parent, List parentImports, - Map foreignImports, List artifacts ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmManagerDelegate.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmManagerDelegate.java deleted file mode 100644 index b0229b97..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmManagerDelegate.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.apache.maven.classrealm; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - - -import org.codehaus.plexus.classworlds.realm.ClassRealm; - -/** - * ClassRealmManagerDelegate is used to perform addition configuration of - * class realms created by ClassRealmManager. - * - * @author igor - */ -public interface ClassRealmManagerDelegate -{ - - void setupRealm( ClassRealm classRealm, ClassRealmRequest request ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmRequest.java deleted file mode 100644 index 9b62108f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmRequest.java +++ /dev/null @@ -1,100 +0,0 @@ -package org.apache.maven.classrealm; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; -import java.util.Map; - -/** - * Describes the requirements for a new class realm. - * - * @author Benjamin Bentmann - */ -public interface ClassRealmRequest -{ - - /** - * The type of a class realm. - */ - enum RealmType - { - /** - * The class realm for the public API of the Maven core. - */ - Core, - - /** - * A class realm for a project to aggregates its build extensions. - */ - Project, - - /** - * A class realm for a build extension. - */ - Extension, - - /** - * A class realm for a plugin. - */ - Plugin, - } - - /** - * Gets the type of the class realm. - * - * @return The type of the class realm, never {@code null}. - */ - RealmType getType(); - - /** - * Gets the parent class realm (if any). - * - * @return The parent class realm or {@code null} if using the default parent. - */ - ClassLoader getParent(); - - /** - * @deprecated Use {@link #getParentImports()} instead. - */ - @Deprecated - List getImports(); - - /** - * Gets the packages/types to import from the parent realm. - * - * @return The modifiable list of packages/types to import from the parent realm, never {@code null}. - */ - List getParentImports(); - - /** - * Gets the packages/types to import from foreign realms. - * - * @return The modifiable map of packages/types to import from foreign realms, never {@code null}. - */ - Map getForeignImports(); - - /** - * Gets the constituents for the class realm. - * - * @return The modifiable list of constituents for the class realm, never {@code null}. - */ - List getConstituents(); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmManager.java deleted file mode 100644 index 69ee04a9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmManager.java +++ /dev/null @@ -1,416 +0,0 @@ -package org.apache.maven.classrealm; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.net.MalformedURLException; -import java.util.ArrayList; -import java.util.Collections; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Random; -import java.util.Set; -import java.util.TreeMap; - -import javax.inject.Inject; -import javax.inject.Named; -import javax.inject.Singleton; - -import org.apache.maven.artifact.ArtifactUtils; -import org.apache.maven.classrealm.ClassRealmRequest.RealmType; -import org.apache.maven.extension.internal.CoreExportsProvider; -import org.apache.maven.model.Model; -import org.apache.maven.model.Plugin; -import org.codehaus.plexus.MutablePlexusContainer; -import org.codehaus.plexus.PlexusContainer; -import org.codehaus.plexus.classworlds.ClassWorld; -import org.codehaus.plexus.classworlds.realm.ClassRealm; -import org.codehaus.plexus.classworlds.realm.DuplicateRealmException; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.util.StringUtils; -import org.eclipse.aether.artifact.Artifact; - -/** - * Manages the class realms used by Maven. Warning: This is an internal utility class that is only - * public for technical reasons, it is not part of the public API. In particular, this class can be changed or deleted - * without prior notice. - * - * @author Benjamin Bentmann - */ -@Named -@Singleton -public class DefaultClassRealmManager - implements ClassRealmManager -{ - public static final String API_REALMID = "maven.api"; - - /** - * During normal command line build, ClassWorld is loaded by jvm system classloader, which only includes - * plexus-classworlds jar and possibly javaagent classes, see http://jira.codehaus.org/browse/MNG-4747. - *

- * Using ClassWorld to determine plugin/extensions realm parent classloaders gives m2e and integration test harness - * flexibility to load multiple version of maven into dedicated classloaders without assuming state of jvm system - * classloader. - */ - private static final ClassLoader PARENT_CLASSLOADER = ClassWorld.class.getClassLoader(); - - private final Logger logger; - - private final ClassWorld world; - - private final ClassRealm containerRealm; - - // this is a live injected collection - private final List delegates; - - private final ClassRealm mavenApiRealm; - - /** - * Patterns of artifacts provided by maven core and exported via maven api realm. These artifacts are filtered from - * plugin and build extensions realms to avoid presence of duplicate and possibly conflicting classes on classpath. - */ - private final Set providedArtifacts; - - @Inject - public DefaultClassRealmManager( Logger logger, PlexusContainer container, - List delegates, CoreExportsProvider exports ) - { - this.logger = logger; - this.world = ( (MutablePlexusContainer) container ).getClassWorld(); - this.containerRealm = container.getContainerRealm(); - this.delegates = delegates; - - Map foreignImports = exports.get().getExportedPackages(); - - this.mavenApiRealm = - createRealm( API_REALMID, RealmType.Core, null /* parent */, null /* parentImports */, - foreignImports, null /* artifacts */ ); - - this.providedArtifacts = exports.get().getExportedArtifacts(); - } - - private ClassRealm newRealm( String id ) - { - synchronized ( world ) - { - String realmId = id; - - Random random = new Random(); - - while ( true ) - { - try - { - ClassRealm classRealm = world.newRealm( realmId, null ); - - if ( logger.isDebugEnabled() ) - { - logger.debug( "Created new class realm " + realmId ); - } - - return classRealm; - } - catch ( DuplicateRealmException e ) - { - realmId = id + '-' + random.nextInt(); - } - } - } - } - - public ClassRealm getMavenApiRealm() - { - return mavenApiRealm; - } - - /** - * Creates a new class realm with the specified parent and imports. - * - * @param baseRealmId The base id to use for the new realm, must not be {@code null}. - * @param type The type of the class realm, must not be {@code null}. - * @param parent The parent realm for the new realm, may be {@code null}. - * @param parentImports The packages/types to import from the parent realm, may be {@code null}. - * @param foreignImports The packages/types to import from foreign realms, may be {@code null}. - * @param artifacts The artifacts to add to the realm, may be {@code null}. Unresolved artifacts (i.e. with a - * missing file) will automatically be excluded from the realm. - * @return The created class realm, never {@code null}. - */ - private ClassRealm createRealm( String baseRealmId, RealmType type, ClassLoader parent, List parentImports, - Map foreignImports, List artifacts ) - { - Set artifactIds = new LinkedHashSet(); - - List constituents = new ArrayList(); - - if ( artifacts != null ) - { - for ( Artifact artifact : artifacts ) - { - if ( !isProvidedArtifact( artifact ) ) - { - artifactIds.add( getId( artifact ) ); - if ( artifact.getFile() != null ) - { - constituents.add( new ArtifactClassRealmConstituent( artifact ) ); - } - } - } - } - - if ( parentImports != null ) - { - parentImports = new ArrayList( parentImports ); - } - else - { - parentImports = new ArrayList(); - } - - if ( foreignImports != null ) - { - foreignImports = new TreeMap( foreignImports ); - } - else - { - foreignImports = new TreeMap(); - } - - ClassRealm classRealm = newRealm( baseRealmId ); - - if ( parent != null ) - { - classRealm.setParentClassLoader( parent ); - } - - callDelegates( classRealm, type, parent, parentImports, foreignImports, constituents ); - - wireRealm( classRealm, parentImports, foreignImports ); - - Set includedIds = populateRealm( classRealm, constituents ); - - if ( logger.isDebugEnabled() ) - { - artifactIds.removeAll( includedIds ); - - for ( String id : artifactIds ) - { - logger.debug( " Excluded: " + id ); - } - } - - return classRealm; - } - - public ClassRealm getCoreRealm() - { - return containerRealm; - } - - public ClassRealm createProjectRealm( Model model, List artifacts ) - { - if ( model == null ) - { - throw new IllegalArgumentException( "model missing" ); - } - - ClassLoader parent = getMavenApiRealm(); - - return createRealm( getKey( model ), RealmType.Project, parent, null, null, artifacts ); - } - - private static String getKey( Model model ) - { - return "project>" + model.getGroupId() + ":" + model.getArtifactId() + ":" + model.getVersion(); - } - - public ClassRealm createExtensionRealm( Plugin plugin, List artifacts ) - { - if ( plugin == null ) - { - throw new IllegalArgumentException( "extension plugin missing" ); - } - - ClassLoader parent = PARENT_CLASSLOADER; - - Map foreignImports = - Collections.singletonMap( "", getMavenApiRealm() ); - - return createRealm( getKey( plugin, true ), RealmType.Extension, parent, null, foreignImports, artifacts ); - } - - private boolean isProvidedArtifact( Artifact artifact ) - { - return providedArtifacts.contains( artifact.getGroupId() + ":" + artifact.getArtifactId() ); - } - - public ClassRealm createPluginRealm( Plugin plugin, ClassLoader parent, List parentImports, - Map foreignImports, List artifacts ) - { - if ( plugin == null ) - { - throw new IllegalArgumentException( "plugin missing" ); - } - - if ( parent == null ) - { - parent = PARENT_CLASSLOADER; - } - - return createRealm( getKey( plugin, false ), RealmType.Plugin, parent, parentImports, foreignImports, - artifacts ); - } - - private static String getKey( Plugin plugin, boolean extension ) - { - String version = ArtifactUtils.toSnapshotVersion( plugin.getVersion() ); - return ( extension ? "extension>" : "plugin>" ) + plugin.getGroupId() + ":" + plugin.getArtifactId() + ":" - + version; - } - - private static String getId( Artifact artifact ) - { - return getId( artifact.getGroupId(), artifact.getArtifactId(), artifact.getExtension(), - artifact.getClassifier(), artifact.getBaseVersion() ); - } - - private static String getId( ClassRealmConstituent constituent ) - { - return getId( constituent.getGroupId(), constituent.getArtifactId(), constituent.getType(), - constituent.getClassifier(), constituent.getVersion() ); - } - - private static String getId( String gid, String aid, String type, String cls, String ver ) - { - return gid + ':' + aid + ':' + type + ( StringUtils.isNotEmpty( cls ) ? ':' + cls : "" ) + ':' + ver; - } - - private void callDelegates( ClassRealm classRealm, RealmType type, ClassLoader parent, List parentImports, - Map foreignImports, List constituents ) - { - List delegates = new ArrayList( this.delegates ); - - if ( !delegates.isEmpty() ) - { - ClassRealmRequest request = - new DefaultClassRealmRequest( type, parent, parentImports, foreignImports, constituents ); - - for ( ClassRealmManagerDelegate delegate : delegates ) - { - try - { - delegate.setupRealm( classRealm, request ); - } - catch ( Exception e ) - { - logger.error( delegate.getClass().getName() + " failed to setup class realm " + classRealm + ": " - + e.getMessage(), e ); - } - } - } - } - - private Set populateRealm( ClassRealm classRealm, List constituents ) - { - Set includedIds = new LinkedHashSet(); - - if ( logger.isDebugEnabled() ) - { - logger.debug( "Populating class realm " + classRealm.getId() ); - } - - for ( ClassRealmConstituent constituent : constituents ) - { - File file = constituent.getFile(); - - String id = getId( constituent ); - includedIds.add( id ); - - if ( logger.isDebugEnabled() ) - { - logger.debug( " Included: " + id ); - } - - try - { - classRealm.addURL( file.toURI().toURL() ); - } - catch ( MalformedURLException e ) - { - // Not going to happen - logger.error( e.getMessage(), e ); - } - } - - return includedIds; - } - - private void wireRealm( ClassRealm classRealm, List parentImports, Map foreignImports ) - { - if ( foreignImports != null && !foreignImports.isEmpty() ) - { - if ( logger.isDebugEnabled() ) - { - logger.debug( "Importing foreign packages into class realm " + classRealm.getId() ); - } - - for ( Map.Entry entry : foreignImports.entrySet() ) - { - ClassLoader importedRealm = entry.getValue(); - String imp = entry.getKey(); - - if ( logger.isDebugEnabled() ) - { - logger.debug( " Imported: " + imp + " < " + getId( importedRealm ) ); - } - - classRealm.importFrom( importedRealm, imp ); - } - } - - if ( parentImports != null && !parentImports.isEmpty() ) - { - if ( logger.isDebugEnabled() ) - { - logger.debug( "Importing parent packages into class realm " + classRealm.getId() ); - } - - for ( String imp : parentImports ) - { - if ( logger.isDebugEnabled() ) - { - logger.debug( " Imported: " + imp + " < " + getId( classRealm.getParentClassLoader() ) ); - } - - classRealm.importFromParent( imp ); - } - } - } - - private String getId( ClassLoader classLoader ) - { - if ( classLoader instanceof ClassRealm ) - { - return ( (ClassRealm) classLoader ).getId(); - } - return String.valueOf( classLoader ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmRequest.java deleted file mode 100644 index 062b2cf3..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmRequest.java +++ /dev/null @@ -1,82 +0,0 @@ -package org.apache.maven.classrealm; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; -import java.util.Map; - -/** - * @author Benjamin Bentmann - */ -class DefaultClassRealmRequest - implements ClassRealmRequest -{ - - private final RealmType type; - - private final ClassLoader parent; - - private final List parentImports; - - private final Map foreignImports; - - private final List constituents; - - public DefaultClassRealmRequest( RealmType type, ClassLoader parent, List parentImports, - Map foreignImports, List constituents ) - { - this.type = type; - this.parent = parent; - this.parentImports = parentImports; - this.foreignImports = foreignImports; - this.constituents = constituents; - } - - public RealmType getType() - { - return type; - } - - public ClassLoader getParent() - { - return parent; - } - - public List getImports() - { - return getParentImports(); - } - - public List getParentImports() - { - return parentImports; - } - - public Map getForeignImports() - { - return foreignImports; - } - - public List getConstituents() - { - return constituents; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java deleted file mode 100644 index 9859f586..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java +++ /dev/null @@ -1,71 +0,0 @@ -package org.apache.maven.configuration; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; - -/** - * A path translator that resolves relative paths against a specific base directory. - * - * @author Benjamin Bentmann - */ -public class BasedirBeanConfigurationPathTranslator - implements BeanConfigurationPathTranslator -{ - - private final File basedir; - - /** - * Creates a new path translator using the specified base directory. - * - * @param basedir The base directory to resolve relative paths against, may be {@code null} to disable path - * translation. - */ - public BasedirBeanConfigurationPathTranslator( File basedir ) - { - this.basedir = basedir; - } - - public File translatePath( File path ) - { - File result = path; - - if ( path != null && basedir != null ) - { - if ( path.isAbsolute() ) - { - // path is already absolute, we're done - } - else if ( path.getPath().startsWith( File.separator ) ) - { - // drive-relative Windows path, don't align with base dir but with drive root - result = path.getAbsoluteFile(); - } - else - { - // an ordinary relative path, align with base dir - result = new File( new File( basedir, path.getPath() ).toURI().normalize() ).getAbsoluteFile(); - } - } - - return result; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationException.java deleted file mode 100644 index 3d10ed4a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationException.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.apache.maven.configuration; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Thrown when a bean couldn't be configured. - * - * @author Benjamin Bentmann - */ -public class BeanConfigurationException - extends Exception -{ - - public BeanConfigurationException( String message ) - { - super( message ); - } - - public BeanConfigurationException( String message, Throwable cause ) - { - super( message, cause ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationPathTranslator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationPathTranslator.java deleted file mode 100644 index 39663391..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationPathTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.apache.maven.configuration; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; - -/** - * Postprocesses filesystem paths. For instance, a path translator might want to resolve relative paths given in the - * bean configuration against some base directory. - * - * @author Benjamin Bentmann - */ -public interface BeanConfigurationPathTranslator -{ - - /** - * Translates the specified path. - * - * @param path The path to translate, may be {@code null}. - * @return The translated path or {@code null} if none. - */ - File translatePath( File path ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationRequest.java deleted file mode 100644 index d19aa204..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationRequest.java +++ /dev/null @@ -1,130 +0,0 @@ -package org.apache.maven.configuration; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * A request to configure a bean from some configuration in the POM or similar. - * - * @author Benjamin Bentmann - */ -public interface BeanConfigurationRequest -{ - - /** - * Gets the bean to configure. Eventually, a valid request must have a bean set. - * - * @return The bean to configure, or {@code null} if none. - */ - Object getBean(); - - /** - * Sets the bean to configure. Eventually, a valid request must have a bean set. - * - * @param bean The bean to configure, may be {@code null}. - * @return This request for chaining, never {@code null}. - */ - BeanConfigurationRequest setBean( Object bean ); - - /** - * Gets the configuration to unmarshal into the bean. - * - * @return The configuration to unmarshal into the bean or {@code null} if none. - */ - Object getConfiguration(); - - /** - * Sets the configuration to unmarshal into the bean. The configuration should be taken from - * {@link org.apache.maven.model.ConfigurationContainer#getConfiguration()} or a similar source. - * Fully equivalent to {@code setConfiguration(configuration, null)}. - * - * @param configuration The configuration to unmarshal, may be {@code null}. - * @return This request for chaining, never {@code null}. - */ - BeanConfigurationRequest setConfiguration( Object configuration ); - - /** - * Sets the configuration to unmarshal into the bean. The configuration should be taken from - * {@link org.apache.maven.model.ConfigurationContainer#getConfiguration()} or a similar source. - * If {@code element} is not {@code null}, child configuration element with the specified name will - * be unmarshaled. - * - * @param configuration The configuration to unmarshal, may be {@code null}. - * @param element Configuration element name to unmarshal or {@code null} to unmarshal entire configuration. - * @return This request for chaining, never {@code null}. - */ - BeanConfigurationRequest setConfiguration( Object configuration, String element ); - - /** - * Returns configuration element name or {@code null}. - * - * @see #setConfiguration(Object, String) - * - * @return Configuration element name or {@code null} - */ - String getConfigurationElement(); - - /** - * Gets the class loader from which to load any types referenced by the configuration. If unset, the class loader of - * the bean class will be used. - * - * @return The class loader to load referenced types from or {@code null} if unset. - */ - ClassLoader getClassLoader(); - - /** - * Sets the class loader from which to load any types referenced by the configuration. If unset, the class loader of - * the bean class will be used. - * - * @param classLoader The class loader to load referenced types from, may be {@code null}. - * @return This request for chaining, never {@code null}. - */ - BeanConfigurationRequest setClassLoader( ClassLoader classLoader ); - - /** - * Gets the optional preprocessor for configuration values. - * - * @return The preprocessor for configuration values or {@code null} if none. - */ - BeanConfigurationValuePreprocessor getValuePreprocessor(); - - /** - * Sets the optional preprocessor for configuration values. - * - * @param valuePreprocessor The preprocessor for configuration values, may be {@code null} if unneeded. - * @return This request for chaining, never {@code null}. - */ - BeanConfigurationRequest setValuePreprocessor( BeanConfigurationValuePreprocessor valuePreprocessor ); - - /** - * Gets the optional path translator for configuration values unmarshalled to files. - * - * @return The path translator for files or {@code null} if none. - */ - BeanConfigurationPathTranslator getPathTranslator(); - - /** - * Sets the optional path translator for configuration values unmarshalled to files. - * - * @param pathTranslator The path translator for files, may be {@code null} if unneeded. - * @return This request for chaining, never {@code null}. - */ - BeanConfigurationRequest setPathTranslator( BeanConfigurationPathTranslator pathTranslator ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationValuePreprocessor.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationValuePreprocessor.java deleted file mode 100644 index 63f85173..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationValuePreprocessor.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.apache.maven.configuration; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Preprocesses a value from a bean configuration before the bean configurator unmarshals it into a bean property. A - * common use case for such preprocessing is the evaluation of variables within the configuration value. - * - * @author Benjamin Bentmann - */ -public interface BeanConfigurationValuePreprocessor -{ - - /** - * Preprocesses the specified bean configuration value. The optional type provided to this method is a hint (not a - * requirement) for the preprocessor to resolve the value to a compatible value or a (string) value than can be - * unmarshalled into that type. The preprocessor is not required to perform any type conversion but should rather - * filter out incompatible values from its result. - * - * @param value The configuration value to preprocess, must not be {@code null}. - * @param type The target type of the value, may be {@code null}. - * @return The processed configuration value or {@code null} if none. - * @throws BeanConfigurationException If an error occurred while preprocessing the value. - */ - Object preprocessValue( String value, Class type ) - throws BeanConfigurationException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurator.java deleted file mode 100644 index 36d23eca..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurator.java +++ /dev/null @@ -1,44 +0,0 @@ -package org.apache.maven.configuration; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Unmarshals some textual configuration from the POM or similar into the properties of a bean. This component works - * similar to the way Maven configures plugins from the POM, i.e. some configuration like {@code value} - * is mapped to an equally named property of the bean and converted. The properties of the bean are supposed to either - * have a public setter or be backed by an equally named field (of any visibility). - * - * @since 3.0 - * @author Benjamin Bentmann - */ -public interface BeanConfigurator -{ - - /** - * Performs the specified bean configuration. - * - * @param request The configuration request that specifies the bean and the configuration to process, must not be - * {@code null}. - * @throws BeanConfigurationException If the bean configuration could not be successfully processed. - */ - void configureBean( BeanConfigurationRequest request ) - throws BeanConfigurationException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/DefaultBeanConfigurationRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/DefaultBeanConfigurationRequest.java deleted file mode 100644 index 32def48f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/DefaultBeanConfigurationRequest.java +++ /dev/null @@ -1,195 +0,0 @@ -package org.apache.maven.configuration; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.model.Build; -import org.apache.maven.model.Model; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.PluginExecution; -import org.apache.maven.model.PluginManagement; -import org.codehaus.plexus.util.StringUtils; - -/** - * A basic bean configuration request. - * - * @author Benjamin Bentmann - */ -public class DefaultBeanConfigurationRequest - implements BeanConfigurationRequest -{ - - private Object bean; - - private Object configuration; - - private String configurationElement; - - private ClassLoader classLoader; - - private BeanConfigurationValuePreprocessor valuePreprocessor; - - private BeanConfigurationPathTranslator pathTranslator; - - public Object getBean() - { - return bean; - } - - public DefaultBeanConfigurationRequest setBean( Object bean ) - { - this.bean = bean; - return this; - } - - public Object getConfiguration() - { - return configuration; - } - - public String getConfigurationElement() - { - return configurationElement; - } - - public DefaultBeanConfigurationRequest setConfiguration( Object configuration ) - { - return setConfiguration( configuration, null ); - } - - public DefaultBeanConfigurationRequest setConfiguration( Object configuration, String element ) - { - this.configuration = configuration; - this.configurationElement = element; - return this; - } - - /** - * Sets the configuration to the configuration taken from the specified build plugin in the POM. First, the build - * plugins will be searched for the specified plugin, if that fails, the plugin management section will be searched. - * - * @param model The POM to extract the plugin configuration from, may be {@code null}. - * @param pluginGroupId The group id of the plugin whose configuration should be used, must not be {@code null} or - * empty. - * @param pluginArtifactId The artifact id of the plugin whose configuration should be used, must not be - * {@code null} or empty. - * @param pluginExecutionId The id of a plugin execution whose configuration should be used, may be {@code null} or - * empty to use the general plugin configuration. - * @return This request for chaining, never {@code null}. - */ - public DefaultBeanConfigurationRequest setConfiguration( Model model, String pluginGroupId, - String pluginArtifactId, String pluginExecutionId ) - { - Plugin plugin = findPlugin( model, pluginGroupId, pluginArtifactId ); - if ( plugin != null ) - { - if ( StringUtils.isNotEmpty( pluginExecutionId ) ) - { - for ( PluginExecution execution : plugin.getExecutions() ) - { - if ( pluginExecutionId.equals( execution.getId() ) ) - { - setConfiguration( execution.getConfiguration() ); - break; - } - } - } - else - { - setConfiguration( plugin.getConfiguration() ); - } - } - return this; - } - - private Plugin findPlugin( Model model, String groupId, String artifactId ) - { - if ( StringUtils.isEmpty( groupId ) ) - { - throw new IllegalArgumentException( "group id for plugin has not been specified" ); - } - if ( StringUtils.isEmpty( artifactId ) ) - { - throw new IllegalArgumentException( "artifact id for plugin has not been specified" ); - } - - if ( model != null ) - { - Build build = model.getBuild(); - if ( build != null ) - { - for ( Plugin plugin : build.getPlugins() ) - { - if ( groupId.equals( plugin.getGroupId() ) && artifactId.equals( plugin.getArtifactId() ) ) - { - return plugin; - } - } - - PluginManagement mngt = build.getPluginManagement(); - if ( mngt != null ) - { - for ( Plugin plugin : mngt.getPlugins() ) - { - if ( groupId.equals( plugin.getGroupId() ) && artifactId.equals( plugin.getArtifactId() ) ) - { - return plugin; - } - } - } - } - } - - return null; - } - - public ClassLoader getClassLoader() - { - return classLoader; - } - - public DefaultBeanConfigurationRequest setClassLoader( ClassLoader classLoader ) - { - this.classLoader = classLoader; - return this; - } - - public BeanConfigurationValuePreprocessor getValuePreprocessor() - { - return valuePreprocessor; - } - - public DefaultBeanConfigurationRequest setValuePreprocessor( BeanConfigurationValuePreprocessor valuePreprocessor ) - { - this.valuePreprocessor = valuePreprocessor; - return this; - } - - public BeanConfigurationPathTranslator getPathTranslator() - { - return pathTranslator; - } - - public DefaultBeanConfigurationRequest setPathTranslator( BeanConfigurationPathTranslator pathTranslator ) - { - this.pathTranslator = pathTranslator; - return this; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/internal/DefaultBeanConfigurator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/internal/DefaultBeanConfigurator.java deleted file mode 100644 index 3d3def62..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/configuration/internal/DefaultBeanConfigurator.java +++ /dev/null @@ -1,160 +0,0 @@ -package org.apache.maven.configuration.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; - -import org.apache.maven.configuration.BeanConfigurationException; -import org.apache.maven.configuration.BeanConfigurationPathTranslator; -import org.apache.maven.configuration.BeanConfigurationRequest; -import org.apache.maven.configuration.BeanConfigurationValuePreprocessor; -import org.apache.maven.configuration.BeanConfigurator; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.configurator.ComponentConfigurationException; -import org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter; -import org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup; -import org.codehaus.plexus.component.configurator.converters.lookup.DefaultConverterLookup; -import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException; -import org.codehaus.plexus.component.configurator.expression.TypeAwareExpressionEvaluator; -import org.codehaus.plexus.configuration.PlexusConfiguration; -import org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration; -import org.codehaus.plexus.util.xml.Xpp3Dom; - -/** - * Warning: This is an internal class that is only public for technical reasons, it is not part of the - * public API. In particular, this class can be changed or deleted without prior notice. - * - * @author Benjamin Bentmann - */ -@Component( role = BeanConfigurator.class ) -public class DefaultBeanConfigurator - implements BeanConfigurator -{ - - private final ConverterLookup converterLookup = new DefaultConverterLookup(); - - public void configureBean( BeanConfigurationRequest request ) - throws BeanConfigurationException - { - if ( request == null ) - { - throw new IllegalArgumentException( "bean configuration request not specified" ); - } - - if ( request.getBean() == null ) - { - throw new IllegalArgumentException( "bean to be configured not specified" ); - } - - Object configuration = request.getConfiguration(); - if ( configuration == null ) - { - return; - } - - PlexusConfiguration plexusConfig; - if ( configuration instanceof PlexusConfiguration ) - { - plexusConfig = (PlexusConfiguration) configuration; - } - else if ( configuration instanceof Xpp3Dom ) - { - plexusConfig = new XmlPlexusConfiguration( (Xpp3Dom) configuration ); - } - else - { - throw new BeanConfigurationException( "unsupported bean configuration source (" - + configuration.getClass().getName() + ")" ); - } - - if ( request.getConfigurationElement() != null ) - { - plexusConfig = plexusConfig.getChild( request.getConfigurationElement() ); - } - - ClassLoader classLoader = request.getClassLoader(); - if ( classLoader == null ) - { - classLoader = request.getBean().getClass().getClassLoader(); - } - - BeanExpressionEvaluator evaluator = new BeanExpressionEvaluator( request ); - - ObjectWithFieldsConverter converter = new ObjectWithFieldsConverter(); - - try - { - converter.processConfiguration( converterLookup, request.getBean(), classLoader, plexusConfig, evaluator ); - } - catch ( ComponentConfigurationException e ) - { - throw new BeanConfigurationException( e.getMessage(), e ); - } - } - - static class BeanExpressionEvaluator - implements TypeAwareExpressionEvaluator - { - - private final BeanConfigurationValuePreprocessor preprocessor; - - private final BeanConfigurationPathTranslator translator; - - public BeanExpressionEvaluator( BeanConfigurationRequest request ) - { - preprocessor = request.getValuePreprocessor(); - translator = request.getPathTranslator(); - } - - public Object evaluate( String expression, Class type ) - throws ExpressionEvaluationException - { - if ( preprocessor != null ) - { - try - { - return preprocessor.preprocessValue( expression, type ); - } - catch ( BeanConfigurationException e ) - { - throw new ExpressionEvaluationException( e.getMessage(), e ); - } - } - return expression; - } - - public Object evaluate( String expression ) - throws ExpressionEvaluationException - { - return evaluate( expression, null ); - } - - public File alignToBaseDirectory( File file ) - { - if ( translator != null ) - { - return translator.translatePath( file ); - } - return file; - } - - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/AbstractEventSpy.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/AbstractEventSpy.java deleted file mode 100644 index 09132275..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/AbstractEventSpy.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.apache.maven.eventspy; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * A skeleton eventspy that does nothing other than helping implementors. - * @since 3.0.2 - */ -public abstract class AbstractEventSpy - implements EventSpy -{ - - public void init( Context context ) - throws Exception - { - } - - public void onEvent( Object event ) - throws Exception - { - } - - public void close() - throws Exception - { - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/EventSpy.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/EventSpy.java deleted file mode 100644 index 4284fce9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/EventSpy.java +++ /dev/null @@ -1,77 +0,0 @@ -package org.apache.maven.eventspy; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Map; - -/** - * A core extension to monitor Maven's execution. Typically, such an extension gets loaded into Maven by specifying the - * system property {@code maven.ext.class.path} on the command line. As soon as dependency injection is setup, Maven - * looks up all implementators of this interface and calls their {@link #init(Context)} method. Note: - * Implementors are strongly advised to inherit from {@link AbstractEventSpy} instead of directly implementing this - * interface. - * @since 3.0.2 - */ -public interface EventSpy -{ - - interface Context - { - - /** - * Gets key-value pairs providing information about the Maven runtime. - * - * @return The key-value pairs, never {@code null}. - */ - Map getData(); - - } - - /** - * Initializes the spy. - * - * @param context The event spy context, never {@code null}. - */ - void init( Context context ) - throws Exception; - - /** - * Notifies the spy of some build event/operation. - * - * @param event The event, never {@code null}. - * @see org.apache.maven.settings.building.SettingsBuildingRequest - * @see org.apache.maven.settings.building.SettingsBuildingResult - * @see org.apache.maven.execution.MavenExecutionRequest - * @see org.apache.maven.execution.MavenExecutionResult - * @see org.apache.maven.project.DependencyResolutionRequest - * @see org.apache.maven.project.DependencyResolutionResult - * @see org.apache.maven.execution.ExecutionEvent - * @see org.eclipse.aether.RepositoryEvent - */ - void onEvent( Object event ) - throws Exception; - - /** - * Notifies the spy of Maven's termination, allowing it to free any resources allocated by it. - */ - void close() - throws Exception; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyDispatcher.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyDispatcher.java deleted file mode 100644 index d44642d1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyDispatcher.java +++ /dev/null @@ -1,158 +0,0 @@ -package org.apache.maven.eventspy.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.List; - -import org.apache.maven.eventspy.EventSpy; -import org.apache.maven.execution.ExecutionListener; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; -import org.eclipse.aether.RepositoryListener; - -/** - * Dispatches callbacks to all registered eventspies. - * @since 3.0.2 - */ -@Component( role = EventSpyDispatcher.class ) -public class EventSpyDispatcher -{ - - @Requirement - private Logger logger; - - @Requirement( role = EventSpy.class ) - private List eventSpies; - - public void setEventSpies( List eventSpies ) - { - // make copy to get rid of needless overhead for dynamic lookups - this.eventSpies = new ArrayList( eventSpies ); - } - - public List getEventSpies() - { - return eventSpies; - } - - public ExecutionListener chainListener( ExecutionListener listener ) - { - if ( eventSpies.isEmpty() ) - { - return listener; - } - return new EventSpyExecutionListener( this, listener ); - } - - public RepositoryListener chainListener( RepositoryListener listener ) - { - if ( eventSpies.isEmpty() ) - { - return listener; - } - return new EventSpyRepositoryListener( this, listener ); - } - - public void init( EventSpy.Context context ) - { - if ( eventSpies.isEmpty() ) - { - return; - } - for ( EventSpy eventSpy : eventSpies ) - { - try - { - eventSpy.init( context ); - } - catch ( Exception e ) - { - logError( "initialize", e, eventSpy ); - } - catch ( LinkageError e ) - { - logError( "initialize", e, eventSpy ); - } - } - } - - public void onEvent( Object event ) - { - if ( eventSpies.isEmpty() ) - { - return; - } - for ( EventSpy eventSpy : eventSpies ) - { - try - { - eventSpy.onEvent( event ); - } - catch ( Exception e ) - { - logError( "notify", e, eventSpy ); - } - catch ( LinkageError e ) - { - logError( "notify", e, eventSpy ); - } - } - } - - public void close() - { - if ( eventSpies.isEmpty() ) - { - return; - } - for ( EventSpy eventSpy : eventSpies ) - { - try - { - eventSpy.close(); - } - catch ( Exception e ) - { - logError( "close", e, eventSpy ); - } - catch ( LinkageError e ) - { - logError( "close", e, eventSpy ); - } - } - } - - private void logError( String action, Throwable e, EventSpy spy ) - { - String msg = "Failed to " + action + " spy " + spy.getClass().getName() + ": " + e.getMessage(); - - if ( logger.isDebugEnabled() ) - { - logger.warn( msg, e ); - } - else - { - logger.warn( msg ); - } - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyExecutionListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyExecutionListener.java deleted file mode 100644 index 6b25da58..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyExecutionListener.java +++ /dev/null @@ -1,163 +0,0 @@ -package org.apache.maven.eventspy.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.AbstractExecutionListener; -import org.apache.maven.execution.ExecutionEvent; -import org.apache.maven.execution.ExecutionListener; - -/** - * Forwards execution events to eventspies. - * @since 3.0.2 - */ -class EventSpyExecutionListener - extends AbstractExecutionListener -{ - - private final EventSpyDispatcher dispatcher; - - private final ExecutionListener delegate; - - public EventSpyExecutionListener( EventSpyDispatcher dispatcher, ExecutionListener delegate ) - { - this.dispatcher = dispatcher; - this.delegate = delegate; - } - - @Override - public void projectDiscoveryStarted( ExecutionEvent event ) - { - dispatcher.onEvent( event ); - delegate.projectDiscoveryStarted( event ); - } - - @Override - public void sessionStarted( ExecutionEvent event ) - { - dispatcher.onEvent( event ); - delegate.sessionStarted( event ); - } - - @Override - public void sessionEnded( ExecutionEvent event ) - { - dispatcher.onEvent( event ); - delegate.sessionEnded( event ); - } - - @Override - public void projectSkipped( ExecutionEvent event ) - { - dispatcher.onEvent( event ); - delegate.projectSkipped( event ); - } - - @Override - public void projectStarted( ExecutionEvent event ) - { - dispatcher.onEvent( event ); - delegate.projectStarted( event ); - } - - @Override - public void projectSucceeded( ExecutionEvent event ) - { - dispatcher.onEvent( event ); - delegate.projectSucceeded( event ); - } - - @Override - public void projectFailed( ExecutionEvent event ) - { - dispatcher.onEvent( event ); - delegate.projectFailed( event ); - } - - @Override - public void forkStarted( ExecutionEvent event ) - { - dispatcher.onEvent( event ); - delegate.forkStarted( event ); - } - - @Override - public void forkSucceeded( ExecutionEvent event ) - { - dispatcher.onEvent( event ); - delegate.forkSucceeded( event ); - } - - @Override - public void forkFailed( ExecutionEvent event ) - { - dispatcher.onEvent( event ); - delegate.forkFailed( event ); - } - - @Override - public void mojoSkipped( ExecutionEvent event ) - { - dispatcher.onEvent( event ); - delegate.mojoSkipped( event ); - } - - @Override - public void mojoStarted( ExecutionEvent event ) - { - dispatcher.onEvent( event ); - delegate.mojoStarted( event ); - } - - @Override - public void mojoSucceeded( ExecutionEvent event ) - { - dispatcher.onEvent( event ); - delegate.mojoSucceeded( event ); - } - - @Override - public void mojoFailed( ExecutionEvent event ) - { - dispatcher.onEvent( event ); - delegate.mojoFailed( event ); - } - - @Override - public void forkedProjectStarted( ExecutionEvent event ) - { - dispatcher.onEvent( event ); - delegate.forkedProjectStarted( event ); - } - - @Override - public void forkedProjectSucceeded( ExecutionEvent event ) - { - dispatcher.onEvent( event ); - delegate.forkedProjectSucceeded( event ); - } - - @Override - public void forkedProjectFailed( ExecutionEvent event ) - { - dispatcher.onEvent( event ); - delegate.forkedProjectFailed( event ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyRepositoryListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyRepositoryListener.java deleted file mode 100644 index 60d4cd1c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyRepositoryListener.java +++ /dev/null @@ -1,176 +0,0 @@ -package org.apache.maven.eventspy.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.eclipse.aether.AbstractRepositoryListener; -import org.eclipse.aether.RepositoryEvent; -import org.eclipse.aether.RepositoryListener; - -/** - * Forwards repository events to eventspies. - * @since 3.0.2 - */ -class EventSpyRepositoryListener - extends AbstractRepositoryListener -{ - private final EventSpyDispatcher dispatcher; - - private final RepositoryListener delegate; - - public EventSpyRepositoryListener( EventSpyDispatcher dispatcher, RepositoryListener delegate ) - { - this.dispatcher = dispatcher; - this.delegate = delegate; - } - - @Override - public void artifactDeployed( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.artifactDeployed( event ); - } - - @Override - public void artifactDeploying( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.artifactDeploying( event ); - } - - @Override - public void artifactDescriptorInvalid( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.artifactDescriptorInvalid( event ); - } - - @Override - public void artifactDescriptorMissing( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.artifactDescriptorMissing( event ); - } - - @Override - public void artifactInstalled( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.artifactInstalled( event ); - } - - @Override - public void artifactInstalling( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.artifactInstalling( event ); - } - - @Override - public void artifactResolved( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.artifactResolved( event ); - } - - @Override - public void artifactResolving( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.artifactResolving( event ); - } - - @Override - public void metadataDeployed( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.metadataDeployed( event ); - } - - @Override - public void metadataDeploying( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.metadataDeploying( event ); - } - - @Override - public void metadataInstalled( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.metadataInstalled( event ); - } - - @Override - public void metadataInstalling( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.metadataInstalling( event ); - } - - @Override - public void metadataInvalid( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.metadataInvalid( event ); - } - - @Override - public void metadataResolved( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.metadataResolved( event ); - } - - @Override - public void metadataResolving( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.metadataResolving( event ); - } - - @Override - public void artifactDownloaded( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.artifactDownloaded( event ); - } - - @Override - public void artifactDownloading( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.artifactDownloading( event ); - } - - @Override - public void metadataDownloaded( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.metadataDownloaded( event ); - } - - @Override - public void metadataDownloading( RepositoryEvent event ) - { - dispatcher.onEvent( event ); - delegate.metadataDownloading( event ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java deleted file mode 100644 index 6df72c81..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java +++ /dev/null @@ -1,336 +0,0 @@ -package org.apache.maven.exception; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.IOException; -import java.net.ConnectException; -import java.net.UnknownHostException; -import java.util.ArrayList; -import java.util.List; - -import org.apache.maven.lifecycle.LifecycleExecutionException; -import org.apache.maven.model.building.ModelProblem; -import org.apache.maven.model.building.ModelProblemUtils; -import org.apache.maven.plugin.AbstractMojoExecutionException; -import org.apache.maven.plugin.MojoExecutionException; -import org.apache.maven.plugin.MojoFailureException; -import org.apache.maven.plugin.PluginContainerException; -import org.apache.maven.plugin.PluginExecutionException; -import org.apache.maven.project.ProjectBuildingException; -import org.apache.maven.project.ProjectBuildingResult; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.util.StringUtils; - -/* - -- test projects for each of these -- how to categorize the problems so that the id of the problem can be match to a page with descriptive help and the test - project -- nice little sample projects that could be run in the core as well as integration tests - -All Possible Errors -- invalid lifecycle phase (maybe same as bad CLI param, though you were talking about embedder too) -- specified is not found -- malformed settings -- malformed POM -- local repository not writable -- remote repositories not available -- artifact metadata missing -- extension metadata missing -- extension artifact missing -- artifact metadata retrieval problem -- version range violation -- circular dependency -- artifact missing -- artifact retrieval exception -- md5 checksum doesn't match for local artifact, need to redownload this -- POM doesn't exist for a goal that requires one -- parent POM missing (in both the repository + relative path) -- component not found - -Plugins: -- plugin metadata missing -- plugin metadata retrieval problem -- plugin artifact missing -- plugin artifact retrieval problem -- plugin dependency metadata missing -- plugin dependency metadata retrieval problem -- plugin configuration problem -- plugin execution failure due to something that is know to possibly go wrong (like compilation failure) -- plugin execution error due to something that is not expected to go wrong (the compiler executable missing) -- asking to use a plugin for which you do not have a version defined - tools to easily select versions -- goal not found in a plugin (probably could list the ones that are) - - */ - -// PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, -// CycleDetectedInPluginGraphException; - -@Component( role = ExceptionHandler.class ) -public class DefaultExceptionHandler - implements ExceptionHandler -{ - - public ExceptionSummary handleException( Throwable exception ) - { - return handle( "", exception ); - } - - private ExceptionSummary handle( String message, Throwable exception ) - { - String reference = getReference( exception ); - - List children = null; - - if ( exception instanceof ProjectBuildingException ) - { - List results = ( (ProjectBuildingException) exception ).getResults(); - - children = new ArrayList(); - - for ( ProjectBuildingResult result : results ) - { - ExceptionSummary child = handle( result ); - if ( child != null ) - { - children.add( child ); - } - } - - message = "The build could not read " + children.size() + " project" + ( children.size() == 1 ? "" : "s" ); - } - else - { - message = getMessage( message, exception ); - } - - return new ExceptionSummary( exception, message, reference, children ); - } - - private ExceptionSummary handle( ProjectBuildingResult result ) - { - List children = new ArrayList(); - - for ( ModelProblem problem : result.getProblems() ) - { - ExceptionSummary child = handle( problem, result.getProjectId() ); - if ( child != null ) - { - children.add( child ); - } - } - - if ( children.isEmpty() ) - { - return null; - } - - String message = - "\nThe project " + result.getProjectId() + " (" + result.getPomFile() + ") has " - + children.size() + " error" + ( children.size() == 1 ? "" : "s" ); - - return new ExceptionSummary( null, message, null, children ); - } - - private ExceptionSummary handle( ModelProblem problem, String projectId ) - { - if ( ModelProblem.Severity.ERROR.compareTo( problem.getSeverity() ) >= 0 ) - { - String message = problem.getMessage(); - - String location = ModelProblemUtils.formatLocation( problem, projectId ); - - if ( StringUtils.isNotEmpty( location ) ) - { - message += " @ " + location; - } - - return handle( message, problem.getException() ); - } - else - { - return null; - } - } - - private String getReference( Throwable exception ) - { - String reference = ""; - - if ( exception != null ) - { - if ( exception instanceof MojoExecutionException ) - { - reference = MojoExecutionException.class.getSimpleName(); - - Throwable cause = exception.getCause(); - if ( cause instanceof IOException ) - { - cause = cause.getCause(); - if ( cause instanceof ConnectException ) - { - reference = ConnectException.class.getSimpleName(); - } - } - } - else if ( exception instanceof MojoFailureException ) - { - reference = MojoFailureException.class.getSimpleName(); - } - else if ( exception instanceof LinkageError ) - { - reference = LinkageError.class.getSimpleName(); - } - else if ( exception instanceof PluginExecutionException ) - { - Throwable cause = exception.getCause(); - - if ( cause instanceof PluginContainerException ) - { - Throwable cause2 = cause.getCause(); - - if ( cause2 instanceof NoClassDefFoundError - && cause2.getMessage().contains( "org/sonatype/aether/" ) ) - { - reference = "AetherClassNotFound"; - } - } - - if ( StringUtils.isEmpty( reference ) ) - { - reference = getReference( cause ); - } - - if ( StringUtils.isEmpty( reference ) ) - { - reference = exception.getClass().getSimpleName(); - } - } - else if ( exception instanceof LifecycleExecutionException ) - { - reference = getReference( exception.getCause() ); - } - else if ( isNoteworthyException( exception ) ) - { - reference = exception.getClass().getSimpleName(); - } - } - - if ( StringUtils.isNotEmpty( reference ) && !reference.startsWith( "http:" ) ) - { - reference = "http://cwiki.apache.org/confluence/display/MAVEN/" + reference; - } - - return reference; - } - - private boolean isNoteworthyException( Throwable exception ) - { - if ( exception == null ) - { - return false; - } - else if ( exception instanceof Error ) - { - return true; - } - else if ( exception instanceof RuntimeException ) - { - return false; - } - else if ( exception.getClass().getName().startsWith( "java" ) ) - { - return false; - } - return true; - } - - private String getMessage( String message, Throwable exception ) - { - String fullMessage = ( message != null ) ? message : ""; - - for ( Throwable t = exception; t != null; t = t.getCause() ) - { - String exceptionMessage = t.getMessage(); - - if ( t instanceof AbstractMojoExecutionException ) - { - String longMessage = ( (AbstractMojoExecutionException) t ).getLongMessage(); - if ( StringUtils.isNotEmpty( longMessage ) ) - { - if ( StringUtils.isEmpty( exceptionMessage ) || longMessage.contains( exceptionMessage ) ) - { - exceptionMessage = longMessage; - } - else if ( !exceptionMessage.contains( longMessage ) ) - { - exceptionMessage = join( exceptionMessage, '\n' + longMessage ); - } - } - } - - if ( StringUtils.isEmpty( exceptionMessage ) ) - { - exceptionMessage = t.getClass().getSimpleName(); - } - - if ( t instanceof UnknownHostException && !fullMessage.contains( "host" ) ) - { - fullMessage = join( fullMessage, "Unknown host " + exceptionMessage ); - } - else if ( !fullMessage.contains( exceptionMessage ) ) - { - fullMessage = join( fullMessage, exceptionMessage ); - } - } - - return fullMessage.trim(); - } - - private String join( String message1, String message2 ) - { - String message = ""; - - if ( StringUtils.isNotEmpty( message1 ) ) - { - message = message1.trim(); - } - - if ( StringUtils.isNotEmpty( message2 ) ) - { - if ( StringUtils.isNotEmpty( message ) ) - { - if ( message.endsWith( "." ) || message.endsWith( "!" ) || message.endsWith( ":" ) ) - { - message += " "; - } - else - { - message += ": "; - } - } - - message += message2; - } - - return message; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/exception/ExceptionHandler.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/exception/ExceptionHandler.java deleted file mode 100644 index 47865f67..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/exception/ExceptionHandler.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.apache.maven.exception; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Transform an exception into useful end-user message. - * - * @since 3.0-alpha-3 - */ -public interface ExceptionHandler -{ - ExceptionSummary handleException( Throwable e ); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/exception/ExceptionSummary.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/exception/ExceptionSummary.java deleted file mode 100644 index dcc376a4..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/exception/ExceptionSummary.java +++ /dev/null @@ -1,79 +0,0 @@ -package org.apache.maven.exception; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collections; -import java.util.List; - -/** - * Provide a summary of the exception, containing:

- */ -public class ExceptionSummary -{ - - private Throwable exception; - - private String message; - - private String reference; - - private List children; - - public ExceptionSummary( Throwable exception, String message, String reference ) - { - this( exception, message, reference, null ); - } - - public ExceptionSummary( Throwable exception, String message, String reference, List children ) - { - this.exception = exception; - this.message = ( message != null ) ? message : ""; - this.reference = ( reference != null ) ? reference : ""; - this.children = ( children != null ) ? children : Collections.emptyList(); - } - - public Throwable getException() - { - return exception; - } - - public String getMessage() - { - return message; - } - - public String getReference() - { - return reference; - } - - public List getChildren() - { - return children; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/AbstractExecutionListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/AbstractExecutionListener.java deleted file mode 100644 index 89665007..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/AbstractExecutionListener.java +++ /dev/null @@ -1,116 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Provides a skeleton implementation for execution listeners. The methods of this class are empty. - * - * @author Benjamin Bentmann - */ -public class AbstractExecutionListener - implements ExecutionListener -{ - - public void projectDiscoveryStarted( ExecutionEvent event ) - { - // default does nothing - } - - public void sessionStarted( ExecutionEvent event ) - { - // default does nothing - } - - public void sessionEnded( ExecutionEvent event ) - { - // default does nothing - } - - public void projectSkipped( ExecutionEvent event ) - { - // default does nothing - } - - public void projectStarted( ExecutionEvent event ) - { - // default does nothing - } - - public void projectSucceeded( ExecutionEvent event ) - { - // default does nothing - } - - public void projectFailed( ExecutionEvent event ) - { - // default does nothing - } - - public void forkStarted( ExecutionEvent event ) - { - // default does nothing - } - - public void forkSucceeded( ExecutionEvent event ) - { - // default does nothing - } - - public void forkFailed( ExecutionEvent event ) - { - // default does nothing - } - - public void mojoSkipped( ExecutionEvent event ) - { - // default does nothing - } - - public void mojoStarted( ExecutionEvent event ) - { - // default does nothing - } - - public void mojoSucceeded( ExecutionEvent event ) - { - // default does nothing - } - - public void mojoFailed( ExecutionEvent event ) - { - // default does nothing - } - - public void forkedProjectStarted( ExecutionEvent event ) - { - // default does nothing - } - - public void forkedProjectSucceeded( ExecutionEvent event ) - { - // default does nothing - } - - public void forkedProjectFailed( ExecutionEvent event ) - { - // default does nothing - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/BuildFailure.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/BuildFailure.java deleted file mode 100644 index bf8f62ba..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/BuildFailure.java +++ /dev/null @@ -1,61 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.project.MavenProject; - -/** - * Summarizes the result of a failed project build in the reactor. - * - * @author Benjamin Bentmann - */ -public class BuildFailure - extends BuildSummary -{ - - /** - * The cause of the build failure. - */ - private final Throwable cause; - - /** - * Creates a new build summary for the specified project. - * - * @param project The project being summarized, must not be {@code null}. - * @param time The build time of the project in milliseconds. - * @param cause The cause of the build failure, may be {@code null}. - */ - public BuildFailure( MavenProject project, long time, Throwable cause ) - { - super( project, time ); - this.cause = cause; - } - - /** - * Gets the cause of the build failure. - * - * @return The cause of the build failure or {@code null} if unknown. - */ - public Throwable getCause() - { - return cause; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/BuildSuccess.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/BuildSuccess.java deleted file mode 100644 index 3d0e8bd7..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/BuildSuccess.java +++ /dev/null @@ -1,44 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.project.MavenProject; - -/** - * Summarizes the result of a successful project build in the reactor. - * - * @author Benjamin Bentmann - */ -public class BuildSuccess - extends BuildSummary -{ - - /** - * Creates a new build summary for the specified project. - * - * @param project The project being summarized, must not be {@code null}. - * @param time The build time of the project in milliseconds. - */ - public BuildSuccess( MavenProject project, long time ) - { - super( project, time ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/BuildSummary.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/BuildSummary.java deleted file mode 100644 index ec23f721..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/BuildSummary.java +++ /dev/null @@ -1,78 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.project.MavenProject; - -/** - * Summarizes the result of a project build in the reactor. - * - * @author Benjamin Bentmann - */ -public abstract class BuildSummary -{ - - /** - * The project being summarized. - */ - private final MavenProject project; - - /** - * The build time of the project in milliseconds. - */ - private final long time; - - /** - * Creates a new build summary for the specified project. - * - * @param project The project being summarized, must not be {@code null}. - * @param time The build time of the project in milliseconds. - */ - protected BuildSummary( MavenProject project, long time ) - { - if ( project == null ) - { - throw new IllegalArgumentException( "project missing" ); - } - this.project = project; - this.time = time; - } - - /** - * Gets the project being summarized. - * - * @return The project being summarized, never {@code null}. - */ - public MavenProject getProject() - { - return project; - } - - /** - * Gets the build time of the project in milliseconds. - * - * @return The build time of the project in milliseconds. - */ - public long getTime() - { - return time; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java deleted file mode 100644 index e5509dca..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java +++ /dev/null @@ -1,1299 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.ArrayList; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Properties; - -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.eventspy.internal.EventSpyDispatcher; -import org.apache.maven.model.Profile; -import org.apache.maven.project.DefaultProjectBuildingRequest; -import org.apache.maven.project.ProjectBuildingRequest; -import org.apache.maven.settings.Mirror; -import org.apache.maven.settings.Proxy; -import org.apache.maven.settings.Server; -import org.apache.maven.toolchain.model.ToolchainModel; -import org.eclipse.aether.DefaultRepositoryCache; -import org.eclipse.aether.RepositoryCache; -import org.eclipse.aether.repository.WorkspaceReader; -import org.eclipse.aether.transfer.TransferListener; - -import com.google.common.collect.Maps; - -/** - * @author Jason van Zyl - */ -public class DefaultMavenExecutionRequest - implements MavenExecutionRequest -{ - - private RepositoryCache repositoryCache = new DefaultRepositoryCache(); - - private WorkspaceReader workspaceReader; - - private ArtifactRepository localRepository; - - private EventSpyDispatcher eventSpyDispatcher; - - private File localRepositoryPath; - - private boolean offline = false; - - private boolean interactiveMode = true; - - private boolean cacheTransferError; - - private boolean cacheNotFound; - - private List proxies; - - private List servers; - - private List mirrors; - - private List profiles; - - private List pluginGroups; - - private boolean isProjectPresent = true; - - // ---------------------------------------------------------------------------- - // We need to allow per execution user and global settings as the embedder - // might be running in a mode where its executing many threads with totally - // different settings. - // ---------------------------------------------------------------------------- - - private File userSettingsFile; - - private File globalSettingsFile; - - private File userToolchainsFile; - - private File globalToolchainsFile; - - // ---------------------------------------------------------------------------- - // Request - // ---------------------------------------------------------------------------- - - private File multiModuleProjectDirectory; - - private File basedir; - - private List goals; - - private boolean useReactor = false; - - private boolean recursive = true; - - private File pom; - - private String reactorFailureBehavior = REACTOR_FAIL_FAST; - - private List selectedProjects; - - private List excludedProjects; - - private String resumeFrom; - - private String makeBehavior; - - private Properties systemProperties; - - private Properties userProperties; - - private Date startTime; - - private boolean showErrors = false; - - private List activeProfiles; - - private List inactiveProfiles; - - private TransferListener transferListener; - - private int loggingLevel = LOGGING_LEVEL_INFO; - - private String globalChecksumPolicy; - - private boolean updateSnapshots = false; - - private List remoteRepositories; - - private List pluginArtifactRepositories; - - private ExecutionListener executionListener; - - private int degreeOfConcurrency = 1; - - private String builderId = "singlethreaded"; - - private Map> toolchains; - - /** - * Suppress SNAPSHOT updates. - * - * @issue MNG-2681 - */ - private boolean noSnapshotUpdates; - - private boolean useLegacyLocalRepositoryManager = false; - - private Map data; - - public DefaultMavenExecutionRequest() - { - } - - public static MavenExecutionRequest copy( MavenExecutionRequest original ) - { - DefaultMavenExecutionRequest copy = new DefaultMavenExecutionRequest(); - copy.setLocalRepository( original.getLocalRepository() ); - copy.setLocalRepositoryPath( original.getLocalRepositoryPath() ); - copy.setOffline( original.isOffline() ); - copy.setInteractiveMode( original.isInteractiveMode() ); - copy.setCacheNotFound( original.isCacheNotFound() ); - copy.setCacheTransferError( original.isCacheTransferError() ); - copy.setProxies( original.getProxies() ); - copy.setServers( original.getServers() ); - copy.setMirrors( original.getMirrors() ); - copy.setProfiles( original.getProfiles() ); - copy.setPluginGroups( original.getPluginGroups() ); - copy.setProjectPresent( original.isProjectPresent() ); - copy.setUserSettingsFile( original.getUserSettingsFile() ); - copy.setGlobalSettingsFile( original.getGlobalSettingsFile() ); - copy.setUserToolchainsFile( original.getUserToolchainsFile() ); - copy.setGlobalToolchainsFile( original.getGlobalToolchainsFile() ); - copy.setBaseDirectory( ( original.getBaseDirectory() != null ) ? new File( original.getBaseDirectory() ) - : null ); - copy.setGoals( original.getGoals() ); - copy.setRecursive( original.isRecursive() ); - copy.setPom( original.getPom() ); - copy.setSystemProperties( original.getSystemProperties() ); - copy.setUserProperties( original.getUserProperties() ); - copy.setShowErrors( original.isShowErrors() ); - copy.setActiveProfiles( original.getActiveProfiles() ); - copy.setInactiveProfiles( original.getInactiveProfiles() ); - copy.setTransferListener( original.getTransferListener() ); - copy.setLoggingLevel( original.getLoggingLevel() ); - copy.setGlobalChecksumPolicy( original.getGlobalChecksumPolicy() ); - copy.setUpdateSnapshots( original.isUpdateSnapshots() ); - copy.setRemoteRepositories( original.getRemoteRepositories() ); - copy.setPluginArtifactRepositories( original.getPluginArtifactRepositories() ); - copy.setRepositoryCache( original.getRepositoryCache() ); - copy.setWorkspaceReader( original.getWorkspaceReader() ); - copy.setNoSnapshotUpdates( original.isNoSnapshotUpdates() ); - copy.setExecutionListener( original.getExecutionListener() ); - copy.setUseLegacyLocalRepository( original.isUseLegacyLocalRepository() ); - copy.setBuilderId( original.getBuilderId() ); - return copy; - } - - @Override - public String getBaseDirectory() - { - if ( basedir == null ) - { - return null; - } - - return basedir.getAbsolutePath(); - } - - @Override - public ArtifactRepository getLocalRepository() - { - return localRepository; - } - - @Override - public File getLocalRepositoryPath() - { - return localRepositoryPath; - } - - @Override - public List getGoals() - { - if ( goals == null ) - { - goals = new ArrayList(); - } - return goals; - } - - @Override - public Properties getSystemProperties() - { - if ( systemProperties == null ) - { - systemProperties = new Properties(); - } - - return systemProperties; - } - - @Override - public Properties getUserProperties() - { - if ( userProperties == null ) - { - userProperties = new Properties(); - } - - return userProperties; - } - - @Override - public File getPom() - { - return pom; - } - - @Override - public String getReactorFailureBehavior() - { - return reactorFailureBehavior; - } - - @Override - public List getSelectedProjects() - { - if ( selectedProjects == null ) - { - selectedProjects = new ArrayList(); - } - - return selectedProjects; - } - - @Override - public List getExcludedProjects() - { - if ( excludedProjects == null ) - { - excludedProjects = new ArrayList(); - } - - return excludedProjects; - } - - @Override - public String getResumeFrom() - { - return resumeFrom; - } - - @Override - public String getMakeBehavior() - { - return makeBehavior; - } - - @Override - public Date getStartTime() - { - return startTime; - } - - @Override - public boolean isShowErrors() - { - return showErrors; - } - - @Override - public boolean isInteractiveMode() - { - return interactiveMode; - } - - @Override - public MavenExecutionRequest setActiveProfiles( List activeProfiles ) - { - if ( activeProfiles != null ) - { - this.activeProfiles = new ArrayList( activeProfiles ); - } - else - { - this.activeProfiles = null; - } - - return this; - } - - @Override - public MavenExecutionRequest setInactiveProfiles( List inactiveProfiles ) - { - if ( inactiveProfiles != null ) - { - this.inactiveProfiles = new ArrayList( inactiveProfiles ); - } - else - { - this.inactiveProfiles = null; - } - - return this; - } - - @Override - public MavenExecutionRequest setRemoteRepositories( List remoteRepositories ) - { - if ( remoteRepositories != null ) - { - this.remoteRepositories = new ArrayList( remoteRepositories ); - } - else - { - this.remoteRepositories = null; - } - - return this; - } - - @Override - public MavenExecutionRequest setPluginArtifactRepositories( List pluginArtifactRepositories ) - { - if ( pluginArtifactRepositories != null ) - { - this.pluginArtifactRepositories = new ArrayList( pluginArtifactRepositories ); - } - else - { - this.pluginArtifactRepositories = null; - } - - return this; - } - - public void setProjectBuildingConfiguration( ProjectBuildingRequest projectBuildingConfiguration ) - { - this.projectBuildingRequest = projectBuildingConfiguration; - } - - @Override - public List getActiveProfiles() - { - if ( activeProfiles == null ) - { - activeProfiles = new ArrayList(); - } - return activeProfiles; - } - - @Override - public List getInactiveProfiles() - { - if ( inactiveProfiles == null ) - { - inactiveProfiles = new ArrayList(); - } - return inactiveProfiles; - } - - @Override - public TransferListener getTransferListener() - { - return transferListener; - } - - @Override - public int getLoggingLevel() - { - return loggingLevel; - } - - @Override - public boolean isOffline() - { - return offline; - } - - @Override - public boolean isUpdateSnapshots() - { - return updateSnapshots; - } - - @Override - public boolean isNoSnapshotUpdates() - { - return noSnapshotUpdates; - } - - @Override - public String getGlobalChecksumPolicy() - { - return globalChecksumPolicy; - } - - @Override - public boolean isRecursive() - { - return recursive; - } - - // ---------------------------------------------------------------------- - // - // ---------------------------------------------------------------------- - - @Override - public MavenExecutionRequest setBaseDirectory( File basedir ) - { - this.basedir = basedir; - - return this; - } - - @Override - public MavenExecutionRequest setStartTime( Date startTime ) - { - this.startTime = startTime; - - return this; - } - - @Override - public MavenExecutionRequest setShowErrors( boolean showErrors ) - { - this.showErrors = showErrors; - - return this; - } - - @Override - public MavenExecutionRequest setGoals( List goals ) - { - if ( goals != null ) - { - this.goals = new ArrayList( goals ); - } - else - { - this.goals = null; - } - - return this; - } - - @Override - public MavenExecutionRequest setLocalRepository( ArtifactRepository localRepository ) - { - this.localRepository = localRepository; - - if ( localRepository != null ) - { - setLocalRepositoryPath( new File( localRepository.getBasedir() ).getAbsoluteFile() ); - } - - return this; - } - - @Override - public MavenExecutionRequest setLocalRepositoryPath( File localRepository ) - { - localRepositoryPath = localRepository; - - return this; - } - - @Override - public MavenExecutionRequest setLocalRepositoryPath( String localRepository ) - { - localRepositoryPath = ( localRepository != null ) ? new File( localRepository ) : null; - - return this; - } - - @Override - public MavenExecutionRequest setSystemProperties( Properties properties ) - { - if ( properties != null ) - { - this.systemProperties = new Properties(); - this.systemProperties.putAll( properties ); - } - else - { - this.systemProperties = null; - } - - return this; - } - - @Override - public MavenExecutionRequest setUserProperties( Properties userProperties ) - { - if ( userProperties != null ) - { - this.userProperties = new Properties(); - this.userProperties.putAll( userProperties ); - } - else - { - this.userProperties = null; - } - - return this; - } - - @Override - public MavenExecutionRequest setReactorFailureBehavior( String failureBehavior ) - { - reactorFailureBehavior = failureBehavior; - - return this; - } - - @Override - public MavenExecutionRequest setSelectedProjects( List selectedProjects ) - { - if ( selectedProjects != null ) - { - this.selectedProjects = new ArrayList( selectedProjects ); - } - else - { - this.selectedProjects = null; - } - - return this; - } - - @Override - public MavenExecutionRequest setExcludedProjects( List excludedProjects ) - { - if ( excludedProjects != null ) - { - this.excludedProjects = new ArrayList( excludedProjects ); - } - else - { - this.excludedProjects = null; - } - - return this; - } - - @Override - public MavenExecutionRequest setResumeFrom( String project ) - { - this.resumeFrom = project; - - return this; - } - - @Override - public MavenExecutionRequest setMakeBehavior( String makeBehavior ) - { - this.makeBehavior = makeBehavior; - - return this; - } - - @Override - public MavenExecutionRequest addActiveProfile( String profile ) - { - if ( !getActiveProfiles().contains( profile ) ) - { - getActiveProfiles().add( profile ); - } - - return this; - } - - @Override - public MavenExecutionRequest addInactiveProfile( String profile ) - { - if ( !getInactiveProfiles().contains( profile ) ) - { - getInactiveProfiles().add( profile ); - } - - return this; - } - - @Override - public MavenExecutionRequest addActiveProfiles( List profiles ) - { - for ( String profile : profiles ) - { - addActiveProfile( profile ); - } - - return this; - } - - @Override - public MavenExecutionRequest addInactiveProfiles( List profiles ) - { - for ( String profile : profiles ) - { - addInactiveProfile( profile ); - } - - return this; - } - - public MavenExecutionRequest setUseReactor( boolean reactorActive ) - { - useReactor = reactorActive; - - return this; - } - - public boolean useReactor() - { - return useReactor; - } - - /** @deprecated use {@link #setPom(File)} */ - @Deprecated - public MavenExecutionRequest setPomFile( String pomFilename ) - { - if ( pomFilename != null ) - { - pom = new File( pomFilename ); - } - - return this; - } - - @Override - public MavenExecutionRequest setPom( File pom ) - { - this.pom = pom; - - return this; - } - - @Override - public MavenExecutionRequest setInteractiveMode( boolean interactive ) - { - interactiveMode = interactive; - - return this; - } - - @Override - public MavenExecutionRequest setTransferListener( TransferListener transferListener ) - { - this.transferListener = transferListener; - - return this; - } - - @Override - public MavenExecutionRequest setLoggingLevel( int loggingLevel ) - { - this.loggingLevel = loggingLevel; - - return this; - } - - @Override - public MavenExecutionRequest setOffline( boolean offline ) - { - this.offline = offline; - - return this; - } - - @Override - public MavenExecutionRequest setUpdateSnapshots( boolean updateSnapshots ) - { - this.updateSnapshots = updateSnapshots; - - return this; - } - - @Override - public MavenExecutionRequest setNoSnapshotUpdates( boolean noSnapshotUpdates ) - { - this.noSnapshotUpdates = noSnapshotUpdates; - - return this; - } - - @Override - public MavenExecutionRequest setGlobalChecksumPolicy( String globalChecksumPolicy ) - { - this.globalChecksumPolicy = globalChecksumPolicy; - - return this; - } - - // ---------------------------------------------------------------------------- - // Settings equivalents - // ---------------------------------------------------------------------------- - - @Override - public List getProxies() - { - if ( proxies == null ) - { - proxies = new ArrayList(); - } - return proxies; - } - - @Override - public MavenExecutionRequest setProxies( List proxies ) - { - if ( proxies != null ) - { - this.proxies = new ArrayList( proxies ); - } - else - { - this.proxies = null; - } - - return this; - } - - @Override - public MavenExecutionRequest addProxy( Proxy proxy ) - { - if ( proxy == null ) - { - throw new IllegalArgumentException( "proxy missing" ); - } - - for ( Proxy p : getProxies() ) - { - if ( p.getId() != null && p.getId().equals( proxy.getId() ) ) - { - return this; - } - } - - getProxies().add( proxy ); - - return this; - } - - @Override - public List getServers() - { - if ( servers == null ) - { - servers = new ArrayList(); - } - return servers; - } - - @Override - public MavenExecutionRequest setServers( List servers ) - { - if ( servers != null ) - { - this.servers = new ArrayList( servers ); - } - else - { - this.servers = null; - } - - return this; - } - - @Override - public MavenExecutionRequest addServer( Server server ) - { - if ( server == null ) - { - throw new IllegalArgumentException( "server missing" ); - } - - for ( Server p : getServers() ) - { - if ( p.getId() != null && p.getId().equals( server.getId() ) ) - { - return this; - } - } - - getServers().add( server ); - - return this; - } - - @Override - public List getMirrors() - { - if ( mirrors == null ) - { - mirrors = new ArrayList(); - } - return mirrors; - } - - @Override - public MavenExecutionRequest setMirrors( List mirrors ) - { - if ( mirrors != null ) - { - this.mirrors = new ArrayList( mirrors ); - } - else - { - this.mirrors = null; - } - - return this; - } - - @Override - public MavenExecutionRequest addMirror( Mirror mirror ) - { - if ( mirror == null ) - { - throw new IllegalArgumentException( "mirror missing" ); - } - - for ( Mirror p : getMirrors() ) - { - if ( p.getId() != null && p.getId().equals( mirror.getId() ) ) - { - return this; - } - } - - getMirrors().add( mirror ); - - return this; - } - - @Override - public List getProfiles() - { - if ( profiles == null ) - { - profiles = new ArrayList(); - } - return profiles; - } - - @Override - public MavenExecutionRequest setProfiles( List profiles ) - { - if ( profiles != null ) - { - this.profiles = new ArrayList( profiles ); - } - else - { - this.profiles = null; - } - - return this; - } - - @Override - public List getPluginGroups() - { - if ( pluginGroups == null ) - { - pluginGroups = new ArrayList(); - } - - return pluginGroups; - } - - @Override - public MavenExecutionRequest setPluginGroups( List pluginGroups ) - { - if ( pluginGroups != null ) - { - this.pluginGroups = new ArrayList( pluginGroups ); - } - else - { - this.pluginGroups = null; - } - - return this; - } - - @Override - public MavenExecutionRequest addPluginGroup( String pluginGroup ) - { - if ( !getPluginGroups().contains( pluginGroup ) ) - { - getPluginGroups().add( pluginGroup ); - } - - return this; - } - - @Override - public MavenExecutionRequest addPluginGroups( List pluginGroups ) - { - for ( String pluginGroup : pluginGroups ) - { - addPluginGroup( pluginGroup ); - } - - return this; - } - - @Override - public MavenExecutionRequest setRecursive( boolean recursive ) - { - this.recursive = recursive; - - return this; - } - - // calculated from request attributes. - private ProjectBuildingRequest projectBuildingRequest; - - @Override - public boolean isProjectPresent() - { - return isProjectPresent; - } - - @Override - public MavenExecutionRequest setProjectPresent( boolean projectPresent ) - { - isProjectPresent = projectPresent; - - return this; - } - - // Settings files - - @Override - public File getUserSettingsFile() - { - return userSettingsFile; - } - - @Override - public MavenExecutionRequest setUserSettingsFile( File userSettingsFile ) - { - this.userSettingsFile = userSettingsFile; - - return this; - } - - @Override - public File getGlobalSettingsFile() - { - return globalSettingsFile; - } - - @Override - public MavenExecutionRequest setGlobalSettingsFile( File globalSettingsFile ) - { - this.globalSettingsFile = globalSettingsFile; - - return this; - } - - @Override - public File getUserToolchainsFile() - { - return userToolchainsFile; - } - - @Override - public MavenExecutionRequest setUserToolchainsFile( File userToolchainsFile ) - { - this.userToolchainsFile = userToolchainsFile; - - return this; - } - - @Override - public File getGlobalToolchainsFile() - { - return globalToolchainsFile; - } - - @Override - public MavenExecutionRequest setGlobalToolchainsFile( File globalToolchainsFile ) - { - this.globalToolchainsFile = globalToolchainsFile; - return this; - } - - @Override - public MavenExecutionRequest addRemoteRepository( ArtifactRepository repository ) - { - for ( ArtifactRepository repo : getRemoteRepositories() ) - { - if ( repo.getId() != null && repo.getId().equals( repository.getId() ) ) - { - return this; - } - } - - getRemoteRepositories().add( repository ); - - return this; - } - - @Override - public List getRemoteRepositories() - { - if ( remoteRepositories == null ) - { - remoteRepositories = new ArrayList(); - } - return remoteRepositories; - } - - @Override - public MavenExecutionRequest addPluginArtifactRepository( ArtifactRepository repository ) - { - for ( ArtifactRepository repo : getPluginArtifactRepositories() ) - { - if ( repo.getId() != null && repo.getId().equals( repository.getId() ) ) - { - return this; - } - } - - getPluginArtifactRepositories().add( repository ); - - return this; - } - - @Override - public List getPluginArtifactRepositories() - { - if ( pluginArtifactRepositories == null ) - { - pluginArtifactRepositories = new ArrayList(); - } - return pluginArtifactRepositories; - } - - // TODO: this does not belong here. - @Override - public ProjectBuildingRequest getProjectBuildingRequest() - { - if ( projectBuildingRequest == null ) - { - projectBuildingRequest = new DefaultProjectBuildingRequest(); - projectBuildingRequest.setLocalRepository( getLocalRepository() ); - projectBuildingRequest.setSystemProperties( getSystemProperties() ); - projectBuildingRequest.setUserProperties( getUserProperties() ); - projectBuildingRequest.setRemoteRepositories( getRemoteRepositories() ); - projectBuildingRequest.setPluginArtifactRepositories( getPluginArtifactRepositories() ); - projectBuildingRequest.setActiveProfileIds( getActiveProfiles() ); - projectBuildingRequest.setInactiveProfileIds( getInactiveProfiles() ); - projectBuildingRequest.setProfiles( getProfiles() ); - projectBuildingRequest.setProcessPlugins( true ); - projectBuildingRequest.setBuildStartTime( getStartTime() ); - } - - return projectBuildingRequest; - } - - @Override - public MavenExecutionRequest addProfile( Profile profile ) - { - if ( profile == null ) - { - throw new IllegalArgumentException( "profile missing" ); - } - - for ( Profile p : getProfiles() ) - { - if ( p.getId() != null && p.getId().equals( profile.getId() ) ) - { - return this; - } - } - - getProfiles().add( profile ); - - return this; - } - - @Override - public RepositoryCache getRepositoryCache() - { - return repositoryCache; - } - - @Override - public MavenExecutionRequest setRepositoryCache( RepositoryCache repositoryCache ) - { - this.repositoryCache = repositoryCache; - - return this; - } - - @Override - public ExecutionListener getExecutionListener() - { - return executionListener; - } - - @Override - public MavenExecutionRequest setExecutionListener( ExecutionListener executionListener ) - { - this.executionListener = executionListener; - - return this; - } - - @Override - public void setDegreeOfConcurrency( final int degreeOfConcurrency ) - { - this.degreeOfConcurrency = degreeOfConcurrency; - } - - @Override - public int getDegreeOfConcurrency() - { - return degreeOfConcurrency; - } - - @Override - public WorkspaceReader getWorkspaceReader() - { - return workspaceReader; - } - - @Override - public MavenExecutionRequest setWorkspaceReader( WorkspaceReader workspaceReader ) - { - this.workspaceReader = workspaceReader; - return this; - } - - @Override - public boolean isCacheTransferError() - { - return cacheTransferError; - } - - @Override - public MavenExecutionRequest setCacheTransferError( boolean cacheTransferError ) - { - this.cacheTransferError = cacheTransferError; - return this; - } - - @Override - public boolean isCacheNotFound() - { - return cacheNotFound; - } - - @Override - public MavenExecutionRequest setCacheNotFound( boolean cacheNotFound ) - { - this.cacheNotFound = cacheNotFound; - return this; - } - - @Override - public boolean isUseLegacyLocalRepository() - { - return this.useLegacyLocalRepositoryManager; - } - - @Override - public MavenExecutionRequest setUseLegacyLocalRepository( boolean useLegacyLocalRepositoryManager ) - { - this.useLegacyLocalRepositoryManager = useLegacyLocalRepositoryManager; - return this; - } - - @Override - public MavenExecutionRequest setBuilderId( String builderId ) - { - this.builderId = builderId; - return this; - } - - @Override - public String getBuilderId() - { - return builderId; - } - - @Override - public Map> getToolchains() - { - if ( toolchains == null ) - { - toolchains = new HashMap>(); - } - return toolchains; - } - - @Override - public MavenExecutionRequest setToolchains( Map> toolchains ) - { - this.toolchains = toolchains; - return this; - } - - @Override - public void setMultiModuleProjectDirectory( File directory ) - { - this.multiModuleProjectDirectory = directory; - } - - @Override - public File getMultiModuleProjectDirectory() - { - return multiModuleProjectDirectory; - } - - @Override - public MavenExecutionRequest setEventSpyDispatcher( EventSpyDispatcher eventSpyDispatcher ) - { - this.eventSpyDispatcher = eventSpyDispatcher; - return this; - } - - @Override - public EventSpyDispatcher getEventSpyDispatcher() - { - return eventSpyDispatcher; - } - - @Override - public Map getData() - { - if ( data == null ) - { - data = Maps.newHashMap(); - } - - return data; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java deleted file mode 100644 index 7568fdee..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java +++ /dev/null @@ -1,318 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import javax.inject.Inject; -import javax.inject.Named; - -import org.apache.maven.artifact.InvalidRepositoryException; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.bridge.MavenRepositorySystem; -import org.apache.maven.repository.RepositorySystem; -// -// All of this needs to go away and be couched in terms of the execution request -// -import org.apache.maven.settings.Mirror; -import org.apache.maven.settings.Proxy; -import org.apache.maven.settings.Repository; -import org.apache.maven.settings.Server; -import org.apache.maven.settings.Settings; -import org.apache.maven.settings.SettingsUtils; -// -// Settings in core -// -import org.apache.maven.toolchain.model.PersistedToolchains; -import org.apache.maven.toolchain.model.ToolchainModel; -import org.codehaus.plexus.util.StringUtils; - -@Named -public class DefaultMavenExecutionRequestPopulator - implements MavenExecutionRequestPopulator -{ - - private final MavenRepositorySystem repositorySystem; - - @Inject - public DefaultMavenExecutionRequestPopulator( MavenRepositorySystem repositorySystem ) - { - this.repositorySystem = repositorySystem; - } - - - @Override - public MavenExecutionRequest populateFromToolchains( MavenExecutionRequest request, PersistedToolchains toolchains ) - throws MavenExecutionRequestPopulationException - { - if ( toolchains != null ) - { - Map> groupedToolchains = new HashMap>( 2 ); - - for ( ToolchainModel model : toolchains.getToolchains() ) - { - if ( !groupedToolchains.containsKey( model.getType() ) ) - { - groupedToolchains.put( model.getType(), new ArrayList() ); - } - - groupedToolchains.get( model.getType() ).add( model ); - } - - request.setToolchains( groupedToolchains ); - } - return request; - } - - @Override - public MavenExecutionRequest populateDefaults( MavenExecutionRequest request ) - throws MavenExecutionRequestPopulationException - { - baseDirectory( request ); - - localRepository( request ); - - populateDefaultPluginGroups( request ); - - injectDefaultRepositories( request ); - - injectDefaultPluginRepositories( request ); - - return request; - } - - // - // - // - - private void populateDefaultPluginGroups( MavenExecutionRequest request ) - { - request.addPluginGroup( "org.apache.maven.plugins" ); - request.addPluginGroup( "org.codehaus.mojo" ); - } - - private void injectDefaultRepositories( MavenExecutionRequest request ) - throws MavenExecutionRequestPopulationException - { - Set definedRepositories = repositorySystem.getRepoIds( request.getRemoteRepositories() ); - - if ( !definedRepositories.contains( RepositorySystem.DEFAULT_REMOTE_REPO_ID ) ) - { - try - { - request.addRemoteRepository( repositorySystem.createDefaultRemoteRepository( request ) ); - } - catch ( Exception e ) - { - throw new MavenExecutionRequestPopulationException( "Cannot create default remote repository.", e ); - } - } - } - - private void injectDefaultPluginRepositories( MavenExecutionRequest request ) - throws MavenExecutionRequestPopulationException - { - Set definedRepositories = repositorySystem.getRepoIds( request.getPluginArtifactRepositories() ); - - if ( !definedRepositories.contains( RepositorySystem.DEFAULT_REMOTE_REPO_ID ) ) - { - try - { - request.addPluginArtifactRepository( repositorySystem.createDefaultRemoteRepository( request ) ); - } - catch ( Exception e ) - { - throw new MavenExecutionRequestPopulationException( "Cannot create default remote repository.", e ); - } - } - } - - private void localRepository( MavenExecutionRequest request ) - throws MavenExecutionRequestPopulationException - { - // ------------------------------------------------------------------------ - // Local Repository - // - // 1. Use a value has been passed in via the configuration - // 2. Use value in the resultant settings - // 3. Use default value - // ------------------------------------------------------------------------ - - if ( request.getLocalRepository() == null ) - { - request.setLocalRepository( createLocalRepository( request ) ); - } - - if ( request.getLocalRepositoryPath() == null ) - { - request.setLocalRepositoryPath( new File( request.getLocalRepository().getBasedir() ).getAbsoluteFile() ); - } - } - - // ------------------------------------------------------------------------ - // Artifact Transfer Mechanism - // ------------------------------------------------------------------------ - - private ArtifactRepository createLocalRepository( MavenExecutionRequest request ) - throws MavenExecutionRequestPopulationException - { - String localRepositoryPath = null; - - if ( request.getLocalRepositoryPath() != null ) - { - localRepositoryPath = request.getLocalRepositoryPath().getAbsolutePath(); - } - - if ( StringUtils.isEmpty( localRepositoryPath ) ) - { - localRepositoryPath = RepositorySystem.defaultUserLocalRepository.getAbsolutePath(); - } - - try - { - return repositorySystem.createLocalRepository( request, new File( localRepositoryPath ) ); - } - catch ( Exception e ) - { - throw new MavenExecutionRequestPopulationException( "Cannot create local repository.", e ); - } - } - - private void baseDirectory( MavenExecutionRequest request ) - { - if ( request.getBaseDirectory() == null && request.getPom() != null ) - { - request.setBaseDirectory( request.getPom().getAbsoluteFile().getParentFile() ); - } - } - - /*if_not[MAVEN4]*/ - - @Override - @Deprecated - public MavenExecutionRequest populateFromSettings( MavenExecutionRequest request, Settings settings ) - throws MavenExecutionRequestPopulationException - { - if ( settings == null ) - { - return request; - } - - request.setOffline( settings.isOffline() ); - - request.setInteractiveMode( settings.isInteractiveMode() ); - - request.setPluginGroups( settings.getPluginGroups() ); - - request.setLocalRepositoryPath( settings.getLocalRepository() ); - - for ( Server server : settings.getServers() ) - { - server = server.clone(); - - request.addServer( server ); - } - - // - // - // true - // http - // proxy.somewhere.com - // 8080 - // proxyuser - // somepassword - // www.google.com|*.somewhere.com - // - // - - for ( Proxy proxy : settings.getProxies() ) - { - if ( !proxy.isActive() ) - { - continue; - } - - proxy = proxy.clone(); - - request.addProxy( proxy ); - } - - // - // - // nexus - // * - // http://repository.sonatype.org/content/groups/public - // - // - - for ( Mirror mirror : settings.getMirrors() ) - { - mirror = mirror.clone(); - - request.addMirror( mirror ); - } - - request.setActiveProfiles( settings.getActiveProfiles() ); - - for ( org.apache.maven.settings.Profile rawProfile : settings.getProfiles() ) - { - request.addProfile( SettingsUtils.convertFromSettingsProfile( rawProfile ) ); - - if ( settings.getActiveProfiles().contains( rawProfile.getId() ) ) - { - List remoteRepositories = rawProfile.getRepositories(); - for ( Repository remoteRepository : remoteRepositories ) - { - try - { - request.addRemoteRepository( repositorySystem.buildArtifactRepository( remoteRepository ) ); - } - catch ( InvalidRepositoryException e ) - { - // do nothing for now - } - } - - List pluginRepositories = rawProfile.getPluginRepositories(); - for ( Repository pluginRepo : pluginRepositories ) - { - try - { - request.addPluginArtifactRepository( repositorySystem.buildArtifactRepository( pluginRepo ) ); - } - catch ( InvalidRepositoryException e ) - { - // do nothing for now - } - } - } - } - - return request; - } - - /*end[MAVEN4]*/ - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionResult.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionResult.java deleted file mode 100644 index a8967eda..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionResult.java +++ /dev/null @@ -1,109 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collections; -import java.util.IdentityHashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.CopyOnWriteArrayList; - -import org.apache.maven.project.DependencyResolutionResult; -import org.apache.maven.project.MavenProject; - -/** @author Jason van Zyl */ -public class DefaultMavenExecutionResult - implements MavenExecutionResult -{ - private MavenProject project; - - private List topologicallySortedProjects = Collections.emptyList(); - - private DependencyResolutionResult dependencyResolutionResult; - - private final List exceptions = new CopyOnWriteArrayList(); - - private final Map buildSummaries = - Collections.synchronizedMap( new IdentityHashMap() ); - - public MavenExecutionResult setProject( MavenProject project ) - { - this.project = project; - - return this; - } - - public MavenProject getProject() - { - return project; - } - - public MavenExecutionResult setTopologicallySortedProjects( List topologicallySortedProjects ) - { - this.topologicallySortedProjects = topologicallySortedProjects; - - return this; - } - - public List getTopologicallySortedProjects() - { - return null == topologicallySortedProjects ? Collections.emptyList() - : topologicallySortedProjects; - } - - public DependencyResolutionResult getDependencyResolutionResult() - { - return dependencyResolutionResult; - } - - public MavenExecutionResult setDependencyResolutionResult( DependencyResolutionResult dependencyResolutionResult ) - { - this.dependencyResolutionResult = dependencyResolutionResult; - - return this; - } - - public List getExceptions() - { - return exceptions; - } - - public MavenExecutionResult addException( Throwable t ) - { - exceptions.add( t ); - - return this; - } - - public boolean hasExceptions() - { - return !getExceptions().isEmpty(); - } - - public BuildSummary getBuildSummary( MavenProject project ) - { - return buildSummaries.get( project ); - } - - public void addBuildSummary( BuildSummary summary ) - { - buildSummaries.put( summary.getProject(), summary ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ExecutionEvent.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ExecutionEvent.java deleted file mode 100644 index 0ee7f57a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ExecutionEvent.java +++ /dev/null @@ -1,92 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.project.MavenProject; - -/** - * Holds data relevant for an execution event. - * - * @author Benjamin Bentmann - */ -public interface ExecutionEvent -{ - - /** - * The possible types of execution events. - */ - enum Type - { - ProjectDiscoveryStarted, - SessionStarted, - SessionEnded, - ProjectSkipped, - ProjectStarted, - ProjectSucceeded, - ProjectFailed, - MojoSkipped, - MojoStarted, - MojoSucceeded, - MojoFailed, - ForkStarted, - ForkSucceeded, - ForkFailed, - ForkedProjectStarted, - ForkedProjectSucceeded, - ForkedProjectFailed, - } - - /** - * Gets the type of the event. - * - * @return The type of the event, never {@code null}. - */ - Type getType(); - - /** - * Gets the session from which this event originates. - * - * @return The current session, never {@code null}. - */ - MavenSession getSession(); - - /** - * Gets the current project (if any). - * - * @return The current project or {@code null} if not applicable. - */ - MavenProject getProject(); - - /** - * Gets the current mojo execution (if any). - * - * @return The current mojo execution or {@code null} if not applicable. - */ - MojoExecution getMojoExecution(); - - /** - * Gets the exception that caused the event (if any). - * - * @return The exception or {@code null} if none. - */ - Exception getException(); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ExecutionListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ExecutionListener.java deleted file mode 100644 index ad3f345a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ExecutionListener.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Defines events that Maven fires during a build. Warning: This interface might be extended in future - * Maven versions to support further events. Hence it is strongly recommended to derive custom listeners from - * {@link AbstractExecutionListener} in order to avoid interoperability problems. - * - * @author Benjamin Bentmann - */ -public interface ExecutionListener -{ - - void projectDiscoveryStarted( ExecutionEvent event ); - - void sessionStarted( ExecutionEvent event ); - - void sessionEnded( ExecutionEvent event ); - - void projectSkipped( ExecutionEvent event ); - - void projectStarted( ExecutionEvent event ); - - void projectSucceeded( ExecutionEvent event ); - - void projectFailed( ExecutionEvent event ); - - void mojoSkipped( ExecutionEvent event ); - - void mojoStarted( ExecutionEvent event ); - - void mojoSucceeded( ExecutionEvent event ); - - void mojoFailed( ExecutionEvent event ); - - void forkStarted( ExecutionEvent event ); - - void forkSucceeded( ExecutionEvent event ); - - void forkFailed( ExecutionEvent event ); - - void forkedProjectStarted( ExecutionEvent event ); - - void forkedProjectSucceeded( ExecutionEvent event ); - - void forkedProjectFailed( ExecutionEvent event ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequest.java deleted file mode 100644 index 53f84c50..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequest.java +++ /dev/null @@ -1,443 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.Date; -import java.util.List; -import java.util.Map; -import java.util.Properties; - -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy; -import org.apache.maven.eventspy.internal.EventSpyDispatcher; -import org.apache.maven.model.Profile; -import org.apache.maven.project.ProjectBuildingRequest; -// -// These settings values need to be removed and pushed down into a provider of configuration information -// -import org.apache.maven.settings.Mirror; -import org.apache.maven.settings.Proxy; -import org.apache.maven.settings.Server; -// -import org.apache.maven.toolchain.model.ToolchainModel; -import org.codehaus.plexus.logging.Logger; -import org.eclipse.aether.RepositoryCache; -import org.eclipse.aether.repository.WorkspaceReader; -import org.eclipse.aether.transfer.TransferListener; - -/** - * @author Jason van Zyl - */ -public interface MavenExecutionRequest -{ - // ---------------------------------------------------------------------- - // Logging - // ---------------------------------------------------------------------- - - int LOGGING_LEVEL_DEBUG = Logger.LEVEL_DEBUG; - - int LOGGING_LEVEL_INFO = Logger.LEVEL_INFO; - - int LOGGING_LEVEL_WARN = Logger.LEVEL_WARN; - - int LOGGING_LEVEL_ERROR = Logger.LEVEL_ERROR; - - int LOGGING_LEVEL_FATAL = Logger.LEVEL_FATAL; - - int LOGGING_LEVEL_DISABLED = Logger.LEVEL_DISABLED; - - // ---------------------------------------------------------------------- - // Reactor Failure Mode - // ---------------------------------------------------------------------- - - String REACTOR_FAIL_FAST = "FAIL_FAST"; - - String REACTOR_FAIL_AT_END = "FAIL_AT_END"; - - String REACTOR_FAIL_NEVER = "FAIL_NEVER"; - - // ---------------------------------------------------------------------- - // Reactor Make Mode - // ---------------------------------------------------------------------- - - String REACTOR_MAKE_UPSTREAM = "make-upstream"; - - String REACTOR_MAKE_DOWNSTREAM = "make-downstream"; - - String REACTOR_MAKE_BOTH = "make-both"; - - // ---------------------------------------------------------------------- - // Artifact repository policies - // ---------------------------------------------------------------------- - - String CHECKSUM_POLICY_FAIL = ArtifactRepositoryPolicy.CHECKSUM_POLICY_FAIL; - - String CHECKSUM_POLICY_WARN = ArtifactRepositoryPolicy.CHECKSUM_POLICY_WARN; - - // ---------------------------------------------------------------------- - // - // ---------------------------------------------------------------------- - - // Base directory - MavenExecutionRequest setBaseDirectory( File basedir ); - - String getBaseDirectory(); - - // Timing (remove this) - MavenExecutionRequest setStartTime( Date start ); - - Date getStartTime(); - - // Goals - MavenExecutionRequest setGoals( List goals ); - - List getGoals(); - - // Properties - - /** - * Sets the system properties to use for interpolation and profile activation. The system properties are collected - * from the runtime environment like {@link System#getProperties()} and environment variables. - * - * @param systemProperties The system properties, may be {@code null}. - * @return This request, never {@code null}. - */ - MavenExecutionRequest setSystemProperties( Properties systemProperties ); - - /** - * Gets the system properties to use for interpolation and profile activation. The system properties are collected - * from the runtime environment like {@link System#getProperties()} and environment variables. - * - * @return The system properties, never {@code null}. - */ - Properties getSystemProperties(); - - /** - * Sets the user properties to use for interpolation and profile activation. The user properties have been - * configured directly by the user on his discretion, e.g. via the {@code -Dkey=value} parameter on the command - * line. - * - * @param userProperties The user properties, may be {@code null}. - * @return This request, never {@code null}. - */ - MavenExecutionRequest setUserProperties( Properties userProperties ); - - /** - * Gets the user properties to use for interpolation and profile activation. The user properties have been - * configured directly by the user on his discretion, e.g. via the {@code -Dkey=value} parameter on the command - * line. - * - * @return The user properties, never {@code null}. - */ - Properties getUserProperties(); - - // Reactor - MavenExecutionRequest setReactorFailureBehavior( String failureBehavior ); - - String getReactorFailureBehavior(); - - MavenExecutionRequest setSelectedProjects( List projects ); - - List getSelectedProjects(); - - /** - * @param projects the projects to exclude - * @return this MavenExecutionRequest - * @since 3.2 - */ - MavenExecutionRequest setExcludedProjects( List projects ); - - /** - * @return the excluded projects, never {@code null} - * @since 3.2 - */ - List getExcludedProjects(); - - MavenExecutionRequest setResumeFrom( String project ); - - String getResumeFrom(); - - MavenExecutionRequest setMakeBehavior( String makeBehavior ); - - String getMakeBehavior(); - - /** - * Set's the parallel degree of concurrency used by the build. - * - * @param degreeOfConcurrency - */ - void setDegreeOfConcurrency( int degreeOfConcurrency ); - - /** - * @return the degree of concurrency for the build. - */ - int getDegreeOfConcurrency(); - - // Recursive (really to just process the top-level POM) - MavenExecutionRequest setRecursive( boolean recursive ); - - boolean isRecursive(); - - MavenExecutionRequest setPom( File pom ); - - File getPom(); - - // Errors - MavenExecutionRequest setShowErrors( boolean showErrors ); - - boolean isShowErrors(); - - // Transfer listeners - MavenExecutionRequest setTransferListener( TransferListener transferListener ); - - TransferListener getTransferListener(); - - // Logging - MavenExecutionRequest setLoggingLevel( int loggingLevel ); - - int getLoggingLevel(); - - // Update snapshots - MavenExecutionRequest setUpdateSnapshots( boolean updateSnapshots ); - - boolean isUpdateSnapshots(); - - MavenExecutionRequest setNoSnapshotUpdates( boolean noSnapshotUpdates ); - - boolean isNoSnapshotUpdates(); - - // Checksum policy - MavenExecutionRequest setGlobalChecksumPolicy( String globalChecksumPolicy ); - - String getGlobalChecksumPolicy(); - - // Local repository - MavenExecutionRequest setLocalRepositoryPath( String localRepository ); - - MavenExecutionRequest setLocalRepositoryPath( File localRepository ); - - File getLocalRepositoryPath(); - - MavenExecutionRequest setLocalRepository( ArtifactRepository repository ); - - ArtifactRepository getLocalRepository(); - - // Interactive - MavenExecutionRequest setInteractiveMode( boolean interactive ); - - boolean isInteractiveMode(); - - // Offline - MavenExecutionRequest setOffline( boolean offline ); - - boolean isOffline(); - - boolean isCacheTransferError(); - - MavenExecutionRequest setCacheTransferError( boolean cacheTransferError ); - - boolean isCacheNotFound(); - - MavenExecutionRequest setCacheNotFound( boolean cacheNotFound ); - - // Profiles - List getProfiles(); - - MavenExecutionRequest addProfile( Profile profile ); - - MavenExecutionRequest setProfiles( List profiles ); - - MavenExecutionRequest addActiveProfile( String profile ); - - MavenExecutionRequest addActiveProfiles( List profiles ); - - MavenExecutionRequest setActiveProfiles( List profiles ); - - List getActiveProfiles(); - - MavenExecutionRequest addInactiveProfile( String profile ); - - MavenExecutionRequest addInactiveProfiles( List profiles ); - - MavenExecutionRequest setInactiveProfiles( List profiles ); - - List getInactiveProfiles(); - - // Proxies - List getProxies(); - - MavenExecutionRequest setProxies( List proxies ); - - MavenExecutionRequest addProxy( Proxy proxy ); - - // Servers - List getServers(); - - MavenExecutionRequest setServers( List servers ); - - MavenExecutionRequest addServer( Server server ); - - // Mirrors - List getMirrors(); - - MavenExecutionRequest setMirrors( List mirrors ); - - MavenExecutionRequest addMirror( Mirror mirror ); - - // Plugin groups - List getPluginGroups(); - - MavenExecutionRequest setPluginGroups( List pluginGroups ); - - MavenExecutionRequest addPluginGroup( String pluginGroup ); - - MavenExecutionRequest addPluginGroups( List pluginGroups ); - - boolean isProjectPresent(); - - MavenExecutionRequest setProjectPresent( boolean isProjectPresent ); - - File getUserSettingsFile(); - - MavenExecutionRequest setUserSettingsFile( File userSettingsFile ); - - File getGlobalSettingsFile(); - - MavenExecutionRequest setGlobalSettingsFile( File globalSettingsFile ); - - MavenExecutionRequest addRemoteRepository( ArtifactRepository repository ); - - MavenExecutionRequest addPluginArtifactRepository( ArtifactRepository repository ); - - /** - * Set a new list of remote repositories to use the execution request. This is necessary if you perform - * transformations on the remote repositories being used. For example if you replace existing repositories with - * mirrors then it's easier to just replace the whole list with a new list of transformed repositories. - * - * @param repositories - * @return This request, never {@code null}. - */ - MavenExecutionRequest setRemoteRepositories( List repositories ); - - List getRemoteRepositories(); - - MavenExecutionRequest setPluginArtifactRepositories( List repositories ); - - List getPluginArtifactRepositories(); - - MavenExecutionRequest setRepositoryCache( RepositoryCache repositoryCache ); - - RepositoryCache getRepositoryCache(); - - WorkspaceReader getWorkspaceReader(); - - MavenExecutionRequest setWorkspaceReader( WorkspaceReader workspaceReader ); - - File getUserToolchainsFile(); - - MavenExecutionRequest setUserToolchainsFile( File userToolchainsFile ); - - /** - * - * - * @return the global toolchains file - * @since 3.3.0 - */ - File getGlobalToolchainsFile(); - - /** - * - * @param globalToolchainsFile the global toolchains file - * @return this request - * @since 3.3.0 - */ - MavenExecutionRequest setGlobalToolchainsFile( File globalToolchainsFile ); - - ExecutionListener getExecutionListener(); - - MavenExecutionRequest setExecutionListener( ExecutionListener executionListener ); - - ProjectBuildingRequest getProjectBuildingRequest(); - - /** - * @since 3.1 - */ - boolean isUseLegacyLocalRepository(); - - /** - * @since 3.1 - */ - MavenExecutionRequest setUseLegacyLocalRepository( boolean useLegacyLocalRepository ); - - /** - * Controls the {@link Builder} used by Maven by specification of the builder's id. - * - * @since 3.2.0 - */ - MavenExecutionRequest setBuilderId( String builderId ); - - /** - * Controls the {@link Builder} used by Maven by specification of the builders id. - * - * @since 3.2.0 - */ - String getBuilderId(); - - /** - * - * @param toolchains all toolchains grouped by type - * @return this request - * @since 3.3.0 - */ - MavenExecutionRequest setToolchains( Map> toolchains ); - - /** - * - * @return all toolchains grouped by type, never {@code null} - * @since 3.3.0 - */ - Map> getToolchains(); - - /** - * @since 3.3.0 - */ - void setMultiModuleProjectDirectory( File file ); - - /** - * @since 3.3.0 - */ - File getMultiModuleProjectDirectory(); - - /** - * @since 3.3.0 - */ - MavenExecutionRequest setEventSpyDispatcher( EventSpyDispatcher eventSpyDispatcher ); - - /** - * @since 3.3.0 - */ - EventSpyDispatcher getEventSpyDispatcher(); - - /** - * @since 3.3.0 - */ - Map getData(); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequestPopulationException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequestPopulationException.java deleted file mode 100644 index ddd6ad22..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequestPopulationException.java +++ /dev/null @@ -1,43 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * @author Jason van Zyl - */ -public class MavenExecutionRequestPopulationException - extends Exception -{ - public MavenExecutionRequestPopulationException( String message ) - { - super( message ); - } - - public MavenExecutionRequestPopulationException( Throwable cause ) - { - super( cause ); - } - - public MavenExecutionRequestPopulationException( String message, - Throwable cause ) - { - super( message, cause ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequestPopulator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequestPopulator.java deleted file mode 100644 index 4f254f7a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequestPopulator.java +++ /dev/null @@ -1,74 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.settings.Settings; -import org.apache.maven.toolchain.model.PersistedToolchains; - -/** - * Assists in populating an execution request for invocation of Maven. - * - * @author Benjamin Bentmann - */ -public interface MavenExecutionRequestPopulator -{ - /** - * Copies the values from the given toolchains into the specified execution request. This method will replace any - * existing values in the execution request that are controlled by the toolchains. Hence, it is expected that this - * method is called on a new/empty execution request before the caller mutates it to fit its needs. - * - * @param request The execution request to populate, must not be {@code null}. - * @param toolchains The toolchains to copy into the execution request, may be {@code null}. - * @return The populated execution request, never {@code null}. - * @throws MavenExecutionRequestPopulationException If the execution request could not be populated. - * @since 3.3.0 - */ - MavenExecutionRequest populateFromToolchains( MavenExecutionRequest request, PersistedToolchains toolchains ) - throws MavenExecutionRequestPopulationException; - - /** - * Injects default values like plugin groups or repositories into the specified execution request. - * - * @param request The execution request to populate, must not be {@code null}. - * @return The populated execution request, never {@code null}. - * @throws MavenExecutionRequestPopulationException If the execution request could not be populated. - */ - MavenExecutionRequest populateDefaults( MavenExecutionRequest request ) - throws MavenExecutionRequestPopulationException; - - /*if_not[MAVEN4]*/ - - /** - * Copies the values from the given settings into the specified execution request. This method will replace any - * existing values in the execution request that are controlled by the settings. Hence, it is expected that this - * method is called on a new/empty execution request before the caller mutates it to fit its needs. - * - * @param request The execution request to populate, must not be {@code null}. - * @param settings The settings to copy into the execution request, may be {@code null}. - * @return The populated execution request, never {@code null}. - * @throws MavenExecutionRequestPopulationException If the execution request could not be populated. - */ - @Deprecated - MavenExecutionRequest populateFromSettings( MavenExecutionRequest request, Settings settings ) - throws MavenExecutionRequestPopulationException; - - /*end[MAVEN4]*/ - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionResult.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionResult.java deleted file mode 100644 index cb95fb1f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionResult.java +++ /dev/null @@ -1,70 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.project.DependencyResolutionResult; -import org.apache.maven.project.MavenProject; - -/** - * @author Jason van Zyl - */ -public interface MavenExecutionResult -{ - MavenExecutionResult setProject( MavenProject project ); - MavenProject getProject(); - - MavenExecutionResult setTopologicallySortedProjects( List projects ); - - /** - * @return the sorted list, or an empty list if there are no projects. - */ - List getTopologicallySortedProjects(); - - MavenExecutionResult setDependencyResolutionResult( DependencyResolutionResult result ); - DependencyResolutionResult getDependencyResolutionResult(); - - // for each exception - // - knowing what artifacts are missing - // - project building exception - // - invalid project model exception: list of markers - // - xmlpull parser exception - List getExceptions(); - - MavenExecutionResult addException( Throwable e ); - - boolean hasExceptions(); - - /** - * Gets the build summary for the specified project. - * - * @param project The project to get the build summary for, must not be {@code null}. - * @return The build summary for the project or {@code null} if the project has not been built (yet). - */ - BuildSummary getBuildSummary( MavenProject project ); - - /** - * Add the specified build summary. - * - * @param summary The build summary to add, must not be {@code null}. - */ - void addBuildSummary( BuildSummary summary ); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java deleted file mode 100644 index 235691ac..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java +++ /dev/null @@ -1,438 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.Arrays; -import java.util.Date; -import java.util.List; -import java.util.Map; -import java.util.Properties; -import java.util.concurrent.ConcurrentHashMap; - -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.RepositoryCache; -import org.apache.maven.monitor.event.EventDispatcher; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.apache.maven.project.MavenProject; -import org.apache.maven.project.ProjectBuildingRequest; -import org.apache.maven.settings.Settings; -import org.codehaus.plexus.PlexusContainer; -import org.codehaus.plexus.component.repository.exception.ComponentLookupException; -import org.eclipse.aether.RepositorySystemSession; - -/** - * @author Jason van Zyl - */ -public class MavenSession - implements Cloneable -{ - private MavenExecutionRequest request; - - private MavenExecutionResult result; - - private RepositorySystemSession repositorySession; - - private Properties executionProperties; - - private MavenProject currentProject; - - /** - * These projects have already been topologically sorted in the {@link org.apache.maven.Maven} component before - * being passed into the session. This is also the potentially constrained set of projects by using --projects - * on the command line. - */ - private List projects; - - /** - * The full set of projects before any potential constraining by --projects. Useful in the case where you want to - * build a smaller set of projects but perform other operations in the context of your reactor. - */ - private List allProjects; - - private MavenProject topLevelProject; - - private ProjectDependencyGraph projectDependencyGraph; - - private boolean parallel; - - private final Map>> pluginContextsByProjectAndPluginKey = - new ConcurrentHashMap>>(); - - - public void setProjects( List projects ) - { - if ( !projects.isEmpty() ) - { - this.currentProject = projects.get( 0 ); - this.topLevelProject = currentProject; - for ( MavenProject project : projects ) - { - if ( project.isExecutionRoot() ) - { - topLevelProject = project; - break; - } - } - } - else - { - this.currentProject = null; - this.topLevelProject = null; - } - this.projects = projects; - } - - public ArtifactRepository getLocalRepository() - { - return request.getLocalRepository(); - } - - public List getGoals() - { - return request.getGoals(); - } - - /** - * Gets the user properties to use for interpolation and profile activation. The user properties have been - * configured directly by the user on his discretion, e.g. via the {@code -Dkey=value} parameter on the command - * line. - * - * @return The user properties, never {@code null}. - */ - public Properties getUserProperties() - { - return request.getUserProperties(); - } - - /** - * Gets the system properties to use for interpolation and profile activation. The system properties are collected - * from the runtime environment like {@link System#getProperties()} and environment variables. - * - * @return The system properties, never {@code null}. - */ - public Properties getSystemProperties() - { - return request.getSystemProperties(); - } - - public Settings getSettings() - { - return settings; - } - - public List getProjects() - { - return projects; - } - - public String getExecutionRootDirectory() - { - return request.getBaseDirectory(); - } - - public MavenExecutionRequest getRequest() - { - return request; - } - - public void setCurrentProject( MavenProject currentProject ) - { - this.currentProject = currentProject; - } - - public MavenProject getCurrentProject() - { - return currentProject; - } - - public ProjectBuildingRequest getProjectBuildingRequest() - { - return request.getProjectBuildingRequest().setRepositorySession( getRepositorySession() ); - } - - public List getPluginGroups() - { - return request.getPluginGroups(); - } - - public boolean isOffline() - { - return request.isOffline(); - } - - public MavenProject getTopLevelProject() - { - return topLevelProject; - } - - public MavenExecutionResult getResult() - { - return result; - } - - // Backward compat - - public Map getPluginContext( PluginDescriptor plugin, MavenProject project ) - { - String projectKey = project.getId(); - - Map> pluginContextsByKey = pluginContextsByProjectAndPluginKey.get( projectKey ); - - if ( pluginContextsByKey == null ) - { - pluginContextsByKey = new ConcurrentHashMap>(); - - pluginContextsByProjectAndPluginKey.put( projectKey, pluginContextsByKey ); - } - - String pluginKey = plugin.getPluginLookupKey(); - - Map pluginContext = pluginContextsByKey.get( pluginKey ); - - if ( pluginContext == null ) - { - pluginContext = new ConcurrentHashMap(); - - pluginContextsByKey.put( pluginKey, pluginContext ); - } - - return pluginContext; - } - - public ProjectDependencyGraph getProjectDependencyGraph() - { - return projectDependencyGraph; - } - - public void setProjectDependencyGraph( ProjectDependencyGraph projectDependencyGraph ) - { - this.projectDependencyGraph = projectDependencyGraph; - } - - public String getReactorFailureBehavior() - { - return request.getReactorFailureBehavior(); - } - - @Override - public MavenSession clone() - { - try - { - return (MavenSession) super.clone(); - } - catch ( CloneNotSupportedException e ) - { - throw new RuntimeException( "Bug", e ); - } - } - - public Date getStartTime() - { - return request.getStartTime(); - } - - public boolean isParallel() - { - return parallel; - } - - public void setParallel( boolean parallel ) - { - this.parallel = parallel; - } - - public RepositorySystemSession getRepositorySession() - { - return repositorySession; - } - - private Map projectMap; - - public void setProjectMap( Map projectMap ) - { - this.projectMap = projectMap; - } - - /** This is a provisional method and may be removed */ - public List getAllProjects() - { - return allProjects; - } - - /** This is a provisional method and may be removed */ - public void setAllProjects( List allProjects ) - { - this.allProjects = allProjects; - } - - /*if_not[MAVEN4]*/ - - // - // Deprecated - // - - private PlexusContainer container; - - private final Settings settings; - - @Deprecated - /** @deprecated This appears to only be used in the ReactorReader and we can do any processing required there */ - public Map getProjectMap() - { - return projectMap; - } - - @Deprecated - public MavenSession( PlexusContainer container, RepositorySystemSession repositorySession, - MavenExecutionRequest request, MavenExecutionResult result ) - { - this.container = container; - this.request = request; - this.result = result; - this.settings = new SettingsAdapter( request ); - this.repositorySession = repositorySession; - } - - @Deprecated - public MavenSession( PlexusContainer container, MavenExecutionRequest request, MavenExecutionResult result, - MavenProject project ) - { - this( container, request, result, Arrays.asList( new MavenProject[]{project} ) ); - } - - @Deprecated - public MavenSession( PlexusContainer container, Settings settings, ArtifactRepository localRepository, - EventDispatcher eventDispatcher, ReactorManager unused, List goals, - String executionRootDir, Properties executionProperties, Date startTime ) - { - this( container, settings, localRepository, eventDispatcher, unused, goals, executionRootDir, - executionProperties, null, startTime ); - } - - @Deprecated - public MavenSession( PlexusContainer container, Settings settings, ArtifactRepository localRepository, - EventDispatcher eventDispatcher, ReactorManager unused, List goals, - String executionRootDir, Properties executionProperties, Properties userProperties, - Date startTime ) - { - this.container = container; - this.settings = settings; - this.executionProperties = executionProperties; - this.request = new DefaultMavenExecutionRequest(); - this.request.setUserProperties( userProperties ); - this.request.setLocalRepository( localRepository ); - this.request.setGoals( goals ); - this.request.setBaseDirectory( ( executionRootDir != null ) ? new File( executionRootDir ) : null ); - this.request.setStartTime( startTime ); - } - - @Deprecated - public MavenSession( PlexusContainer container, MavenExecutionRequest request, MavenExecutionResult result, - List projects ) - { - this.container = container; - this.request = request; - this.result = result; - this.settings = new SettingsAdapter( request ); - setProjects( projects ); - } - - @Deprecated - public List getSortedProjects() - { - return getProjects(); - } - - @Deprecated - // - // Used by Tycho and will break users and force them to upgrade to Maven 3.1 so we should really leave - // this here, possibly indefinitely. - // - public RepositoryCache getRepositoryCache() - { - return null; - } - - @Deprecated - public EventDispatcher getEventDispatcher() - { - return null; - } - - @Deprecated - public boolean isUsingPOMsFromFilesystem() - { - return request.isProjectPresent(); - } - - /** - * @deprecated Use either {@link #getUserProperties()} or {@link #getSystemProperties()}. - */ - @Deprecated - public Properties getExecutionProperties() - { - if ( executionProperties == null ) - { - executionProperties = new Properties(); - executionProperties.putAll( request.getSystemProperties() ); - executionProperties.putAll( request.getUserProperties() ); - } - - return executionProperties; - } - - @Deprecated - public PlexusContainer getContainer() - { - return container; - } - - @Deprecated - public Object lookup( String role ) - throws ComponentLookupException - { - return container.lookup( role ); - } - - @Deprecated - public Object lookup( String role, String roleHint ) - throws ComponentLookupException - { - return container.lookup( role, roleHint ); - } - - @Deprecated - public List lookupList( String role ) - throws ComponentLookupException - { - return container.lookupList( role ); - } - - @Deprecated - public Map lookupMap( String role ) - throws ComponentLookupException - { - return container.lookupMap( role ); - } - - /*end[MAVEN4]*/ -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MojoExecutionEvent.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MojoExecutionEvent.java deleted file mode 100644 index a8d293d1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MojoExecutionEvent.java +++ /dev/null @@ -1,86 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.plugin.Mojo; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.project.MavenProject; - -/** - * Encapsulates parameters of MojoExecutionListener callback methods and is meant to provide API evolution path should - * it become necessary to introduce new parameters in the existing callbacks in the future. - * - * @see MojoExecutionListener - * @see org.apache.maven.execution.scope.WeakMojoExecutionListener - * @since 3.1.2 - * @provisional This class is part of work in progress and can be changed or removed without notice. - */ -public class MojoExecutionEvent -{ - private final MavenSession session; - - private final MavenProject project; - - private final MojoExecution mojoExecution; - - private final Mojo mojo; - - private final Throwable cause; - - public MojoExecutionEvent( MavenSession session, MavenProject project, MojoExecution mojoExecution, Mojo mojo ) - { - this( session, project, mojoExecution, mojo, null ); - } - - public MojoExecutionEvent( MavenSession session, MavenProject project, MojoExecution mojoExecution, Mojo mojo, - Throwable cause ) - { - this.session = session; - this.project = project; - this.mojoExecution = mojoExecution; - this.mojo = mojo; - this.cause = cause; - } - - public MavenSession getSession() - { - return session; - } - - public MavenProject getProject() - { - return project; - } - - public MojoExecution getExecution() - { - return mojoExecution; - } - - public Mojo getMojo() - { - return mojo; - } - - public Throwable getCause() - { - return cause; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MojoExecutionListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MojoExecutionListener.java deleted file mode 100644 index c2fb7a18..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/MojoExecutionListener.java +++ /dev/null @@ -1,40 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.plugin.MojoExecutionException; - -/** - * Extension point that allows build extensions observe and possibly veto mojo executions. - * - * @see org.apache.maven.execution.scope.WeakMojoExecutionListener - * @since 3.1.2 - * @provisional This interface is part of work in progress and can be changed or removed without notice. - */ -public interface MojoExecutionListener -{ - void beforeMojoExecution( MojoExecutionEvent event ) - throws MojoExecutionException; - - void afterMojoExecutionSuccess( MojoExecutionEvent event ) - throws MojoExecutionException; - - void afterExecutionFailure( MojoExecutionEvent event ); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ProjectDependencyGraph.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ProjectDependencyGraph.java deleted file mode 100644 index 1db277db..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ProjectDependencyGraph.java +++ /dev/null @@ -1,64 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.project.MavenProject; - -/** - * Describes the inter-dependencies between projects in the reactor. - * - * @author Benjamin Bentmann - */ -public interface ProjectDependencyGraph -{ - - /** - * Gets all projects in their intended build order, i.e. after topologically sorting the projects according to their - * inter-dependencies. - * - * @return The projects in the build order, never {@code null}. - */ - List getSortedProjects(); - - /** - * Gets the downstream projects of the specified project. A downstream project is a project that directly or - * indirectly depends on the given project. - * - * @param project The project whose downstream projects should be retrieved, must not be {@code null}. - * @param transitive A flag whether to retrieve all direct and indirect downstream projects or just the immediate - * downstream projects. - * @return The downstream projects in the build order, never {@code null}. - */ - List getDownstreamProjects( MavenProject project, boolean transitive ); - - /** - * Gets the upstream projects of the specified project. An upstream project is a project that directly or indirectly - * is a prerequisite of the given project. - * - * @param project The project whose upstream projects should be retrieved, must not be {@code null}. - * @param transitive A flag whether to retrieve all direct and indirect upstream projects or just the immediate - * upstream projects. - * @return The upstream projects in the build order, never {@code null}. - */ - List getUpstreamProjects( MavenProject project, boolean transitive ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ProjectExecutionEvent.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ProjectExecutionEvent.java deleted file mode 100644 index fb71078f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ProjectExecutionEvent.java +++ /dev/null @@ -1,90 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.project.MavenProject; - -/** - * Encapsulates parameters of ProjectExecutionListener callback methods and is meant to provide API evolution path - * should it become necessary to introduce new parameters in the existing callbacks in the future. - * - * @see ProjectExecutionListener - * @since 3.1.2 - * @provisional This class is part of work in progress and can be changed or removed without notice. - */ -public class ProjectExecutionEvent -{ - - private final MavenSession session; - - private final MavenProject project; - - private final List executionPlan; - - private final Throwable cause; - - public ProjectExecutionEvent( MavenSession session, MavenProject project ) - { - this( session, project, null, null ); - } - - public ProjectExecutionEvent( MavenSession session, MavenProject project, List executionPlan ) - { - this( session, project, executionPlan, null ); - } - - public ProjectExecutionEvent( MavenSession session, MavenProject project, Throwable cause ) - { - this( session, project, null, cause ); - } - - public ProjectExecutionEvent( MavenSession session, MavenProject project, List executionPlan, - Throwable cause ) - { - this.session = session; - this.project = project; - this.executionPlan = executionPlan; - this.cause = cause; - } - - public MavenSession getSession() - { - return session; - } - - public MavenProject getProject() - { - return project; - } - - public List getExecutionPlan() - { - return executionPlan; - } - - public Throwable getCause() - { - return cause; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ProjectExecutionListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ProjectExecutionListener.java deleted file mode 100644 index d7e89183..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ProjectExecutionListener.java +++ /dev/null @@ -1,44 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.lifecycle.LifecycleExecutionException; - -/** - * Extension point that allows build extensions observe and possibly veto project build execution. - * - * @see ExecutionListener - * @see MojoExecutionListener - * @since 3.1.2 - * @provisional This interface is part of work in progress and can be changed or removed without notice. - */ -public interface ProjectExecutionListener -{ - void beforeProjectExecution( ProjectExecutionEvent event ) - throws LifecycleExecutionException; - - void beforeProjectLifecycleExecution( ProjectExecutionEvent event ) - throws LifecycleExecutionException; - - void afterProjectExecutionSuccess( ProjectExecutionEvent event ) - throws LifecycleExecutionException; - - void afterProjectExecutionFailure( ProjectExecutionEvent event ); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ReactorManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ReactorManager.java deleted file mode 100644 index 1b99a3be..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/ReactorManager.java +++ /dev/null @@ -1,199 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.ArtifactUtils; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.apache.maven.project.DuplicateProjectException; -import org.apache.maven.project.MavenProject; -import org.apache.maven.project.ProjectSorter; -import org.codehaus.plexus.util.dag.CycleDetectedException; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -@Deprecated -public class ReactorManager -{ - public static final String FAIL_FAST = "fail-fast"; - - public static final String FAIL_AT_END = "fail-at-end"; - - public static final String FAIL_NEVER = "fail-never"; - - public static final String MAKE_MODE = "make"; - - public static final String MAKE_DEPENDENTS_MODE = "make-dependents"; - - // make projects that depend on me, and projects that I depend on - public static final String MAKE_BOTH_MODE = "make-both"; - - private List blackList = new ArrayList(); - - private Map buildFailuresByProject = new HashMap(); - - private Map pluginContextsByProjectAndPluginKey = new HashMap(); - - private String failureBehavior = FAIL_FAST; - - private final ProjectSorter sorter; - - private Map buildSuccessesByProject = new HashMap(); - - public ReactorManager( List projects ) - throws CycleDetectedException, DuplicateProjectException - { - this.sorter = new ProjectSorter( projects ); - } - - public Map getPluginContext( PluginDescriptor plugin, MavenProject project ) - { - Map pluginContextsByKey = (Map) pluginContextsByProjectAndPluginKey.get( project.getId() ); - - if ( pluginContextsByKey == null ) - { - pluginContextsByKey = new HashMap(); - pluginContextsByProjectAndPluginKey.put( project.getId(), pluginContextsByKey ); - } - - Map pluginContext = (Map) pluginContextsByKey.get( plugin.getPluginLookupKey() ); - - if ( pluginContext == null ) - { - pluginContext = new HashMap(); - pluginContextsByKey.put( plugin.getPluginLookupKey(), pluginContext ); - } - - return pluginContext; - } - - public void setFailureBehavior( String failureBehavior ) - { - if ( failureBehavior == null ) - { - this.failureBehavior = FAIL_FAST; // default - return; - } - if ( FAIL_FAST.equals( failureBehavior ) || FAIL_AT_END.equals( failureBehavior ) - || FAIL_NEVER.equals( failureBehavior ) ) - { - this.failureBehavior = failureBehavior; - } - else - { - throw new IllegalArgumentException( "Invalid failure behavior (must be one of: \'" + FAIL_FAST + "\', \'" - + FAIL_AT_END + "\', \'" + FAIL_NEVER + "\')." ); - } - } - - public String getFailureBehavior() - { - return failureBehavior; - } - - public void blackList( MavenProject project ) - { - blackList( getProjectKey( project ) ); - } - - private void blackList( String id ) - { - if ( !blackList.contains( id ) ) - { - blackList.add( id ); - - List dependents = sorter.getDependents( id ); - - if ( dependents != null && !dependents.isEmpty() ) - { - for ( String dependentId : dependents ) - { - if ( !buildSuccessesByProject.containsKey( dependentId ) - && !buildFailuresByProject.containsKey( dependentId ) ) - { - blackList( dependentId ); - } - } - } - } - } - - public boolean isBlackListed( MavenProject project ) - { - return blackList.contains( getProjectKey( project ) ); - } - - private static String getProjectKey( MavenProject project ) - { - return ArtifactUtils.versionlessKey( project.getGroupId(), project.getArtifactId() ); - } - - public void registerBuildFailure( MavenProject project, Exception error, String task, long time ) - { - buildFailuresByProject.put( getProjectKey( project ), new BuildFailure( project, time, error ) ); - } - - public boolean hasBuildFailures() - { - return !buildFailuresByProject.isEmpty(); - } - - public boolean hasBuildFailure( MavenProject project ) - { - return buildFailuresByProject.containsKey( getProjectKey( project ) ); - } - - public boolean hasMultipleProjects() - { - return sorter.hasMultipleProjects(); - } - - public List getSortedProjects() - { - return sorter.getSortedProjects(); - } - - public boolean hasBuildSuccess( MavenProject project ) - { - return buildSuccessesByProject.containsKey( getProjectKey( project ) ); - } - - public void registerBuildSuccess( MavenProject project, long time ) - { - buildSuccessesByProject.put( getProjectKey( project ), new BuildSuccess( project, time ) ); - } - - public BuildFailure getBuildFailure( MavenProject project ) - { - return (BuildFailure) buildFailuresByProject.get( getProjectKey( project ) ); - } - - public BuildSuccess getBuildSuccess( MavenProject project ) - { - return (BuildSuccess) buildSuccessesByProject.get( getProjectKey( project ) ); - } - - public boolean executedMultipleProjects() - { - return buildFailuresByProject.size() + buildSuccessesByProject.size() > 1; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/SettingsAdapter.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/SettingsAdapter.java deleted file mode 100644 index 000607ff..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/SettingsAdapter.java +++ /dev/null @@ -1,126 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.ArrayList; -import java.util.List; - -import org.apache.maven.settings.Mirror; -import org.apache.maven.settings.Profile; -import org.apache.maven.settings.Proxy; -import org.apache.maven.settings.RuntimeInfo; -import org.apache.maven.settings.Server; -import org.apache.maven.settings.Settings; -import org.apache.maven.settings.SettingsUtils; - -/** - * Adapt a {@link MavenExecutionRequest} to a {@link Settings} object for use in the Maven core. - * We want to make sure that what is ask for in the execution request overrides what is in the settings. - * The CLI feeds into an execution request so if a particular value is present in the execution request - * then we will take that over the value coming from the user settings. - * - * @author Jason van Zyl - */ -class SettingsAdapter - extends Settings -{ - - private MavenExecutionRequest request; - - private RuntimeInfo runtimeInfo; - - public SettingsAdapter( MavenExecutionRequest request ) - { - this.request = request; - - /* - * NOTE: Plugins like maven-release-plugin query the path to the settings.xml to pass it into a forked Maven and - * the CLI will fail when called with a non-existing settings, so be sure to only point at actual files. Having - * a null file should be harmless as this case matches general Maven 2.x behavior... - */ - File userSettings = request.getUserSettingsFile(); - this.runtimeInfo = new RuntimeInfo( ( userSettings != null && userSettings.isFile() ) ? userSettings : null ); - } - - @Override - public String getLocalRepository() - { - if ( request.getLocalRepositoryPath() != null ) - { - return request.getLocalRepositoryPath().getAbsolutePath(); - } - - return null; - } - - @Override - public boolean isInteractiveMode() - { - return request.isInteractiveMode(); - } - - @Override - public boolean isOffline() - { - return request.isOffline(); - } - - @Override - public List getProxies() - { - return request.getProxies(); - } - - @Override - public List getServers() - { - return request.getServers(); - } - - @Override - public List getMirrors() - { - return request.getMirrors(); - } - - @Override - public List getProfiles() - { - List result = new ArrayList(); - for ( org.apache.maven.model.Profile profile : request.getProfiles() ) - { - result.add( SettingsUtils.convertToSettingsProfile( profile ) ); - } - return result; - } - - @Override - public List getActiveProfiles() - { - return request.getActiveProfiles(); - } - - @Override - public List getPluginGroups() - { - return request.getPluginGroups(); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/MojoExecutionScoped.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/MojoExecutionScoped.java deleted file mode 100644 index 0dcbd16f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/MojoExecutionScoped.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.apache.maven.execution.scope; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import static java.lang.annotation.ElementType.TYPE; -import static java.lang.annotation.RetentionPolicy.RUNTIME; - -import java.lang.annotation.Retention; -import java.lang.annotation.Target; - -import com.google.inject.ScopeAnnotation; - -/** - * Indicates that annotated component should be instantiated before mojo execution starts and discarded after mojo - * execution completes. - * - * @author igor - * @since 3.1.2 - */ -@Target( { TYPE } ) -@Retention( RUNTIME ) -@ScopeAnnotation -public @interface MojoExecutionScoped -{ -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/WeakMojoExecutionListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/WeakMojoExecutionListener.java deleted file mode 100644 index 94e7c104..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/WeakMojoExecutionListener.java +++ /dev/null @@ -1,44 +0,0 @@ -package org.apache.maven.execution.scope; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.MojoExecutionEvent; -import org.apache.maven.plugin.MojoExecutionException; - -/** - * Extension point that allows build extensions observe and possibly veto mojo executions. - *

- * Unlike {@link MojoExecutionListener}, this extension point does not trigger instantiation of the component, hence - * "weak" class name prefix. Only applies to mojo execution scoped components. - * - * @see org.apache.maven.execution.MojoExecutionListener - * @since 3.1.2 - * @provisional This interface is part of work in progress and can be changed or removed without notice. - */ -public interface WeakMojoExecutionListener -{ - void beforeMojoExecution( MojoExecutionEvent event ) - throws MojoExecutionException; - - void afterMojoExecutionSuccess( MojoExecutionEvent event ) - throws MojoExecutionException; - - void afterExecutionFailure( MojoExecutionEvent event ); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScope.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScope.java deleted file mode 100644 index 8a98daf0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScope.java +++ /dev/null @@ -1,190 +0,0 @@ -package org.apache.maven.execution.scope.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collection; -import java.util.IdentityHashMap; -import java.util.LinkedList; -import java.util.Map; - -import org.apache.maven.execution.MojoExecutionEvent; -import org.apache.maven.execution.MojoExecutionListener; -import org.apache.maven.execution.scope.WeakMojoExecutionListener; -import org.apache.maven.plugin.MojoExecutionException; - -import com.google.common.collect.Maps; -import com.google.inject.Key; -import com.google.inject.OutOfScopeException; -import com.google.inject.Provider; -import com.google.inject.Scope; -import com.google.inject.util.Providers; - -public class MojoExecutionScope - implements Scope, MojoExecutionListener -{ - private static final Provider SEEDED_KEY_PROVIDER = new Provider() - { - public Object get() - { - throw new IllegalStateException(); - } - }; - - private static final class ScopeState - { - public final Map, Provider> seeded = Maps.newHashMap(); - - public final Map, Object> provided = Maps.newHashMap(); - } - - private final ThreadLocal> values = new ThreadLocal>(); - - public MojoExecutionScope() - { - } - - public void enter() - { - LinkedList stack = values.get(); - if ( stack == null ) - { - stack = new LinkedList(); - values.set( stack ); - } - stack.addFirst( new ScopeState() ); - } - - private ScopeState getScopeState() - { - LinkedList stack = values.get(); - if ( stack == null || stack.isEmpty() ) - { - throw new IllegalStateException(); - } - return stack.getFirst(); - } - - public void exit() - throws MojoExecutionException - { - final LinkedList stack = values.get(); - if ( stack == null || stack.isEmpty() ) - { - throw new IllegalStateException(); - } - stack.removeFirst(); - if ( stack.isEmpty() ) - { - values.remove(); - } - } - - public void seed( Class clazz, Provider value ) - { - getScopeState().seeded.put( Key.get( clazz ), value ); - } - - public void seed( Class clazz, final T value ) - { - getScopeState().seeded.put( Key.get( clazz ), Providers.of( value ) ); - } - - public Provider scope( final Key key, final Provider unscoped ) - { - return new Provider() - { - @SuppressWarnings( "unchecked" ) - public T get() - { - LinkedList stack = values.get(); - if ( stack == null || stack.isEmpty() ) - { - throw new OutOfScopeException( "Cannot access " + key + " outside of a scoping block" ); - } - - ScopeState state = stack.getFirst(); - - Provider seeded = state.seeded.get( key ); - - if ( seeded != null ) - { - return (T) seeded.get(); - } - - T provided = (T) state.provided.get( key ); - if ( provided == null && unscoped != null ) - { - provided = unscoped.get(); - state.provided.put( key, provided ); - } - - return provided; - } - }; - } - - @SuppressWarnings( { "unchecked" } ) - public static Provider seededKeyProvider() - { - return (Provider) SEEDED_KEY_PROVIDER; - } - - public void beforeMojoExecution( MojoExecutionEvent event ) - throws MojoExecutionException - { - for ( WeakMojoExecutionListener provided : getProvidedListeners() ) - { - provided.beforeMojoExecution( event ); - } - } - - public void afterMojoExecutionSuccess( MojoExecutionEvent event ) - throws MojoExecutionException - { - for ( WeakMojoExecutionListener provided : getProvidedListeners() ) - { - provided.afterMojoExecutionSuccess( event ); - } - } - - public void afterExecutionFailure( MojoExecutionEvent event ) - { - for ( WeakMojoExecutionListener provided : getProvidedListeners() ) - { - provided.afterExecutionFailure( event ); - } - } - - private Collection getProvidedListeners() - { - // the same instance can be provided multiple times under different Key's - // deduplicate instances to avoid redundant beforeXXX/afterXXX callbacks - IdentityHashMap listeners = - new IdentityHashMap(); - for ( Object provided : getScopeState().provided.values() ) - { - if ( provided instanceof WeakMojoExecutionListener ) - { - listeners.put( (WeakMojoExecutionListener) provided, null ); - } - } - return listeners.keySet(); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeCoreModule.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeCoreModule.java deleted file mode 100644 index 8208c3c3..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeCoreModule.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.apache.maven.execution.scope.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import javax.inject.Inject; -import javax.inject.Named; - -import org.apache.maven.execution.MojoExecutionListener; - -@Named -public class MojoExecutionScopeCoreModule - extends MojoExecutionScopeModule -{ - - @Inject - public MojoExecutionScopeCoreModule() - { - super( new MojoExecutionScope() ); - } - - @Override - protected void configure() - { - super.configure(); - bind( MojoExecutionListener.class ).toInstance( scope ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeModule.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeModule.java deleted file mode 100644 index 229a3c56..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeModule.java +++ /dev/null @@ -1,56 +0,0 @@ -package org.apache.maven.execution.scope.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.scope.MojoExecutionScoped; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.PlexusContainer; -import org.codehaus.plexus.component.repository.exception.ComponentLookupException; - -import com.google.inject.AbstractModule; - -public class MojoExecutionScopeModule - extends AbstractModule -{ - protected final MojoExecutionScope scope; - - public MojoExecutionScopeModule( PlexusContainer container ) - throws ComponentLookupException - { - this( container.lookup( MojoExecutionScope.class ) ); - } - - protected MojoExecutionScopeModule( MojoExecutionScope scope ) - { - this.scope = scope; - } - - @Override - protected void configure() - { - bindScope( MojoExecutionScoped.class, scope ); - bind( MojoExecutionScope.class ).toInstance( scope ); - - bind( MavenProject.class ).toProvider( MojoExecutionScope.seededKeyProvider() ).in( scope ); - bind( MojoExecution.class ).toProvider( MojoExecutionScope.seededKeyProvider() ).in( scope ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExports.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExports.java deleted file mode 100644 index c4265b31..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExports.java +++ /dev/null @@ -1,75 +0,0 @@ -package org.apache.maven.extension.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.Set; - -import org.codehaus.plexus.classworlds.realm.ClassRealm; - -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; - -/** - * Provides information about artifacts (identified by groupId:artifactId string key) and classpath elements exported by - * Maven core itself and loaded Maven core extensions. - * - * @since 3.3.0 - */ -public class CoreExports -{ - private final Set artifacts; - - private final Map packages; - - public CoreExports( CoreExtensionEntry entry ) - { - this( entry.getClassRealm(), entry.getExportedArtifacts(), entry.getExportedPackages() ); - } - - public CoreExports( ClassRealm realm, Set exportedArtifacts, Set exportedPackages ) - { - Map packages = new LinkedHashMap(); - for ( String pkg : exportedPackages ) - { - packages.put( pkg, realm ); - } - this.artifacts = ImmutableSet.copyOf( exportedArtifacts ); - this.packages = ImmutableMap.copyOf( packages ); - } - - /** - * Returns artifacts exported by Maven core and core extensions. Artifacts are identified by their - * groupId:artifactId string key. - */ - public Set getExportedArtifacts() - { - return artifacts; - } - - /** - * Returns packages exported by Maven core and core extensions. - */ - public Map getExportedPackages() - { - return packages; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExportsProvider.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExportsProvider.java deleted file mode 100644 index e7e4534c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExportsProvider.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.apache.maven.extension.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import javax.inject.Inject; -import javax.inject.Named; -import javax.inject.Singleton; - -import org.codehaus.plexus.PlexusContainer; -import org.eclipse.sisu.Nullable; - -@Named -@Singleton -public class CoreExportsProvider -{ - - private final CoreExports exports; - - @Inject - public CoreExportsProvider( PlexusContainer container, @Nullable CoreExports exports ) - { - if ( exports == null ) - { - this.exports = new CoreExports( CoreExtensionEntry.discoverFrom( container.getContainerRealm() ) ); - } - else - { - this.exports = exports; - } - } - - public CoreExports get() - { - return exports; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExtensionEntry.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExtensionEntry.java deleted file mode 100644 index edadeb2d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExtensionEntry.java +++ /dev/null @@ -1,141 +0,0 @@ -package org.apache.maven.extension.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.IOException; -import java.io.InputStream; -import java.net.URL; -import java.util.Collection; -import java.util.Enumeration; -import java.util.LinkedHashSet; -import java.util.Set; - -import org.apache.maven.project.ExtensionDescriptor; -import org.apache.maven.project.ExtensionDescriptorBuilder; -import org.codehaus.plexus.classworlds.realm.ClassRealm; -import org.codehaus.plexus.util.IOUtil; - -import com.google.common.collect.ImmutableSet; - -/** - * Provides information about artifacts (identified by groupId:artifactId string key) and classpath elements exported by - * Maven core itself or a Maven core extension. - * - * @since 3.3.0 - */ -public class CoreExtensionEntry -{ - private final ClassRealm realm; - - private final Set artifacts; - - private final Set packages; - - public CoreExtensionEntry( ClassRealm realm, Collection artifacts, Collection packages ) - { - this.realm = realm; - this.artifacts = ImmutableSet.copyOf( artifacts ); - this.packages = ImmutableSet.copyOf( packages ); - } - - /** - * Returns ClassLoader used to load extension classes. - */ - public ClassRealm getClassRealm() - { - return realm; - } - - /** - * Returns artifacts exported by the extension, identified by groupId:artifactId string key. - */ - public Set getExportedArtifacts() - { - return artifacts; - } - - /** - * Returns classpath elements exported by the extension. - */ - public Set getExportedPackages() - { - return packages; - } - - private static final ExtensionDescriptorBuilder builder = new ExtensionDescriptorBuilder(); - - public static CoreExtensionEntry discoverFrom( ClassRealm loader ) - { - Set artifacts = new LinkedHashSet(); - Set packages = new LinkedHashSet(); - - try - { - Enumeration urls = loader.getResources( builder.getExtensionDescriptorLocation() ); - while ( urls.hasMoreElements() ) - { - InputStream is = urls.nextElement().openStream(); - try - { - ExtensionDescriptor descriptor = builder.build( is ); - artifacts.addAll( descriptor.getExportedArtifacts() ); - packages.addAll( descriptor.getExportedPackages() ); - } - finally - { - IOUtil.close( is ); - } - } - } - catch ( IOException ignored ) - { - // exports descriptors are entirely optional - } - - return new CoreExtensionEntry( loader, artifacts, packages ); - } - - public static CoreExtensionEntry discoverFrom( ClassRealm loader, Collection classpath ) - { - Set artifacts = new LinkedHashSet(); - Set packages = new LinkedHashSet(); - - try - { - for ( File entry : classpath ) - { - ExtensionDescriptor descriptor = builder.build( entry ); - if ( descriptor != null ) - { - artifacts.addAll( descriptor.getExportedArtifacts() ); - packages.addAll( descriptor.getExportedPackages() ); - } - } - } - catch ( IOException ignored ) - { - // exports descriptors are entirely optional - } - - return new CoreExtensionEntry( loader, artifacts, packages ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java deleted file mode 100644 index c8367463..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java +++ /dev/null @@ -1,488 +0,0 @@ -package org.apache.maven.graph; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.HashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; - -import org.apache.maven.DefaultMaven; -import org.apache.maven.MavenExecutionException; -import org.apache.maven.ProjectCycleException; -import org.apache.maven.artifact.ArtifactUtils; -import org.apache.maven.execution.MavenExecutionRequest; -import org.apache.maven.execution.MavenExecutionResult; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.execution.ProjectDependencyGraph; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.building.DefaultModelProblem; -import org.apache.maven.model.building.ModelProblem; -import org.apache.maven.model.building.ModelProblemUtils; -import org.apache.maven.model.building.ModelSource; -import org.apache.maven.model.building.Result; -import org.apache.maven.model.building.UrlModelSource; -import org.apache.maven.project.MavenProject; -import org.apache.maven.project.ProjectBuilder; -import org.apache.maven.project.ProjectBuildingException; -import org.apache.maven.project.ProjectBuildingRequest; -import org.apache.maven.project.ProjectBuildingResult; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.util.StringUtils; -import org.codehaus.plexus.util.dag.CycleDetectedException; - -import com.google.common.collect.Lists; - -@Component( role = GraphBuilder.class, hint = GraphBuilder.HINT ) -public class DefaultGraphBuilder - implements GraphBuilder -{ - @Requirement - private Logger logger; - - @Requirement - protected ProjectBuilder projectBuilder; - - @Override - public Result build( MavenSession session ) - { - if ( session.getProjectDependencyGraph() != null ) - { - return dependencyGraph( session, session.getProjects(), false ); - } - - List projects = session.getProjects(); - - if ( projects == null ) - { - try - { - projects = getProjectsForMavenReactor( session ); - } - catch ( ProjectBuildingException e ) - { - return Result.error( Lists.newArrayList( new DefaultModelProblem( null, null, null, null, 0, 0, e ) ) ); - } - - validateProjects( projects ); - - return dependencyGraph( session, projects, true ); - } - else - { - return dependencyGraph( session, projects, false ); - } - } - - private Result dependencyGraph( MavenSession session, List projects, - boolean applyMakeBehaviour ) - { - MavenExecutionRequest request = session.getRequest(); - - ProjectDependencyGraph projectDependencyGraph = null; - - try - { - projectDependencyGraph = new DefaultProjectDependencyGraph( projects ); - - if ( applyMakeBehaviour ) - { - List activeProjects = projectDependencyGraph.getSortedProjects(); - - activeProjects = trimSelectedProjects( activeProjects, projectDependencyGraph, request ); - activeProjects = trimExcludedProjects( activeProjects, request ); - activeProjects = trimResumedProjects( activeProjects, request ); - - if ( activeProjects.size() != projectDependencyGraph.getSortedProjects().size() ) - { - projectDependencyGraph = - new FilteredProjectDependencyGraph( projectDependencyGraph, activeProjects ); - } - } - } - catch ( CycleDetectedException e ) - { - String message = "The projects in the reactor contain a cyclic reference: " + e.getMessage(); - ProjectCycleException error = new ProjectCycleException( message, e ); - return Result.error( Lists.newArrayList( new DefaultModelProblem( null, null, null, null, 0, 0, error ) ) ); - } - catch ( org.apache.maven.project.DuplicateProjectException e ) - { - return Result.error( Lists.newArrayList( new DefaultModelProblem( null, null, null, null, 0, 0, e ) ) ); - } - catch ( MavenExecutionException e ) - { - return Result.error( Lists.newArrayList( new DefaultModelProblem( null, null, null, null, 0, 0, e ) ) ); - } - - session.setProjects( projectDependencyGraph.getSortedProjects() ); - session.setProjectDependencyGraph( projectDependencyGraph ); - - return Result.success( projectDependencyGraph ); - } - - private List trimSelectedProjects( List projects, ProjectDependencyGraph graph, - MavenExecutionRequest request ) - throws MavenExecutionException - { - List result = projects; - - if ( !request.getSelectedProjects().isEmpty() ) - { - File reactorDirectory = null; - if ( request.getBaseDirectory() != null ) - { - reactorDirectory = new File( request.getBaseDirectory() ); - } - - Collection selectedProjects = new LinkedHashSet( projects.size() ); - - for ( String selector : request.getSelectedProjects() ) - { - MavenProject selectedProject = null; - - for ( MavenProject project : projects ) - { - if ( isMatchingProject( project, selector, reactorDirectory ) ) - { - selectedProject = project; - break; - } - } - - if ( selectedProject != null ) - { - selectedProjects.add( selectedProject ); - } - else - { - throw new MavenExecutionException( "Could not find the selected project in the reactor: " - + selector, request.getPom() ); - } - } - - boolean makeUpstream = false; - boolean makeDownstream = false; - - if ( MavenExecutionRequest.REACTOR_MAKE_UPSTREAM.equals( request.getMakeBehavior() ) ) - { - makeUpstream = true; - } - else if ( MavenExecutionRequest.REACTOR_MAKE_DOWNSTREAM.equals( request.getMakeBehavior() ) ) - { - makeDownstream = true; - } - else if ( MavenExecutionRequest.REACTOR_MAKE_BOTH.equals( request.getMakeBehavior() ) ) - { - makeUpstream = true; - makeDownstream = true; - } - else if ( StringUtils.isNotEmpty( request.getMakeBehavior() ) ) - { - throw new MavenExecutionException( "Invalid reactor make behavior: " + request.getMakeBehavior(), - request.getPom() ); - } - - if ( makeUpstream || makeDownstream ) - { - for ( MavenProject selectedProject : new ArrayList( selectedProjects ) ) - { - if ( makeUpstream ) - { - selectedProjects.addAll( graph.getUpstreamProjects( selectedProject, true ) ); - } - if ( makeDownstream ) - { - selectedProjects.addAll( graph.getDownstreamProjects( selectedProject, true ) ); - } - } - } - - result = new ArrayList( selectedProjects.size() ); - - for ( MavenProject project : projects ) - { - if ( selectedProjects.contains( project ) ) - { - result.add( project ); - } - } - } - - return result; - } - - private List trimExcludedProjects( List projects, MavenExecutionRequest request ) - throws MavenExecutionException - { - List result = projects; - - if ( !request.getExcludedProjects().isEmpty() ) - { - File reactorDirectory = null; - - if ( request.getBaseDirectory() != null ) - { - reactorDirectory = new File( request.getBaseDirectory() ); - } - - Collection excludedProjects = new LinkedHashSet( projects.size() ); - - for ( String selector : request.getExcludedProjects() ) - { - MavenProject excludedProject = null; - - for ( MavenProject project : projects ) - { - if ( isMatchingProject( project, selector, reactorDirectory ) ) - { - excludedProject = project; - break; - } - } - - if ( excludedProject != null ) - { - excludedProjects.add( excludedProject ); - } - else - { - throw new MavenExecutionException( "Could not find the selected project in the reactor: " - + selector, request.getPom() ); - } - } - - result = new ArrayList( projects.size() ); - for ( MavenProject project : projects ) - { - if ( !excludedProjects.contains( project ) ) - { - result.add( project ); - } - } - } - - return result; - } - - private List trimResumedProjects( List projects, MavenExecutionRequest request ) - throws MavenExecutionException - { - List result = projects; - - if ( StringUtils.isNotEmpty( request.getResumeFrom() ) ) - { - File reactorDirectory = null; - if ( request.getBaseDirectory() != null ) - { - reactorDirectory = new File( request.getBaseDirectory() ); - } - - String selector = request.getResumeFrom(); - - result = new ArrayList( projects.size() ); - - boolean resumed = false; - - for ( MavenProject project : projects ) - { - if ( !resumed && isMatchingProject( project, selector, reactorDirectory ) ) - { - resumed = true; - } - - if ( resumed ) - { - result.add( project ); - } - } - - if ( !resumed ) - { - throw new MavenExecutionException( "Could not find project to resume reactor build from: " + selector - + " vs " + projects, request.getPom() ); - } - } - - return result; - } - - private boolean isMatchingProject( MavenProject project, String selector, File reactorDirectory ) - { - // [groupId]:artifactId - if ( selector.indexOf( ':' ) >= 0 ) - { - String id = ':' + project.getArtifactId(); - - if ( id.equals( selector ) ) - { - return true; - } - - id = project.getGroupId() + id; - - if ( id.equals( selector ) ) - { - return true; - } - } - - // relative path, e.g. "sub", "../sub" or "." - else if ( reactorDirectory != null ) - { - File selectedProject = new File( new File( reactorDirectory, selector ).toURI().normalize() ); - - if ( selectedProject.isFile() ) - { - return selectedProject.equals( project.getFile() ); - } - else if ( selectedProject.isDirectory() ) - { - return selectedProject.equals( project.getBasedir() ); - } - } - - return false; - } - - private MavenExecutionResult addExceptionToResult( MavenExecutionResult result, Throwable e ) - { - if ( !result.getExceptions().contains( e ) ) - { - result.addException( e ); - } - - return result; - } - - // //////////////////////////////////////////////////////////////////////////////////////////////////////////////// - // - // Project collection - // - // //////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - private List getProjectsForMavenReactor( MavenSession session ) - throws ProjectBuildingException - { - MavenExecutionRequest request = session.getRequest(); - - request.getProjectBuildingRequest().setRepositorySession( session.getRepositorySession() ); - - List projects = new ArrayList(); - - // We have no POM file. - // - if ( request.getPom() == null ) - { - ModelSource modelSource = new UrlModelSource( DefaultMaven.class.getResource( "project/standalone.xml" ) ); - MavenProject project = projectBuilder.build( modelSource, request.getProjectBuildingRequest() ) - .getProject(); - project.setExecutionRoot( true ); - projects.add( project ); - request.setProjectPresent( false ); - return projects; - } - - List files = Arrays.asList( request.getPom().getAbsoluteFile() ); - collectProjects( projects, files, request ); - return projects; - } - - private void collectProjects( List projects, List files, MavenExecutionRequest request ) - throws ProjectBuildingException - { - ProjectBuildingRequest projectBuildingRequest = request.getProjectBuildingRequest(); - - List results = projectBuilder.build( files, request.isRecursive(), - projectBuildingRequest ); - - boolean problems = false; - - for ( ProjectBuildingResult result : results ) - { - projects.add( result.getProject() ); - - if ( !result.getProblems().isEmpty() && logger.isWarnEnabled() ) - { - logger.warn( "" ); - logger.warn( "Some problems were encountered while building the effective model for " - + result.getProject().getId() ); - - for ( ModelProblem problem : result.getProblems() ) - { - String loc = ModelProblemUtils.formatLocation( problem, result.getProjectId() ); - logger.warn( problem.getMessage() + ( StringUtils.isNotEmpty( loc ) ? " @ " + loc : "" ) ); - } - - problems = true; - } - } - - if ( problems ) - { - logger.warn( "" ); - logger.warn( "It is highly recommended to fix these problems" - + " because they threaten the stability of your build." ); - logger.warn( "" ); - logger.warn( "For this reason, future Maven versions might no" - + " longer support building such malformed projects." ); - logger.warn( "" ); - } - } - - private void validateProjects( List projects ) - { - Map projectsMap = new HashMap(); - - for ( MavenProject p : projects ) - { - String projectKey = ArtifactUtils.key( p.getGroupId(), p.getArtifactId(), p.getVersion() ); - - projectsMap.put( projectKey, p ); - } - - for ( MavenProject project : projects ) - { - // MNG-1911 / MNG-5572: Building plugins with extensions cannot be part of reactor - for ( Plugin plugin : project.getBuildPlugins() ) - { - if ( plugin.isExtensions() ) - { - String pluginKey = ArtifactUtils.key( plugin.getGroupId(), plugin.getArtifactId(), - plugin.getVersion() ); - - if ( projectsMap.containsKey( pluginKey ) ) - { - logger.warn( project.getName() + " uses " + plugin.getKey() - + " as extensions, which is not possible within the same reactor build. " - + "This plugin was pulled from the local repository!" ); - } - } - } - } - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/graph/DefaultProjectDependencyGraph.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/graph/DefaultProjectDependencyGraph.java deleted file mode 100644 index 01fec339..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/graph/DefaultProjectDependencyGraph.java +++ /dev/null @@ -1,134 +0,0 @@ -package org.apache.maven.graph; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -import org.apache.maven.execution.ProjectDependencyGraph; -import org.apache.maven.project.DuplicateProjectException; -import org.apache.maven.project.MavenProject; -import org.apache.maven.project.ProjectSorter; -import org.codehaus.plexus.util.dag.CycleDetectedException; - -/** - * Describes the inter-dependencies between projects in the reactor. - * - * @author Benjamin Bentmann - */ -public class DefaultProjectDependencyGraph - implements ProjectDependencyGraph -{ - - private ProjectSorter sorter; - - /** - * Creates a new project dependency graph based on the specified projects. - * - * @param projects The projects to create the dependency graph with - * @throws DuplicateProjectException - * @throws CycleDetectedException - */ - public DefaultProjectDependencyGraph( Collection projects ) - throws CycleDetectedException, DuplicateProjectException - { - this.sorter = new ProjectSorter( projects ); - } - - public List getSortedProjects() - { - return new ArrayList( sorter.getSortedProjects() ); - } - - public List getDownstreamProjects( MavenProject project, boolean transitive ) - { - if ( project == null ) - { - throw new IllegalArgumentException( "project missing" ); - } - - Set projectIds = new HashSet(); - - getDownstreamProjects( ProjectSorter.getId( project ), projectIds, transitive ); - - return getSortedProjects( projectIds ); - } - - private void getDownstreamProjects( String projectId, Set projectIds, boolean transitive ) - { - for ( String id : sorter.getDependents( projectId ) ) - { - if ( projectIds.add( id ) && transitive ) - { - getDownstreamProjects( id, projectIds, transitive ); - } - } - } - - public List getUpstreamProjects( MavenProject project, boolean transitive ) - { - if ( project == null ) - { - throw new IllegalArgumentException( "project missing" ); - } - - Set projectIds = new HashSet(); - - getUpstreamProjects( ProjectSorter.getId( project ), projectIds, transitive ); - - return getSortedProjects( projectIds ); - } - - private void getUpstreamProjects( String projectId, Collection projectIds, boolean transitive ) - { - for ( String id : sorter.getDependencies( projectId ) ) - { - if ( projectIds.add( id ) && transitive ) - { - getUpstreamProjects( id, projectIds, transitive ); - } - } - } - - private List getSortedProjects( Set projectIds ) - { - List result = new ArrayList( projectIds.size() ); - - for ( MavenProject mavenProject : sorter.getSortedProjects() ) - { - if ( projectIds.contains( ProjectSorter.getId( mavenProject ) ) ) - { - result.add( mavenProject ); - } - } - - return result; - } - - @Override - public String toString() - { - return sorter.getSortedProjects().toString(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/graph/FilteredProjectDependencyGraph.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/graph/FilteredProjectDependencyGraph.java deleted file mode 100644 index 662bda47..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/graph/FilteredProjectDependencyGraph.java +++ /dev/null @@ -1,111 +0,0 @@ -package org.apache.maven.graph; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Collection; -import java.util.IdentityHashMap; -import java.util.List; -import java.util.Map; - -import org.apache.maven.execution.ProjectDependencyGraph; -import org.apache.maven.project.MavenProject; - -/** - * Provides a sub view of another dependency graph. - * - * @author Benjamin Bentmann - */ -class FilteredProjectDependencyGraph - implements ProjectDependencyGraph -{ - - private ProjectDependencyGraph projectDependencyGraph; - - private Map whiteList; - - private List sortedProjects; - - /** - * Creates a new project dependency graph from the specified graph. - * - * @param projectDependencyGraph The project dependency graph to create a sub view from, must not be {@code null}. - * @param whiteList The projects on which the dependency view should focus, must not be {@code null}. - */ - public FilteredProjectDependencyGraph( ProjectDependencyGraph projectDependencyGraph, - Collection whiteList ) - { - if ( projectDependencyGraph == null ) - { - throw new IllegalArgumentException( "project dependency graph missing" ); - } - - this.projectDependencyGraph = projectDependencyGraph; - - this.whiteList = new IdentityHashMap(); - - for ( MavenProject project : whiteList ) - { - this.whiteList.put( project, null ); - } - } - - public List getSortedProjects() - { - if ( sortedProjects == null ) - { - sortedProjects = applyFilter( projectDependencyGraph.getSortedProjects() ); - } - - return new ArrayList( sortedProjects ); - } - - public List getDownstreamProjects( MavenProject project, boolean transitive ) - { - return applyFilter( projectDependencyGraph.getDownstreamProjects( project, transitive ) ); - } - - public List getUpstreamProjects( MavenProject project, boolean transitive ) - { - return applyFilter( projectDependencyGraph.getUpstreamProjects( project, transitive ) ); - } - - private List applyFilter( Collection projects ) - { - List filtered = new ArrayList( projects.size() ); - - for ( MavenProject project : projects ) - { - if ( whiteList.containsKey( project ) ) - { - filtered.add( project ); - } - } - - return filtered; - } - - @Override - public String toString() - { - return getSortedProjects().toString(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/graph/GraphBuilder.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/graph/GraphBuilder.java deleted file mode 100644 index fb7c4f2a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/graph/GraphBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.apache.maven.graph; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.execution.ProjectDependencyGraph; -import org.apache.maven.model.building.Result; - -public interface GraphBuilder -{ - String HINT = "graphBuilder"; - - Result build( MavenSession session ); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java deleted file mode 100644 index 26a8ddae..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java +++ /dev/null @@ -1,271 +0,0 @@ -package org.apache.maven.internal.aether; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.IOException; -import java.io.InputStream; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.Properties; - -import javax.inject.Inject; -import javax.inject.Named; - -import org.apache.maven.RepositoryUtils; -import org.apache.maven.artifact.handler.manager.ArtifactHandlerManager; -import org.apache.maven.bridge.MavenRepositorySystem; -import org.apache.maven.eventspy.internal.EventSpyDispatcher; -import org.apache.maven.execution.MavenExecutionRequest; -import org.apache.maven.repository.internal.MavenRepositorySystemUtils; -import org.apache.maven.settings.Mirror; -import org.apache.maven.settings.Proxy; -import org.apache.maven.settings.Server; -import org.apache.maven.settings.building.SettingsProblem; -import org.apache.maven.settings.crypto.DefaultSettingsDecryptionRequest; -import org.apache.maven.settings.crypto.SettingsDecrypter; -import org.apache.maven.settings.crypto.SettingsDecryptionResult; -import org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.util.IOUtil; -import org.codehaus.plexus.util.xml.Xpp3Dom; -import org.eclipse.aether.ConfigurationProperties; -import org.eclipse.aether.DefaultRepositorySystemSession; -import org.eclipse.aether.RepositorySystem; -import org.eclipse.aether.repository.LocalRepository; -import org.eclipse.aether.repository.NoLocalRepositoryManagerException; -import org.eclipse.aether.repository.RepositoryPolicy; -import org.eclipse.aether.repository.WorkspaceReader; -import org.eclipse.aether.resolution.ResolutionErrorPolicy; -import org.eclipse.aether.spi.localrepo.LocalRepositoryManagerFactory; -import org.eclipse.aether.util.repository.AuthenticationBuilder; -import org.eclipse.aether.util.repository.DefaultAuthenticationSelector; -import org.eclipse.aether.util.repository.DefaultMirrorSelector; -import org.eclipse.aether.util.repository.DefaultProxySelector; -import org.eclipse.aether.util.repository.SimpleResolutionErrorPolicy; -import org.eclipse.sisu.Nullable; - -/** - * @since 3.3.0 - */ -@Named -public class DefaultRepositorySystemSessionFactory -{ - @Inject - private Logger logger; - - @Inject - private ArtifactHandlerManager artifactHandlerManager; - - @Inject - private RepositorySystem repoSystem; - - @Inject - @Nullable - @Named( "simple" ) - private LocalRepositoryManagerFactory simpleLocalRepoMgrFactory; - - @Inject - @Nullable - @Named( "ide" ) - private WorkspaceReader workspaceRepository; - - @Inject - private SettingsDecrypter settingsDecrypter; - - @Inject - private EventSpyDispatcher eventSpyDispatcher; - - @Inject - MavenRepositorySystem mavenRepositorySystem; - - public DefaultRepositorySystemSession newRepositorySession( MavenExecutionRequest request ) - { - DefaultRepositorySystemSession session = MavenRepositorySystemUtils.newSession(); - - session.setCache( request.getRepositoryCache() ); - - Map configProps = new LinkedHashMap(); - configProps.put( ConfigurationProperties.USER_AGENT, getUserAgent() ); - configProps.put( ConfigurationProperties.INTERACTIVE, request.isInteractiveMode() ); - configProps.putAll( request.getSystemProperties() ); - configProps.putAll( request.getUserProperties() ); - - session.setOffline( request.isOffline() ); - session.setChecksumPolicy( request.getGlobalChecksumPolicy() ); - if ( request.isNoSnapshotUpdates() ) - { - session.setUpdatePolicy( RepositoryPolicy.UPDATE_POLICY_NEVER ); - } - else if ( request.isUpdateSnapshots() ) - { - session.setUpdatePolicy( RepositoryPolicy.UPDATE_POLICY_ALWAYS ); - } - else - { - session.setUpdatePolicy( null ); - } - - int errorPolicy = 0; - errorPolicy |= request.isCacheNotFound() ? ResolutionErrorPolicy.CACHE_NOT_FOUND : 0; - errorPolicy |= request.isCacheTransferError() ? ResolutionErrorPolicy.CACHE_TRANSFER_ERROR : 0; - session.setResolutionErrorPolicy( new SimpleResolutionErrorPolicy( errorPolicy, errorPolicy - | ResolutionErrorPolicy.CACHE_NOT_FOUND ) ); - - session.setArtifactTypeRegistry( RepositoryUtils.newArtifactTypeRegistry( artifactHandlerManager ) ); - - LocalRepository localRepo = new LocalRepository( request.getLocalRepository().getBasedir() ); - - if ( request.isUseLegacyLocalRepository() ) - { - logger.warn( "Disabling enhanced local repository: using legacy is strongly discouraged to ensure" - + " build reproducibility." ); - try - { - session.setLocalRepositoryManager( simpleLocalRepoMgrFactory.newInstance( session, localRepo ) ); - } - catch ( NoLocalRepositoryManagerException e ) - { - - logger.warn( "Failed to configure legacy local repository: back to default" ); - session.setLocalRepositoryManager( repoSystem.newLocalRepositoryManager( session, localRepo ) ); - } - } - else - { - session.setLocalRepositoryManager( repoSystem.newLocalRepositoryManager( session, localRepo ) ); - } - - if ( request.getWorkspaceReader() != null ) - { - session.setWorkspaceReader( request.getWorkspaceReader() ); - } - else - { - session.setWorkspaceReader( workspaceRepository ); - } - - DefaultSettingsDecryptionRequest decrypt = new DefaultSettingsDecryptionRequest(); - decrypt.setProxies( request.getProxies() ); - decrypt.setServers( request.getServers() ); - SettingsDecryptionResult decrypted = settingsDecrypter.decrypt( decrypt ); - - if ( logger.isDebugEnabled() ) - { - for ( SettingsProblem problem : decrypted.getProblems() ) - { - logger.debug( problem.getMessage(), problem.getException() ); - } - } - - DefaultMirrorSelector mirrorSelector = new DefaultMirrorSelector(); - for ( Mirror mirror : request.getMirrors() ) - { - mirrorSelector.add( mirror.getId(), mirror.getUrl(), mirror.getLayout(), false, mirror.getMirrorOf(), - mirror.getMirrorOfLayouts() ); - } - session.setMirrorSelector( mirrorSelector ); - - DefaultProxySelector proxySelector = new DefaultProxySelector(); - for ( Proxy proxy : decrypted.getProxies() ) - { - AuthenticationBuilder authBuilder = new AuthenticationBuilder(); - authBuilder.addUsername( proxy.getUsername() ).addPassword( proxy.getPassword() ); - proxySelector.add( new org.eclipse.aether.repository.Proxy( proxy.getProtocol(), proxy.getHost(), - proxy.getPort(), authBuilder.build() ), - proxy.getNonProxyHosts() ); - } - session.setProxySelector( proxySelector ); - - DefaultAuthenticationSelector authSelector = new DefaultAuthenticationSelector(); - for ( Server server : decrypted.getServers() ) - { - AuthenticationBuilder authBuilder = new AuthenticationBuilder(); - authBuilder.addUsername( server.getUsername() ).addPassword( server.getPassword() ); - authBuilder.addPrivateKey( server.getPrivateKey(), server.getPassphrase() ); - authSelector.add( server.getId(), authBuilder.build() ); - - if ( server.getConfiguration() != null ) - { - Xpp3Dom dom = (Xpp3Dom) server.getConfiguration(); - for ( int i = dom.getChildCount() - 1; i >= 0; i-- ) - { - Xpp3Dom child = dom.getChild( i ); - if ( "wagonProvider".equals( child.getName() ) ) - { - dom.removeChild( i ); - } - } - - XmlPlexusConfiguration config = new XmlPlexusConfiguration( dom ); - configProps.put( "aether.connector.wagon.config." + server.getId(), config ); - } - - configProps.put( "aether.connector.perms.fileMode." + server.getId(), server.getFilePermissions() ); - configProps.put( "aether.connector.perms.dirMode." + server.getId(), server.getDirectoryPermissions() ); - } - session.setAuthenticationSelector( authSelector ); - - session.setTransferListener( request.getTransferListener() ); - - session.setRepositoryListener( eventSpyDispatcher.chainListener( new LoggingRepositoryListener( logger ) ) ); - - session.setUserProperties( request.getUserProperties() ); - session.setSystemProperties( request.getSystemProperties() ); - session.setConfigProperties( configProps ); - - mavenRepositorySystem.injectMirror( request.getRemoteRepositories(), request.getMirrors() ); - mavenRepositorySystem.injectProxy( session, request.getRemoteRepositories() ); - mavenRepositorySystem.injectAuthentication( session, request.getRemoteRepositories() ); - - mavenRepositorySystem.injectMirror( request.getPluginArtifactRepositories(), request.getMirrors() ); - mavenRepositorySystem.injectProxy( session, request.getPluginArtifactRepositories() ); - mavenRepositorySystem.injectAuthentication( session, request.getPluginArtifactRepositories() ); - - return session; - } - - private String getUserAgent() - { - return "Apache-Maven/" + getMavenVersion() + " (Java " + System.getProperty( "java.version" ) + "; " - + System.getProperty( "os.name" ) + " " + System.getProperty( "os.version" ) + ")"; - } - - private String getMavenVersion() - { - Properties props = new Properties(); - - InputStream is = getClass().getResourceAsStream( "/META-INF/maven/org.apache.maven/maven-core/pom.properties" ); - if ( is != null ) - { - try - { - props.load( is ); - } - catch ( IOException e ) - { - logger.debug( "Failed to read Maven version", e ); - } - IOUtil.close( is ); - } - - return props.getProperty( "version", "unknown-version" ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/internal/aether/LoggingRepositoryListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/internal/aether/LoggingRepositoryListener.java deleted file mode 100644 index 7b67c3bd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/internal/aether/LoggingRepositoryListener.java +++ /dev/null @@ -1,141 +0,0 @@ -package org.apache.maven.internal.aether; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.FileNotFoundException; - -import org.codehaus.plexus.logging.Logger; -import org.eclipse.aether.AbstractRepositoryListener; -import org.eclipse.aether.RepositoryEvent; -import org.eclipse.aether.transfer.MetadataNotFoundException; - -/** - * @author Benjamin Bentmann - */ -class LoggingRepositoryListener - extends AbstractRepositoryListener -{ - - private final Logger logger; - - public LoggingRepositoryListener( Logger logger ) - { - this.logger = logger; - } - - @Override - public void artifactInstalling( RepositoryEvent event ) - { - logger.info( "Installing " + event.getArtifact().getFile() + " to " + event.getFile() ); - } - - @Override - public void metadataInstalling( RepositoryEvent event ) - { - logger.debug( "Installing " + event.getMetadata() + " to " + event.getFile() ); - } - - @Override - public void metadataResolved( RepositoryEvent event ) - { - Exception e = event.getException(); - if ( e != null ) - { - if ( e instanceof MetadataNotFoundException ) - { - logger.debug( e.getMessage() ); - } - else if ( logger.isDebugEnabled() ) - { - logger.warn( e.getMessage(), e ); - } - else - { - logger.warn( e.getMessage() ); - } - } - } - - @Override - public void metadataInvalid( RepositoryEvent event ) - { - Exception exception = event.getException(); - - StringBuilder buffer = new StringBuilder( 256 ); - buffer.append( "The metadata " ); - if ( event.getMetadata().getFile() != null ) - { - buffer.append( event.getMetadata().getFile() ); - } - else - { - buffer.append( event.getMetadata() ); - } - - if ( exception instanceof FileNotFoundException ) - { - buffer.append( " is inaccessible" ); - } - else - { - buffer.append( " is invalid" ); - } - - if ( exception != null ) - { - buffer.append( ": " ); - buffer.append( exception.getMessage() ); - } - - if ( logger.isDebugEnabled() ) - { - logger.warn( buffer.toString(), exception ); - } - else - { - logger.warn( buffer.toString() ); - } - } - - @Override - public void artifactDescriptorInvalid( RepositoryEvent event ) - { - StringBuilder buffer = new StringBuilder( 256 ); - buffer.append( "The POM for " ); - buffer.append( event.getArtifact() ); - buffer.append( " is invalid, transitive dependencies (if any) will not be available" ); - - if ( logger.isDebugEnabled() ) - { - logger.warn( buffer + ": " + event.getException().getMessage() ); - } - else - { - logger.warn( buffer + ", enable debug logging for more details" ); - } - } - - @Override - public void artifactDescriptorMissing( RepositoryEvent event ) - { - logger.warn( "The POM for " + event.getArtifact() + " is missing, no dependency information available" ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java deleted file mode 100644 index 6f994b3d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java +++ /dev/null @@ -1,177 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.internal.LifecycleExecutionPlanCalculator; -import org.apache.maven.lifecycle.internal.LifecycleStarter; -import org.apache.maven.lifecycle.internal.LifecycleTaskSegmentCalculator; -import org.apache.maven.lifecycle.internal.MojoDescriptorCreator; -import org.apache.maven.lifecycle.internal.MojoExecutor; -import org.apache.maven.lifecycle.internal.ProjectIndex; -import org.apache.maven.lifecycle.internal.TaskSegment; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.InvalidPluginDescriptorException; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.plugin.MojoNotFoundException; -import org.apache.maven.plugin.PluginDescriptorParsingException; -import org.apache.maven.plugin.PluginManagerException; -import org.apache.maven.plugin.PluginNotFoundException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException; -import org.apache.maven.plugin.version.PluginVersionResolutionException; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; - -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.Set; - -/** - * A facade that provides lifecycle services to components outside maven core. - * - * Note that this component is not normally used from within core itself. - * - * @author Jason van Zyl - * @author Benjamin Bentmann - * @author Kristian Rosenvold - */ -@Component( role = LifecycleExecutor.class ) -public class DefaultLifecycleExecutor - implements LifecycleExecutor -{ - - @Requirement - private LifeCyclePluginAnalyzer lifeCyclePluginAnalyzer; - - @Requirement - private DefaultLifecycles defaultLifeCycles; - - @Requirement - private LifecycleTaskSegmentCalculator lifecycleTaskSegmentCalculator; - - @Requirement - private LifecycleExecutionPlanCalculator lifecycleExecutionPlanCalculator; - - @Requirement - private MojoExecutor mojoExecutor; - - @Requirement - private LifecycleStarter lifecycleStarter; - - - public void execute( MavenSession session ) - { - lifecycleStarter.execute( session ); - } - - @Requirement - private MojoDescriptorCreator mojoDescriptorCreator; - - // These methods deal with construction intact Plugin object that look like they come from a standard - // block in a Maven POM. We have to do some wiggling to pull the sources of information - // together and this really shows the problem of constructing a sensible default configuration but - // it's all encapsulated here so it appears normalized to the POM builder. - - // We are going to take the project packaging and find all plugin in the default lifecycle and create - // fully populated Plugin objects, including executions with goals and default configuration taken - // from the plugin.xml inside a plugin. - // - // TODO: This whole method could probably removed by injecting lifeCyclePluginAnalyzer straight into client site. - // TODO: But for some reason the whole plexus appcontext refuses to start when I try this. - - public Set getPluginsBoundByDefaultToAllLifecycles( String packaging ) - { - return lifeCyclePluginAnalyzer.getPluginsBoundByDefaultToAllLifecycles( packaging ); - } - - // USED BY MAVEN HELP PLUGIN - - @Deprecated - public Map getPhaseToLifecycleMap() - { - return defaultLifeCycles.getPhaseToLifecycleMap(); - } - - // NOTE: Backward-compat with maven-help-plugin:2.1 - - @SuppressWarnings( { "UnusedDeclaration" } ) - MojoDescriptor getMojoDescriptor( String task, MavenSession session, MavenProject project, String invokedVia, - boolean canUsePrefix, boolean isOptionalMojo ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - PluginVersionResolutionException - { - return mojoDescriptorCreator.getMojoDescriptor( task, session, project ); - } - - // Used by m2eclipse - - @SuppressWarnings( { "UnusedDeclaration" } ) - public MavenExecutionPlan calculateExecutionPlan( MavenSession session, boolean setup, String... tasks ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, - PluginVersionResolutionException - { - List taskSegments = - lifecycleTaskSegmentCalculator.calculateTaskSegments( session, Arrays.asList( tasks ) ); - - TaskSegment mergedSegment = new TaskSegment( false ); - - for ( TaskSegment taskSegment : taskSegments ) - { - mergedSegment.getTasks().addAll( taskSegment.getTasks() ); - } - - return lifecycleExecutionPlanCalculator.calculateExecutionPlan( session, session.getCurrentProject(), - mergedSegment.getTasks(), setup ); - } - - public MavenExecutionPlan calculateExecutionPlan( MavenSession session, String... tasks ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, - PluginVersionResolutionException - { - return calculateExecutionPlan( session, true, tasks ); - } - - // Site 3.x - public void calculateForkedExecutions( MojoExecution mojoExecution, MavenSession session ) - throws MojoNotFoundException, PluginNotFoundException, PluginResolutionException, - PluginDescriptorParsingException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException - { - lifecycleExecutionPlanCalculator.calculateForkedExecutions( mojoExecution, session ); - } - - // Site 3.x - public List executeForkedExecutions( MojoExecution mojoExecution, MavenSession session ) - throws LifecycleExecutionException - { - return mojoExecutor.executeForkedExecutions( mojoExecution, session, - new ProjectIndex( session.getProjects() ) ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java deleted file mode 100644 index 64c9a7f9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java +++ /dev/null @@ -1,144 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.util.StringUtils; - -import com.google.common.base.Preconditions; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; - -/** - * @since 3.0 - * @author Jason van Zyl - * @author Kristian Rosenvold - */ -// TODO: The configuration for the lifecycle needs to be externalized so that I can use the annotations properly for the -// wiring and reference and external source for the lifecycle configuration. -@Component( role = DefaultLifecycles.class ) -public class DefaultLifecycles -{ - public static final String[] STANDARD_LIFECYCLES = { "default", "clean", "site" }; - - // @Configuration(source="org/apache/maven/lifecycle/lifecycles.xml") - - @Requirement( role = Lifecycle.class ) - private Map lifecycles; - - @Requirement - private Logger logger; - - public DefaultLifecycles() - { - } - - public DefaultLifecycles( Map lifecycles, Logger logger ) - { - this.lifecycles = new LinkedHashMap(); - this.logger = logger; - this.lifecycles = lifecycles; - } - - public Lifecycle get( String key ) - { - return getPhaseToLifecycleMap().get( key ); - } - - /** - * We use this to map all phases to the lifecycle that contains it. This is used so that a user can specify the - * phase they want to execute and we can easily determine what lifecycle we need to run. - * - * @return A map of lifecycles, indexed on id - */ - public Map getPhaseToLifecycleMap() - { - // If people are going to make their own lifecycles then we need to tell people how to namespace them correctly - // so that they don't interfere with internally defined lifecycles. - - HashMap phaseToLifecycleMap = new HashMap(); - - for ( Lifecycle lifecycle : getLifeCycles() ) - { - if ( logger.isDebugEnabled() ) - { - logger.debug( "Lifecycle " + lifecycle ); - } - - for ( String phase : lifecycle.getPhases() ) - { - // The first definition wins. - if ( !phaseToLifecycleMap.containsKey( phase ) ) - { - phaseToLifecycleMap.put( phase, lifecycle ); - } - else - { - Lifecycle original = phaseToLifecycleMap.get( phase ); - logger.warn( "Duplicated lifecycle phase " + phase + ". Defined in " + original.getId() - + " but also in " + lifecycle.getId() ); - } - } - } - - return phaseToLifecycleMap; - } - - public List getLifeCycles() - { - // ensure canonical order of standard lifecycles - Map lifecycles = new LinkedHashMap( this.lifecycles ); - - LinkedHashSet lifecycleNames = new LinkedHashSet( Arrays.asList( STANDARD_LIFECYCLES ) ); - lifecycleNames.addAll( lifecycles.keySet() ); - - ArrayList result = new ArrayList(); - for ( String name : lifecycleNames ) - { - Lifecycle lifecycle = lifecycles.get( name ); - Preconditions.checkNotNull( "A lifecycle must have an id.", lifecycle.getId() ); - result.add( lifecycle ); - } - - return result; - } - - public String getLifecyclePhaseList() - { - Set phases = new LinkedHashSet(); - - for ( Lifecycle lifecycle : getLifeCycles() ) - { - phases.addAll( lifecycle.getPhases() ); - } - - return StringUtils.join( phases.iterator(), ", " ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifeCyclePluginAnalyzer.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifeCyclePluginAnalyzer.java deleted file mode 100644 index ed07c1d5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifeCyclePluginAnalyzer.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Set; -import org.apache.maven.model.Plugin; - -/** - * @since 3.0 - * @author Kristian Rosenvold - */ -public interface LifeCyclePluginAnalyzer -{ - Set getPluginsBoundByDefaultToAllLifecycles( String packaging ); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/Lifecycle.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/Lifecycle.java deleted file mode 100644 index fcfde951..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/Lifecycle.java +++ /dev/null @@ -1,80 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; -import java.util.Map; - -/** - * Class Lifecycle. - */ -public class Lifecycle -{ - public Lifecycle() - { - } - - public Lifecycle( String id, List phases, Map defaultPhases ) - { - this.id = id; - this.phases = phases; - this.defaultPhases = defaultPhases; - } - - // - // clean - // - // pre-clean - // clean - // post-clean - // - // - // org.apache.maven.plugins:maven-clean-plugin:clean - // - // - - private String id; - - private List phases; - - private Map defaultPhases; - - public String getId() - { - return this.id; - } - - public List getPhases() - { - return this.phases; - } - - public Map getDefaultPhases() - { - return defaultPhases; - } - - @Override - public String toString() - { - return id + " -> " + phases; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutionException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutionException.java deleted file mode 100644 index 349576cd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutionException.java +++ /dev/null @@ -1,111 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.project.MavenProject; - -/** - * @author Jason van Zyl - */ -public class LifecycleExecutionException - extends Exception -{ - private MavenProject project; - - public LifecycleExecutionException( String message ) - { - super( message ); - } - - public LifecycleExecutionException( Throwable cause ) - { - super( cause ); - } - - public LifecycleExecutionException( String message, Throwable cause ) - { - super( message, cause ); - } - - public LifecycleExecutionException( String message, MavenProject project ) - { - super( message ); - this.project = project; - } - - public LifecycleExecutionException( String message, MojoExecution execution, MavenProject project ) - { - super( message ); - this.project = project; - } - - public LifecycleExecutionException( String message, MojoExecution execution, MavenProject project, Throwable cause ) - { - super( message, cause ); - this.project = project; - } - - public LifecycleExecutionException( MojoExecution execution, MavenProject project, Throwable cause ) - { - this( createMessage( execution, project, cause ), execution, project, cause ); - } - - public MavenProject getProject() - { - return project; - } - - private static String createMessage( MojoExecution execution, MavenProject project, Throwable cause ) - { - StringBuilder buffer = new StringBuilder( 256 ); - - buffer.append( "Failed to execute goal" ); - - if ( execution != null ) - { - buffer.append( ' ' ); - buffer.append( execution.getGroupId() ); - buffer.append( ':' ); - buffer.append( execution.getArtifactId() ); - buffer.append( ':' ); - buffer.append( execution.getVersion() ); - buffer.append( ':' ); - buffer.append( execution.getGoal() ); - buffer.append( " (" ); - buffer.append( execution.getExecutionId() ); - buffer.append( ")" ); - } - - if ( project != null ) - { - buffer.append( " on project " ); - buffer.append( project.getArtifactId() ); - } - - if ( cause != null ) - { - buffer.append( ": " ).append( cause.getMessage() ); - } - - return buffer.toString(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutor.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutor.java deleted file mode 100644 index 04c602cf..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutor.java +++ /dev/null @@ -1,89 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.InvalidPluginDescriptorException; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.plugin.MojoNotFoundException; -import org.apache.maven.plugin.PluginDescriptorParsingException; -import org.apache.maven.plugin.PluginManagerException; -import org.apache.maven.plugin.PluginNotFoundException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException; -import org.apache.maven.plugin.version.PluginVersionResolutionException; -import org.apache.maven.project.MavenProject; - -import java.util.List; -import java.util.Set; - -/** - * A facade that provides lifecycle services to components outside Maven core. - * - * @author Jason van Zyl - */ -public interface LifecycleExecutor -{ - - // USED BY MAVEN HELP PLUGIN - @Deprecated - String ROLE = LifecycleExecutor.class.getName(); - - // For a given project packaging find all the plugins that are bound to any registered - // lifecycles. The project builder needs to now what default plugin information needs to be - // merged into POM being built. Once the POM builder has this plugin information, versions can be assigned - // by the POM builder because they will have to be defined in plugin management. Once this is setComplete then it - // can be passed back so that the default configuration information can be populated. - // - // We need to know the specific version so that we can lookup the right version of the plugin descriptor - // which tells us what the default configuration is. - // - - /** - * @return The plugins bound to the lifecycles of the specified packaging or {@code null} if the packaging is - * unknown. - */ - Set getPluginsBoundByDefaultToAllLifecycles( String packaging ); - - MavenExecutionPlan calculateExecutionPlan( MavenSession session, String... tasks ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, - PluginVersionResolutionException; - - MavenExecutionPlan calculateExecutionPlan( MavenSession session, boolean setup, String... tasks ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, - PluginVersionResolutionException; - - void execute( MavenSession session ); - - // used by the site plugin 3.x - void calculateForkedExecutions( MojoExecution mojoExecution, MavenSession session ) - throws MojoNotFoundException, PluginNotFoundException, PluginResolutionException, - PluginDescriptorParsingException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException; - - // used by the site plugin 3.x - List executeForkedExecutions( MojoExecution mojoExecution, MavenSession session ) - throws LifecycleExecutionException; -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleMappingDelegate.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleMappingDelegate.java deleted file mode 100644 index f0701987..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleMappingDelegate.java +++ /dev/null @@ -1,52 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; -import java.util.Map; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.plugin.InvalidPluginDescriptorException; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.plugin.MojoNotFoundException; -import org.apache.maven.plugin.PluginDescriptorParsingException; -import org.apache.maven.plugin.PluginNotFoundException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.project.MavenProject; - -/** - * Lifecycle mapping delegate component interface. Calculates project build execution plan given {@link Lifecycle} and - * lifecycle phase. Standard lifecycles use plugin execution {@code } or mojo default lifecycle phase to - * calculate the execution plan, but custom lifecycles can use alternative mapping strategies. - *

- * Implementations of this interface must be annotated with either {@code @Named("lifecycle-id")} or equivalent plexus - * {@code @Component} annotations. - * - * @since 3.2.0 - * @see org.apache.maven.lifecycle.internal.DefaultLifecycleMappingDelegate - * @author ifedorenko - */ -public interface LifecycleMappingDelegate -{ - Map> calculateLifecycleMappings( MavenSession session, MavenProject project, - Lifecycle lifecycle, String lifecyclePhase ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, InvalidPluginDescriptorException; -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleNotFoundException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleNotFoundException.java deleted file mode 100644 index e9ff0c20..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleNotFoundException.java +++ /dev/null @@ -1,54 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Signals a failure to locate a lifecycle. - * - * @author Benjamin Bentmann - */ -public class LifecycleNotFoundException - extends Exception -{ - - private final String lifecycleId; - - /** - * Creates a new exception to indicate that the specified lifecycle is unknown. - * - * @param lifecycleId The identifier of the lifecycle that could not be located, may be {@code null}. - */ - public LifecycleNotFoundException( String lifecycleId ) - { - super( "Unknown lifecycle " + lifecycleId ); - this.lifecycleId = ( lifecycleId != null ) ? lifecycleId : ""; - } - - /** - * Gets the identifier of the lifecycle that was not found. - * - * @return The identifier of the lifecycle that was not found, never {@code null}. - */ - public String getLifecycleId() - { - return lifecycleId; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecyclePhaseNotFoundException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecyclePhaseNotFoundException.java deleted file mode 100644 index fab1d2f2..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/LifecyclePhaseNotFoundException.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Signals a failure to locate the lifecycle for some phase. - * - * @author Benjamin Bentmann - */ -public class LifecyclePhaseNotFoundException - extends Exception -{ - - private final String lifecyclePhase; - - /** - * Creates a new exception to indicate that the specified lifecycle phase is not defined by any known lifecycle. - * - * @param message The detail message, may be {@code null}. - * @param lifecyclePhase The name of the lifecycle phase that could not be located, may be {@code null}. - */ - public LifecyclePhaseNotFoundException( String message, String lifecyclePhase ) - { - super( message ); - this.lifecyclePhase = ( lifecyclePhase != null ) ? lifecyclePhase : ""; - } - - /** - * Gets the lifecycle phase that was not found. - * - * @return The lifecycle phase that was not found, never {@code null}. - */ - public String getLifecyclePhase() - { - return lifecyclePhase; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/MavenExecutionPlan.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/MavenExecutionPlan.java deleted file mode 100644 index 7767ea25..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/MavenExecutionPlan.java +++ /dev/null @@ -1,202 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import org.apache.maven.lifecycle.internal.ExecutionPlanItem; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.plugin.descriptor.MojoDescriptor; - -//TODO: lifecycles being executed -//TODO: what runs in each phase -//TODO: plugins that need downloading -//TODO: project dependencies that need downloading -//TODO: unfortunately the plugins need to be downloaded in order to get the plugin.xml file. need to externalize this -// from the plugin archive. -//TODO: this will be the class that people get in IDEs to modify - -public class MavenExecutionPlan - implements Iterable -{ - - /* - At the moment, this class is totally immutable, and this is in line with thoughts about the - pre-calculated execution plan that stays the same during the execution. - - If deciding to add mutable state to this class, it should be at least considered to - separate this into a separate mutable structure. - - */ - - private final List planItem; - - private final Map lastMojoExecutionForAllPhases; - - final List phasesInExecutionPlan; - - public MavenExecutionPlan( List planItem, DefaultLifecycles defaultLifecycles ) - { - this.planItem = planItem; - - lastMojoExecutionForAllPhases = new LinkedHashMap(); - - LinkedHashSet totalPhaseSet = new LinkedHashSet(); - if ( defaultLifecycles != null ) - { - for ( String phase : getDistinctPhasesInOrderOfExecutionPlanAppearance( planItem ) ) - { - final Lifecycle lifecycle = defaultLifecycles.get( phase ); - if ( lifecycle != null ) - { - totalPhaseSet.addAll( lifecycle.getPhases() ); - } - } - } - this.phasesInExecutionPlan = new ArrayList( totalPhaseSet ); - - Map lastInExistingPhases = new HashMap(); - for ( ExecutionPlanItem executionPlanItem : getExecutionPlanItems() ) - { - lastInExistingPhases.put( executionPlanItem.getLifecyclePhase(), executionPlanItem ); - } - - ExecutionPlanItem lastSeenExecutionPlanItem = null; - - for ( String phase : totalPhaseSet ) - { - ExecutionPlanItem forThisPhase = lastInExistingPhases.get( phase ); - if ( forThisPhase != null ) - { - lastSeenExecutionPlanItem = forThisPhase; - } - - lastMojoExecutionForAllPhases.put( phase, lastSeenExecutionPlanItem ); - } - } - - public Iterator iterator() - { - return getExecutionPlanItems().iterator(); - } - - /** - * Returns the last ExecutionPlanItem in the supplied phase. If no items are in the specified phase, - * the closest executionPlanItem from an earlier phase item will be returned. - * - * @param requestedPhase the requested phase - * The execution plan item - * @return The ExecutionPlanItem or null if none can be found - */ - public ExecutionPlanItem findLastInPhase( String requestedPhase ) - { - return lastMojoExecutionForAllPhases.get( requestedPhase ); - } - - private List getExecutionPlanItems() - { - return planItem; - } - - private static Iterable getDistinctPhasesInOrderOfExecutionPlanAppearance( - List planItems ) - { - LinkedHashSet result = new LinkedHashSet(); - for ( ExecutionPlanItem executionPlanItem : planItems ) - { - final String phase = executionPlanItem.getLifecyclePhase(); - if ( !result.contains( phase ) ) - { - result.add( phase ); - } - } - return result; - } - - public List getMojoExecutions() - { - List result = new ArrayList(); - for ( ExecutionPlanItem executionPlanItem : planItem ) - { - result.add( executionPlanItem.getMojoExecution() ); - } - return result; - } - - /** - * Get set of plugins having a goal/mojo used but not marked @threadSafe - * - * @return the set of plugins (without info on which goal is concerned) - */ - public Set getNonThreadSafePlugins() - { - Set plugins = new HashSet(); - for ( ExecutionPlanItem executionPlanItem : planItem ) - { - final MojoExecution mojoExecution = executionPlanItem.getMojoExecution(); - if ( !mojoExecution.getMojoDescriptor().isThreadSafe() ) - { - plugins.add( mojoExecution.getPlugin() ); - } - } - return plugins; - } - - /** - * Get set of mojos used but not marked @threadSafe - * - * @return the set of mojo descriptors - */ - public Set getNonThreadSafeMojos() - { - Set mojos = new HashSet(); - for ( ExecutionPlanItem executionPlanItem : planItem ) - { - final MojoExecution mojoExecution = executionPlanItem.getMojoExecution(); - if ( !mojoExecution.getMojoDescriptor().isThreadSafe() ) - { - mojos.add( mojoExecution.getMojoDescriptor() ); - } - } - return mojos; - } - - // Used by m2e but will be removed, really. - @Deprecated - public List getExecutions() - { - return getMojoExecutions(); - } - - public int size() - { - return planItem.size(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/MissingProjectException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/MissingProjectException.java deleted file mode 100644 index 571e1d2b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/MissingProjectException.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Signals a failure to execute a lifecycle phase or mojo because a project is required but not present. - * - * @author Benjamin Bentmann - */ -public class MissingProjectException - extends Exception -{ - - /** - * Creates a new exception. - * - * @param message The detail message, may be {@code null}. - */ - public MissingProjectException( String message ) - { - super( message ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/MojoExecutionConfigurator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/MojoExecutionConfigurator.java deleted file mode 100644 index b85bac77..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/MojoExecutionConfigurator.java +++ /dev/null @@ -1,44 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.project.MavenProject; - -/** - * A MojoExecutionConfigurator is responsible for creating the configuration for Mojo based on configuration for a Mojo - * in the MavenProject and the default configuration for the Mojo from the containing plugin's plugin.xml descriptor. - * - * @provisional - * @author Jason van Zyl - * @since 3.3.1, MNG-5753 - */ -public interface MojoExecutionConfigurator -{ - /** - * Create the MojoExecution configuration based on configuration for a Mojo in the MavenProject and the - * default configuration for the Mojo from the containing plugin's plugin.xml descriptor. - * - * @param project - * @param mojoExecution - * @param allowPluginLevelConfig - */ - void configure( MavenProject project, MojoExecution mojoExecution, boolean allowPluginLevelConfig ); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/NoGoalSpecifiedException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/NoGoalSpecifiedException.java deleted file mode 100644 index 2ac9638a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/NoGoalSpecifiedException.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Signals a failure to build because no goal was specified. - * - * @author Benjamin Bentmann - */ -public class NoGoalSpecifiedException - extends Exception -{ - - /** - * Creates a new exception. - * - * @param message The detail message, may be {@code null}. - */ - public NoGoalSpecifiedException( String message ) - { - super( message ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildListCalculator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildListCalculator.java deleted file mode 100644 index 771385cc..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildListCalculator.java +++ /dev/null @@ -1,67 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.internal.builder.BuilderCommon; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.component.annotations.Component; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - -/** - * @since 3.0 - * @author Kristian Rosenvold - * This class is not part of any public api and can be changed or deleted without prior notice. - */ -@Component( role = BuildListCalculator.class ) -public class BuildListCalculator -{ - public ProjectBuildList calculateProjectBuilds( MavenSession session, List taskSegments ) - { - List projectBuilds = new ArrayList(); - - MavenProject rootProject = session.getTopLevelProject(); - - for ( TaskSegment taskSegment : taskSegments ) - { - List projects; - - if ( taskSegment.isAggregating() ) - { - projects = Collections.singletonList( rootProject ); - } - else - { - projects = session.getProjects(); - } - for ( MavenProject project : projects ) - { - BuilderCommon.attachToThread( project ); // Not totally sure if this is needed for anything - MavenSession copiedSession = session.clone(); - copiedSession.setCurrentProject( project ); - projectBuilds.add( new ProjectSegment( project, taskSegment, copiedSession ) ); - } - } - return new ProjectBuildList( projectBuilds ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildThreadFactory.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildThreadFactory.java deleted file mode 100644 index 01545078..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildThreadFactory.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.concurrent.ThreadFactory; -import java.util.concurrent.atomic.AtomicInteger; - -/** - * Simple {@link ThreadFactory} implementation that ensures the corresponding threads have a meaningful name. - */ -public class BuildThreadFactory - implements ThreadFactory -{ - private final AtomicInteger id = new AtomicInteger(); - - private static final String PREFIX = "BuilderThread"; - - public Thread newThread( Runnable r ) - { - return new Thread( r, String.format( "%s %d", PREFIX, id.getAndIncrement() ) ); - } -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/CompoundProjectExecutionListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/CompoundProjectExecutionListener.java deleted file mode 100644 index f2a8291a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/CompoundProjectExecutionListener.java +++ /dev/null @@ -1,72 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collection; - -import org.apache.maven.execution.ProjectExecutionEvent; -import org.apache.maven.execution.ProjectExecutionListener; -import org.apache.maven.lifecycle.LifecycleExecutionException; - -class CompoundProjectExecutionListener - implements ProjectExecutionListener -{ - private final Collection listeners; - - public CompoundProjectExecutionListener( Collection listeners ) - { - this.listeners = listeners; // NB this is live injected collection - } - - public void beforeProjectExecution( ProjectExecutionEvent event ) - throws LifecycleExecutionException - { - for ( ProjectExecutionListener listener : listeners ) - { - listener.beforeProjectExecution( event ); - } - } - - public void beforeProjectLifecycleExecution( ProjectExecutionEvent event ) - throws LifecycleExecutionException - { - for ( ProjectExecutionListener listener : listeners ) - { - listener.beforeProjectLifecycleExecution( event ); - } - } - - public void afterProjectExecutionSuccess( ProjectExecutionEvent event ) - throws LifecycleExecutionException - { - for ( ProjectExecutionListener listener : listeners ) - { - listener.afterProjectExecutionSuccess( event ); - } - } - - public void afterProjectExecutionFailure( ProjectExecutionEvent event ) - { - for ( ProjectExecutionListener listener : listeners ) - { - listener.afterProjectExecutionFailure( event ); - } - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultExecutionEvent.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultExecutionEvent.java deleted file mode 100644 index 9434a659..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultExecutionEvent.java +++ /dev/null @@ -1,77 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.ExecutionEvent; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.project.MavenProject; - -/** - * Holds data relevant for an execution event. - * - * @author Benjamin Bentmann - */ -class DefaultExecutionEvent - implements ExecutionEvent -{ - - private final Type type; - - private final MavenSession session; - - private final MojoExecution mojoExecution; - - private final Exception exception; - - public DefaultExecutionEvent( Type type, MavenSession session, MojoExecution mojoExecution, Exception exception ) - { - this.type = type; - this.session = session; - this.mojoExecution = mojoExecution; - this.exception = exception; - } - - public Type getType() - { - return type; - } - - public MavenSession getSession() - { - return session; - } - - public MavenProject getProject() - { - return session.getCurrentProject(); - } - - public MojoExecution getMojoExecution() - { - return mojoExecution; - } - - public Exception getException() - { - return exception; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultExecutionEventCatapult.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultExecutionEventCatapult.java deleted file mode 100644 index bfb98d43..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultExecutionEventCatapult.java +++ /dev/null @@ -1,119 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.ExecutionEvent; -import org.apache.maven.execution.ExecutionListener; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.plugin.MojoExecution; -import org.codehaus.plexus.component.annotations.Component; - -/** - * Assists in firing execution events. Warning: This is an internal utility class that is only public - * for technical reasons, it is not part of the public API. In particular, this class can be changed or deleted without - * prior notice. - * - * @author Benjamin Bentmann - */ -@Component( role = ExecutionEventCatapult.class ) -public class DefaultExecutionEventCatapult - implements ExecutionEventCatapult -{ - - public void fire( ExecutionEvent.Type eventType, MavenSession session, MojoExecution mojoExecution ) - { - fire( eventType, session, mojoExecution, null ); - } - - public void fire( ExecutionEvent.Type eventType, MavenSession session, MojoExecution mojoExecution, - Exception exception ) - { - ExecutionListener listener = session.getRequest().getExecutionListener(); - - if ( listener != null ) - { - ExecutionEvent event = new DefaultExecutionEvent( eventType, session, mojoExecution, exception ); - - switch ( eventType ) - { - case ProjectDiscoveryStarted: - listener.projectDiscoveryStarted( event ); - break; - - case SessionStarted: - listener.sessionStarted( event ); - break; - case SessionEnded: - listener.sessionEnded( event ); - break; - - case ProjectSkipped: - listener.projectSkipped( event ); - break; - case ProjectStarted: - listener.projectStarted( event ); - break; - case ProjectSucceeded: - listener.projectSucceeded( event ); - break; - case ProjectFailed: - listener.projectFailed( event ); - break; - - case MojoSkipped: - listener.mojoSkipped( event ); - break; - case MojoStarted: - listener.mojoStarted( event ); - break; - case MojoSucceeded: - listener.mojoSucceeded( event ); - break; - case MojoFailed: - listener.mojoFailed( event ); - break; - - case ForkStarted: - listener.forkStarted( event ); - break; - case ForkSucceeded: - listener.forkSucceeded( event ); - break; - case ForkFailed: - listener.forkFailed( event ); - break; - - case ForkedProjectStarted: - listener.forkedProjectStarted( event ); - break; - case ForkedProjectSucceeded: - listener.forkedProjectSucceeded( event ); - break; - case ForkedProjectFailed: - listener.forkedProjectFailed( event ); - break; - - default: - throw new IllegalStateException( "Unknown execution event type " + eventType ); - } - } - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java deleted file mode 100644 index 8cc47cc5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java +++ /dev/null @@ -1,591 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.HashSet; -import java.util.List; -import java.util.Map; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.DefaultLifecycles; -import org.apache.maven.lifecycle.Lifecycle; -import org.apache.maven.lifecycle.LifecycleMappingDelegate; -import org.apache.maven.lifecycle.LifecycleNotFoundException; -import org.apache.maven.lifecycle.LifecyclePhaseNotFoundException; -import org.apache.maven.lifecycle.MavenExecutionPlan; -import org.apache.maven.lifecycle.MojoExecutionConfigurator; -import org.apache.maven.lifecycle.internal.builder.BuilderCommon; -import org.apache.maven.plugin.BuildPluginManager; -import org.apache.maven.plugin.InvalidPluginDescriptorException; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.plugin.MojoNotFoundException; -import org.apache.maven.plugin.PluginDescriptorParsingException; -import org.apache.maven.plugin.PluginNotFoundException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.descriptor.Parameter; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.apache.maven.plugin.lifecycle.Execution; -import org.apache.maven.plugin.lifecycle.Phase; -import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException; -import org.apache.maven.plugin.version.PluginVersionResolutionException; -import org.apache.maven.plugin.version.PluginVersionResolver; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.util.StringUtils; -import org.codehaus.plexus.util.xml.Xpp3Dom; -import org.codehaus.plexus.util.xml.pull.XmlPullParserException; - -import com.google.common.collect.ImmutableMap; - -/** - * @since 3.0 - * @author Benjamin Bentmann - * @author Kristian Rosenvold (Extract class) - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -@Component( role = LifecycleExecutionPlanCalculator.class ) -public class DefaultLifecycleExecutionPlanCalculator - implements LifecycleExecutionPlanCalculator -{ - @Requirement - private PluginVersionResolver pluginVersionResolver; - - @Requirement - private BuildPluginManager pluginManager; - - @Requirement - private DefaultLifecycles defaultLifeCycles; - - @Requirement - private MojoDescriptorCreator mojoDescriptorCreator; - - @Requirement - private LifecyclePluginResolver lifecyclePluginResolver; - - @Requirement( hint = DefaultLifecycleMappingDelegate.HINT ) - private LifecycleMappingDelegate standardDelegate; - - @Requirement - private Map delegates; - - @Requirement - private Map mojoExecutionConfigurators; - - @SuppressWarnings( { "UnusedDeclaration" } ) - public DefaultLifecycleExecutionPlanCalculator() - { - } - - // Only used for testing - public DefaultLifecycleExecutionPlanCalculator( BuildPluginManager pluginManager, - DefaultLifecycles defaultLifeCycles, - MojoDescriptorCreator mojoDescriptorCreator, - LifecyclePluginResolver lifecyclePluginResolver ) - { - this.pluginManager = pluginManager; - this.defaultLifeCycles = defaultLifeCycles; - this.mojoDescriptorCreator = mojoDescriptorCreator; - this.lifecyclePluginResolver = lifecyclePluginResolver; - this.mojoExecutionConfigurators = - ImmutableMap.of( "default", (MojoExecutionConfigurator) new DefaultMojoExecutionConfigurator() ); - } - - @Override - public MavenExecutionPlan calculateExecutionPlan( MavenSession session, MavenProject project, List tasks, - boolean setup ) - throws PluginNotFoundException, PluginResolutionException, LifecyclePhaseNotFoundException, - PluginDescriptorParsingException, MojoNotFoundException, InvalidPluginDescriptorException, - NoPluginFoundForPrefixException, LifecycleNotFoundException, PluginVersionResolutionException - { - lifecyclePluginResolver.resolveMissingPluginVersions( project, session ); - - final List executions = calculateMojoExecutions( session, project, tasks ); - - if ( setup ) - { - setupMojoExecutions( session, project, executions ); - } - - final List planItem = ExecutionPlanItem.createExecutionPlanItems( project, executions ); - - return new MavenExecutionPlan( planItem, defaultLifeCycles ); - } - - @Override - public MavenExecutionPlan calculateExecutionPlan( MavenSession session, MavenProject project, List tasks ) - throws PluginNotFoundException, PluginResolutionException, LifecyclePhaseNotFoundException, - PluginDescriptorParsingException, MojoNotFoundException, InvalidPluginDescriptorException, - NoPluginFoundForPrefixException, LifecycleNotFoundException, PluginVersionResolutionException - { - return calculateExecutionPlan( session, project, tasks, true ); - } - - private void setupMojoExecutions( MavenSession session, MavenProject project, List mojoExecutions ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, InvalidPluginDescriptorException, NoPluginFoundForPrefixException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException - { - for ( MojoExecution mojoExecution : mojoExecutions ) - { - setupMojoExecution( session, project, mojoExecution ); - } - } - - @Override - public void setupMojoExecution( MavenSession session, MavenProject project, MojoExecution mojoExecution ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, InvalidPluginDescriptorException, NoPluginFoundForPrefixException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException - { - MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor(); - - if ( mojoDescriptor == null ) - { - mojoDescriptor = - pluginManager.getMojoDescriptor( mojoExecution.getPlugin(), mojoExecution.getGoal(), - project.getRemotePluginRepositories(), - session.getRepositorySession() ); - - mojoExecution.setMojoDescriptor( mojoDescriptor ); - } - - mojoExecutionConfigurator( mojoExecution ).configure( project, - mojoExecution, - MojoExecution.Source.CLI.equals( mojoExecution.getSource() ) ); - - finalizeMojoConfiguration( mojoExecution ); - - calculateForkedExecutions( mojoExecution, session, project, new HashSet() ); - } - - public List calculateMojoExecutions( MavenSession session, MavenProject project, List tasks ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - PluginVersionResolutionException, LifecyclePhaseNotFoundException - { - final List mojoExecutions = new ArrayList(); - - for ( Object task : tasks ) - { - if ( task instanceof GoalTask ) - { - String pluginGoal = ( (GoalTask) task ).pluginGoal; - - String executionId = "default-cli"; - int executionIdx = pluginGoal.indexOf( '@' ); - if ( executionIdx > 0 ) - { - executionId = pluginGoal.substring( executionIdx + 1 ); - } - - MojoDescriptor mojoDescriptor = mojoDescriptorCreator.getMojoDescriptor( pluginGoal, session, project ); - - MojoExecution mojoExecution = new MojoExecution( mojoDescriptor, executionId, - MojoExecution.Source.CLI ); - - mojoExecutions.add( mojoExecution ); - } - else if ( task instanceof LifecycleTask ) - { - String lifecyclePhase = ( (LifecycleTask) task ).getLifecyclePhase(); - - Map> phaseToMojoMapping = - calculateLifecycleMappings( session, project, lifecyclePhase ); - - for ( List mojoExecutionsFromLifecycle : phaseToMojoMapping.values() ) - { - mojoExecutions.addAll( mojoExecutionsFromLifecycle ); - } - } - else - { - throw new IllegalStateException( "unexpected task " + task ); - } - } - return mojoExecutions; - } - - private Map> calculateLifecycleMappings( MavenSession session, MavenProject project, - String lifecyclePhase ) - throws LifecyclePhaseNotFoundException, PluginNotFoundException, PluginResolutionException, - PluginDescriptorParsingException, MojoNotFoundException, InvalidPluginDescriptorException - { - /* - * Determine the lifecycle that corresponds to the given phase. - */ - - Lifecycle lifecycle = defaultLifeCycles.get( lifecyclePhase ); - - if ( lifecycle == null ) - { - throw new LifecyclePhaseNotFoundException( "Unknown lifecycle phase \"" + lifecyclePhase - + "\". You must specify a valid lifecycle phase" + " or a goal in the format : or" - + " :[:]:. Available lifecycle phases are: " - + defaultLifeCycles.getLifecyclePhaseList() + ".", lifecyclePhase ); - } - - LifecycleMappingDelegate delegate; - if ( Arrays.binarySearch( DefaultLifecycles.STANDARD_LIFECYCLES, lifecycle.getId() ) >= 0 ) - { - delegate = standardDelegate; - } - else - { - delegate = delegates.get( lifecycle.getId() ); - if ( delegate == null ) - { - delegate = standardDelegate; - } - } - - return delegate.calculateLifecycleMappings( session, project, lifecycle, lifecyclePhase ); - } - - /** - * Post-processes the effective configuration for the specified mojo execution. This step discards all parameters - * from the configuration that are not applicable to the mojo and injects the default values for any missing - * parameters. - * - * @param mojoExecution The mojo execution whose configuration should be finalized, must not be {@code null}. - */ - private void finalizeMojoConfiguration( MojoExecution mojoExecution ) - { - MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor(); - - Xpp3Dom executionConfiguration = mojoExecution.getConfiguration(); - if ( executionConfiguration == null ) - { - executionConfiguration = new Xpp3Dom( "configuration" ); - } - - Xpp3Dom defaultConfiguration = getMojoConfiguration( mojoDescriptor ); - - Xpp3Dom finalConfiguration = new Xpp3Dom( "configuration" ); - - if ( mojoDescriptor.getParameters() != null ) - { - for ( Parameter parameter : mojoDescriptor.getParameters() ) - { - Xpp3Dom parameterConfiguration = executionConfiguration.getChild( parameter.getName() ); - - if ( parameterConfiguration == null ) - { - parameterConfiguration = executionConfiguration.getChild( parameter.getAlias() ); - } - - Xpp3Dom parameterDefaults = defaultConfiguration.getChild( parameter.getName() ); - - parameterConfiguration = Xpp3Dom.mergeXpp3Dom( parameterConfiguration, parameterDefaults, - Boolean.TRUE ); - - if ( parameterConfiguration != null ) - { - parameterConfiguration = new Xpp3Dom( parameterConfiguration, parameter.getName() ); - - if ( StringUtils.isEmpty( parameterConfiguration.getAttribute( "implementation" ) ) - && StringUtils.isNotEmpty( parameter.getImplementation() ) ) - { - parameterConfiguration.setAttribute( "implementation", parameter.getImplementation() ); - } - - finalConfiguration.addChild( parameterConfiguration ); - } - } - } - - mojoExecution.setConfiguration( finalConfiguration ); - } - - private Xpp3Dom getMojoConfiguration( MojoDescriptor mojoDescriptor ) - { - return MojoDescriptorCreator.convert( mojoDescriptor ); - } - - @Override - public void calculateForkedExecutions( MojoExecution mojoExecution, MavenSession session ) - throws MojoNotFoundException, PluginNotFoundException, PluginResolutionException, - PluginDescriptorParsingException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException - { - calculateForkedExecutions( mojoExecution, session, session.getCurrentProject(), new HashSet() ); - } - - private void calculateForkedExecutions( MojoExecution mojoExecution, MavenSession session, MavenProject project, - Collection alreadyForkedExecutions ) - throws MojoNotFoundException, PluginNotFoundException, PluginResolutionException, - PluginDescriptorParsingException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException - { - MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor(); - - if ( !mojoDescriptor.isForking() ) - { - return; - } - - if ( !alreadyForkedExecutions.add( mojoDescriptor ) ) - { - return; - } - - List forkedProjects = - LifecycleDependencyResolver.getProjects( project, session, mojoDescriptor.isAggregator() ); - - for ( MavenProject forkedProject : forkedProjects ) - { - if ( forkedProject != project ) - { - lifecyclePluginResolver.resolveMissingPluginVersions( forkedProject, session ); - } - - List forkedExecutions; - - if ( StringUtils.isNotEmpty( mojoDescriptor.getExecutePhase() ) ) - { - forkedExecutions = - calculateForkedLifecycle( mojoExecution, session, forkedProject, alreadyForkedExecutions ); - } - else - { - forkedExecutions = calculateForkedGoal( mojoExecution, session, forkedProject, - alreadyForkedExecutions ); - } - - mojoExecution.setForkedExecutions( BuilderCommon.getKey( forkedProject ), forkedExecutions ); - } - - alreadyForkedExecutions.remove( mojoDescriptor ); - } - - private List calculateForkedLifecycle( MojoExecution mojoExecution, MavenSession session, - MavenProject project, - Collection alreadyForkedExecutions ) - throws MojoNotFoundException, PluginNotFoundException, PluginResolutionException, - PluginDescriptorParsingException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException - { - MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor(); - - String forkedPhase = mojoDescriptor.getExecutePhase(); - - Map> lifecycleMappings = calculateLifecycleMappings( session, project, - forkedPhase ); - - for ( List forkedExecutions : lifecycleMappings.values() ) - { - for ( MojoExecution forkedExecution : forkedExecutions ) - { - if ( forkedExecution.getMojoDescriptor() == null ) - { - MojoDescriptor forkedMojoDescriptor = - pluginManager.getMojoDescriptor( forkedExecution.getPlugin(), forkedExecution.getGoal(), - project.getRemotePluginRepositories(), - session.getRepositorySession() ); - - forkedExecution.setMojoDescriptor( forkedMojoDescriptor ); - } - - mojoExecutionConfigurator( forkedExecution ).configure( project, forkedExecution, false ); - } - } - - injectLifecycleOverlay( lifecycleMappings, mojoExecution, session, project ); - - List mojoExecutions = new ArrayList(); - - for ( List forkedExecutions : lifecycleMappings.values() ) - { - for ( MojoExecution forkedExecution : forkedExecutions ) - { - if ( !alreadyForkedExecutions.contains( forkedExecution.getMojoDescriptor() ) ) - { - finalizeMojoConfiguration( forkedExecution ); - - calculateForkedExecutions( forkedExecution, session, project, alreadyForkedExecutions ); - - mojoExecutions.add( forkedExecution ); - } - } - } - - return mojoExecutions; - } - - private void injectLifecycleOverlay( Map> lifecycleMappings, - MojoExecution mojoExecution, MavenSession session, MavenProject project ) - throws PluginDescriptorParsingException, LifecycleNotFoundException, MojoNotFoundException, - PluginNotFoundException, PluginResolutionException, NoPluginFoundForPrefixException, - InvalidPluginDescriptorException, PluginVersionResolutionException - { - MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor(); - - PluginDescriptor pluginDescriptor = mojoDescriptor.getPluginDescriptor(); - - String forkedLifecycle = mojoDescriptor.getExecuteLifecycle(); - - if ( StringUtils.isEmpty( forkedLifecycle ) ) - { - return; - } - - org.apache.maven.plugin.lifecycle.Lifecycle lifecycleOverlay; - - try - { - lifecycleOverlay = pluginDescriptor.getLifecycleMapping( forkedLifecycle ); - } - catch ( IOException e ) - { - throw new PluginDescriptorParsingException( pluginDescriptor.getPlugin(), pluginDescriptor.getSource(), e ); - } - catch ( XmlPullParserException e ) - { - throw new PluginDescriptorParsingException( pluginDescriptor.getPlugin(), pluginDescriptor.getSource(), e ); - } - - if ( lifecycleOverlay == null ) - { - throw new LifecycleNotFoundException( forkedLifecycle ); - } - - for ( Phase phase : lifecycleOverlay.getPhases() ) - { - List forkedExecutions = lifecycleMappings.get( phase.getId() ); - - if ( forkedExecutions != null ) - { - for ( Execution execution : phase.getExecutions() ) - { - for ( String goal : execution.getGoals() ) - { - MojoDescriptor forkedMojoDescriptor; - - if ( goal.indexOf( ':' ) < 0 ) - { - forkedMojoDescriptor = pluginDescriptor.getMojo( goal ); - if ( forkedMojoDescriptor == null ) - { - throw new MojoNotFoundException( goal, pluginDescriptor ); - } - } - else - { - forkedMojoDescriptor = mojoDescriptorCreator.getMojoDescriptor( goal, session, project ); - } - - MojoExecution forkedExecution = - new MojoExecution( forkedMojoDescriptor, mojoExecution.getExecutionId() ); - - Xpp3Dom forkedConfiguration = (Xpp3Dom) execution.getConfiguration(); - - forkedExecution.setConfiguration( forkedConfiguration ); - - mojoExecutionConfigurator( forkedExecution ).configure( project, forkedExecution, true ); - - forkedExecutions.add( forkedExecution ); - } - } - - Xpp3Dom phaseConfiguration = (Xpp3Dom) phase.getConfiguration(); - - if ( phaseConfiguration != null ) - { - for ( MojoExecution forkedExecution : forkedExecutions ) - { - Xpp3Dom forkedConfiguration = forkedExecution.getConfiguration(); - - forkedConfiguration = Xpp3Dom.mergeXpp3Dom( phaseConfiguration, forkedConfiguration ); - - forkedExecution.setConfiguration( forkedConfiguration ); - } - } - } - } - } - - // org.apache.maven.plugins:maven-remote-resources-plugin:1.0:process - // TODO: take repo mans into account as one may be aggregating prefixes of many - // TODO: collect at the root of the repository, read the one at the root, and fetch remote if something is missing - // or the user forces the issue - - private List calculateForkedGoal( MojoExecution mojoExecution, MavenSession session, - MavenProject project, - Collection alreadyForkedExecutions ) - throws MojoNotFoundException, PluginNotFoundException, PluginResolutionException, - PluginDescriptorParsingException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException - { - MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor(); - - PluginDescriptor pluginDescriptor = mojoDescriptor.getPluginDescriptor(); - - String forkedGoal = mojoDescriptor.getExecuteGoal(); - - MojoDescriptor forkedMojoDescriptor = pluginDescriptor.getMojo( forkedGoal ); - if ( forkedMojoDescriptor == null ) - { - throw new MojoNotFoundException( forkedGoal, pluginDescriptor ); - } - - if ( alreadyForkedExecutions.contains( forkedMojoDescriptor ) ) - { - return Collections.emptyList(); - } - - MojoExecution forkedExecution = new MojoExecution( forkedMojoDescriptor, forkedGoal ); - - mojoExecutionConfigurator( forkedExecution ).configure( project, forkedExecution, true ); - - finalizeMojoConfiguration( forkedExecution ); - - calculateForkedExecutions( forkedExecution, session, project, alreadyForkedExecutions ); - - return Collections.singletonList( forkedExecution ); - } - - private MojoExecutionConfigurator mojoExecutionConfigurator( MojoExecution mojoExecution ) - { - String configuratorId = mojoExecution.getMojoDescriptor().getComponentConfigurator(); - if ( configuratorId == null ) - { - configuratorId = "default"; - } - - MojoExecutionConfigurator mojoExecutionConfigurator = mojoExecutionConfigurators.get( configuratorId ); - - if ( mojoExecutionConfigurator == null ) - { - // - // The plugin has a custom component configurator but does not have a custom mojo execution configurator - // so fall back to the default mojo execution configurator. - // - mojoExecutionConfigurator = mojoExecutionConfigurators.get( "default" ); - } - return mojoExecutionConfigurator; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleMappingDelegate.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleMappingDelegate.java deleted file mode 100644 index 3024fe45..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleMappingDelegate.java +++ /dev/null @@ -1,158 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import java.util.TreeMap; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.Lifecycle; -import org.apache.maven.lifecycle.LifecycleMappingDelegate; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.PluginExecution; -import org.apache.maven.plugin.BuildPluginManager; -import org.apache.maven.plugin.InvalidPluginDescriptorException; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.plugin.MojoNotFoundException; -import org.apache.maven.plugin.PluginDescriptorParsingException; -import org.apache.maven.plugin.PluginNotFoundException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; - -@Component( role = LifecycleMappingDelegate.class, hint = DefaultLifecycleMappingDelegate.HINT ) -public class DefaultLifecycleMappingDelegate - implements LifecycleMappingDelegate -{ - public static final String HINT = "default"; - - @Requirement - private BuildPluginManager pluginManager; - - public Map> calculateLifecycleMappings( MavenSession session, MavenProject project, - Lifecycle lifecycle, String lifecyclePhase ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, InvalidPluginDescriptorException - { - /* - * Initialize mapping from lifecycle phase to bound mojos. The key set of this map denotes the phases the caller - * is interested in, i.e. all phases up to and including the specified phase. - */ - - Map>> mappings = - new LinkedHashMap>>(); - - for ( String phase : lifecycle.getPhases() ) - { - Map> phaseBindings = new TreeMap>(); - - mappings.put( phase, phaseBindings ); - - if ( phase.equals( lifecyclePhase ) ) - { - break; - } - } - - /* - * Grab plugin executions that are bound to the selected lifecycle phases from project. The effective model of - * the project already contains the plugin executions induced by the project's packaging type. Remember, all - * phases of interest and only those are in the lifecyle mapping, if a phase has no value in the map, we are not - * interested in any of the executions bound to it. - */ - - for ( Plugin plugin : project.getBuild().getPlugins() ) - { - for ( PluginExecution execution : plugin.getExecutions() ) - { - // if the phase is specified then I don't have to go fetch the plugin yet and pull it down - // to examine the phase it is associated to. - if ( execution.getPhase() != null ) - { - Map> phaseBindings = mappings.get( execution.getPhase() ); - if ( phaseBindings != null ) - { - for ( String goal : execution.getGoals() ) - { - MojoExecution mojoExecution = new MojoExecution( plugin, goal, execution.getId() ); - mojoExecution.setLifecyclePhase( execution.getPhase() ); - addMojoExecution( phaseBindings, mojoExecution, execution.getPriority() ); - } - } - } - // if not then i need to grab the mojo descriptor and look at the phase that is specified - else - { - for ( String goal : execution.getGoals() ) - { - MojoDescriptor mojoDescriptor = - pluginManager.getMojoDescriptor( plugin, goal, project.getRemotePluginRepositories(), - session.getRepositorySession() ); - - Map> phaseBindings = mappings.get( mojoDescriptor.getPhase() ); - if ( phaseBindings != null ) - { - MojoExecution mojoExecution = new MojoExecution( mojoDescriptor, execution.getId() ); - mojoExecution.setLifecyclePhase( mojoDescriptor.getPhase() ); - addMojoExecution( phaseBindings, mojoExecution, execution.getPriority() ); - } - } - } - } - } - - Map> lifecycleMappings = new LinkedHashMap>(); - - for ( Map.Entry>> entry : mappings.entrySet() ) - { - List mojoExecutions = new ArrayList(); - - for ( List executions : entry.getValue().values() ) - { - mojoExecutions.addAll( executions ); - } - - lifecycleMappings.put( entry.getKey(), mojoExecutions ); - } - - return lifecycleMappings; - - } - - private void addMojoExecution( Map> phaseBindings, MojoExecution mojoExecution, - int priority ) - { - List mojoExecutions = phaseBindings.get( priority ); - - if ( mojoExecutions == null ) - { - mojoExecutions = new ArrayList(); - phaseBindings.put( priority, mojoExecutions ); - } - - mojoExecutions.add( mojoExecution ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzer.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzer.java deleted file mode 100644 index a5e6a34c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzer.java +++ /dev/null @@ -1,258 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.lifecycle.DefaultLifecycles; -import org.apache.maven.lifecycle.LifeCyclePluginAnalyzer; -import org.apache.maven.lifecycle.Lifecycle; -import org.apache.maven.lifecycle.mapping.LifecycleMapping; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.PluginExecution; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.util.StringUtils; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.Comparator; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import java.util.Set; - -/** - * @since 3.0 - * @author Benjamin Bentmann - * @author Jason van Zyl - * @author jdcasey - * @author Kristian Rosenvold (extracted class only) - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -@Component( role = LifeCyclePluginAnalyzer.class ) -public class DefaultLifecyclePluginAnalyzer - implements LifeCyclePluginAnalyzer -{ - - @Requirement( role = LifecycleMapping.class ) - private Map lifecycleMappings; - - @Requirement - private DefaultLifecycles defaultLifeCycles; - - @Requirement - private Logger logger; - - public DefaultLifecyclePluginAnalyzer() - { - } - - // These methods deal with construction intact Plugin object that look like they come from a standard - // block in a Maven POM. We have to do some wiggling to pull the sources of information - // together and this really shows the problem of constructing a sensible default configuration but - // it's all encapsulated here so it appears normalized to the POM builder. - - // We are going to take the project packaging and find all plugin in the default lifecycle and create - // fully populated Plugin objects, including executions with goals and default configuration taken - // from the plugin.xml inside a plugin. - // - - public Set getPluginsBoundByDefaultToAllLifecycles( String packaging ) - { - if ( logger.isDebugEnabled() ) - { - logger.debug( "Looking up lifecyle mappings for packaging " + packaging + " from " - + Thread.currentThread().getContextClassLoader() ); - } - - LifecycleMapping lifecycleMappingForPackaging = lifecycleMappings.get( packaging ); - - if ( lifecycleMappingForPackaging == null ) - { - return null; - } - - Map plugins = new LinkedHashMap(); - - for ( Lifecycle lifecycle : getOrderedLifecycles() ) - { - org.apache.maven.lifecycle.mapping.Lifecycle lifecycleConfiguration = - lifecycleMappingForPackaging.getLifecycles().get( lifecycle.getId() ); - - Map phaseToGoalMapping = null; - - if ( lifecycleConfiguration != null ) - { - phaseToGoalMapping = lifecycleConfiguration.getPhases(); - } - else if ( lifecycle.getDefaultPhases() != null ) - { - phaseToGoalMapping = lifecycle.getDefaultPhases(); - } - - if ( phaseToGoalMapping != null ) - { - // These are of the form: - // - // compile -> org.apache.maven.plugins:maven-compiler-plugin:compile[,gid:aid:goal,...] - // - for ( Map.Entry goalsForLifecyclePhase : phaseToGoalMapping.entrySet() ) - { - String phase = goalsForLifecyclePhase.getKey(); - String goals = goalsForLifecyclePhase.getValue(); - if ( goals != null ) - { - parseLifecyclePhaseDefinitions( plugins, phase, goals ); - } - } - } - } - - return plugins.keySet(); - } - - private List getOrderedLifecycles() - { - // NOTE: The lifecycle order can affect implied execution ids so we better be deterministic. - - List lifecycles = new ArrayList( defaultLifeCycles.getLifeCycles() ); - - Collections.sort( lifecycles, new Comparator() - { - - public int compare( Lifecycle l1, Lifecycle l2 ) - { - return l1.getId().compareTo( l2.getId() ); - } - - } ); - - return lifecycles; - } - - private void parseLifecyclePhaseDefinitions( Map plugins, String phase, String goals ) - { - String[] mojos = StringUtils.split( goals, "," ); - - for ( int i = 0; i < mojos.length; i++ ) - { - GoalSpec gs = parseGoalSpec( mojos[i].trim() ); - - if ( gs == null ) - { - logger.warn( "Ignored invalid goal specification '" + mojos[i] + "' from lifecycle mapping for phase " - + phase ); - continue; - } - - Plugin plugin = new Plugin(); - plugin.setGroupId( gs.groupId ); - plugin.setArtifactId( gs.artifactId ); - plugin.setVersion( gs.version ); - - Plugin existing = plugins.get( plugin ); - if ( existing != null ) - { - if ( existing.getVersion() == null ) - { - existing.setVersion( plugin.getVersion() ); - } - plugin = existing; - } - else - { - plugins.put( plugin, plugin ); - } - - PluginExecution execution = new PluginExecution(); - execution.setId( getExecutionId( plugin, gs.goal ) ); - execution.setPhase( phase ); - execution.setPriority( i - mojos.length ); - execution.getGoals().add( gs.goal ); - - plugin.getExecutions().add( execution ); - } - } - - private GoalSpec parseGoalSpec( String goalSpec ) - { - GoalSpec gs = new GoalSpec(); - - String[] p = StringUtils.split( goalSpec.trim(), ":" ); - - if ( p.length == 3 ) - { - // :: - gs.groupId = p[0]; - gs.artifactId = p[1]; - gs.goal = p[2]; - } - else if ( p.length == 4 ) - { - // ::: - gs.groupId = p[0]; - gs.artifactId = p[1]; - gs.version = p[2]; - gs.goal = p[3]; - } - else - { - // invalid - gs = null; - } - - return gs; - } - - private String getExecutionId( Plugin plugin, String goal ) - { - Set existingIds = new HashSet(); - for ( PluginExecution execution : plugin.getExecutions() ) - { - existingIds.add( execution.getId() ); - } - - String base = "default-" + goal; - String id = base; - - for ( int index = 1; existingIds.contains( id ); index++ ) - { - id = base + '-' + index; - } - - return id; - } - - static class GoalSpec - { - - String groupId; - - String artifactId; - - String version; - - String goal; - - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleTaskSegmentCalculator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleTaskSegmentCalculator.java deleted file mode 100644 index 28377f1d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleTaskSegmentCalculator.java +++ /dev/null @@ -1,155 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.LifecycleNotFoundException; -import org.apache.maven.lifecycle.LifecyclePhaseNotFoundException; -import org.apache.maven.plugin.InvalidPluginDescriptorException; -import org.apache.maven.plugin.MojoNotFoundException; -import org.apache.maven.plugin.PluginDescriptorParsingException; -import org.apache.maven.plugin.PluginNotFoundException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException; -import org.apache.maven.plugin.version.PluginVersionResolutionException; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.util.StringUtils; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -/** - * Calculates the task segments in the build - * - * @since 3.0 - * @author Benjamin Bentmann - * @author Jason van Zyl - * @author jdcasey - * @author Kristian Rosenvold (extracted class) - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ - -@Component( role = LifecycleTaskSegmentCalculator.class ) -public class DefaultLifecycleTaskSegmentCalculator - implements LifecycleTaskSegmentCalculator -{ - @Requirement - private MojoDescriptorCreator mojoDescriptorCreator; - - @Requirement - private LifecyclePluginResolver lifecyclePluginResolver; - - public DefaultLifecycleTaskSegmentCalculator() - { - } - - public List calculateTaskSegments( MavenSession session ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - PluginVersionResolutionException, LifecyclePhaseNotFoundException, LifecycleNotFoundException - { - - MavenProject rootProject = session.getTopLevelProject(); - - List tasks = session.getGoals(); - - if ( ( tasks == null || tasks.isEmpty() ) && !StringUtils.isEmpty( rootProject.getDefaultGoal() ) ) - { - tasks = Arrays.asList( StringUtils.split( rootProject.getDefaultGoal() ) ); - } - - return calculateTaskSegments( session, tasks ); - } - - public List calculateTaskSegments( MavenSession session, List tasks ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - PluginVersionResolutionException - { - List taskSegments = new ArrayList( tasks.size() ); - - TaskSegment currentSegment = null; - - for ( String task : tasks ) - { - if ( isGoalSpecification( task ) ) - { - // "pluginPrefix:goal" or "groupId:artifactId[:version]:goal" - - lifecyclePluginResolver.resolveMissingPluginVersions( session.getTopLevelProject(), session ); - - MojoDescriptor mojoDescriptor = - mojoDescriptorCreator.getMojoDescriptor( task, session, session.getTopLevelProject() ); - - boolean aggregating = mojoDescriptor.isAggregator() || !mojoDescriptor.isProjectRequired(); - - if ( currentSegment == null || currentSegment.isAggregating() != aggregating ) - { - currentSegment = new TaskSegment( aggregating ); - taskSegments.add( currentSegment ); - } - - currentSegment.getTasks().add( new GoalTask( task ) ); - } - else - { - // lifecycle phase - - if ( currentSegment == null || currentSegment.isAggregating() ) - { - currentSegment = new TaskSegment( false ); - taskSegments.add( currentSegment ); - } - - currentSegment.getTasks().add( new LifecycleTask( task ) ); - } - } - - return taskSegments; - } - - public boolean requiresProject( MavenSession session ) - { - List goals = session.getGoals(); - if ( goals != null ) - { - for ( String goal : goals ) - { - if ( !isGoalSpecification( goal ) ) - { - return true; - } - } - } - return false; - } - - - private boolean isGoalSpecification( String task ) - { - return task.indexOf( ':' ) >= 0; - } - -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultMojoExecutionConfigurator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultMojoExecutionConfigurator.java deleted file mode 100644 index 176ba320..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultMojoExecutionConfigurator.java +++ /dev/null @@ -1,108 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collection; - -import org.apache.maven.lifecycle.MojoExecutionConfigurator; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.PluginExecution; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.util.StringUtils; -import org.codehaus.plexus.util.xml.Xpp3Dom; - -/** - * @since 3.3.1, MNG-5753 - */ -@Component( role = MojoExecutionConfigurator.class ) -public class DefaultMojoExecutionConfigurator - implements MojoExecutionConfigurator -{ - - @Override - public void configure( MavenProject project, MojoExecution mojoExecution, boolean allowPluginLevelConfig ) - { - String g = mojoExecution.getGroupId(); - - String a = mojoExecution.getArtifactId(); - - Plugin plugin = findPlugin( g, a, project.getBuildPlugins() ); - - if ( plugin == null && project.getPluginManagement() != null ) - { - plugin = findPlugin( g, a, project.getPluginManagement().getPlugins() ); - } - - if ( plugin != null ) - { - PluginExecution pluginExecution = - findPluginExecution( mojoExecution.getExecutionId(), plugin.getExecutions() ); - - Xpp3Dom pomConfiguration = null; - - if ( pluginExecution != null ) - { - pomConfiguration = (Xpp3Dom) pluginExecution.getConfiguration(); - } - else if ( allowPluginLevelConfig ) - { - pomConfiguration = (Xpp3Dom) plugin.getConfiguration(); - } - - Xpp3Dom mojoConfiguration = ( pomConfiguration != null ) ? new Xpp3Dom( pomConfiguration ) : null; - - mojoConfiguration = Xpp3Dom.mergeXpp3Dom( mojoExecution.getConfiguration(), mojoConfiguration ); - - mojoExecution.setConfiguration( mojoConfiguration ); - } - } - - private Plugin findPlugin( String groupId, String artifactId, Collection plugins ) - { - for ( Plugin plugin : plugins ) - { - if ( artifactId.equals( plugin.getArtifactId() ) && groupId.equals( plugin.getGroupId() ) ) - { - return plugin; - } - } - - return null; - } - - private PluginExecution findPluginExecution( String executionId, Collection executions ) - { - if ( StringUtils.isNotEmpty( executionId ) ) - { - for ( PluginExecution execution : executions ) - { - if ( executionId.equals( execution.getId() ) ) - { - return execution; - } - } - } - - return null; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultProjectArtifactFactory.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultProjectArtifactFactory.java deleted file mode 100644 index 762fc72b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultProjectArtifactFactory.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Set; - -import javax.inject.Inject; -import javax.inject.Named; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.factory.ArtifactFactory; -import org.apache.maven.project.MavenProject; -import org.apache.maven.project.artifact.InvalidDependencyVersionException; -import org.apache.maven.project.artifact.MavenMetadataSource; - -@SuppressWarnings( "deprecation" ) -@Named -public class DefaultProjectArtifactFactory - implements ProjectArtifactFactory -{ - private final ArtifactFactory artifactFactory; - - @Inject - public DefaultProjectArtifactFactory( ArtifactFactory artifactFactory ) - { - this.artifactFactory = artifactFactory; - } - - @Override - public Set createArtifacts( MavenProject project ) - throws InvalidDependencyVersionException - { - return MavenMetadataSource.createArtifacts( artifactFactory, project.getDependencies(), null, null, project ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DependencyContext.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DependencyContext.java deleted file mode 100644 index 18fae7a9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DependencyContext.java +++ /dev/null @@ -1,114 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.project.MavenProject; - -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.TreeSet; - -/** - * Context of dependency artifacts for a particular project. - * - * @since 3.0 - * @author Benjamin Bentmann - * @author Kristian Rosenvold (class extract only) - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -// TODO: From a concurrency perspective, this class is not good. The combination of mutable/immutable state is not nice -public class DependencyContext -{ - - private static final Collection UNRESOLVED = Arrays.asList(); - - private final MavenProject project; - - private final Collection scopesToCollectForCurrentProject; - - private final Collection scopesToResolveForCurrentProject; - - private final Collection scopesToCollectForAggregatedProjects; - - private final Collection scopesToResolveForAggregatedProjects; - - private volatile Collection lastDependencyArtifacts = UNRESOLVED; - - private volatile int lastDependencyArtifactCount = -1; - - public DependencyContext( MavenProject project, Collection scopesToCollect, - Collection scopesToResolve ) - { - this.project = project; - scopesToCollectForCurrentProject = scopesToCollect; - scopesToResolveForCurrentProject = scopesToResolve; - scopesToCollectForAggregatedProjects = Collections.synchronizedSet( new TreeSet() ); - scopesToResolveForAggregatedProjects = Collections.synchronizedSet( new TreeSet() ); - } - - public MavenProject getProject() - { - return project; - } - - public Collection getScopesToCollectForCurrentProject() - { - return scopesToCollectForCurrentProject; - } - - public Collection getScopesToResolveForCurrentProject() - { - return scopesToResolveForCurrentProject; - } - - public Collection getScopesToCollectForAggregatedProjects() - { - return scopesToCollectForAggregatedProjects; - } - - public Collection getScopesToResolveForAggregatedProjects() - { - return scopesToResolveForAggregatedProjects; - } - - public boolean isResolutionRequiredForCurrentProject() - { - return lastDependencyArtifacts != project.getDependencyArtifacts() || ( lastDependencyArtifacts != null - && lastDependencyArtifactCount != lastDependencyArtifacts.size() ); - } - - public boolean isResolutionRequiredForAggregatedProjects( Collection scopesToCollect, - Collection scopesToResolve ) - { - boolean required = - scopesToCollectForAggregatedProjects.addAll( scopesToCollect ) - || scopesToResolveForAggregatedProjects.addAll( scopesToResolve ); - return required; - } - - public void synchronizeWithProjectState() - { - lastDependencyArtifacts = project.getDependencyArtifacts(); - lastDependencyArtifactCount = ( lastDependencyArtifacts != null ) ? lastDependencyArtifacts.size() : 0; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ExecutionEventCatapult.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ExecutionEventCatapult.java deleted file mode 100644 index acff5661..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ExecutionEventCatapult.java +++ /dev/null @@ -1,40 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.ExecutionEvent; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.plugin.MojoExecution; - -/** - * Assists in firing execution events. Warning: This is an internal utility interface that is only - * public for technical reasons, it is not part of the public API. In particular, this interface can be changed or - * deleted without prior notice. - * - * @author Benjamin Bentmann - */ -public interface ExecutionEventCatapult -{ - - void fire( ExecutionEvent.Type eventType, MavenSession session, MojoExecution mojoExecution ); - - void fire( ExecutionEvent.Type eventType, MavenSession session, MojoExecution mojoExecution, Exception exception ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ExecutionPlanItem.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ExecutionPlanItem.java deleted file mode 100644 index cceffdf8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ExecutionPlanItem.java +++ /dev/null @@ -1,84 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.lifecycle.internal.builder.BuilderCommon; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.project.MavenProject; - -import java.util.ArrayList; -import java.util.List; - -/** - * Wraps individual MojoExecutions, containing information about completion status and scheduling. - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - * - * @since 3.0 - * @author Kristian Rosenvold - */ -public class ExecutionPlanItem -{ - private final MojoExecution mojoExecution; - - public ExecutionPlanItem( MojoExecution mojoExecution ) - { - this.mojoExecution = mojoExecution; - } - - public static List createExecutionPlanItems( MavenProject mavenProject, - List executions ) - { - BuilderCommon.attachToThread( mavenProject ); - - List result = new ArrayList(); - for ( MojoExecution mojoExecution : executions ) - { - result.add( new ExecutionPlanItem( mojoExecution ) ); - } - return result; - } - - public MojoExecution getMojoExecution() - { - return mojoExecution; - } - - public String getLifecyclePhase() - { - return mojoExecution.getLifecyclePhase(); - } - - public Plugin getPlugin() - { - final MojoDescriptor mojoDescriptor = getMojoExecution().getMojoDescriptor(); - return mojoDescriptor.getPluginDescriptor().getPlugin(); - } - - @Override - public String toString() - { - return "ExecutionPlanItem{" + ", mojoExecution=" + mojoExecution + '}' - + super.toString(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/GoalTask.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/GoalTask.java deleted file mode 100644 index 5c43dbd4..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/GoalTask.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * A task that is a goal - *

- * TODO: From a concurrecy perspective, this class is not good. The combination of mutable/immutable state is not nice - * - * @since 3.0 - * @author Benjamin Bentmann - */ -public final class GoalTask -{ - - final String pluginGoal; - - public GoalTask( String pluginGoal ) - { - this.pluginGoal = pluginGoal; - } - - @Override - public String toString() - { - return pluginGoal; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDebugLogger.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDebugLogger.java deleted file mode 100644 index 2edbe754..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDebugLogger.java +++ /dev/null @@ -1,182 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.lifecycle.MavenExecutionPlan; -import org.apache.maven.lifecycle.internal.builder.BuilderCommon; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.util.StringUtils; - -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.TreeSet; - -/** - * Logs debug output from the various lifecycle phases. - * - * @since 3.0 - * @author Benjamin Bentmann - * @author Jason van Zyl - * @author Kristian Rosenvold (extracted class only) - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -@Component( role = LifecycleDebugLogger.class ) -public class LifecycleDebugLogger -{ - @Requirement - private Logger logger; - - - public LifecycleDebugLogger() - { - } - - public LifecycleDebugLogger( Logger logger ) - { - this.logger = logger; - } - - - public void debug( String s ) - { - logger.debug( s ); - } - - public void info( String s ) - { - logger.info( s ); - } - - public void debugReactorPlan( ProjectBuildList projectBuilds ) - { - if ( !logger.isDebugEnabled() ) - { - return; - } - - logger.debug( "=== REACTOR BUILD PLAN ================================================" ); - - for ( Iterator it = projectBuilds.iterator(); it.hasNext(); ) - { - ProjectSegment projectBuild = it.next(); - - logger.debug( "Project: " + projectBuild.getProject().getId() ); - logger.debug( "Tasks: " + projectBuild.getTaskSegment().getTasks() ); - logger.debug( "Style: " + ( projectBuild.getTaskSegment().isAggregating() ? "Aggregating" : "Regular" ) ); - - if ( it.hasNext() ) - { - logger.debug( "-----------------------------------------------------------------------" ); - } - } - - logger.debug( "=======================================================================" ); - } - - - public void debugProjectPlan( MavenProject currentProject, MavenExecutionPlan executionPlan ) - { - if ( !logger.isDebugEnabled() ) - { - return; - } - - logger.debug( "=== PROJECT BUILD PLAN ================================================" ); - logger.debug( "Project: " + BuilderCommon.getKey( currentProject ) ); - - debugDependencyRequirements( executionPlan.getMojoExecutions() ); - - logger.debug( "Repositories (dependencies): " + currentProject.getRemoteProjectRepositories() ); - logger.debug( "Repositories (plugins) : " + currentProject.getRemotePluginRepositories() ); - - for ( ExecutionPlanItem mojoExecution : executionPlan ) - { - debugMojoExecution( mojoExecution.getMojoExecution() ); - } - - logger.debug( "=======================================================================" ); - } - - private void debugMojoExecution( MojoExecution mojoExecution ) - { - String mojoExecId = - mojoExecution.getGroupId() + ':' + mojoExecution.getArtifactId() + ':' + mojoExecution.getVersion() + ':' - + mojoExecution.getGoal() + " (" + mojoExecution.getExecutionId() + ')'; - - Map> forkedExecutions = mojoExecution.getForkedExecutions(); - if ( !forkedExecutions.isEmpty() ) - { - for ( Map.Entry> fork : forkedExecutions.entrySet() ) - { - logger.debug( "--- init fork of " + fork.getKey() + " for " + mojoExecId + " ---" ); - - debugDependencyRequirements( fork.getValue() ); - - for ( MojoExecution forkedExecution : fork.getValue() ) - { - debugMojoExecution( forkedExecution ); - } - - logger.debug( "--- exit fork of " + fork.getKey() + " for " + mojoExecId + " ---" ); - } - } - - logger.debug( "-----------------------------------------------------------------------" ); - logger.debug( "Goal: " + mojoExecId ); - logger.debug( - "Style: " + ( mojoExecution.getMojoDescriptor().isAggregator() ? "Aggregating" : "Regular" ) ); - logger.debug( "Configuration: " + mojoExecution.getConfiguration() ); - } - - private void debugDependencyRequirements( List mojoExecutions ) - { - Set scopesToCollect = new TreeSet(); - Set scopesToResolve = new TreeSet(); - - for ( MojoExecution mojoExecution : mojoExecutions ) - { - MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor(); - - String scopeToCollect = mojoDescriptor.getDependencyCollectionRequired(); - if ( StringUtils.isNotEmpty( scopeToCollect ) ) - { - scopesToCollect.add( scopeToCollect ); - } - - String scopeToResolve = mojoDescriptor.getDependencyResolutionRequired(); - if ( StringUtils.isNotEmpty( scopeToResolve ) ) - { - scopesToResolve.add( scopeToResolve ); - } - } - - logger.debug( "Dependencies (collect): " + scopesToCollect ); - logger.debug( "Dependencies (resolve): " + scopesToResolve ); - } - -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolver.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolver.java deleted file mode 100644 index 4d73528c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolver.java +++ /dev/null @@ -1,334 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import javax.inject.Inject; -import javax.inject.Named; - -import org.apache.maven.RepositoryUtils; -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.ArtifactUtils; -import org.apache.maven.eventspy.internal.EventSpyDispatcher; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.LifecycleExecutionException; -import org.apache.maven.project.DefaultDependencyResolutionRequest; -import org.apache.maven.project.DependencyResolutionException; -import org.apache.maven.project.DependencyResolutionResult; -import org.apache.maven.project.MavenProject; -import org.apache.maven.project.ProjectDependenciesResolver; -import org.apache.maven.project.artifact.InvalidDependencyVersionException; -import org.codehaus.plexus.logging.Logger; -import org.eclipse.aether.graph.Dependency; -import org.eclipse.aether.graph.DependencyFilter; -import org.eclipse.aether.graph.DependencyNode; -import org.eclipse.aether.util.filter.AndDependencyFilter; -import org.eclipse.aether.util.filter.ScopeDependencyFilter; - -/** - * Resolves dependencies for the artifacts in context of the lifecycle build - * - * @since 3.0 - * @author Benjamin Bentmann - * @author Jason van Zyl - * @author Kristian Rosenvold (extracted class) - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -@Named -public class LifecycleDependencyResolver -{ - - @Inject - private ProjectDependenciesResolver dependenciesResolver; - - @Inject - private Logger logger; - - @Inject - private ProjectArtifactFactory artifactFactory; - - @Inject - private EventSpyDispatcher eventSpyDispatcher; - - public LifecycleDependencyResolver() - { - } - - public LifecycleDependencyResolver( ProjectDependenciesResolver projectDependenciesResolver, Logger logger ) - { - this.dependenciesResolver = projectDependenciesResolver; - this.logger = logger; - } - - public static List getProjects( MavenProject project, MavenSession session, boolean aggregator ) - { - if ( aggregator ) - { - return session.getProjects(); - } - else - { - return Collections.singletonList( project ); - } - } - - public void resolveProjectDependencies( MavenProject project, Collection scopesToCollect, - Collection scopesToResolve, MavenSession session, - boolean aggregating, Set projectArtifacts ) - throws LifecycleExecutionException - { - ClassLoader tccl = Thread.currentThread().getContextClassLoader(); - try - { - ClassLoader projectRealm = project.getClassRealm(); - if ( projectRealm != null && projectRealm != tccl ) - { - Thread.currentThread().setContextClassLoader( projectRealm ); - } - - if ( project.getDependencyArtifacts() == null ) - { - try - { - project.setDependencyArtifacts( artifactFactory.createArtifacts( project ) ); - } - catch ( InvalidDependencyVersionException e ) - { - throw new LifecycleExecutionException( e ); - } - } - - Set artifacts = - getDependencies( project, scopesToCollect, scopesToResolve, session, aggregating, projectArtifacts ); - - project.setResolvedArtifacts( artifacts ); - - Map map = new HashMap(); - for ( Artifact artifact : artifacts ) - { - map.put( artifact.getDependencyConflictId(), artifact ); - } - for ( Artifact artifact : project.getDependencyArtifacts() ) - { - if ( artifact.getFile() == null ) - { - Artifact resolved = map.get( artifact.getDependencyConflictId() ); - if ( resolved != null ) - { - artifact.setFile( resolved.getFile() ); - artifact.setDependencyTrail( resolved.getDependencyTrail() ); - artifact.setResolvedVersion( resolved.getVersion() ); - artifact.setResolved( true ); - } - } - } - } - finally - { - Thread.currentThread().setContextClassLoader( tccl ); - } - } - - private Set getDependencies( MavenProject project, Collection scopesToCollect, - Collection scopesToResolve, MavenSession session, - boolean aggregating, Set projectArtifacts ) - throws LifecycleExecutionException - { - if ( scopesToCollect == null ) - { - scopesToCollect = Collections.emptySet(); - } - if ( scopesToResolve == null ) - { - scopesToResolve = Collections.emptySet(); - } - - if ( scopesToCollect.isEmpty() && scopesToResolve.isEmpty() ) - { - return new LinkedHashSet(); - } - - scopesToCollect = new HashSet( scopesToCollect ); - scopesToCollect.addAll( scopesToResolve ); - - DependencyFilter collectionFilter = new ScopeDependencyFilter( null, negate( scopesToCollect ) ); - DependencyFilter resolutionFilter = new ScopeDependencyFilter( null, negate( scopesToResolve ) ); - resolutionFilter = AndDependencyFilter.newInstance( collectionFilter, resolutionFilter ); - resolutionFilter = - AndDependencyFilter.newInstance( resolutionFilter, new ReactorDependencyFilter( projectArtifacts ) ); - - DependencyResolutionResult result; - try - { - DefaultDependencyResolutionRequest request = - new DefaultDependencyResolutionRequest( project, session.getRepositorySession() ); - request.setResolutionFilter( resolutionFilter ); - - eventSpyDispatcher.onEvent( request ); - - result = dependenciesResolver.resolve( request ); - } - catch ( DependencyResolutionException e ) - { - result = e.getResult(); - - /* - * MNG-2277, the check below compensates for our bad plugin support where we ended up with aggregator - * plugins that require dependency resolution although they usually run in phases of the build where project - * artifacts haven't been assembled yet. The prime example of this is "mvn release:prepare". - */ - if ( aggregating && areAllDependenciesInReactor( session.getProjects(), - result.getUnresolvedDependencies() ) ) - { - logger.warn( "The following dependencies could not be resolved at this point of the build" - + " but seem to be part of the reactor:" ); - - for ( Dependency dependency : result.getUnresolvedDependencies() ) - { - logger.warn( "o " + dependency ); - } - - logger.warn( "Try running the build up to the lifecycle phase \"package\"" ); - } - else - { - throw new LifecycleExecutionException( null, project, e ); - } - } - - eventSpyDispatcher.onEvent( result ); - - Set artifacts = new LinkedHashSet(); - if ( result.getDependencyGraph() != null && !result.getDependencyGraph().getChildren().isEmpty() ) - { - RepositoryUtils.toArtifacts( artifacts, result.getDependencyGraph().getChildren(), - Collections.singletonList( project.getArtifact().getId() ), collectionFilter ); - } - return artifacts; - } - - private boolean areAllDependenciesInReactor( Collection projects, - Collection dependencies ) - { - Set projectKeys = getReactorProjectKeys( projects ); - - for ( Dependency dependency : dependencies ) - { - org.eclipse.aether.artifact.Artifact a = dependency.getArtifact(); - String key = ArtifactUtils.key( a.getGroupId(), a.getArtifactId(), a.getVersion() ); - if ( !projectKeys.contains( key ) ) - { - return false; - } - } - - return true; - } - - private Set getReactorProjectKeys( Collection projects ) - { - Set projectKeys = new HashSet( projects.size() * 2 ); - for ( MavenProject project : projects ) - { - String key = ArtifactUtils.key( project.getGroupId(), project.getArtifactId(), project.getVersion() ); - projectKeys.add( key ); - } - return projectKeys; - } - - private Collection negate( Collection scopes ) - { - Collection result = new HashSet(); - Collections.addAll( result, "system", "compile", "provided", "runtime", "test" ); - - for ( String scope : scopes ) - { - if ( "compile".equals( scope ) ) - { - result.remove( "compile" ); - result.remove( "system" ); - result.remove( "provided" ); - } - else if ( "runtime".equals( scope ) ) - { - result.remove( "compile" ); - result.remove( "runtime" ); - } - else if ( "compile+runtime".equals( scope ) ) - { - result.remove( "compile" ); - result.remove( "system" ); - result.remove( "provided" ); - result.remove( "runtime" ); - } - else if ( "runtime+system".equals( scope ) ) - { - result.remove( "compile" ); - result.remove( "system" ); - result.remove( "runtime" ); - } - else if ( "test".equals( scope ) ) - { - result.clear(); - } - } - - return result; - } - - private static class ReactorDependencyFilter - implements DependencyFilter - { - - private Set keys = new HashSet(); - - public ReactorDependencyFilter( Collection artifacts ) - { - for ( Artifact artifact : artifacts ) - { - String key = ArtifactUtils.key( artifact ); - keys.add( key ); - } - } - - public boolean accept( DependencyNode node, List parents ) - { - Dependency dependency = node.getDependency(); - if ( dependency != null ) - { - org.eclipse.aether.artifact.Artifact a = dependency.getArtifact(); - String key = ArtifactUtils.key( a.getGroupId(), a.getArtifactId(), a.getVersion() ); - return !keys.contains( key ); - } - return false; - } - - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleExecutionPlanCalculator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleExecutionPlanCalculator.java deleted file mode 100644 index 7d35b102..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleExecutionPlanCalculator.java +++ /dev/null @@ -1,67 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.LifecycleNotFoundException; -import org.apache.maven.lifecycle.LifecyclePhaseNotFoundException; -import org.apache.maven.lifecycle.MavenExecutionPlan; -import org.apache.maven.plugin.InvalidPluginDescriptorException; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.plugin.MojoNotFoundException; -import org.apache.maven.plugin.PluginDescriptorParsingException; -import org.apache.maven.plugin.PluginNotFoundException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException; -import org.apache.maven.plugin.version.PluginVersionResolutionException; -import org.apache.maven.project.MavenProject; - -import java.util.List; - -/** - * @since 3.0 - * @author Benjamin Bentmann - * @author Kristian Rosenvold (extract interface only) - *

- */ -public interface LifecycleExecutionPlanCalculator -{ - MavenExecutionPlan calculateExecutionPlan( MavenSession session, MavenProject project, List tasks ) - throws PluginNotFoundException, PluginResolutionException, LifecyclePhaseNotFoundException, - PluginDescriptorParsingException, MojoNotFoundException, InvalidPluginDescriptorException, - NoPluginFoundForPrefixException, LifecycleNotFoundException, PluginVersionResolutionException; - - MavenExecutionPlan calculateExecutionPlan( MavenSession session, MavenProject project, List tasks, - boolean setup ) - throws PluginNotFoundException, PluginResolutionException, LifecyclePhaseNotFoundException, - PluginDescriptorParsingException, MojoNotFoundException, InvalidPluginDescriptorException, - NoPluginFoundForPrefixException, LifecycleNotFoundException, PluginVersionResolutionException; - - void calculateForkedExecutions( MojoExecution mojoExecution, MavenSession session ) - throws MojoNotFoundException, PluginNotFoundException, PluginResolutionException, - PluginDescriptorParsingException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException; - - void setupMojoExecution( MavenSession session, MavenProject project, MojoExecution mojoExecution ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, InvalidPluginDescriptorException, NoPluginFoundForPrefixException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleModuleBuilder.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleModuleBuilder.java deleted file mode 100644 index 343fbf95..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleModuleBuilder.java +++ /dev/null @@ -1,154 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.HashSet; -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.execution.BuildSuccess; -import org.apache.maven.execution.ExecutionEvent; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.execution.ProjectExecutionEvent; -import org.apache.maven.execution.ProjectExecutionListener; -import org.apache.maven.lifecycle.MavenExecutionPlan; -import org.apache.maven.lifecycle.internal.builder.BuilderCommon; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.project.MavenProject; -import org.apache.maven.session.scope.internal.SessionScope; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; - -/** - * Builds one or more lifecycles for a full module - * - * @since 3.0 - * @author Benjamin Bentmann - * @author Jason van Zyl - * @author Kristian Rosenvold (extracted class) - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -@Component( role = LifecycleModuleBuilder.class ) -public class LifecycleModuleBuilder -{ - - @Requirement - private MojoExecutor mojoExecutor; - - @Requirement - private BuilderCommon builderCommon; - - @Requirement - private ExecutionEventCatapult eventCatapult; - - private ProjectExecutionListener projectExecutionListener; - - // this tricks plexus-component-metadata generate required metadata - @Requirement - private List projectExecutionListeners; - - @Requirement - private SessionScope sessionScope; - - public void setProjectExecutionListeners( final List listeners ) - { - this.projectExecutionListeners = listeners; - this.projectExecutionListener = new CompoundProjectExecutionListener( listeners ); - } - - public void buildProject( MavenSession session, ReactorContext reactorContext, MavenProject currentProject, - TaskSegment taskSegment ) - { - buildProject( session, session, reactorContext, currentProject, taskSegment ); - } - - public void buildProject( MavenSession session, MavenSession rootSession, ReactorContext reactorContext, - MavenProject currentProject, TaskSegment taskSegment ) - { - session.setCurrentProject( currentProject ); - - long buildStartTime = System.currentTimeMillis(); - - // session may be different from rootSession seeded in DefaultMaven - // explicitly seed the right session here to make sure it is used by Guice - sessionScope.enter( reactorContext.getSessionScopeMemento() ); - sessionScope.seed( MavenSession.class, session ); - try - { - - if ( reactorContext.getReactorBuildStatus().isHaltedOrBlacklisted( currentProject ) ) - { - eventCatapult.fire( ExecutionEvent.Type.ProjectSkipped, session, null ); - return; - } - - BuilderCommon.attachToThread( currentProject ); - - projectExecutionListener.beforeProjectExecution( new ProjectExecutionEvent( session, currentProject ) ); - - eventCatapult.fire( ExecutionEvent.Type.ProjectStarted, session, null ); - - MavenExecutionPlan executionPlan = - builderCommon.resolveBuildPlan( session, currentProject, taskSegment, new HashSet() ); - List mojoExecutions = executionPlan.getMojoExecutions(); - - projectExecutionListener.beforeProjectLifecycleExecution( new ProjectExecutionEvent( session, - currentProject, - mojoExecutions ) ); - mojoExecutor.execute( session, mojoExecutions, reactorContext.getProjectIndex() ); - - long buildEndTime = System.currentTimeMillis(); - - projectExecutionListener.afterProjectExecutionSuccess( new ProjectExecutionEvent( session, currentProject, - mojoExecutions ) ); - - reactorContext.getResult().addBuildSummary( new BuildSuccess( currentProject, - buildEndTime - buildStartTime ) ); - - eventCatapult.fire( ExecutionEvent.Type.ProjectSucceeded, session, null ); - } - catch ( Throwable t ) - { - builderCommon.handleBuildError( reactorContext, rootSession, session, currentProject, t, buildStartTime ); - - projectExecutionListener.afterProjectExecutionFailure( new ProjectExecutionEvent( session, currentProject, - t ) ); - - // rethrow original errors and runtime exceptions - if ( t instanceof RuntimeException ) - { - throw (RuntimeException) t; - } - if ( t instanceof Error ) - { - throw (Error) t; - } - } - finally - { - sessionScope.exit(); - - session.setCurrentProject( null ); - - Thread.currentThread().setContextClassLoader( reactorContext.getOriginalContextClassLoader() ); - } - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecyclePluginResolver.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecyclePluginResolver.java deleted file mode 100644 index c615a6f6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecyclePluginResolver.java +++ /dev/null @@ -1,95 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.PluginManagement; -import org.apache.maven.plugin.version.DefaultPluginVersionRequest; -import org.apache.maven.plugin.version.PluginVersionRequest; -import org.apache.maven.plugin.version.PluginVersionResolutionException; -import org.apache.maven.plugin.version.PluginVersionResolver; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; - -import java.util.HashMap; -import java.util.Map; - -/** - * @since 3.0 - * @author Benjamin Bentmann - * @author Kristian Rosenvold (Extract class) - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -@Component( role = LifecyclePluginResolver.class ) -public class LifecyclePluginResolver -{ - @Requirement - private PluginVersionResolver pluginVersionResolver; - - - public LifecyclePluginResolver( PluginVersionResolver pluginVersionResolver ) - { - this.pluginVersionResolver = pluginVersionResolver; - } - - public LifecyclePluginResolver() - { - } - - public void resolveMissingPluginVersions( MavenProject project, MavenSession session ) - throws PluginVersionResolutionException - { - Map versions = new HashMap( 64 ); - - for ( Plugin plugin : project.getBuildPlugins() ) - { - if ( plugin.getVersion() == null ) - { - PluginVersionRequest request = - new DefaultPluginVersionRequest( plugin, session.getRepositorySession(), - project.getRemotePluginRepositories() ); - plugin.setVersion( pluginVersionResolver.resolve( request ).getVersion() ); - } - versions.put( plugin.getKey(), plugin.getVersion() ); - } - - PluginManagement pluginManagement = project.getPluginManagement(); - if ( pluginManagement != null ) - { - for ( Plugin plugin : pluginManagement.getPlugins() ) - { - if ( plugin.getVersion() == null ) - { - plugin.setVersion( versions.get( plugin.getKey() ) ); - if ( plugin.getVersion() == null ) - { - PluginVersionRequest request = - new DefaultPluginVersionRequest( plugin, session.getRepositorySession(), - project.getRemotePluginRepositories() ); - plugin.setVersion( pluginVersionResolver.resolve( request ).getVersion() ); - } - } - } - } - } -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java deleted file mode 100644 index cee80739..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleStarter.java +++ /dev/null @@ -1,150 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; -import java.util.Map; - -import org.apache.maven.execution.ExecutionEvent; -import org.apache.maven.execution.MavenExecutionResult; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.DefaultLifecycles; -import org.apache.maven.lifecycle.MissingProjectException; -import org.apache.maven.lifecycle.NoGoalSpecifiedException; -import org.apache.maven.lifecycle.internal.builder.Builder; -import org.apache.maven.lifecycle.internal.builder.BuilderNotFoundException; -import org.apache.maven.session.scope.internal.SessionScope; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; - -/** - * Starts the build life cycle - * - * @author Jason van Zyl - * @author Benjamin Bentmann - * @author Kristian Rosenvold - */ -@Component( role = LifecycleStarter.class ) -public class LifecycleStarter -{ - @Requirement - private ExecutionEventCatapult eventCatapult; - - @Requirement - private DefaultLifecycles defaultLifeCycles; - - @Requirement - private Logger logger; - - @Requirement - private BuildListCalculator buildListCalculator; - - @Requirement - private LifecycleDebugLogger lifecycleDebugLogger; - - @Requirement - private LifecycleTaskSegmentCalculator lifecycleTaskSegmentCalculator; - - @Requirement - private Map builders; - - @Requirement - private SessionScope sessionScope; - - public void execute( MavenSession session ) - { - eventCatapult.fire( ExecutionEvent.Type.SessionStarted, session, null ); - - ReactorContext reactorContext = null; - ProjectBuildList projectBuilds = null; - MavenExecutionResult result = session.getResult(); - - try - { - if ( buildExecutionRequiresProject( session ) && projectIsNotPresent( session ) ) - { - throw new MissingProjectException( "The goal you specified requires a project to execute" - + " but there is no POM in this directory (" + session.getExecutionRootDirectory() + ")." - + " Please verify you invoked Maven from the correct directory." ); - } - - List taskSegments = lifecycleTaskSegmentCalculator.calculateTaskSegments( session ); - projectBuilds = buildListCalculator.calculateProjectBuilds( session, taskSegments ); - - if ( projectBuilds.isEmpty() ) - { - throw new NoGoalSpecifiedException( "No goals have been specified for this build." - + " You must specify a valid lifecycle phase or a goal in the format : or" - + " :[:]:." - + " Available lifecycle phases are: " + defaultLifeCycles.getLifecyclePhaseList() + "." ); - } - - ProjectIndex projectIndex = new ProjectIndex( session.getProjects() ); - - if ( logger.isDebugEnabled() ) - { - lifecycleDebugLogger.debugReactorPlan( projectBuilds ); - } - - ClassLoader oldContextClassLoader = Thread.currentThread().getContextClassLoader(); - ReactorBuildStatus reactorBuildStatus = new ReactorBuildStatus( session.getProjectDependencyGraph() ); - reactorContext = - new ReactorContext( result, projectIndex, oldContextClassLoader, reactorBuildStatus, - sessionScope.memento() ); - - String builderId = session.getRequest().getBuilderId(); - Builder builder = builders.get( builderId ); - if ( builder == null ) - { - throw new BuilderNotFoundException( String.format( "The builder requested using id = %s cannot be" - + " found", builderId ) ); - } - - int degreeOfConcurrency = session.getRequest().getDegreeOfConcurrency(); - if ( degreeOfConcurrency >= 2 ) - { - logger.info( "" ); - logger.info( String.format( "Using the %s implementation with a thread count of %d", - builder.getClass().getSimpleName(), degreeOfConcurrency ) ); - } - builder.build( session, reactorContext, projectBuilds, taskSegments, reactorBuildStatus ); - - } - catch ( Exception e ) - { - result.addException( e ); - } - finally - { - eventCatapult.fire( ExecutionEvent.Type.SessionEnded, session, null ); - } - } - - private boolean buildExecutionRequiresProject( MavenSession session ) - { - return lifecycleTaskSegmentCalculator.requiresProject( session ); - } - - private boolean projectIsNotPresent( MavenSession session ) - { - return !session.getRequest().isProjectPresent(); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleTask.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleTask.java deleted file mode 100644 index 0b5fff34..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleTask.java +++ /dev/null @@ -1,50 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * A task that is a lifecycle - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -public final class LifecycleTask -{ - - private final String lifecyclePhase; - - public LifecycleTask( String lifecyclePhase ) - { - this.lifecyclePhase = lifecyclePhase; - } - - @Override - public String toString() - { - return getLifecyclePhase(); - } - - public String getLifecyclePhase() - { - return lifecyclePhase; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleTaskSegmentCalculator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleTaskSegmentCalculator.java deleted file mode 100644 index a721355b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleTaskSegmentCalculator.java +++ /dev/null @@ -1,61 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.LifecycleNotFoundException; -import org.apache.maven.lifecycle.LifecyclePhaseNotFoundException; -import org.apache.maven.plugin.InvalidPluginDescriptorException; -import org.apache.maven.plugin.MojoNotFoundException; -import org.apache.maven.plugin.PluginDescriptorParsingException; -import org.apache.maven.plugin.PluginNotFoundException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException; -import org.apache.maven.plugin.version.PluginVersionResolutionException; - -import java.util.List; - -/** - * Calculates the task segments in the build - * - * @since 3.0 - * @author Benjamin Bentmann - * @author Jason van Zyl - * @author jdcasey - * @author Kristian Rosenvold (extracted interface) - *

- * NOTE: This interface is not part of any public api and can be changed or deleted without prior notice. - */ - -public interface LifecycleTaskSegmentCalculator -{ - List calculateTaskSegments( MavenSession session ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - PluginVersionResolutionException, LifecyclePhaseNotFoundException, LifecycleNotFoundException; - - List calculateTaskSegments( MavenSession session, List tasks ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - PluginVersionResolutionException; - - boolean requiresProject( MavenSession session ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoDescriptorCreator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoDescriptorCreator.java deleted file mode 100644 index 36c85fdd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoDescriptorCreator.java +++ /dev/null @@ -1,309 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.model.Dependency; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.BuildPluginManager; -import org.apache.maven.plugin.InvalidPluginDescriptorException; -import org.apache.maven.plugin.MojoNotFoundException; -import org.apache.maven.plugin.PluginDescriptorParsingException; -import org.apache.maven.plugin.PluginNotFoundException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.prefix.DefaultPluginPrefixRequest; -import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException; -import org.apache.maven.plugin.prefix.PluginPrefixRequest; -import org.apache.maven.plugin.prefix.PluginPrefixResolver; -import org.apache.maven.plugin.prefix.PluginPrefixResult; -import org.apache.maven.plugin.version.DefaultPluginVersionRequest; -import org.apache.maven.plugin.version.PluginVersionRequest; -import org.apache.maven.plugin.version.PluginVersionResolutionException; -import org.apache.maven.plugin.version.PluginVersionResolver; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.configuration.PlexusConfiguration; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.util.xml.Xpp3Dom; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.StringTokenizer; - -/** - * Resolves dependencies for the artifacts in context of the lifecycle build - * - * @since 3.0 - * @author Benjamin Bentmann - * @author Jason van Zyl - * @author jdcasey - * @author Kristian Rosenvold (extracted class only) - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -@Component( role = MojoDescriptorCreator.class ) -public class MojoDescriptorCreator -{ - - @Requirement - private Logger logger; - - @Requirement - private PluginVersionResolver pluginVersionResolver; - - @Requirement - private BuildPluginManager pluginManager; - - @Requirement - private PluginPrefixResolver pluginPrefixResolver; - - @Requirement - private LifecyclePluginResolver lifecyclePluginResolver; - - public MojoDescriptorCreator() - { - } - - public MojoDescriptorCreator( PluginVersionResolver pluginVersionResolver, BuildPluginManager pluginManager, - PluginPrefixResolver pluginPrefixResolver, - LifecyclePluginResolver lifecyclePluginResolver ) - { - this.pluginVersionResolver = pluginVersionResolver; - this.pluginManager = pluginManager; - this.pluginPrefixResolver = pluginPrefixResolver; - this.lifecyclePluginResolver = lifecyclePluginResolver; - } - - private Plugin findPlugin( String groupId, String artifactId, Collection plugins ) - { - for ( Plugin plugin : plugins ) - { - if ( artifactId.equals( plugin.getArtifactId() ) && groupId.equals( plugin.getGroupId() ) ) - { - return plugin; - } - } - - return null; - } - - public static Xpp3Dom convert( MojoDescriptor mojoDescriptor ) - { - Xpp3Dom dom = new Xpp3Dom( "configuration" ); - - PlexusConfiguration c = mojoDescriptor.getMojoConfiguration(); - - PlexusConfiguration[] ces = c.getChildren(); - - if ( ces != null ) - { - for ( PlexusConfiguration ce : ces ) - { - String value = ce.getValue( null ); - String defaultValue = ce.getAttribute( "default-value", null ); - if ( value != null || defaultValue != null ) - { - Xpp3Dom e = new Xpp3Dom( ce.getName() ); - e.setValue( value ); - if ( defaultValue != null ) - { - e.setAttribute( "default-value", defaultValue ); - } - dom.addChild( e ); - } - } - } - - return dom; - } - - // org.apache.maven.plugins:maven-remote-resources-plugin:1.0:process@executionId - - public MojoDescriptor getMojoDescriptor( String task, MavenSession session, MavenProject project ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - PluginVersionResolutionException - { - String goal = null; - - Plugin plugin = null; - - StringTokenizer tok = new StringTokenizer( task, ":" ); - - int numTokens = tok.countTokens(); - - if ( numTokens >= 4 ) - { - // We have everything that we need - // - // org.apache.maven.plugins:maven-remote-resources-plugin:1.0:process - // - // groupId - // artifactId - // version - // goal - // - plugin = new Plugin(); - plugin.setGroupId( tok.nextToken() ); - plugin.setArtifactId( tok.nextToken() ); - plugin.setVersion( tok.nextToken() ); - goal = tok.nextToken(); - - // This won't be valid, but it constructs something easy to read in the error message - while ( tok.hasMoreTokens() ) - { - goal += ":" + tok.nextToken(); - } - } - else if ( numTokens == 3 ) - { - // We have everything that we need except the version - // - // org.apache.maven.plugins:maven-remote-resources-plugin:???:process - // - // groupId - // artifactId - // ??? - // goal - // - plugin = new Plugin(); - plugin.setGroupId( tok.nextToken() ); - plugin.setArtifactId( tok.nextToken() ); - goal = tok.nextToken(); - } - else if ( numTokens <= 2 ) - { - // We have a prefix and goal - // - // idea:idea - // - String prefix = tok.nextToken(); - - if ( numTokens == 2 ) - { - goal = tok.nextToken(); - } - else - { - // goal was missing - pass through to MojoNotFoundException - goal = ""; - } - - // This is the case where someone has executed a single goal from the command line - // of the form: - // - // mvn remote-resources:process - // - // From the metadata stored on the server which has been created as part of a standard - // Maven plugin deployment we will find the right PluginDescriptor from the remote - // repository. - - plugin = findPluginForPrefix( prefix, session ); - } - - int executionIdx = goal.indexOf( '@' ); - if ( executionIdx > 0 ) - { - goal = goal.substring( 0, executionIdx ); - } - - injectPluginDeclarationFromProject( plugin, project ); - - // If there is no version to be found then we need to look in the repository metadata for - // this plugin and see what's specified as the latest release. - // - if ( plugin.getVersion() == null ) - { - resolvePluginVersion( plugin, session, project ); - } - - return pluginManager.getMojoDescriptor( plugin, goal, project.getRemotePluginRepositories(), - session.getRepositorySession() ); - } - - // TODO: take repo mans into account as one may be aggregating prefixes of many - // TODO: collect at the root of the repository, read the one at the root, and fetch remote if something is missing - // or the user forces the issue - - public Plugin findPluginForPrefix( String prefix, MavenSession session ) - throws NoPluginFoundForPrefixException - { - // [prefix]:[goal] - - if ( session.getCurrentProject() != null ) - { - try - { - lifecyclePluginResolver.resolveMissingPluginVersions( session.getCurrentProject(), session ); - } - catch ( PluginVersionResolutionException e ) - { - // not critical here - logger.debug( e.getMessage(), e ); - } - } - - PluginPrefixRequest prefixRequest = new DefaultPluginPrefixRequest( prefix, session ); - PluginPrefixResult prefixResult = pluginPrefixResolver.resolve( prefixRequest ); - - Plugin plugin = new Plugin(); - plugin.setGroupId( prefixResult.getGroupId() ); - plugin.setArtifactId( prefixResult.getArtifactId() ); - - return plugin; - } - - private void resolvePluginVersion( Plugin plugin, MavenSession session, MavenProject project ) - throws PluginVersionResolutionException - { - PluginVersionRequest versionRequest = - new DefaultPluginVersionRequest( plugin, session.getRepositorySession(), - project.getRemotePluginRepositories() ); - plugin.setVersion( pluginVersionResolver.resolve( versionRequest ).getVersion() ); - } - - private void injectPluginDeclarationFromProject( Plugin plugin, MavenProject project ) - { - Plugin pluginInPom = findPlugin( plugin, project.getBuildPlugins() ); - - if ( pluginInPom == null && project.getPluginManagement() != null ) - { - pluginInPom = findPlugin( plugin, project.getPluginManagement().getPlugins() ); - } - - if ( pluginInPom != null ) - { - if ( plugin.getVersion() == null ) - { - plugin.setVersion( pluginInPom.getVersion() ); - } - - plugin.setDependencies( new ArrayList( pluginInPom.getDependencies() ) ); - } - } - - private Plugin findPlugin( Plugin plugin, Collection plugins ) - { - return findPlugin( plugin.getGroupId(), plugin.getArtifactId(), plugins ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java deleted file mode 100644 index a6ba752c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java +++ /dev/null @@ -1,394 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.TreeSet; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.resolver.filter.ArtifactFilter; -import org.apache.maven.artifact.resolver.filter.CumulativeScopeArtifactFilter; -import org.apache.maven.execution.ExecutionEvent; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.LifecycleExecutionException; -import org.apache.maven.lifecycle.MissingProjectException; -import org.apache.maven.plugin.BuildPluginManager; -import org.apache.maven.plugin.MavenPluginManager; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.plugin.MojoExecutionException; -import org.apache.maven.plugin.MojoFailureException; -import org.apache.maven.plugin.PluginConfigurationException; -import org.apache.maven.plugin.PluginIncompatibleException; -import org.apache.maven.plugin.PluginManagerException; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.util.StringUtils; - -/** - * Executes an individual mojo - * - * @since 3.0 - * @author Jason van Zyl - * @author Benjamin Bentmann - * @author Kristian Rosenvold - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -@Component( role = MojoExecutor.class ) -public class MojoExecutor -{ - - @Requirement - private BuildPluginManager pluginManager; - - @Requirement - private MavenPluginManager mavenPluginManager; - - @Requirement - private LifecycleDependencyResolver lifeCycleDependencyResolver; - - @Requirement - private ExecutionEventCatapult eventCatapult; - - public MojoExecutor() - { - } - - public DependencyContext newDependencyContext( MavenSession session, List mojoExecutions ) - { - Set scopesToCollect = new TreeSet(); - Set scopesToResolve = new TreeSet(); - - collectDependencyRequirements( scopesToResolve, scopesToCollect, mojoExecutions ); - - return new DependencyContext( session.getCurrentProject(), scopesToCollect, scopesToResolve ); - } - - private void collectDependencyRequirements( Set scopesToResolve, Set scopesToCollect, - Collection mojoExecutions ) - { - for ( MojoExecution mojoExecution : mojoExecutions ) - { - MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor(); - - scopesToResolve.addAll( toScopes( mojoDescriptor.getDependencyResolutionRequired() ) ); - - scopesToCollect.addAll( toScopes( mojoDescriptor.getDependencyCollectionRequired() ) ); - } - } - - private Collection toScopes( String classpath ) - { - if ( StringUtils.isNotEmpty( classpath ) ) - { - if ( Artifact.SCOPE_COMPILE.equals( classpath ) ) - { - return Arrays.asList( Artifact.SCOPE_COMPILE, Artifact.SCOPE_SYSTEM, Artifact.SCOPE_PROVIDED ); - } - else if ( Artifact.SCOPE_RUNTIME.equals( classpath ) ) - { - return Arrays.asList( Artifact.SCOPE_COMPILE, Artifact.SCOPE_RUNTIME ); - } - else if ( Artifact.SCOPE_COMPILE_PLUS_RUNTIME.equals( classpath ) ) - { - return Arrays.asList( Artifact.SCOPE_COMPILE, Artifact.SCOPE_SYSTEM, Artifact.SCOPE_PROVIDED, - Artifact.SCOPE_RUNTIME ); - } - else if ( Artifact.SCOPE_RUNTIME_PLUS_SYSTEM.equals( classpath ) ) - { - return Arrays.asList( Artifact.SCOPE_COMPILE, Artifact.SCOPE_SYSTEM, Artifact.SCOPE_RUNTIME ); - } - else if ( Artifact.SCOPE_TEST.equals( classpath ) ) - { - return Arrays.asList( Artifact.SCOPE_COMPILE, Artifact.SCOPE_SYSTEM, Artifact.SCOPE_PROVIDED, - Artifact.SCOPE_RUNTIME, Artifact.SCOPE_TEST ); - } - } - return Collections.emptyList(); - } - - public void execute( MavenSession session, List mojoExecutions, ProjectIndex projectIndex ) - throws LifecycleExecutionException - - { - DependencyContext dependencyContext = newDependencyContext( session, mojoExecutions ); - - PhaseRecorder phaseRecorder = new PhaseRecorder( session.getCurrentProject() ); - - for ( MojoExecution mojoExecution : mojoExecutions ) - { - execute( session, mojoExecution, projectIndex, dependencyContext, phaseRecorder ); - } - } - - public void execute( MavenSession session, MojoExecution mojoExecution, ProjectIndex projectIndex, - DependencyContext dependencyContext, PhaseRecorder phaseRecorder ) - throws LifecycleExecutionException - { - execute( session, mojoExecution, projectIndex, dependencyContext ); - phaseRecorder.observeExecution( mojoExecution ); - } - - private void execute( MavenSession session, MojoExecution mojoExecution, ProjectIndex projectIndex, - DependencyContext dependencyContext ) - throws LifecycleExecutionException - { - MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor(); - - try - { - mavenPluginManager.checkRequiredMavenVersion( mojoDescriptor.getPluginDescriptor() ); - } - catch ( PluginIncompatibleException e ) - { - throw new LifecycleExecutionException( mojoExecution, session.getCurrentProject(), e ); - } - - if ( mojoDescriptor.isProjectRequired() && !session.getRequest().isProjectPresent() ) - { - Throwable cause = - new MissingProjectException( "Goal requires a project to execute" - + " but there is no POM in this directory (" + session.getExecutionRootDirectory() + ")." - + " Please verify you invoked Maven from the correct directory." ); - throw new LifecycleExecutionException( mojoExecution, null, cause ); - } - - if ( mojoDescriptor.isOnlineRequired() && session.isOffline() ) - { - if ( MojoExecution.Source.CLI.equals( mojoExecution.getSource() ) ) - { - Throwable cause = - new IllegalStateException( "Goal requires online mode for execution" - + " but Maven is currently offline." ); - throw new LifecycleExecutionException( mojoExecution, session.getCurrentProject(), cause ); - } - else - { - eventCatapult.fire( ExecutionEvent.Type.MojoSkipped, session, mojoExecution ); - - return; - } - } - - List forkedProjects = executeForkedExecutions( mojoExecution, session, projectIndex ); - - ensureDependenciesAreResolved( mojoDescriptor, session, dependencyContext ); - - eventCatapult.fire( ExecutionEvent.Type.MojoStarted, session, mojoExecution ); - - try - { - try - { - pluginManager.executeMojo( session, mojoExecution ); - } - catch ( MojoFailureException e ) - { - throw new LifecycleExecutionException( mojoExecution, session.getCurrentProject(), e ); - } - catch ( MojoExecutionException e ) - { - throw new LifecycleExecutionException( mojoExecution, session.getCurrentProject(), e ); - } - catch ( PluginConfigurationException e ) - { - throw new LifecycleExecutionException( mojoExecution, session.getCurrentProject(), e ); - } - catch ( PluginManagerException e ) - { - throw new LifecycleExecutionException( mojoExecution, session.getCurrentProject(), e ); - } - - eventCatapult.fire( ExecutionEvent.Type.MojoSucceeded, session, mojoExecution ); - } - catch ( LifecycleExecutionException e ) - { - eventCatapult.fire( ExecutionEvent.Type.MojoFailed, session, mojoExecution, e ); - - throw e; - } - finally - { - for ( MavenProject forkedProject : forkedProjects ) - { - forkedProject.setExecutionProject( null ); - } - } - } - - public void ensureDependenciesAreResolved( MojoDescriptor mojoDescriptor, MavenSession session, - DependencyContext dependencyContext ) - throws LifecycleExecutionException - - { - MavenProject project = dependencyContext.getProject(); - boolean aggregating = mojoDescriptor.isAggregator(); - - if ( dependencyContext.isResolutionRequiredForCurrentProject() ) - { - Collection scopesToCollect = dependencyContext.getScopesToCollectForCurrentProject(); - Collection scopesToResolve = dependencyContext.getScopesToResolveForCurrentProject(); - - lifeCycleDependencyResolver.resolveProjectDependencies( project, scopesToCollect, scopesToResolve, session, - aggregating, Collections.emptySet() ); - - dependencyContext.synchronizeWithProjectState(); - } - - if ( aggregating ) - { - Collection scopesToCollect = toScopes( mojoDescriptor.getDependencyCollectionRequired() ); - Collection scopesToResolve = toScopes( mojoDescriptor.getDependencyResolutionRequired() ); - - if ( dependencyContext.isResolutionRequiredForAggregatedProjects( scopesToCollect, scopesToResolve ) ) - { - for ( MavenProject aggregatedProject : session.getProjects() ) - { - if ( aggregatedProject != project ) - { - lifeCycleDependencyResolver.resolveProjectDependencies( aggregatedProject, scopesToCollect, - scopesToResolve, session, aggregating, - Collections.emptySet() ); - } - } - } - } - - ArtifactFilter artifactFilter = getArtifactFilter( mojoDescriptor ); - List projectsToResolve = - LifecycleDependencyResolver.getProjects( session.getCurrentProject(), session, - mojoDescriptor.isAggregator() ); - for ( MavenProject projectToResolve : projectsToResolve ) - { - projectToResolve.setArtifactFilter( artifactFilter ); - } - } - - private ArtifactFilter getArtifactFilter( MojoDescriptor mojoDescriptor ) - { - String scopeToResolve = mojoDescriptor.getDependencyResolutionRequired(); - String scopeToCollect = mojoDescriptor.getDependencyCollectionRequired(); - - List scopes = new ArrayList( 2 ); - if ( StringUtils.isNotEmpty( scopeToCollect ) ) - { - scopes.add( scopeToCollect ); - } - if ( StringUtils.isNotEmpty( scopeToResolve ) ) - { - scopes.add( scopeToResolve ); - } - - if ( scopes.isEmpty() ) - { - return null; - } - else - { - return new CumulativeScopeArtifactFilter( scopes ); - } - } - - public List executeForkedExecutions( MojoExecution mojoExecution, MavenSession session, - ProjectIndex projectIndex ) - throws LifecycleExecutionException - { - List forkedProjects = Collections.emptyList(); - - Map> forkedExecutions = mojoExecution.getForkedExecutions(); - - if ( !forkedExecutions.isEmpty() ) - { - eventCatapult.fire( ExecutionEvent.Type.ForkStarted, session, mojoExecution ); - - MavenProject project = session.getCurrentProject(); - - forkedProjects = new ArrayList( forkedExecutions.size() ); - - try - { - for ( Map.Entry> fork : forkedExecutions.entrySet() ) - { - String projectId = fork.getKey(); - - int index = projectIndex.getIndices().get( projectId ); - - MavenProject forkedProject = projectIndex.getProjects().get( projectId ); - - forkedProjects.add( forkedProject ); - - MavenProject executedProject = forkedProject.clone(); - - forkedProject.setExecutionProject( executedProject ); - - List mojoExecutions = fork.getValue(); - - if ( mojoExecutions.isEmpty() ) - { - continue; - } - - try - { - session.setCurrentProject( executedProject ); - session.getProjects().set( index, executedProject ); - projectIndex.getProjects().put( projectId, executedProject ); - - eventCatapult.fire( ExecutionEvent.Type.ForkedProjectStarted, session, mojoExecution ); - - execute( session, mojoExecutions, projectIndex ); - - eventCatapult.fire( ExecutionEvent.Type.ForkedProjectSucceeded, session, mojoExecution ); - } - catch ( LifecycleExecutionException e ) - { - eventCatapult.fire( ExecutionEvent.Type.ForkedProjectFailed, session, mojoExecution, e ); - - throw e; - } - finally - { - projectIndex.getProjects().put( projectId, forkedProject ); - session.getProjects().set( index, forkedProject ); - session.setCurrentProject( project ); - } - } - - eventCatapult.fire( ExecutionEvent.Type.ForkSucceeded, session, mojoExecution ); - } - catch ( LifecycleExecutionException e ) - { - eventCatapult.fire( ExecutionEvent.Type.ForkFailed, session, mojoExecution, e ); - - throw e; - } - } - - return forkedProjects; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/PhaseRecorder.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/PhaseRecorder.java deleted file mode 100644 index a09a3cb9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/PhaseRecorder.java +++ /dev/null @@ -1,78 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.project.MavenProject; - -/** - * @since 3.0 - * @author Benjamin Bentmann - * @author Kristian Rosenvold - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -public class PhaseRecorder -{ - private String lastLifecyclePhase; - - private final MavenProject project; - - public PhaseRecorder( MavenProject project ) - { - this.project = project; - } - - public void observeExecution( MojoExecution mojoExecution ) - { - String lifecyclePhase = mojoExecution.getLifecyclePhase(); - - if ( lifecyclePhase != null ) - { - if ( lastLifecyclePhase == null ) - { - lastLifecyclePhase = lifecyclePhase; - } - else if ( !lifecyclePhase.equals( lastLifecyclePhase ) ) - { - project.addLifecyclePhase( lastLifecyclePhase ); - lastLifecyclePhase = lifecyclePhase; - } - } - - if ( lastLifecyclePhase != null ) - { - project.addLifecyclePhase( lastLifecyclePhase ); - } - } - - public boolean isDifferentPhase( MojoExecution nextMojoExecution ) - { - String lifecyclePhase = nextMojoExecution.getLifecyclePhase(); - if ( lifecyclePhase == null ) - { - return lastLifecyclePhase != null; - } - return !lifecyclePhase.equals( lastLifecyclePhase ); - - } - - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectArtifactFactory.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectArtifactFactory.java deleted file mode 100644 index b4a81075..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectArtifactFactory.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Set; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.project.MavenProject; -import org.apache.maven.project.artifact.InvalidDependencyVersionException; - -/** - * Component interface responsible for creation of MavenProject#dependencyArtifacts instances. - * - * @since 3.2.4 - * @provisional This interface is part of work in progress and can be changed or removed without notice. - */ -public interface ProjectArtifactFactory -{ - Set createArtifacts( MavenProject project ) - throws InvalidDependencyVersionException; -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectBuildList.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectBuildList.java deleted file mode 100644 index 6c8fd50a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectBuildList.java +++ /dev/null @@ -1,158 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import org.apache.maven.artifact.ArtifactUtils; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.project.MavenProject; - -/** - * A list of project segments, ordered so that all ProjectSegments from first TaskSegment come before any - * subsequent TaskSegments. - * - * @since 3.0 - * @author Kristian Rosenvold - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -public class ProjectBuildList - implements Iterable -{ - private final List items; - - public ProjectBuildList( List items ) - { - this.items = Collections.unmodifiableList( items ); - } - - // TODO: Optimize; or maybe just rewrite the whole way aggregating mojos are being run. - /** - * Returns aProjectBuildList that contains only items for the specified taskSegment - * @param taskSegment the requested tasksegment - * @return a project build list for the supplied task segment - */ - public ProjectBuildList getByTaskSegment( TaskSegment taskSegment ) - { - List currentSegment = new ArrayList(); - for ( ProjectSegment projectBuild : items ) - { - if ( taskSegment == projectBuild.getTaskSegment() ) - { // NOTE: There's no notion of taskSegment equality. - currentSegment.add( projectBuild ); - } - } - return new ProjectBuildList( currentSegment ); - } - - public Map selectSegment( TaskSegment taskSegment ) - { - Map result = new HashMap(); - for ( ProjectSegment projectBuild : items ) - { - if ( taskSegment == projectBuild.getTaskSegment() ) - { // NOTE: There's no notion of taskSegment equality. - result.put( projectBuild.getProject(), projectBuild ); - } - } - return result; - } - - /** - * Finds the first ProjectSegment matching the supplied project - * @param mavenProject the requested project - * @return The projectSegment or null. - */ - public ProjectSegment findByMavenProject( MavenProject mavenProject ) - { - for ( ProjectSegment projectBuild : items ) - { - if ( mavenProject.equals( projectBuild.getProject() ) ) - { - return projectBuild; - } - } - return null; - } - - public Iterator iterator() - { - return items.iterator(); - } - - public void closeAll() - { - for ( ProjectSegment item : items ) - { - MavenSession sessionForThisModule = item.getSession(); - sessionForThisModule.setCurrentProject( null ); - } - } - - public int size() - { - return items.size(); - } - - public ProjectSegment get( int index ) - { - return items.get( index ); - } - - public Set getReactorProjectKeys() - { - Set projectKeys = new HashSet( items.size() * 2 ); - for ( ProjectSegment projectBuild : items ) - { - MavenProject project = projectBuild.getProject(); - String key = ArtifactUtils.key( project.getGroupId(), project.getArtifactId(), project.getVersion() ); - projectKeys.add( key ); - } - return projectKeys; - } - - - public boolean isEmpty() - { - return items.isEmpty(); - } - - /** - * @return a set of all the projects managed by the build - */ - public Set getProjects() - { - Set projects = new HashSet(); - - for ( ProjectSegment s : items ) - { - projects.add( s.getProject() ); - } - return projects; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectIndex.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectIndex.java deleted file mode 100644 index b1b1d186..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectIndex.java +++ /dev/null @@ -1,70 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.lifecycle.internal.builder.BuilderCommon; -import org.apache.maven.project.MavenProject; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * Provides the positional index of the project - * - * @since 3.0 - * @author Benjamin Bentmann - * @author Kristian Rosenvold (extracted class only) - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -// Todo: Kristian wonders if this class really is necessary and if it overlaps other concepts. -public final class ProjectIndex -{ - - private final Map projects; - - private final Map indices; - - public ProjectIndex( List projects ) - { - this.projects = new HashMap( projects.size() * 2 ); - this.indices = new HashMap( projects.size() * 2 ); - - for ( int i = 0; i < projects.size(); i++ ) - { - MavenProject project = projects.get( i ); - String key = BuilderCommon.getKey( project ); - - this.getProjects().put( key, project ); - this.getIndices().put( key, i ); - } - } - - public Map getProjects() - { - return projects; - } - - public Map getIndices() - { - return indices; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectSegment.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectSegment.java deleted file mode 100644 index 5ef77454..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectSegment.java +++ /dev/null @@ -1,106 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.execution.ProjectDependencyGraph; -import org.apache.maven.project.MavenProject; - -import java.util.List; - -/** - * A build context that matches a mavenproject to a given tasksegment, and the session to be used. - *

- * A note to the reader; - *

- * There are several issues/discussions regarding how "aggregator" plugins should be handled. - * Read for instance http://docs.codehaus.org/display/MAVEN/Deterministic+Lifecycle+Planning - *

- * In their current implementation they are "bolted" onto the lifecycle by separating them - * into TaskSegments. This class represents the execution context of one such task segment. - *

- * Wise voices have suggested that maybe aggregators shouldn't be bound to the ordinary - * lifecycle at all, in which case we wouldn't be needing this class at all ( and - * ProjectBuildList.getByTaskSegments). Or maybe they should be introduced in the calculation - * of the execution plan instead, which seems much nicer. - *

- * Additionally this class contains a clone of the MavenSession, which is *only* needed - * because it has as notion of a "current" project. - * - * @since 3.0 - * @author Jason van Zyl - * @author Benjamin Bentmann - * @author Kristian Rosenvold - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -public final class ProjectSegment -{ - private final MavenProject project; - - private final TaskSegment taskSegment; - - private final MavenSession session; - - private final List nonTransitiveUpstreamProjects; - - private final List transitiveUpstreamProjects; - - public ProjectSegment( MavenProject project, TaskSegment taskSegment, MavenSession copiedSession ) - { - this.project = project; - this.taskSegment = taskSegment; - this.session = copiedSession; - final ProjectDependencyGraph dependencyGraph = getSession().getProjectDependencyGraph(); - nonTransitiveUpstreamProjects = dependencyGraph.getUpstreamProjects( getProject(), false ); - transitiveUpstreamProjects = dependencyGraph.getUpstreamProjects( getProject(), true ); - } - - public MavenSession getSession() - { - return session; - } - - public MavenProject getProject() - { - return project; - } - - public TaskSegment getTaskSegment() - { - return taskSegment; - } - - public List getImmediateUpstreamProjects() - { - return nonTransitiveUpstreamProjects; - } - - public List getTransitiveUpstreamProjects() - { - return transitiveUpstreamProjects; - } - - @Override - public String toString() - { - return getProject().getId() + " -> " + getTaskSegment(); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ReactorBuildStatus.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ReactorBuildStatus.java deleted file mode 100644 index 2e2c3fd4..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ReactorBuildStatus.java +++ /dev/null @@ -1,80 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.ProjectDependencyGraph; -import org.apache.maven.lifecycle.internal.builder.BuilderCommon; -import org.apache.maven.project.MavenProject; - -import java.util.Collection; -import java.util.Collections; -import java.util.HashSet; - -/** - * Contains status information that is global to an entire reactor build. - * - * @since 3.0 - * @author Kristian Rosenvold - */ -public class ReactorBuildStatus -{ - private final ProjectDependencyGraph projectDependencyGraph; - - private final Collection blackListedProjects = Collections.synchronizedSet( new HashSet() ); - - private volatile boolean halted = false; - - public ReactorBuildStatus( ProjectDependencyGraph projectDependencyGraph ) - { - this.projectDependencyGraph = projectDependencyGraph; - } - - public boolean isBlackListed( MavenProject project ) - { - return blackListedProjects.contains( BuilderCommon.getKey( project ) ); - } - - public void blackList( MavenProject project ) - { - if ( blackListedProjects.add( BuilderCommon.getKey( project ) ) && projectDependencyGraph != null ) - { - for ( MavenProject downstreamProject : projectDependencyGraph.getDownstreamProjects( project, true ) ) - { - blackListedProjects.add( BuilderCommon.getKey( downstreamProject ) ); - } - } - } - - public void halt() - { - halted = true; - } - - public boolean isHalted() - { - return halted; - } - - public boolean isHaltedOrBlacklisted( MavenProject mavenProject ) - { - return isBlackListed( mavenProject ) || isHalted(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ReactorContext.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ReactorContext.java deleted file mode 100644 index 7df53140..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ReactorContext.java +++ /dev/null @@ -1,83 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.MavenExecutionResult; -import org.apache.maven.session.scope.internal.SessionScope; - -/** - * Context that is fixed for the entire reactor build. - * - * @since 3.0 - * @author Jason van Zyl - * @author Kristian Rosenvold - * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -public class ReactorContext -{ - private final MavenExecutionResult result; - - private final ProjectIndex projectIndex; - - private final ClassLoader originalContextClassLoader; - - private final ReactorBuildStatus reactorBuildStatus; - - private final SessionScope.Memento sessionScope; - - public ReactorContext( MavenExecutionResult result, ProjectIndex projectIndex, - ClassLoader originalContextClassLoader, ReactorBuildStatus reactorBuildStatus, - SessionScope.Memento sessionScope ) - { - this.result = result; - this.projectIndex = projectIndex; - this.originalContextClassLoader = originalContextClassLoader; - this.reactorBuildStatus = reactorBuildStatus; - this.sessionScope = sessionScope; - } - - public ReactorBuildStatus getReactorBuildStatus() - { - return reactorBuildStatus; - } - - public MavenExecutionResult getResult() - { - return result; - } - - public ProjectIndex getProjectIndex() - { - return projectIndex; - } - - public ClassLoader getOriginalContextClassLoader() - { - return originalContextClassLoader; - } - - /** - * @since 3.3.0 - */ - public SessionScope.Memento getSessionScopeMemento() - { - return sessionScope; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/TaskSegment.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/TaskSegment.java deleted file mode 100644 index 9551887c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/TaskSegment.java +++ /dev/null @@ -1,73 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -/** - * Describes the required task segment as provided on the maven command line; i.e. "clean jetty:run install" - * - * @since 3.0 - * @author Benjamin Bentmann - * @author Kristian Rosenvold (extracted class only) - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -public final class TaskSegment -{ - - // Can be both "LifeCycleTask" (clean/install) and "GoalTask" (org.mortbay.jetty:maven-jetty-plugin:6.1.19:run) - - private final List tasks; - - private final boolean aggregating; - - public TaskSegment( boolean aggregating ) - { - this.aggregating = aggregating; - tasks = new ArrayList(); - } - - public TaskSegment( boolean aggregating, Object... tasks ) - { - this.aggregating = aggregating; - this.tasks = new ArrayList( Arrays.asList( tasks ) ); - } - - @Override - public String toString() - { - return getTasks().toString(); - } - - public List getTasks() - { - return tasks; - } - - public boolean isAggregating() - { - return aggregating; - } - - // TODO: Consider throwing UnsupprtedSomething on hashCode/equals -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/Builder.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/Builder.java deleted file mode 100644 index 155abf92..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/Builder.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.apache.maven.lifecycle.internal.builder; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; -import java.util.concurrent.ExecutionException; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.internal.ProjectBuildList; -import org.apache.maven.lifecycle.internal.ReactorBuildStatus; -import org.apache.maven.lifecycle.internal.ReactorContext; -import org.apache.maven.lifecycle.internal.TaskSegment; - -/** - * A {@link Builder} encapsulates a strategy for building a set of Maven projects. The default strategy in Maven builds - * the the projects serially, but a {@link Builder} can employ any type of concurrency model to build the projects. - * - * @author jvanzyl - * @provisional - */ -public interface Builder -{ - // - // Be nice to whittle this down to Session, maybe add task segments to the session. The session really is the - // the place to store reactor related information. - // - void build( MavenSession session, ReactorContext reactorContext, ProjectBuildList projectBuilds, - List taskSegments, ReactorBuildStatus reactorBuildStatus ) - throws ExecutionException, InterruptedException; -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderCommon.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderCommon.java deleted file mode 100644 index 34fb323e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderCommon.java +++ /dev/null @@ -1,199 +0,0 @@ -package org.apache.maven.lifecycle.internal.builder; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.execution.BuildFailure; -import org.apache.maven.execution.ExecutionEvent; -import org.apache.maven.execution.MavenExecutionRequest; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.LifecycleExecutionException; -import org.apache.maven.lifecycle.LifecycleNotFoundException; -import org.apache.maven.lifecycle.LifecyclePhaseNotFoundException; -import org.apache.maven.lifecycle.MavenExecutionPlan; -import org.apache.maven.lifecycle.internal.ExecutionEventCatapult; -import org.apache.maven.lifecycle.internal.LifecycleDebugLogger; -import org.apache.maven.lifecycle.internal.LifecycleExecutionPlanCalculator; -import org.apache.maven.lifecycle.internal.ReactorContext; -import org.apache.maven.lifecycle.internal.TaskSegment; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.InvalidPluginDescriptorException; -import org.apache.maven.plugin.MojoNotFoundException; -import org.apache.maven.plugin.PluginDescriptorParsingException; -import org.apache.maven.plugin.PluginNotFoundException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException; -import org.apache.maven.plugin.version.PluginVersionResolutionException; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.classworlds.realm.ClassRealm; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; - -import java.util.Set; - -/** - * Common code that is shared by the LifecycleModuleBuilder and the LifeCycleWeaveBuilder - * - * @since 3.0 - * @author Kristian Rosenvold - * Builds one or more lifecycles for a full module - * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -@Component( role = BuilderCommon.class ) -public class BuilderCommon -{ - @Requirement - private LifecycleDebugLogger lifecycleDebugLogger; - - @Requirement - private LifecycleExecutionPlanCalculator lifeCycleExecutionPlanCalculator; - - @Requirement - private ExecutionEventCatapult eventCatapult; - - @Requirement - private Logger logger; - - - public BuilderCommon() - { - } - - public BuilderCommon( LifecycleDebugLogger lifecycleDebugLogger, - LifecycleExecutionPlanCalculator lifeCycleExecutionPlanCalculator, Logger logger ) - { - this.lifecycleDebugLogger = lifecycleDebugLogger; - this.lifeCycleExecutionPlanCalculator = lifeCycleExecutionPlanCalculator; - this.logger = logger; - } - - public MavenExecutionPlan resolveBuildPlan( MavenSession session, MavenProject project, TaskSegment taskSegment, - Set projectArtifacts ) - throws PluginNotFoundException, PluginResolutionException, LifecyclePhaseNotFoundException, - PluginDescriptorParsingException, MojoNotFoundException, InvalidPluginDescriptorException, - NoPluginFoundForPrefixException, LifecycleNotFoundException, PluginVersionResolutionException, - LifecycleExecutionException - { - MavenExecutionPlan executionPlan = - lifeCycleExecutionPlanCalculator.calculateExecutionPlan( session, project, taskSegment.getTasks() ); - - lifecycleDebugLogger.debugProjectPlan( project, executionPlan ); - - if ( session.getRequest().getDegreeOfConcurrency() > 1 ) - { - final Set unsafePlugins = executionPlan.getNonThreadSafePlugins(); - if ( !unsafePlugins.isEmpty() && logger.isDebugEnabled() ) - { - logger.warn( "*****************************************************************" ); - logger.warn( "* Your build is requesting parallel execution, but project *" ); - logger.warn( "* contains the following plugin(s) that have goals not marked *" ); - logger.warn( "* as @threadSafe to support parallel building. *" ); - logger.warn( "* While this /may/ work fine, please look for plugin updates *" ); - logger.warn( "* and/or request plugins be made thread-safe. *" ); - logger.warn( "* If reporting an issue, report it against the plugin in *" ); - logger.warn( "* question, not against maven-core *" ); - logger.warn( "*****************************************************************" ); - if ( logger.isDebugEnabled() ) - { - final Set unsafeGoals = executionPlan.getNonThreadSafeMojos(); - logger.warn( "The following goals are not marked @threadSafe in " + project.getName() + ":" ); - for ( MojoDescriptor unsafeGoal : unsafeGoals ) - { - logger.warn( unsafeGoal.getId() ); - } - } - else - { - logger.warn( "The following plugins are not marked @threadSafe in " + project.getName() + ":" ); - for ( Plugin unsafePlugin : unsafePlugins ) - { - logger.warn( unsafePlugin.getId() ); - } - logger.warn( "Enable debug to see more precisely which goals are not marked @threadSafe." ); - } - logger.warn( "*****************************************************************" ); - } - } - - return executionPlan; - } - - public void handleBuildError( final ReactorContext buildContext, final MavenSession rootSession, - final MavenSession currentSession, final MavenProject mavenProject, Throwable t, - final long buildStartTime ) - { - // record the error and mark the project as failed - long buildEndTime = System.currentTimeMillis(); - buildContext.getResult().addException( t ); - buildContext.getResult().addBuildSummary( new BuildFailure( mavenProject, buildEndTime - buildStartTime, t ) ); - - // notify listeners about "soft" project build failures only - if ( t instanceof Exception && !( t instanceof RuntimeException ) ) - { - eventCatapult.fire( ExecutionEvent.Type.ProjectFailed, currentSession, null, (Exception) t ); - } - - // reactor failure modes - if ( t instanceof RuntimeException || !( t instanceof Exception ) ) - { - // fail fast on RuntimeExceptions, Errors and "other" Throwables - // assume these are system errors and further build is meaningless - buildContext.getReactorBuildStatus().halt(); - } - else if ( MavenExecutionRequest.REACTOR_FAIL_NEVER.equals( rootSession.getReactorFailureBehavior() ) ) - { - // continue the build - } - else if ( MavenExecutionRequest.REACTOR_FAIL_AT_END.equals( rootSession.getReactorFailureBehavior() ) ) - { - // continue the build but ban all projects that depend on the failed one - buildContext.getReactorBuildStatus().blackList( mavenProject ); - } - else if ( MavenExecutionRequest.REACTOR_FAIL_FAST.equals( rootSession.getReactorFailureBehavior() ) ) - { - buildContext.getReactorBuildStatus().halt(); - } - else - { - logger.error( "invalid reactor failure behavior " + rootSession.getReactorFailureBehavior() ); - buildContext.getReactorBuildStatus().halt(); - } - } - - public static void attachToThread( MavenProject currentProject ) - { - ClassRealm projectRealm = currentProject.getClassRealm(); - if ( projectRealm != null ) - { - Thread.currentThread().setContextClassLoader( projectRealm ); - } - } - - // Todo: I'm really wondering where this method belongs; smells like it should be on MavenProject, but for some - // reason it isn't ? This localization is kind-of a code smell. - - public static String getKey( MavenProject project ) - { - return project.getGroupId() + ':' + project.getArtifactId() + ':' + project.getVersion(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderNotFoundException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderNotFoundException.java deleted file mode 100644 index 52c668f1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderNotFoundException.java +++ /dev/null @@ -1,29 +0,0 @@ -package org.apache.maven.lifecycle.internal.builder; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -public class BuilderNotFoundException - extends Exception -{ - public BuilderNotFoundException( String message ) - { - super( message ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ConcurrencyDependencyGraph.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ConcurrencyDependencyGraph.java deleted file mode 100644 index de6a5a31..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ConcurrencyDependencyGraph.java +++ /dev/null @@ -1,153 +0,0 @@ -package org.apache.maven.lifecycle.internal.builder.multithreaded; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.ProjectDependencyGraph; -import org.apache.maven.lifecycle.internal.ProjectBuildList; -import org.apache.maven.lifecycle.internal.ProjectSegment; -import org.apache.maven.project.MavenProject; - -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -/** - * Presents a view of the Dependency Graph that is suited for concurrent building. - * - * @since 3.0 - * @author Kristian Rosenvold - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -public class ConcurrencyDependencyGraph -{ - - private final ProjectBuildList projectBuilds; - - private final ProjectDependencyGraph projectDependencyGraph; - - private final HashSet finishedProjects = new HashSet(); - - public ConcurrencyDependencyGraph( ProjectBuildList projectBuilds, ProjectDependencyGraph projectDependencyGraph ) - { - this.projectDependencyGraph = projectDependencyGraph; - this.projectBuilds = projectBuilds; - } - - public int getNumberOfBuilds() - { - return projectBuilds.size(); - } - - /** - * Gets all the builds that have no reactor-dependencies - * - * @return A list of all the initial builds - */ - - public List getRootSchedulableBuilds() - { - List result = new ArrayList(); - for ( ProjectSegment projectBuild : projectBuilds ) - { - if ( projectDependencyGraph.getUpstreamProjects( projectBuild.getProject(), false ).size() == 0 ) - { - result.add( projectBuild.getProject() ); - } - } - return result; - } - - /** - * Marks the provided project as finished. Returns a list of - * - * @param mavenProject The project - * @return The list of builds that are eligible for starting now that the provided project is done - */ - public List markAsFinished( MavenProject mavenProject ) - { - finishedProjects.add( mavenProject ); - return getSchedulableNewProcesses( mavenProject ); - } - - private List getSchedulableNewProcesses( MavenProject finishedProject ) - { - List result = new ArrayList(); - // schedule dependent projects, if all of their requirements are met - for ( MavenProject dependentProject : projectDependencyGraph.getDownstreamProjects( finishedProject, false ) ) - { - final List upstreamProjects = - projectDependencyGraph.getUpstreamProjects( dependentProject, false ); - if ( finishedProjects.containsAll( upstreamProjects ) ) - { - result.add( dependentProject ); - } - } - return result; - } - - /** - * @return set of projects that have yet to be processed successfully by the build. - */ - public Set getUnfinishedProjects() - { - Set unfinished = new HashSet( projectBuilds.getProjects() ); - unfinished.remove( finishedProjects ); - return unfinished; - } - - /** - * @return set of projects that have been successfully processed by the build. - */ - protected Set getFinishedProjects() - { - return finishedProjects; - } - - protected ProjectBuildList getProjectBuilds() - { - return projectBuilds; - } - - /** - * For the given {@link MavenProject} {@code p}, return all of {@code p}'s dependencies. - * - * @param p - * @return List of prerequisite projects - */ - protected List getDependencies( MavenProject p ) - { - return projectDependencyGraph.getUpstreamProjects( p, false ); - } - - /** - * For the given {@link MavenProject} {@code p} return {@code p}'s uncompleted dependencies. - * - * @param p - * @return List of uncompleted prerequisite projects - */ - public List getActiveDependencies( MavenProject p ) - { - List activeDependencies = projectDependencyGraph.getUpstreamProjects( p, false ); - activeDependencies.removeAll( finishedProjects ); - return activeDependencies; - } -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java deleted file mode 100644 index 906e5e75..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java +++ /dev/null @@ -1,197 +0,0 @@ -package org.apache.maven.lifecycle.internal.builder.multithreaded; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; -import java.util.Map; -import java.util.concurrent.Callable; -import java.util.concurrent.CompletionService; -import java.util.concurrent.ExecutionException; -import java.util.concurrent.ExecutorCompletionService; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.Future; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.internal.BuildThreadFactory; -import org.apache.maven.lifecycle.internal.LifecycleModuleBuilder; -import org.apache.maven.lifecycle.internal.ProjectBuildList; -import org.apache.maven.lifecycle.internal.ProjectSegment; -import org.apache.maven.lifecycle.internal.ReactorBuildStatus; -import org.apache.maven.lifecycle.internal.ReactorContext; -import org.apache.maven.lifecycle.internal.TaskSegment; -import org.apache.maven.lifecycle.internal.builder.Builder; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; - -/** - * Builds the full lifecycle in weave-mode (phase by phase as opposed to project-by-project) - * - * @since 3.0 - * @author Kristian Rosenvold - * Builds one or more lifecycles for a full module - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - */ -@Component( role = Builder.class, hint = "multithreaded" ) -public class MultiThreadedBuilder - implements Builder -{ - - @Requirement - private Logger logger; - - @Requirement - private LifecycleModuleBuilder lifecycleModuleBuilder; - - - public MultiThreadedBuilder() - { - } - - @Override - public void build( MavenSession session, ReactorContext reactorContext, ProjectBuildList projectBuilds, - List taskSegments, ReactorBuildStatus reactorBuildStatus ) - throws ExecutionException, InterruptedException - { - ExecutorService executor = - Executors.newFixedThreadPool( Math.min( session.getRequest().getDegreeOfConcurrency(), - session.getProjects().size() ), new BuildThreadFactory() ); - CompletionService service = new ExecutorCompletionService( executor ); - ConcurrencyDependencyGraph analyzer = - new ConcurrencyDependencyGraph( projectBuilds, session.getProjectDependencyGraph() ); - - // Currently disabled - ThreadOutputMuxer muxer = null; // new ThreadOutputMuxer( analyzer.getProjectBuilds(), System.out ); - - for ( TaskSegment taskSegment : taskSegments ) - { - Map projectBuildMap = projectBuilds.selectSegment( taskSegment ); - try - { - multiThreadedProjectTaskSegmentBuild( analyzer, reactorContext, session, service, taskSegment, - projectBuildMap, muxer ); - if ( reactorContext.getReactorBuildStatus().isHalted() ) - { - break; - } - } - catch ( Exception e ) - { - session.getResult().addException( e ); - break; - } - - } - } - - private void multiThreadedProjectTaskSegmentBuild( ConcurrencyDependencyGraph analyzer, - ReactorContext reactorContext, MavenSession rootSession, - CompletionService service, - TaskSegment taskSegment, - Map projectBuildList, - ThreadOutputMuxer muxer ) - { - - // schedule independent projects - for ( MavenProject mavenProject : analyzer.getRootSchedulableBuilds() ) - { - ProjectSegment projectSegment = projectBuildList.get( mavenProject ); - logger.debug( "Scheduling: " + projectSegment.getProject() ); - Callable cb = - createBuildCallable( rootSession, projectSegment, reactorContext, taskSegment, muxer ); - service.submit( cb ); - } - - // for each finished project - for ( int i = 0; i < analyzer.getNumberOfBuilds(); i++ ) - { - try - { - ProjectSegment projectBuild = service.take().get(); - if ( reactorContext.getReactorBuildStatus().isHalted() ) - { - break; - } - final List newItemsThatCanBeBuilt = - analyzer.markAsFinished( projectBuild.getProject() ); - for ( MavenProject mavenProject : newItemsThatCanBeBuilt ) - { - ProjectSegment scheduledDependent = projectBuildList.get( mavenProject ); - logger.debug( "Scheduling: " + scheduledDependent ); - Callable cb = - createBuildCallable( rootSession, scheduledDependent, reactorContext, taskSegment, muxer ); - service.submit( cb ); - } - } - catch ( InterruptedException e ) - { - rootSession.getResult().addException( e ); - break; - } - catch ( ExecutionException e ) - { - // TODO MNG-5766 changes likely made this redundant - rootSession.getResult().addException( e ); - break; - } - } - - // cancel outstanding builds (if any) - this can happen if an exception is thrown in above block - - Future unprocessed; - while ( ( unprocessed = service.poll() ) != null ) - { - try - { - unprocessed.get(); - } - catch ( InterruptedException e ) - { - throw new RuntimeException( e ); - } - catch ( ExecutionException e ) - { - throw new RuntimeException( e ); - } - } - } - - private Callable createBuildCallable( final MavenSession rootSession, - final ProjectSegment projectBuild, - final ReactorContext reactorContext, - final TaskSegment taskSegment, final ThreadOutputMuxer muxer ) - { - return new Callable() - { - public ProjectSegment call() - { - // muxer.associateThreadWithProjectSegment( projectBuild ); - lifecycleModuleBuilder.buildProject( projectBuild.getSession(), rootSession, reactorContext, - projectBuild.getProject(), taskSegment ); - // muxer.setThisModuleComplete( projectBuild ); - - return projectBuild; - } - }; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ThreadOutputMuxer.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ThreadOutputMuxer.java deleted file mode 100644 index 8f1f4932..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ThreadOutputMuxer.java +++ /dev/null @@ -1,477 +0,0 @@ -package org.apache.maven.lifecycle.internal.builder.multithreaded; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.Map; -import java.util.Set; - -import org.apache.maven.lifecycle.internal.ProjectBuildList; -import org.apache.maven.lifecycle.internal.ProjectSegment; - -/** - * @since 3.0 - * @author Kristian Rosenvold - *

- * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. - * This class in particular may spontaneusly self-combust and be replaced by a plexus-compliant thread aware - * logger implementation at any time. - */ -@SuppressWarnings( { "SynchronizationOnLocalVariableOrMethodParameter" } ) -public class ThreadOutputMuxer -{ - private final Iterator projects; - - private final ThreadLocal projectBuildThreadLocal = new ThreadLocal(); - - private final Map streams = - new HashMap(); - - private final Map printStreams = new HashMap(); - - private final ByteArrayOutputStream defaultOutputStreamForUnknownData = new ByteArrayOutputStream(); - - private final PrintStream defaultPringStream = new PrintStream( defaultOutputStreamForUnknownData ); - - private final Set completedBuilds = Collections.synchronizedSet( new HashSet() ); - - private volatile ProjectSegment currentBuild; - - private final PrintStream originalSystemOUtStream; - - private final ConsolePrinter printer; - - /** - * A simple but safe solution for printing to the console. - */ - - class ConsolePrinter - implements Runnable - { - public volatile boolean running; - - private final ProjectBuildList projectBuildList; - - ConsolePrinter( ProjectBuildList projectBuildList ) - { - this.projectBuildList = projectBuildList; - } - - public void run() - { - running = true; - for ( ProjectSegment projectBuild : projectBuildList ) - { - final PrintStream projectStream = printStreams.get( projectBuild ); - ByteArrayOutputStream projectOs = streams.get( projectBuild ); - - do - { - synchronized ( projectStream ) - { - try - { - projectStream.wait( 100 ); - } - catch ( InterruptedException e ) - { - throw new RuntimeException( e ); - } - try - { - projectOs.writeTo( originalSystemOUtStream ); - } - catch ( IOException e ) - { - throw new RuntimeException( e ); - } - - projectOs.reset(); - } - } - while ( !completedBuilds.contains( projectBuild ) ); - } - running = false; - } - - /* - Wait until we are sure the print-stream thread is running. - */ - - public void waitUntilRunning( boolean expect ) - { - while ( !running == expect ) - { - try - { - Thread.sleep( 10 ); - } - catch ( InterruptedException e ) - { - throw new RuntimeException( e ); - } - } - } - } - - public ThreadOutputMuxer( ProjectBuildList segmentChunks, PrintStream originalSystemOut ) - { - projects = segmentChunks.iterator(); - for ( ProjectSegment segmentChunk : segmentChunks ) - { - final ByteArrayOutputStream value = new ByteArrayOutputStream(); - streams.put( segmentChunk, value ); - printStreams.put( segmentChunk, new PrintStream( value ) ); - } - setNext(); - this.originalSystemOUtStream = originalSystemOut; - System.setOut( new ThreadBoundPrintStream( this.originalSystemOUtStream ) ); - printer = new ConsolePrinter( segmentChunks ); - new Thread( printer ).start(); - printer.waitUntilRunning( true ); - } - - public void close() - { - printer.waitUntilRunning( false ); - System.setOut( this.originalSystemOUtStream ); - } - - private void setNext() - { - currentBuild = projects.hasNext() ? projects.next() : null; - } - - private boolean ownsRealOutputStream( ProjectSegment projectBuild ) - { - return projectBuild.equals( currentBuild ); - } - - private PrintStream getThreadBoundPrintStream() - { - ProjectSegment threadProject = projectBuildThreadLocal.get(); - if ( threadProject == null ) - { - return defaultPringStream; - } - if ( ownsRealOutputStream( threadProject ) ) - { - return originalSystemOUtStream; - } - return printStreams.get( threadProject ); - } - - public void associateThreadWithProjectSegment( ProjectSegment projectBuild ) - { - projectBuildThreadLocal.set( projectBuild ); - } - - public void setThisModuleComplete( ProjectSegment projectBuild ) - { - completedBuilds.add( projectBuild ); - PrintStream stream = printStreams.get( projectBuild ); - synchronized ( stream ) - { - stream.notifyAll(); - } - disconnectThreadFromProject(); - } - - private void disconnectThreadFromProject() - { - projectBuildThreadLocal.remove(); - } - - private class ThreadBoundPrintStream - extends PrintStream - { - - public ThreadBoundPrintStream( PrintStream systemOutStream ) - { - super( systemOutStream ); - } - - private PrintStream getOutputStreamForCurrentThread() - { - return getThreadBoundPrintStream(); - } - - @Override - public void println() - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.println(); - currentStream.notifyAll(); - } - } - - @Override - public void print( char c ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.print( c ); - currentStream.notifyAll(); - } - } - - @Override - public void println( char x ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.println( x ); - currentStream.notifyAll(); - } - } - - @Override - public void print( double d ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.print( d ); - currentStream.notifyAll(); - } - } - - @Override - public void println( double x ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.println( x ); - currentStream.notifyAll(); - } - } - - @Override - public void print( float f ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.print( f ); - currentStream.notifyAll(); - } - } - - @Override - public void println( float x ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.println( x ); - currentStream.notifyAll(); - } - } - - @Override - public void print( int i ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.print( i ); - currentStream.notifyAll(); - } - } - - @Override - public void println( int x ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.println( x ); - currentStream.notifyAll(); - } - } - - @Override - public void print( long l ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.print( l ); - currentStream.notifyAll(); - } - } - - @Override - public void println( long x ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.print( x ); - currentStream.notifyAll(); - } - } - - @Override - public void print( boolean b ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.print( b ); - currentStream.notifyAll(); - } - } - - @Override - public void println( boolean x ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.print( x ); - currentStream.notifyAll(); - } - } - - @Override - public void print( char s[] ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.print( s ); - currentStream.notifyAll(); - } - } - - @Override - public void println( char x[] ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.print( x ); - currentStream.notifyAll(); - } - } - - @Override - public void print( Object obj ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.print( obj ); - currentStream.notifyAll(); - } - } - - @Override - public void println( Object x ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.println( x ); - currentStream.notifyAll(); - } - } - - @Override - public void print( String s ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.print( s ); - currentStream.notifyAll(); - } - } - - @Override - public void println( String x ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.println( x ); - currentStream.notifyAll(); - } - } - - @Override - public void write( byte b[], int off, int len ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.write( b, off, len ); - currentStream.notifyAll(); - } - } - - @Override - public void close() - { - getOutputStreamForCurrentThread().close(); - } - - @Override - public void flush() - { - getOutputStreamForCurrentThread().flush(); - } - - @Override - public void write( int b ) - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.write( b ); - currentStream.notifyAll(); - } - } - - @Override - public void write( byte b[] ) - throws IOException - { - final PrintStream currentStream = getOutputStreamForCurrentThread(); - synchronized ( currentStream ) - { - currentStream.write( b ); - currentStream.notifyAll(); - } - } - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/singlethreaded/SingleThreadedBuilder.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/singlethreaded/SingleThreadedBuilder.java deleted file mode 100644 index 464944f1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/singlethreaded/SingleThreadedBuilder.java +++ /dev/null @@ -1,65 +0,0 @@ -package org.apache.maven.lifecycle.internal.builder.singlethreaded; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.internal.LifecycleModuleBuilder; -import org.apache.maven.lifecycle.internal.ProjectBuildList; -import org.apache.maven.lifecycle.internal.ProjectSegment; -import org.apache.maven.lifecycle.internal.ReactorBuildStatus; -import org.apache.maven.lifecycle.internal.ReactorContext; -import org.apache.maven.lifecycle.internal.TaskSegment; -import org.apache.maven.lifecycle.internal.builder.Builder; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; - -@Component( role = Builder.class, hint = "singlethreaded" ) -public class SingleThreadedBuilder - implements Builder -{ - @Requirement - private LifecycleModuleBuilder lifecycleModuleBuilder; - - public void build( MavenSession session, ReactorContext reactorContext, ProjectBuildList projectBuilds, - List taskSegments, ReactorBuildStatus reactorBuildStatus ) - { - for ( TaskSegment taskSegment : taskSegments ) - { - for ( ProjectSegment projectBuild : projectBuilds.getByTaskSegment( taskSegment ) ) - { - try - { - lifecycleModuleBuilder.buildProject( session, reactorContext, projectBuild.getProject(), - taskSegment ); - if ( reactorBuildStatus.isHalted() ) - { - break; - } - } - catch ( Exception e ) - { - break; // Why are we just ignoring this exception? Are exceptions are being used for flow control - } - } - } - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/mapping/DefaultLifecycleMapping.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/mapping/DefaultLifecycleMapping.java deleted file mode 100644 index 9947e2fc..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/mapping/DefaultLifecycleMapping.java +++ /dev/null @@ -1,111 +0,0 @@ -package org.apache.maven.lifecycle.mapping; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class DefaultLifecycleMapping - implements LifecycleMapping -{ - - private List lifecycles; - - private Map lifecycleMap; - - /** @deprecated use lifecycles instead */ - private Map phases; - - /** - * Populates the lifecycle map from the injected list of lifecycle mappings (if not already done). - */ - private void initLifecycleMap() - { - if ( lifecycleMap == null ) - { - lifecycleMap = new HashMap(); - - if ( lifecycles != null ) - { - for ( Lifecycle lifecycle : lifecycles ) - { - lifecycleMap.put( lifecycle.getId(), lifecycle ); - } - } - else - { - /* - * NOTE: This is to provide a migration path for implementors of the legacy API which did not know about - * getLifecycles(). - */ - - String[] lifecycleIds = { "default", "clean", "site" }; - - for ( String lifecycleId : lifecycleIds ) - { - Map phases = getPhases( lifecycleId ); - if ( phases != null ) - { - Lifecycle lifecycle = new Lifecycle(); - - lifecycle.setId( lifecycleId ); - lifecycle.setPhases( phases ); - - lifecycleMap.put( lifecycleId, lifecycle ); - } - } - } - } - } - - public Map getLifecycles() - { - initLifecycleMap(); - - return lifecycleMap; - } - - public List getOptionalMojos( String lifecycle ) - { - return null; - } - - public Map getPhases( String lifecycle ) - { - initLifecycleMap(); - - Lifecycle lifecycleMapping = lifecycleMap.get( lifecycle ); - - if ( lifecycleMapping != null ) - { - return lifecycleMapping.getPhases(); - } - else if ( "default".equals( lifecycle ) ) - { - return phases; - } - else - { - return null; - } - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/mapping/Lifecycle.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/mapping/Lifecycle.java deleted file mode 100644 index 6adf4f34..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/mapping/Lifecycle.java +++ /dev/null @@ -1,83 +0,0 @@ -package org.apache.maven.lifecycle.mapping; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; -import java.util.Map; - -/** - * Class Lifecycle. - */ -public class Lifecycle -{ - /** - * Field id - */ - private String id; - - /** - * Field phases - */ - private Map phases; - - /* - * NOTE: This exists merely for backward-compat with legacy-style lifecycle definitions and allows configuration - * injection to work instead of failing. - */ - @SuppressWarnings( "unused" ) - private List optionalMojos; - - /** - * Method getId - */ - public String getId() - { - return this.id; - } - - /** - * Method getPhases - */ - public Map getPhases() - { - return this.phases; - } - - /** - * Method setId - * - * @param id - */ - public void setId( String id ) - { - this.id = id; - } - - /** - * Method setPhases - * - * @param phases - */ - public void setPhases( Map phases ) - { - this.phases = phases; - } //-- void setPhases(java.util.List) - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/mapping/LifecycleMapping.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/mapping/LifecycleMapping.java deleted file mode 100644 index e656cc9f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/lifecycle/mapping/LifecycleMapping.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.apache.maven.lifecycle.mapping; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; -import java.util.Map; - -public interface LifecycleMapping -{ - - @Deprecated - String ROLE = LifecycleMapping.class.getName(); - - Map getLifecycles(); - - @Deprecated - List getOptionalMojos( String lifecycle ); - - @Deprecated - Map getPhases( String lifecycle ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/model/plugin/DefaultLifecycleBindingsInjector.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/model/plugin/DefaultLifecycleBindingsInjector.java deleted file mode 100644 index 1702aa1e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/model/plugin/DefaultLifecycleBindingsInjector.java +++ /dev/null @@ -1,171 +0,0 @@ -package org.apache.maven.model.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; - -import org.apache.maven.lifecycle.LifeCyclePluginAnalyzer; -import org.apache.maven.model.Build; -import org.apache.maven.model.Model; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.PluginContainer; -import org.apache.maven.model.PluginExecution; -import org.apache.maven.model.PluginManagement; -import org.apache.maven.model.building.ModelBuildingRequest; -import org.apache.maven.model.building.ModelProblemCollector; -import org.apache.maven.model.building.ModelProblem.Severity; -import org.apache.maven.model.building.ModelProblem.Version; -import org.apache.maven.model.building.ModelProblemCollectorRequest; -import org.apache.maven.model.merge.MavenModelMerger; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; - -/** - * Handles injection of plugin executions induced by the lifecycle bindings for a packaging. - * - * @author Benjamin Bentmann - */ -@Component( role = LifecycleBindingsInjector.class ) -public class DefaultLifecycleBindingsInjector - implements LifecycleBindingsInjector -{ - - private LifecycleBindingsMerger merger = new LifecycleBindingsMerger(); - - @Requirement - private LifeCyclePluginAnalyzer lifecycle; - - public void injectLifecycleBindings( Model model, ModelBuildingRequest request, ModelProblemCollector problems ) - { - String packaging = model.getPackaging(); - - Collection defaultPlugins = lifecycle.getPluginsBoundByDefaultToAllLifecycles( packaging ); - - if ( defaultPlugins == null ) - { - problems.add( new ModelProblemCollectorRequest( Severity.ERROR, Version.BASE ) - .setMessage( "Unknown packaging: " + packaging ) - .setLocation( model.getLocation( "packaging" ) ) ); - } - else if ( !defaultPlugins.isEmpty() ) - { - Model lifecycleModel = new Model(); - lifecycleModel.setBuild( new Build() ); - lifecycleModel.getBuild().getPlugins().addAll( defaultPlugins ); - - merger.merge( model, lifecycleModel ); - } - } - - protected static class LifecycleBindingsMerger - extends MavenModelMerger - { - - private static final String PLUGIN_MANAGEMENT = "plugin-management"; - - public void merge( Model target, Model source ) - { - if ( target.getBuild() == null ) - { - target.setBuild( new Build() ); - } - - Map context = - Collections.singletonMap( PLUGIN_MANAGEMENT, target.getBuild().getPluginManagement() ); - - mergePluginContainer_Plugins( target.getBuild(), source.getBuild(), false, context ); - } - - @Override - protected void mergePluginContainer_Plugins( PluginContainer target, PluginContainer source, - boolean sourceDominant, Map context ) - { - List src = source.getPlugins(); - if ( !src.isEmpty() ) - { - List tgt = target.getPlugins(); - - Map merged = new LinkedHashMap( ( src.size() + tgt.size() ) * 2 ); - - for ( Plugin element : tgt ) - { - Object key = getPluginKey( element ); - merged.put( key, element ); - } - - Map unmanaged = new LinkedHashMap(); - - for ( Plugin element : src ) - { - Object key = getPluginKey( element ); - Plugin existing = merged.get( key ); - if ( existing != null ) - { - mergePlugin( existing, element, sourceDominant, context ); - } - else - { - merged.put( key, element ); - unmanaged.put( key, element ); - } - } - - if ( !unmanaged.isEmpty() ) - { - PluginManagement pluginMgmt = (PluginManagement) context.get( PLUGIN_MANAGEMENT ); - if ( pluginMgmt != null ) - { - for ( Plugin managedPlugin : pluginMgmt.getPlugins() ) - { - Object key = getPluginKey( managedPlugin ); - Plugin unmanagedPlugin = unmanaged.get( key ); - if ( unmanagedPlugin != null ) - { - Plugin plugin = managedPlugin.clone(); - mergePlugin( plugin, unmanagedPlugin, sourceDominant, Collections.emptyMap() ); - merged.put( key, plugin ); - } - } - } - } - - List result = new ArrayList( merged.values() ); - - target.setPlugins( result ); - } - } - - @Override - protected void mergePluginExecution( PluginExecution target, PluginExecution source, boolean sourceDominant, - Map context ) - { - super.mergePluginExecution( target, source, sourceDominant, context ); - - target.setPriority( Math.min( target.getPriority(), source.getPriority() ) ); - } - - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/monitor/event/EventDispatcher.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/monitor/event/EventDispatcher.java deleted file mode 100644 index 492a2980..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/monitor/event/EventDispatcher.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.apache.maven.monitor.event; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * @author jdcasey - */ -@Deprecated -public interface EventDispatcher -{ - - void addEventMonitor( EventMonitor monitor ); - - void dispatchStart( String event, String target ); - - void dispatchEnd( String event, String target ); - - void dispatchError( String event, String target, Throwable cause ); - -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/monitor/event/EventMonitor.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/monitor/event/EventMonitor.java deleted file mode 100644 index 3e726746..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/monitor/event/EventMonitor.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.apache.maven.monitor.event; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * @author jdcasey - */ -@Deprecated -public interface EventMonitor -{ - - void startEvent( String eventName, String target, long timestamp ); - - void endEvent( String eventName, String target, long timestamp ); - - void errorEvent( String eventName, String target, long timestamp, Throwable cause ); - -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/BuildPluginManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/BuildPluginManager.java deleted file mode 100644 index 6c1b9cbf..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/BuildPluginManager.java +++ /dev/null @@ -1,54 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.codehaus.plexus.classworlds.realm.ClassRealm; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.repository.RemoteRepository; - -/** - * @author Jason van Zyl - */ -public interface BuildPluginManager -{ - // igorf: Way too many declared exceptions! - PluginDescriptor loadPlugin( Plugin plugin, List repositories, RepositorySystemSession session ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - InvalidPluginDescriptorException; - - // igorf: Way too many declared exceptions! - MojoDescriptor getMojoDescriptor( Plugin plugin, String goal, List repositories, - RepositorySystemSession session ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, InvalidPluginDescriptorException; - - ClassRealm getPluginRealm( MavenSession session, PluginDescriptor pluginDescriptor ) - throws PluginResolutionException, PluginManagerException; - - void executeMojo( MavenSession session, MojoExecution execution ) - throws MojoFailureException, MojoExecutionException, PluginConfigurationException, PluginManagerException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/CacheUtils.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/CacheUtils.java deleted file mode 100644 index a73e1efe..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/CacheUtils.java +++ /dev/null @@ -1,211 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Iterator; -import java.util.List; - -import org.apache.maven.model.Dependency; -import org.apache.maven.model.Exclusion; -import org.apache.maven.model.Plugin; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.repository.RemoteRepository; -import org.eclipse.aether.repository.RepositoryPolicy; -import org.eclipse.aether.repository.WorkspaceReader; -import org.eclipse.aether.repository.WorkspaceRepository; - -/** - * @author Benjamin Bentmann - */ -class CacheUtils -{ - - public static boolean eq( T s1, T s2 ) - { - return s1 != null ? s1.equals( s2 ) : s2 == null; - } - - public static int hash( Object obj ) - { - return obj != null ? obj.hashCode() : 0; - } - - public static int repositoriesHashCode( List repositories ) - { - int result = 17; - for ( RemoteRepository repository : repositories ) - { - result = 31 * result + repositoryHashCode( repository ); - } - return result; - } - - private static int repositoryHashCode( RemoteRepository repository ) - { - int result = 17; - result = 31 * result + hash( repository.getUrl() ); - return result; - } - - private static boolean repositoryEquals( RemoteRepository r1, RemoteRepository r2 ) - { - if ( r1 == r2 ) - { - return true; - } - - return eq( r1.getId(), r2.getId() ) && eq( r1.getUrl(), r2.getUrl() ) - && policyEquals( r1.getPolicy( false ), r2.getPolicy( false ) ) - && policyEquals( r1.getPolicy( true ), r2.getPolicy( true ) ); - } - - private static boolean policyEquals( RepositoryPolicy p1, RepositoryPolicy p2 ) - { - if ( p1 == p2 ) - { - return true; - } - // update policy doesn't affect contents - return p1.isEnabled() == p2.isEnabled() && eq( p1.getChecksumPolicy(), p2.getChecksumPolicy() ); - } - - public static boolean repositoriesEquals( List r1, List r2 ) - { - if ( r1.size() != r2.size() ) - { - return false; - } - - for ( Iterator it1 = r1.iterator(), it2 = r2.iterator(); it1.hasNext(); ) - { - if ( !repositoryEquals( it1.next(), it2.next() ) ) - { - return false; - } - } - - return true; - } - - public static int pluginHashCode( Plugin plugin ) - { - int hash = 17; - - hash = hash * 31 + hash( plugin.getGroupId() ); - hash = hash * 31 + hash( plugin.getArtifactId() ); - hash = hash * 31 + hash( plugin.getVersion() ); - - hash = hash * 31 + ( plugin.isExtensions() ? 1 : 0 ); - - for ( Dependency dependency : plugin.getDependencies() ) - { - hash = hash * 31 + hash( dependency.getGroupId() ); - hash = hash * 31 + hash( dependency.getArtifactId() ); - hash = hash * 31 + hash( dependency.getVersion() ); - hash = hash * 31 + hash( dependency.getType() ); - hash = hash * 31 + hash( dependency.getClassifier() ); - hash = hash * 31 + hash( dependency.getScope() ); - - for ( Exclusion exclusion : dependency.getExclusions() ) - { - hash = hash * 31 + hash( exclusion.getGroupId() ); - hash = hash * 31 + hash( exclusion.getArtifactId() ); - } - } - - return hash; - } - - public static boolean pluginEquals( Plugin a, Plugin b ) - { - return eq( a.getArtifactId(), b.getArtifactId() ) // - && eq( a.getGroupId(), b.getGroupId() ) // - && eq( a.getVersion(), b.getVersion() ) // - && a.isExtensions() == b.isExtensions() // - && dependenciesEquals( a.getDependencies(), b.getDependencies() ); - } - - private static boolean dependenciesEquals( List a, List b ) - { - if ( a.size() != b.size() ) - { - return false; - } - - Iterator aI = a.iterator(); - Iterator bI = b.iterator(); - - while ( aI.hasNext() ) - { - Dependency aD = aI.next(); - Dependency bD = bI.next(); - - boolean r = eq( aD.getGroupId(), bD.getGroupId() ) // - && eq( aD.getArtifactId(), bD.getArtifactId() ) // - && eq( aD.getVersion(), bD.getVersion() ) // - && eq( aD.getType(), bD.getType() ) // - && eq( aD.getClassifier(), bD.getClassifier() ) // - && eq( aD.getScope(), bD.getScope() ); - - r &= exclusionsEquals( aD.getExclusions(), bD.getExclusions() ); - - if ( !r ) - { - return false; - } - } - - return true; - } - - private static boolean exclusionsEquals( List a, List b ) - { - if ( a.size() != b.size() ) - { - return false; - } - - Iterator aI = a.iterator(); - Iterator bI = b.iterator(); - - while ( aI.hasNext() ) - { - Exclusion aD = aI.next(); - Exclusion bD = bI.next(); - - boolean r = eq( aD.getGroupId(), bD.getGroupId() ) // - && eq( aD.getArtifactId(), bD.getArtifactId() ); - - if ( !r ) - { - return false; - } - } - - return true; - } - - public static WorkspaceRepository getWorkspace( RepositorySystemSession session ) - { - WorkspaceReader reader = session.getWorkspaceReader(); - return ( reader != null ) ? reader.getRepository() : null; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/CompoundMojoExecutionListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/CompoundMojoExecutionListener.java deleted file mode 100644 index 9fe52833..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/CompoundMojoExecutionListener.java +++ /dev/null @@ -1,64 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collection; - -import org.apache.maven.execution.MojoExecutionEvent; -import org.apache.maven.execution.MojoExecutionListener; - -class CompoundMojoExecutionListener - implements MojoExecutionListener -{ - - private final Collection listeners; - - public CompoundMojoExecutionListener( Collection listeners ) - { - this.listeners = listeners; // NB this is live injected collection - } - - public void beforeMojoExecution( MojoExecutionEvent event ) - throws MojoExecutionException - { - for ( MojoExecutionListener listener : listeners ) - { - listener.beforeMojoExecution( event ); - } - } - - public void afterMojoExecutionSuccess( MojoExecutionEvent event ) - throws MojoExecutionException - { - for ( MojoExecutionListener listener : listeners ) - { - listener.afterMojoExecutionSuccess( event ); - } - } - - public void afterExecutionFailure( MojoExecutionEvent event ) - { - for ( MojoExecutionListener listener : listeners ) - { - listener.afterExecutionFailure( event ); - } - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/CycleDetectedInPluginGraphException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/CycleDetectedInPluginGraphException.java deleted file mode 100644 index f77461fe..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/CycleDetectedInPluginGraphException.java +++ /dev/null @@ -1,46 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.model.Plugin; -import org.codehaus.plexus.component.composition.CycleDetectedInComponentGraphException; - -/** - * Exception occurring trying to resolve a plugin. - * - * @author Brett Porter - */ -public class CycleDetectedInPluginGraphException - extends Exception -{ - private final Plugin plugin; - - public CycleDetectedInPluginGraphException( Plugin plugin, CycleDetectedInComponentGraphException e ) - { - super( "A cycle was detected in the component graph of the plugin: " + plugin.getArtifactId() ); - - this.plugin = plugin; - } - - public Plugin getPlugin() - { - return plugin; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DebugConfigurationListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DebugConfigurationListener.java deleted file mode 100644 index 57084ceb..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DebugConfigurationListener.java +++ /dev/null @@ -1,91 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.lang.reflect.Array; - -import org.codehaus.plexus.component.configurator.ConfigurationListener; -import org.codehaus.plexus.logging.Logger; - -/** - * Log at debug level the mojo configuration. - * - * @author Brett Porter - */ -@Deprecated -public class DebugConfigurationListener - implements ConfigurationListener -{ - private Logger logger; - - public DebugConfigurationListener( Logger logger ) - { - this.logger = logger; - } - - public void notifyFieldChangeUsingSetter( String fieldName, Object value, Object target ) - { - if ( logger.isDebugEnabled() ) - { - logger.debug( " (s) " + fieldName + " = " + toString( value ) ); - } - } - - public void notifyFieldChangeUsingReflection( String fieldName, Object value, Object target ) - { - if ( logger.isDebugEnabled() ) - { - logger.debug( " (f) " + fieldName + " = " + toString( value ) ); - } - } - - /** - * Creates a human-friendly string represenation of the specified object. - * - * @param obj The object to create a string representation for, may be null. - * @return The string representation, never null. - */ - private String toString( Object obj ) - { - String str; - if ( obj != null && obj.getClass().isArray() ) - { - int n = Array.getLength( obj ); - StringBuilder buf = new StringBuilder( 256 ); - buf.append( '[' ); - for ( int i = 0; i < n; i++ ) - { - if ( i > 0 ) - { - buf.append( ", " ); - } - buf.append( String.valueOf( Array.get( obj, i ) ) ); - } - buf.append( ']' ); - str = buf.toString(); - } - else - { - str = String.valueOf( obj ); - } - return str; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java deleted file mode 100644 index 8145bd58..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java +++ /dev/null @@ -1,244 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.ByteArrayOutputStream; -import java.io.PrintStream; -import java.util.List; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.execution.MojoExecutionEvent; -import org.apache.maven.execution.MojoExecutionListener; -import org.apache.maven.execution.scope.internal.MojoExecutionScope; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.classworlds.realm.ClassRealm; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.repository.RemoteRepository; - -// TODO: the antrun plugin has its own configurator, the only plugin that does. might need to think about how that works -// TODO: remove the coreArtifactFilterManager - -@Component( role = BuildPluginManager.class ) -public class DefaultBuildPluginManager - implements BuildPluginManager -{ - - @Requirement - private MavenPluginManager mavenPluginManager; - - @Requirement - private LegacySupport legacySupport; - - @Requirement - private MojoExecutionScope scope; - - private MojoExecutionListener mojoExecutionListener; - - // this tricks plexus-component-metadata generate required metadata - @Requirement( role = MojoExecutionListener.class ) - private List mojoExecutionListeners; - - public void setMojoExecutionListeners( final List listeners ) - { - this.mojoExecutionListeners = listeners; - this.mojoExecutionListener = new CompoundMojoExecutionListener( listeners ); - } - - /** - * @param plugin - * @param repositories - * @param session - * @return PluginDescriptor The component descriptor for the Maven plugin. - * @throws PluginNotFoundException The plugin could not be found in any repositories. - * @throws PluginResolutionException The plugin could be found but could not be resolved. - * @throws InvalidPluginDescriptorException - */ - public PluginDescriptor loadPlugin( Plugin plugin, List repositories, - RepositorySystemSession session ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - InvalidPluginDescriptorException - { - return mavenPluginManager.getPluginDescriptor( plugin, repositories, session ); - } - - // ---------------------------------------------------------------------- - // Mojo execution - // ---------------------------------------------------------------------- - - public void executeMojo( MavenSession session, MojoExecution mojoExecution ) - throws MojoFailureException, MojoExecutionException, PluginConfigurationException, PluginManagerException - { - MavenProject project = session.getCurrentProject(); - - MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor(); - - Mojo mojo = null; - - ClassRealm pluginRealm; - try - { - pluginRealm = getPluginRealm( session, mojoDescriptor.getPluginDescriptor() ); - } - catch ( PluginResolutionException e ) - { - throw new PluginExecutionException( mojoExecution, project, e ); - } - - ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); - Thread.currentThread().setContextClassLoader( pluginRealm ); - - MavenSession oldSession = legacySupport.getSession(); - - scope.enter(); - - try - { - scope.seed( MavenProject.class, project ); - scope.seed( MojoExecution.class, mojoExecution ); - - mojo = mavenPluginManager.getConfiguredMojo( Mojo.class, session, mojoExecution ); - - legacySupport.setSession( session ); - - // NOTE: DuplicateArtifactAttachmentException is currently unchecked, so be careful removing this try/catch! - // This is necessary to avoid creating compatibility problems for existing plugins that use - // MavenProjectHelper.attachArtifact(..). - try - { - MojoExecutionEvent mojoExecutionEvent = new MojoExecutionEvent( session, project, mojoExecution, mojo ); - - mojoExecutionListener.beforeMojoExecution( mojoExecutionEvent ); - - mojo.execute(); - - mojoExecutionListener.afterMojoExecutionSuccess( mojoExecutionEvent ); - } - catch ( ClassCastException e ) - { - // to be processed in the outer catch block - throw e; - } - catch ( RuntimeException e ) - { - throw new PluginExecutionException( mojoExecution, project, e ); - } - } - catch ( PluginContainerException e ) - { - mojoExecutionListener.afterExecutionFailure( new MojoExecutionEvent( session, project, mojoExecution, mojo, - e ) ); - - throw new PluginExecutionException( mojoExecution, project, e ); - } - catch ( NoClassDefFoundError e ) - { - mojoExecutionListener.afterExecutionFailure( new MojoExecutionEvent( session, project, mojoExecution, mojo, - e ) ); - - ByteArrayOutputStream os = new ByteArrayOutputStream( 1024 ); - PrintStream ps = new PrintStream( os ); - ps.println( "A required class was missing while executing " + mojoDescriptor.getId() + ": " - + e.getMessage() ); - pluginRealm.display( ps ); - - Exception wrapper = new PluginContainerException( mojoDescriptor, pluginRealm, os.toString(), e ); - - throw new PluginExecutionException( mojoExecution, project, wrapper ); - } - catch ( LinkageError e ) - { - mojoExecutionListener.afterExecutionFailure( new MojoExecutionEvent( session, project, mojoExecution, mojo, - e ) ); - - ByteArrayOutputStream os = new ByteArrayOutputStream( 1024 ); - PrintStream ps = new PrintStream( os ); - ps.println( "An API incompatibility was encountered while executing " + mojoDescriptor.getId() + ": " - + e.getClass().getName() + ": " + e.getMessage() ); - pluginRealm.display( ps ); - - Exception wrapper = new PluginContainerException( mojoDescriptor, pluginRealm, os.toString(), e ); - - throw new PluginExecutionException( mojoExecution, project, wrapper ); - } - catch ( ClassCastException e ) - { - mojoExecutionListener.afterExecutionFailure( new MojoExecutionEvent( session, project, mojoExecution, mojo, - e ) ); - - ByteArrayOutputStream os = new ByteArrayOutputStream( 1024 ); - PrintStream ps = new PrintStream( os ); - ps.println( "A type incompatibility occured while executing " + mojoDescriptor.getId() + ": " - + e.getMessage() ); - pluginRealm.display( ps ); - - throw new PluginExecutionException( mojoExecution, project, os.toString(), e ); - } - catch ( RuntimeException e ) - { - mojoExecutionListener.afterExecutionFailure( new MojoExecutionEvent( session, project, mojoExecution, mojo, - e ) ); - - throw e; - } - finally - { - mavenPluginManager.releaseMojo( mojo, mojoExecution ); - - scope.exit(); - - Thread.currentThread().setContextClassLoader( oldClassLoader ); - - legacySupport.setSession( oldSession ); - } - } - - /** - * TODO pluginDescriptor classRealm and artifacts are set as a side effect of this - * call, which is not nice. - * @throws PluginResolutionException - */ - public ClassRealm getPluginRealm( MavenSession session, PluginDescriptor pluginDescriptor ) - throws PluginResolutionException, PluginManagerException - { - ClassRealm pluginRealm = pluginDescriptor.getClassRealm(); - if ( pluginRealm != null ) - { - return pluginRealm; - } - - mavenPluginManager.setupPluginRealm( pluginDescriptor, session, null, null, null ); - - return pluginDescriptor.getClassRealm(); - } - - public MojoDescriptor getMojoDescriptor( Plugin plugin, String goal, List repositories, - RepositorySystemSession session ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, InvalidPluginDescriptorException - { - return mavenPluginManager.getMojoDescriptor( plugin, goal, repositories, session ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultExtensionRealmCache.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultExtensionRealmCache.java deleted file mode 100644 index c9df92c6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultExtensionRealmCache.java +++ /dev/null @@ -1,170 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.project.ExtensionDescriptor; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.classworlds.realm.ClassRealm; -import org.codehaus.plexus.classworlds.realm.NoSuchRealmException; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable; - -/** - * Default extension realm cache implementation. Assumes cached data does not change. - */ -@Component( role = ExtensionRealmCache.class ) -public class DefaultExtensionRealmCache - implements ExtensionRealmCache, Disposable -{ - - protected static class CacheKey - implements Key - { - - private final List files; - - private final List timestamps; - - private final List sizes; - - private final List ids; - - private final int hashCode; - - public CacheKey( List extensionArtifacts ) - { - this.files = new ArrayList( extensionArtifacts.size() ); - this.timestamps = new ArrayList( extensionArtifacts.size() ); - this.sizes = new ArrayList( extensionArtifacts.size() ); - this.ids = new ArrayList( extensionArtifacts.size() ); - - for ( Artifact artifact : extensionArtifacts ) - { - File file = artifact.getFile(); - files.add( file ); - timestamps.add( ( file != null ) ? Long.valueOf( file.lastModified() ) : Long.valueOf( 0 ) ); - sizes.add( ( file != null ) ? Long.valueOf( file.length() ) : Long.valueOf( 0 ) ); - ids.add( artifact.getVersion() ); - } - - this.hashCode = - 31 * files.hashCode() + 31 * ids.hashCode() + 31 * timestamps.hashCode() + 31 * sizes.hashCode(); - } - - @Override - public int hashCode() - { - return hashCode; - } - - @Override - public boolean equals( Object o ) - { - if ( o == this ) - { - return true; - } - - if ( !( o instanceof CacheKey ) ) - { - return false; - } - - CacheKey other = (CacheKey) o; - - return ids.equals( other.ids ) && files.equals( other.files ) && timestamps.equals( other.timestamps ) - && sizes.equals( other.sizes ); - } - - @Override - public String toString() - { - return files.toString(); - } - } - - protected final Map cache = new ConcurrentHashMap(); - - @Override - public Key createKey( List extensionArtifacts ) - { - return new CacheKey( extensionArtifacts ); - } - - public CacheRecord get( Key key ) - { - return cache.get( key ); - } - - public CacheRecord put( Key key, ClassRealm extensionRealm, ExtensionDescriptor extensionDescriptor, - List artifacts ) - { - if ( extensionRealm == null ) - { - throw new NullPointerException(); - } - - if ( cache.containsKey( key ) ) - { - throw new IllegalStateException( "Duplicate extension realm for extension " + key ); - } - - CacheRecord record = new CacheRecord( extensionRealm, extensionDescriptor, artifacts ); - - cache.put( key, record ); - - return record; - } - - public void flush() - { - for ( CacheRecord record : cache.values() ) - { - ClassRealm realm = record.realm; - try - { - realm.getWorld().disposeRealm( realm.getId() ); - } - catch ( NoSuchRealmException e ) - { - // ignore - } - } - cache.clear(); - } - - public void register( MavenProject project, Key key, CacheRecord record ) - { - // default cache does not track extension usage - } - - public void dispose() - { - flush(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginArtifactsCache.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginArtifactsCache.java deleted file mode 100644 index 23bda64d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginArtifactsCache.java +++ /dev/null @@ -1,218 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.model.Plugin; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.component.annotations.Component; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.graph.DependencyFilter; -import org.eclipse.aether.repository.LocalRepository; -import org.eclipse.aether.repository.RemoteRepository; -import org.eclipse.aether.repository.WorkspaceRepository; - -/** - * @author Igor Fedorenko - * @author Benjamin Bentmann - */ -@Component( role = PluginArtifactsCache.class ) -public class DefaultPluginArtifactsCache - implements PluginArtifactsCache -{ - - protected static class CacheKey - implements Key - { - - private final Plugin plugin; - - private final WorkspaceRepository workspace; - - private final LocalRepository localRepo; - - private final List repositories; - - private final DependencyFilter filter; - - private final int hashCode; - - public CacheKey( Plugin plugin, DependencyFilter extensionFilter, List repositories, - RepositorySystemSession session ) - { - this.plugin = plugin.clone(); - workspace = CacheUtils.getWorkspace( session ); - this.localRepo = session.getLocalRepository(); - this.repositories = new ArrayList( repositories.size() ); - for ( RemoteRepository repository : repositories ) - { - if ( repository.isRepositoryManager() ) - { - this.repositories.addAll( repository.getMirroredRepositories() ); - } - else - { - this.repositories.add( repository ); - } - } - this.filter = extensionFilter; - - int hash = 17; - hash = hash * 31 + CacheUtils.pluginHashCode( plugin ); - hash = hash * 31 + hash( workspace ); - hash = hash * 31 + hash( localRepo ); - hash = hash * 31 + CacheUtils.repositoriesHashCode( repositories ); - hash = hash * 31 + hash( extensionFilter ); - this.hashCode = hash; - } - - @Override - public String toString() - { - return plugin.getId(); - } - - @Override - public int hashCode() - { - return hashCode; - } - - private static int hash( Object obj ) - { - return obj != null ? obj.hashCode() : 0; - } - - @Override - public boolean equals( Object o ) - { - if ( o == this ) - { - return true; - } - - if ( !( o instanceof CacheKey ) ) - { - return false; - } - - CacheKey that = (CacheKey) o; - - return CacheUtils.pluginEquals( plugin, that.plugin ) && eq( workspace, that.workspace ) - && eq( localRepo, that.localRepo ) && CacheUtils.repositoriesEquals( repositories, that.repositories ) - && eq( filter, that.filter ); - } - - private static boolean eq( T s1, T s2 ) - { - return s1 != null ? s1.equals( s2 ) : s2 == null; - } - - } - - protected final Map cache = new ConcurrentHashMap(); - - public Key createKey( Plugin plugin, DependencyFilter extensionFilter, List repositories, - RepositorySystemSession session ) - { - return new CacheKey( plugin, extensionFilter, repositories, session ); - } - - public CacheRecord get( Key key ) - throws PluginResolutionException - { - CacheRecord cacheRecord = cache.get( key ); - - if ( cacheRecord != null && cacheRecord.exception != null ) - { - throw cacheRecord.exception; - } - - return cacheRecord; - } - - public CacheRecord put( Key key, List pluginArtifacts ) - { - if ( pluginArtifacts == null ) - { - throw new NullPointerException(); - } - - assertUniqueKey( key ); - - CacheRecord record = - new CacheRecord( Collections.unmodifiableList( new ArrayList( pluginArtifacts ) ) ); - - cache.put( key, record ); - - return record; - } - - protected void assertUniqueKey( Key key ) - { - if ( cache.containsKey( key ) ) - { - throw new IllegalStateException( "Duplicate artifact resolution result for plugin " + key ); - } - } - - public CacheRecord put( Key key, PluginResolutionException exception ) - { - if ( exception == null ) - { - throw new NullPointerException(); - } - - assertUniqueKey( key ); - - CacheRecord record = new CacheRecord( exception ); - - cache.put( key, record ); - - return record; - } - - public void flush() - { - cache.clear(); - } - - protected static int pluginHashCode( Plugin plugin ) - { - return CacheUtils.pluginHashCode( plugin ); - } - - protected static boolean pluginEquals( Plugin a, Plugin b ) - { - return CacheUtils.pluginEquals( a, b ); - } - - public void register( MavenProject project, Key cacheKey, CacheRecord record ) - { - // default cache does not track record usage - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginDescriptorCache.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginDescriptorCache.java deleted file mode 100644 index 4927726b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginDescriptorCache.java +++ /dev/null @@ -1,219 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.apache.maven.artifact.ArtifactUtils; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.repository.ComponentDescriptor; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.repository.LocalRepository; -import org.eclipse.aether.repository.RemoteRepository; -import org.eclipse.aether.repository.WorkspaceRepository; - -/** - * Caches raw plugin descriptors. A raw plugin descriptor is a descriptor that has just been extracted from the plugin - * artifact and does not contain any runtime specific data. The cache must not be used for descriptors that hold runtime - * data like the plugin realm. Warning: This is an internal utility interface that is only public for - * technical reasons, it is not part of the public API. In particular, this interface can be changed or deleted without - * prior notice. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -@Component( role = PluginDescriptorCache.class ) -public class DefaultPluginDescriptorCache - implements PluginDescriptorCache -{ - - private Map descriptors = new HashMap( 128 ); - - public void flush() - { - descriptors.clear(); - } - - public Key createKey( Plugin plugin, List repositories, RepositorySystemSession session ) - { - return new CacheKey( plugin, repositories, session ); - } - - public PluginDescriptor get( Key cacheKey ) - { - return clone( descriptors.get( cacheKey ) ); - } - - public void put( Key cacheKey, PluginDescriptor pluginDescriptor ) - { - descriptors.put( cacheKey, clone( pluginDescriptor ) ); - } - - protected static PluginDescriptor clone( PluginDescriptor original ) - { - PluginDescriptor clone = null; - - if ( original != null ) - { - clone = new PluginDescriptor(); - - clone.setGroupId( original.getGroupId() ); - clone.setArtifactId( original.getArtifactId() ); - clone.setVersion( original.getVersion() ); - clone.setGoalPrefix( original.getGoalPrefix() ); - clone.setInheritedByDefault( original.isInheritedByDefault() ); - - clone.setName( original.getName() ); - clone.setDescription( original.getDescription() ); - clone.setRequiredMavenVersion( original.getRequiredMavenVersion() ); - - clone.setPluginArtifact( ArtifactUtils.copyArtifactSafe( original.getPluginArtifact() ) ); - - clone.setComponents( clone( original.getMojos(), clone ) ); - clone.setId( original.getId() ); - clone.setIsolatedRealm( original.isIsolatedRealm() ); - clone.setSource( original.getSource() ); - - clone.setDependencies( original.getDependencies() ); - } - - return clone; - } - - private static List> clone( List mojos, PluginDescriptor pluginDescriptor ) - { - List> clones = null; - - if ( mojos != null ) - { - clones = new ArrayList>( mojos.size() ); - - for ( MojoDescriptor mojo : mojos ) - { - MojoDescriptor clone = mojo.clone(); - clone.setPluginDescriptor( pluginDescriptor ); - clones.add( clone ); - } - } - - return clones; - } - - private static final class CacheKey - implements Key - { - - private final String groupId; - - private final String artifactId; - - private final String version; - - private final WorkspaceRepository workspace; - - private final LocalRepository localRepo; - - private final List repositories; - - private final int hashCode; - - public CacheKey( Plugin plugin, List repositories, RepositorySystemSession session ) - { - groupId = plugin.getGroupId(); - artifactId = plugin.getArtifactId(); - version = plugin.getVersion(); - - workspace = CacheUtils.getWorkspace( session ); - localRepo = session.getLocalRepository(); - this.repositories = new ArrayList( repositories.size() ); - for ( RemoteRepository repository : repositories ) - { - if ( repository.isRepositoryManager() ) - { - this.repositories.addAll( repository.getMirroredRepositories() ); - } - else - { - this.repositories.add( repository ); - } - } - - int hash = 17; - hash = hash * 31 + groupId.hashCode(); - hash = hash * 31 + artifactId.hashCode(); - hash = hash * 31 + version.hashCode(); - hash = hash * 31 + hash( workspace ); - hash = hash * 31 + localRepo.hashCode(); - hash = hash * 31 + CacheUtils.repositoriesHashCode( repositories ); - this.hashCode = hash; - } - - @Override - public int hashCode() - { - return hashCode; - } - - @Override - public boolean equals( Object obj ) - { - if ( this == obj ) - { - return true; - } - - if ( !( obj instanceof CacheKey ) ) - { - return false; - } - - CacheKey that = (CacheKey) obj; - - return eq( this.artifactId, that.artifactId ) && eq( this.groupId, that.groupId ) - && eq( this.version, that.version ) && eq( this.localRepo, that.localRepo ) - && eq( this.workspace, that.workspace ) - && CacheUtils.repositoriesEquals( this.repositories, that.repositories ); - } - - @Override - public String toString() - { - return groupId + ':' + artifactId + ':' + version; - } - - private static int hash( Object obj ) - { - return obj != null ? obj.hashCode() : 0; - } - - private static boolean eq( T s1, T s2 ) - { - return s1 != null ? s1.equals( s2 ) : s2 == null; - } - - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginRealmCache.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginRealmCache.java deleted file mode 100644 index 6c8288ee..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginRealmCache.java +++ /dev/null @@ -1,219 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.model.Plugin; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.classworlds.realm.ClassRealm; -import org.codehaus.plexus.classworlds.realm.NoSuchRealmException; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.graph.DependencyFilter; -import org.eclipse.aether.repository.LocalRepository; -import org.eclipse.aether.repository.RemoteRepository; -import org.eclipse.aether.repository.WorkspaceRepository; - -/** - * Default PluginCache implementation. Assumes cached data does not change. - */ -@Component( role = PluginRealmCache.class ) -public class DefaultPluginRealmCache - implements PluginRealmCache, Disposable -{ - - protected static class CacheKey - implements Key - { - - private final Plugin plugin; - - private final WorkspaceRepository workspace; - - private final LocalRepository localRepo; - - private final List repositories; - - private final ClassLoader parentRealm; - - private final Map foreignImports; - - private final DependencyFilter filter; - - private final int hashCode; - - public CacheKey( Plugin plugin, ClassLoader parentRealm, Map foreignImports, - DependencyFilter dependencyFilter, List repositories, - RepositorySystemSession session ) - { - this.plugin = plugin.clone(); - this.workspace = CacheUtils.getWorkspace( session ); - this.localRepo = session.getLocalRepository(); - this.repositories = new ArrayList( repositories.size() ); - for ( RemoteRepository repository : repositories ) - { - if ( repository.isRepositoryManager() ) - { - this.repositories.addAll( repository.getMirroredRepositories() ); - } - else - { - this.repositories.add( repository ); - } - } - this.parentRealm = parentRealm; - this.foreignImports = - ( foreignImports != null ) ? foreignImports : Collections.emptyMap(); - this.filter = dependencyFilter; - - int hash = 17; - hash = hash * 31 + CacheUtils.pluginHashCode( plugin ); - hash = hash * 31 + hash( workspace ); - hash = hash * 31 + hash( localRepo ); - hash = hash * 31 + CacheUtils.repositoriesHashCode( repositories ); - hash = hash * 31 + hash( parentRealm ); - hash = hash * 31 + this.foreignImports.hashCode(); - hash = hash * 31 + hash( dependencyFilter ); - this.hashCode = hash; - } - - @Override - public String toString() - { - return plugin.getId(); - } - - @Override - public int hashCode() - { - return hashCode; - } - - private static int hash( Object obj ) - { - return obj != null ? obj.hashCode() : 0; - } - - @Override - public boolean equals( Object o ) - { - if ( o == this ) - { - return true; - } - - if ( !( o instanceof CacheKey ) ) - { - return false; - } - - CacheKey that = (CacheKey) o; - - return parentRealm == that.parentRealm && CacheUtils.pluginEquals( plugin, that.plugin ) - && eq( workspace, that.workspace ) && eq( localRepo, that.localRepo ) - && CacheUtils.repositoriesEquals( this.repositories, that.repositories ) && eq( filter, that.filter ) - && eq( foreignImports, that.foreignImports ); - } - - private static boolean eq( T s1, T s2 ) - { - return s1 != null ? s1.equals( s2 ) : s2 == null; - } - - } - - protected final Map cache = new ConcurrentHashMap(); - - public Key createKey( Plugin plugin, ClassLoader parentRealm, Map foreignImports, - DependencyFilter dependencyFilter, List repositories, - RepositorySystemSession session ) - { - return new CacheKey( plugin, parentRealm, foreignImports, dependencyFilter, repositories, session ); - } - - public CacheRecord get( Key key ) - { - return cache.get( key ); - } - - public CacheRecord put( Key key, ClassRealm pluginRealm, List pluginArtifacts ) - { - if ( pluginRealm == null || pluginArtifacts == null ) - { - throw new IllegalArgumentException(); - } - - if ( cache.containsKey( key ) ) - { - throw new IllegalStateException( "Duplicate plugin realm for plugin " + key ); - } - - CacheRecord record = new CacheRecord( pluginRealm, pluginArtifacts ); - - cache.put( key, record ); - - return record; - } - - public void flush() - { - for ( CacheRecord record : cache.values() ) - { - ClassRealm realm = record.realm; - try - { - realm.getWorld().disposeRealm( realm.getId() ); - } - catch ( NoSuchRealmException e ) - { - // ignore - } - } - cache.clear(); - } - - protected static int pluginHashCode( Plugin plugin ) - { - return CacheUtils.pluginHashCode( plugin ); - } - - protected static boolean pluginEquals( Plugin a, Plugin b ) - { - return CacheUtils.pluginEquals( a, b ); - } - - public void register( MavenProject project, Key key, CacheRecord record ) - { - // default cache does not track plugin usage - } - - public void dispose() - { - flush(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/ExtensionRealmCache.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/ExtensionRealmCache.java deleted file mode 100644 index d50df0e9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/ExtensionRealmCache.java +++ /dev/null @@ -1,84 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.project.ExtensionDescriptor; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.classworlds.realm.ClassRealm; - -/** - * Caches extension class realms. Warning: This is an internal utility interface that is only public - * for technical reasons, it is not part of the public API. In particular, this interface can be changed or deleted - * without prior notice. - * - * @author Igor Fedorenko - * @author Benjamin Bentmann - */ -public interface ExtensionRealmCache -{ - /** - * A cache key. - */ - interface Key - { - // marker interface for cache keys - } - - static class CacheRecord - { - - public final ClassRealm realm; - - public final ExtensionDescriptor desciptor; - - public final List artifacts; - - public CacheRecord( ClassRealm realm, ExtensionDescriptor descriptor, List artifacts ) - { - this.realm = realm; - this.desciptor = descriptor; - this.artifacts = artifacts; - } - - } - - Key createKey( List extensionArtifacts ); - - CacheRecord get( Key key ); - - CacheRecord put( Key key, ClassRealm extensionRealm, ExtensionDescriptor extensionDescriptor, - List artifacts ); - - void flush(); - - /** - * Registers the specified cache record for usage with the given project. Integrators can use the information - * collected from this method in combination with a custom cache implementation to dispose unused records from the - * cache. - * - * @param project The project that employs the plugin realm, must not be {@code null}. - * @param record The cache record being used for the project, must not be {@code null}. - */ - void register( MavenProject project, Key key, CacheRecord record ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/InvalidPluginDescriptorException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/InvalidPluginDescriptorException.java deleted file mode 100644 index 223ccd81..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/InvalidPluginDescriptorException.java +++ /dev/null @@ -1,44 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -public class InvalidPluginDescriptorException - extends Exception -{ - - public InvalidPluginDescriptorException( String message, List errors ) - { - super( toMessage( message, errors ) ); - } - - private static String toMessage( String message, List errors ) - { - StringBuilder buffer = new StringBuilder( 256 ); - buffer.append( message ); - for ( String error : errors ) - { - buffer.append( ", " ).append( error ); - } - return buffer.toString(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/InvalidPluginException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/InvalidPluginException.java deleted file mode 100644 index b89fc869..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/InvalidPluginException.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.project.ProjectBuildingException; -import org.apache.maven.project.artifact.InvalidDependencyVersionException; - -/** - * Thrown when a plugin is not internally consistent. - * - * @author Brett Porter - */ -public class InvalidPluginException - extends Exception -{ - public InvalidPluginException( String message, ProjectBuildingException e ) - { - super( message, e ); - } - - public InvalidPluginException( String message, InvalidDependencyVersionException e ) - { - super( message, e ); - } - - public InvalidPluginException( String message ) - { - super( message ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/LegacySupport.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/LegacySupport.java deleted file mode 100644 index b246ed18..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/LegacySupport.java +++ /dev/null @@ -1,59 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.MavenSession; -import org.eclipse.aether.RepositorySystemSession; - -/** - * Helps to provide backward-compatibility with plugins that use legacy components. Warning: This is an - * internal utility interface that is only public for technical reasons, it is not part of the public API. In - * particular, this interface can be changed or deleted without prior notice. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -public interface LegacySupport -{ - - /** - * Sets the currently active session. Some legacy components are basically stateful and their API is missing - * parameters that would be required to delegate to a stateless component. Saving the session (in a thread-local - * variable) is our best effort to record any state that is required to enable proper delegation. - * - * @param session The currently active session, may be {@code null}. - */ - void setSession( MavenSession session ); - - /** - * Gets the currently active session. - * - * @return The currently active session or {@code null} if none. - */ - MavenSession getSession(); - - /** - * Gets the currently active repository session. - * - * @return The currently active repository session or {@code null} if none. - */ - RepositorySystemSession getRepositorySession(); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/MavenPluginManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/MavenPluginManager.java deleted file mode 100644 index b228a1b4..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/MavenPluginManager.java +++ /dev/null @@ -1,128 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.apache.maven.project.MavenProject; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.graph.DependencyFilter; -import org.eclipse.aether.repository.RemoteRepository; - -/** - * Provides basic services to manage Maven plugins and their mojos. This component is kept general in its design such - * that the plugins/mojos can be used in arbitrary contexts. In particular, the mojos can be used for ordinary build - * plugins as well as special purpose plugins like reports. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -public interface MavenPluginManager -{ - - /** - * Retrieves the descriptor for the specified plugin from its main artifact. - * - * @param plugin The plugin whose descriptor should be retrieved, must not be {@code null}. - * @param repositories The plugin repositories to use for resolving the plugin's main artifact, must not be {@code - * null}. - * @param session The repository session to use for resolving the plugin's main artifact, must not be {@code null}. - * @return The plugin descriptor, never {@code null}. - */ - PluginDescriptor getPluginDescriptor( Plugin plugin, List repositories, - RepositorySystemSession session ) - throws PluginResolutionException, PluginDescriptorParsingException, InvalidPluginDescriptorException; - - /** - * Retrieves the descriptor for the specified plugin goal from the plugin's main artifact. - * - * @param plugin The plugin whose mojo descriptor should be retrieved, must not be {@code null}. - * @param goal The simple name of the mojo whose descriptor should be retrieved, must not be {@code null}. - * @param repositories The plugin repositories to use for resolving the plugin's main artifact, must not be {@code - * null}. - * @param session The repository session to use for resolving the plugin's main artifact, must not be {@code null}. - * @return The mojo descriptor, never {@code null}. - */ - MojoDescriptor getMojoDescriptor( Plugin plugin, String goal, List repositories, - RepositorySystemSession session ) - throws MojoNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - InvalidPluginDescriptorException; - - /** - * Verifies the specified plugin is compatible with the current Maven runtime. - * - * @param pluginDescriptor The descriptor of the plugin to check, must not be {@code null}. - */ - void checkRequiredMavenVersion( PluginDescriptor pluginDescriptor ) - throws PluginIncompatibleException; - - /** - * Sets up the class realm for the specified plugin. Both the class realm and the plugin artifacts that constitute - * it will be stored in the plugin descriptor. - * - * @param pluginDescriptor The plugin descriptor in which to save the class realm and the plugin artifacts, must not - * be {@code null}. - * @param session The build session from which to pick the current project and repository settings, must not be - * {@code null}. - * @param parent The parent class realm for the plugin, may be {@code null} to use the Maven core realm. - * @param imports The packages/types to import from the parent realm, may be {@code null}. - * @param filter The filter used to exclude certain plugin dependencies, may be {@code null}. - */ - void setupPluginRealm( PluginDescriptor pluginDescriptor, MavenSession session, ClassLoader parent, - List imports, DependencyFilter filter ) - throws PluginResolutionException, PluginContainerException; - - /** - * Sets up class realm for the specified build extensions plugin. - * - * @since 3.3.0 - */ - ExtensionRealmCache.CacheRecord setupExtensionsRealm( MavenProject project, Plugin plugin, - RepositorySystemSession session ) - throws PluginManagerException; - - /** - * Looks up the mojo for the specified mojo execution and populates its parameters from the configuration given by - * the mojo execution. The mojo/plugin descriptor associated with the mojo execution provides the class realm to - * lookup the mojo from. Warning: The returned mojo instance must be released via - * {@link #releaseMojo(Object, MojoExecution)} when the mojo is no longer needed to free any resources allocated for - * it. - * - * @param mojoInterface The component role of the mojo, must not be {@code null}. - * @param session The build session in whose context the mojo will be used, must not be {@code null}. - * @param mojoExecution The mojo execution to retrieve the mojo for, must not be {@code null}. - * @return The ready-to-execute mojo, never {@code null}. - */ - T getConfiguredMojo( Class mojoInterface, MavenSession session, MojoExecution mojoExecution ) - throws PluginConfigurationException, PluginContainerException; - - /** - * Releases the specified mojo back to the container. - * - * @param mojo The mojo to release, may be {@code null}. - * @param mojoExecution The mojo execution the mojo was originally retrieved for, must not be {@code null}. - */ - void releaseMojo( Object mojo, MojoExecution mojoExecution ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/MavenPluginValidator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/MavenPluginValidator.java deleted file mode 100644 index 2eb2738b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/MavenPluginValidator.java +++ /dev/null @@ -1,78 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.plugin.descriptor.PluginDescriptor; - -public class MavenPluginValidator -{ - private final Artifact pluginArtifact; - - private List errors = new ArrayList(); - - private boolean firstDescriptor = true; - - public MavenPluginValidator( Artifact pluginArtifact ) - { - this.pluginArtifact = pluginArtifact; - } - - public void validate( PluginDescriptor pluginDescriptor ) - { - /* - * NOTE: For plugins that depend on other plugin artifacts the plugin realm contains more than one plugin - * descriptor. However, only the first descriptor is of interest. - */ - if ( !firstDescriptor ) - { - return; - } - firstDescriptor = false; - - if ( !pluginArtifact.getGroupId().equals( pluginDescriptor.getGroupId() ) ) - { - errors.add( "Plugin's descriptor contains the wrong group ID: " + pluginDescriptor.getGroupId() ); - } - - if ( !pluginArtifact.getArtifactId().equals( pluginDescriptor.getArtifactId() ) ) - { - errors.add( "Plugin's descriptor contains the wrong artifact ID: " + pluginDescriptor.getArtifactId() ); - } - - if ( !pluginArtifact.getBaseVersion().equals( pluginDescriptor.getVersion() ) ) - { - errors.add( "Plugin's descriptor contains the wrong version: " + pluginDescriptor.getVersion() ); - } - } - - public boolean hasErrors() - { - return !errors.isEmpty(); - } - - public List getErrors() - { - return errors; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/MojoExecution.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/MojoExecution.java deleted file mode 100644 index a417219e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/MojoExecution.java +++ /dev/null @@ -1,237 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; - -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.codehaus.plexus.util.xml.Xpp3Dom; - -public class MojoExecution -{ - - private Plugin plugin; - - private String goal; - - private String executionId; - - private MojoDescriptor mojoDescriptor; - - private Xpp3Dom configuration; - - /** - * Describes the source of an execution. - */ - public enum Source - { - - /** - * An execution that originates from the direct invocation of a goal from the CLI. - */ - CLI, - - /** - * An execution that originates from a goal bound to a lifecycle phase. - */ - LIFECYCLE, - } - - private Source source = Source.LIFECYCLE; - - /** - * The phase may or may not have been bound to a phase but once the plan has been calculated we know what phase - * this mojo execution is going to run in. - */ - private String lifecyclePhase; - - /** - * The executions to fork before this execution, indexed by the groupId:artifactId:version of the project on which - * the forked execution are to be run and in reactor build order. - */ - private Map> forkedExecutions = new LinkedHashMap>(); - - public MojoExecution( Plugin plugin, String goal, String executionId ) - { - this.plugin = plugin; - this.goal = goal; - this.executionId = executionId; - } - - public MojoExecution( MojoDescriptor mojoDescriptor ) - { - this.mojoDescriptor = mojoDescriptor; - this.executionId = null; - this.configuration = null; - } - - public MojoExecution( MojoDescriptor mojoDescriptor, String executionId, Source source ) - { - this.mojoDescriptor = mojoDescriptor; - this.executionId = executionId; - this.configuration = null; - this.source = source; - } - - public MojoExecution( MojoDescriptor mojoDescriptor, String executionId ) - { - this.mojoDescriptor = mojoDescriptor; - this.executionId = executionId; - this.configuration = null; - } - - public MojoExecution( MojoDescriptor mojoDescriptor, Xpp3Dom configuration ) - { - this.mojoDescriptor = mojoDescriptor; - this.configuration = configuration; - this.executionId = null; - } - - /** - * Gets the source of this execution. - * - * @return The source of this execution or {@code null} if unknown. - */ - public Source getSource() - { - return source; - } - - public String getExecutionId() - { - return executionId; - } - - public Plugin getPlugin() - { - if ( mojoDescriptor != null ) - { - return mojoDescriptor.getPluginDescriptor().getPlugin(); - } - - return plugin; - } - - public MojoDescriptor getMojoDescriptor() - { - return mojoDescriptor; - } - - public Xpp3Dom getConfiguration() - { - return configuration; - } - - public void setConfiguration( Xpp3Dom configuration ) - { - this.configuration = configuration; - } - - public String identify() - { - StringBuilder sb = new StringBuilder( 256 ); - - sb.append( executionId ); - sb.append( configuration.toString() ); - - return sb.toString(); - } - - public String getLifecyclePhase() - { - return lifecyclePhase; - } - - public void setLifecyclePhase( String lifecyclePhase ) - { - this.lifecyclePhase = lifecyclePhase; - } - - @Override - public String toString() - { - StringBuilder buffer = new StringBuilder( 128 ); - if ( mojoDescriptor != null ) - { - buffer.append( mojoDescriptor.getId() ); - } - buffer.append( " {execution: " ).append( executionId ).append( "}" ); - return buffer.toString(); - } - - public String getGroupId() - { - if ( mojoDescriptor != null ) - { - return mojoDescriptor.getPluginDescriptor().getGroupId(); - } - - return plugin.getGroupId(); - } - - public String getArtifactId() - { - if ( mojoDescriptor != null ) - { - return mojoDescriptor.getPluginDescriptor().getArtifactId(); - } - - return plugin.getArtifactId(); - } - - public String getVersion() - { - if ( mojoDescriptor != null ) - { - return mojoDescriptor.getPluginDescriptor().getVersion(); - } - - return plugin.getVersion(); - } - - public String getGoal() - { - if ( mojoDescriptor != null ) - { - return mojoDescriptor.getGoal(); - } - - return goal; - } - - public void setMojoDescriptor( MojoDescriptor mojoDescriptor ) - { - this.mojoDescriptor = mojoDescriptor; - } - - public Map> getForkedExecutions() - { - return forkedExecutions; - } - - public void setForkedExecutions( String projectKey, List forkedExecutions ) - { - this.forkedExecutions.put( projectKey, forkedExecutions ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginArtifactsCache.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginArtifactsCache.java deleted file mode 100644 index 17537a29..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginArtifactsCache.java +++ /dev/null @@ -1,91 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.model.Plugin; -import org.apache.maven.project.MavenProject; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.graph.DependencyFilter; -import org.eclipse.aether.repository.RemoteRepository; - -/** - * Caches plugin artifacts. Warning: This is an internal utility interface that is only public for - * technical reasons, it is not part of the public API. In particular, this interface can be changed or deleted without - * prior notice. - * - * @author Igor Fedorenko - * @author Benjamin Bentmann - */ -public interface PluginArtifactsCache -{ - - /** - * A cache key. - */ - interface Key - { - // marker interface for cache keys - } - - static class CacheRecord - { - - public final List artifacts; - - public final PluginResolutionException exception; - - public CacheRecord( List artifacts ) - { - this.artifacts = artifacts; - this.exception = null; - } - - public CacheRecord( PluginResolutionException exception ) - { - this.artifacts = null; - this.exception = exception; - } - } - - Key createKey( Plugin plugin, DependencyFilter extensionFilter, List repositories, - RepositorySystemSession session ); - - CacheRecord get( Key key ) throws PluginResolutionException; - - CacheRecord put( Key key, List pluginArtifacts ); - - CacheRecord put( Key key, PluginResolutionException e ); - - void flush(); - - /** - * Registers the specified cache record for usage with the given project. Integrators can use the information - * collected from this method in combination with a custom cache implementation to dispose unused records from the - * cache. - * - * @param project The project that employs the plugin realm, must not be {@code null}. - * @param record The cache record being used for the project, must not be {@code null}. - */ - void register( MavenProject project, Key cacheKey, CacheRecord record ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginConfigurationException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginConfigurationException.java deleted file mode 100644 index f4dcffcd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginConfigurationException.java +++ /dev/null @@ -1,74 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.codehaus.plexus.component.configurator.ComponentConfigurationException; -import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException; -import org.codehaus.plexus.component.repository.exception.ComponentLookupException; - -/** - * @author Jason van Zyl - */ -public class PluginConfigurationException - extends Exception -{ - private PluginDescriptor pluginDescriptor; - - private String originalMessage; - - public PluginConfigurationException( PluginDescriptor pluginDescriptor, String originalMessage ) - { - super( originalMessage ); - this.pluginDescriptor = pluginDescriptor; - this.originalMessage = originalMessage; - } - - public PluginConfigurationException( PluginDescriptor pluginDescriptor, String originalMessage, Throwable cause ) - { - super( originalMessage, cause ); - this.pluginDescriptor = pluginDescriptor; - this.originalMessage = originalMessage; - } - - public PluginConfigurationException( PluginDescriptor pluginDescriptor, String originalMessage, - ExpressionEvaluationException cause ) - { - super( originalMessage, cause ); - this.pluginDescriptor = pluginDescriptor; - this.originalMessage = originalMessage; - } - - public PluginConfigurationException( PluginDescriptor pluginDescriptor, String originalMessage, - ComponentConfigurationException cause ) - { - super( originalMessage, cause ); - this.pluginDescriptor = pluginDescriptor; - this.originalMessage = originalMessage; - } - - public PluginConfigurationException( PluginDescriptor pluginDescriptor, String originalMessage, - ComponentLookupException cause ) - { - super( originalMessage, cause ); - this.pluginDescriptor = pluginDescriptor; - this.originalMessage = originalMessage; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginContainerException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginContainerException.java deleted file mode 100644 index d35ac6c3..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginContainerException.java +++ /dev/null @@ -1,88 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.codehaus.plexus.classworlds.realm.ClassRealm; -import org.codehaus.plexus.component.repository.exception.ComponentLookupException; -import org.codehaus.plexus.component.repository.exception.ComponentRepositoryException; -import org.codehaus.plexus.configuration.PlexusConfigurationException; - -/** - * Exception which occurs to indicate that the plugin cannot be initialized due - * to some deeper problem with Plexus. Context information includes the groupId, - * artifactId, and version for the plugin; at times, the goal name for which - * execution failed; a message detailing the problem; the ClassRealm used to - * lookup the plugin; and the Plexus exception that caused this error. - * - * @author jdcasey - * - */ -public class PluginContainerException - extends PluginManagerException -{ - - private ClassRealm pluginRealm; - - public PluginContainerException( MojoDescriptor mojoDescriptor, ClassRealm pluginRealm, String message, - Throwable e ) - { - super( mojoDescriptor, message, e ); - - this.pluginRealm = pluginRealm; - } - - public PluginContainerException( MojoDescriptor mojoDescriptor, ClassRealm pluginRealm, String message, - ComponentLookupException e ) - { - super( mojoDescriptor, message, e ); - - this.pluginRealm = pluginRealm; - } - - public PluginContainerException( Plugin plugin, ClassRealm pluginRealm, String message, Throwable e ) - { - super( plugin, message, e ); - - this.pluginRealm = pluginRealm; - } - - public PluginContainerException( Plugin plugin, ClassRealm pluginRealm, String message, - PlexusConfigurationException e ) - { - super( plugin, message, e ); - - this.pluginRealm = pluginRealm; - } - - public PluginContainerException( Plugin plugin, ClassRealm pluginRealm, String message, - ComponentRepositoryException e ) - { - super( plugin, message, e ); - - this.pluginRealm = pluginRealm; - } - - public ClassRealm getPluginRealm() - { - return pluginRealm; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginDescriptorCache.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginDescriptorCache.java deleted file mode 100644 index 08b4f1bc..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginDescriptorCache.java +++ /dev/null @@ -1,58 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.repository.RemoteRepository; - -/** - * Caches raw plugin descriptors. A raw plugin descriptor is a descriptor that has just been extracted from the plugin - * artifact and does not contain any runtime specific data. The cache must not be used for descriptors that hold runtime - * data like the plugin realm. Warning: This is an internal utility interface that is only public for - * technical reasons, it is not part of the public API. In particular, this interface can be changed or deleted without - * prior notice. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -public interface PluginDescriptorCache -{ - - /** - * A cache key. - */ - interface Key - { - // marker interface for cache keys - } - - Key createKey( Plugin plugin, List repositories, RepositorySystemSession session ); - - void put( Key key, PluginDescriptor pluginDescriptor ); - - PluginDescriptor get( Key key ); - - void flush(); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginDescriptorParsingException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginDescriptorParsingException.java deleted file mode 100644 index 7d57b363..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginDescriptorParsingException.java +++ /dev/null @@ -1,58 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.model.Plugin; - -/** - * @author Jason van Zyl - */ -public class PluginDescriptorParsingException - extends Exception -{ - - public PluginDescriptorParsingException( Plugin plugin, String descriptorLocation, Throwable e ) - { - super( createMessage( plugin, descriptorLocation, e ), e ); - } - - private static String createMessage( Plugin plugin, String descriptorLocation, Throwable e ) - { - String message = "Failed to parse plugin descriptor"; - - if ( plugin != null ) - { - message += " for " + plugin.getId(); - } - - if ( descriptorLocation != null ) - { - message += " (" + descriptorLocation + ")"; - } - - if ( e != null ) - { - message += ": " + e.getMessage(); - } - - return message; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginExecutionException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginExecutionException.java deleted file mode 100644 index 602d2cb4..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginExecutionException.java +++ /dev/null @@ -1,90 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.project.DuplicateArtifactAttachmentException; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.util.StringUtils; - -public class PluginExecutionException - extends PluginManagerException -{ - - private final MojoExecution mojoExecution; - - public PluginExecutionException( MojoExecution mojoExecution, MavenProject project, String message ) - { - super( mojoExecution.getMojoDescriptor(), project, message ); - this.mojoExecution = mojoExecution; - } - - public PluginExecutionException( MojoExecution mojoExecution, MavenProject project, String message, - Throwable cause ) - { - super( mojoExecution.getMojoDescriptor(), project, message, cause ); - this.mojoExecution = mojoExecution; - } - - public PluginExecutionException( MojoExecution mojoExecution, MavenProject project, Exception cause ) - { - super( mojoExecution.getMojoDescriptor(), project, constructMessage( mojoExecution, cause ), cause ); - this.mojoExecution = mojoExecution; - } - - public PluginExecutionException( MojoExecution mojoExecution, MavenProject project, - DuplicateArtifactAttachmentException cause ) - { - super( mojoExecution.getMojoDescriptor(), project, constructMessage( mojoExecution, cause ), cause ); - this.mojoExecution = mojoExecution; - } - - public MojoExecution getMojoExecution() - { - return mojoExecution; - } - - private static String constructMessage( MojoExecution mojoExecution, Throwable cause ) - { - String message; - - if ( mojoExecution != null ) - { - message = - "Execution " + mojoExecution.getExecutionId() + " of goal " + mojoExecution.getMojoDescriptor().getId() - + " failed"; - } - else - { - message = "Mojo execution failed"; - } - - if ( cause != null && StringUtils.isNotEmpty( cause.getMessage() ) ) - { - message += ": " + cause.getMessage(); - } - else - { - message += "."; - } - - return message; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginIncompatibleException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginIncompatibleException.java deleted file mode 100644 index f7b53ebd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginIncompatibleException.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.model.Plugin; - -/** - * Signals a plugin which is not compatible with the current Maven runtime. - */ -public class PluginIncompatibleException - extends PluginManagerException -{ - - public PluginIncompatibleException( Plugin plugin, String message ) - { - super( plugin, message, (Throwable) null ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginLoaderException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginLoaderException.java deleted file mode 100644 index 161e1c4e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginLoaderException.java +++ /dev/null @@ -1,124 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.resolver.ArtifactNotFoundException; -import org.apache.maven.artifact.resolver.ArtifactResolutionException; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.ReportPlugin; -import org.apache.maven.plugin.version.PluginVersionNotFoundException; -import org.apache.maven.plugin.version.PluginVersionResolutionException; - -/** - * Signifies a failure to load a plugin. This is used to abstract the specific errors which may be - * encountered at lower levels, and provide a dependable interface to the plugin-loading framework. - * - * @author jdcasey - * - */ -public class PluginLoaderException - extends Exception -{ - - private String pluginKey; - - public PluginLoaderException( Plugin plugin, String message, ArtifactResolutionException cause ) - { - super( message, cause ); - pluginKey = plugin.getKey(); - } - - public PluginLoaderException( Plugin plugin, String message, ArtifactNotFoundException cause ) - { - super( message, cause ); - pluginKey = plugin.getKey(); - } - - public PluginLoaderException( Plugin plugin, String message, PluginNotFoundException cause ) - { - super( message, cause ); - pluginKey = plugin.getKey(); - } - - public PluginLoaderException( Plugin plugin, String message, PluginVersionResolutionException cause ) - { - super( message, cause ); - pluginKey = plugin.getKey(); - } - - public PluginLoaderException( Plugin plugin, String message, InvalidVersionSpecificationException cause ) - { - super( message, cause ); - pluginKey = plugin.getKey(); - } - - public PluginLoaderException( Plugin plugin, String message, InvalidPluginException cause ) - { - super( message, cause ); - pluginKey = plugin.getKey(); - } - - public PluginLoaderException( Plugin plugin, String message, PluginManagerException cause ) - { - super( message, cause ); - pluginKey = plugin.getKey(); - } - - public PluginLoaderException( Plugin plugin, String message, PluginVersionNotFoundException cause ) - { - super( message, cause ); - pluginKey = plugin.getKey(); - } - - public PluginLoaderException( Plugin plugin, String message ) - { - super( message ); - pluginKey = plugin.getKey(); - } - - public PluginLoaderException( String message ) - { - super( message ); - } - - public PluginLoaderException( String message, Throwable cause ) - { - super( message, cause ); - } - - public PluginLoaderException( ReportPlugin plugin, String message, Throwable cause ) - { - super( message, cause ); - pluginKey = plugin.getKey(); - } - - public PluginLoaderException( ReportPlugin plugin, String message ) - { - super( message ); - pluginKey = plugin.getKey(); - } - - public String getPluginKey() - { - return pluginKey; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginManager.java deleted file mode 100644 index 1a3100e9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginManager.java +++ /dev/null @@ -1,82 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.resolver.ArtifactNotFoundException; -import org.apache.maven.artifact.resolver.ArtifactResolutionException; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.apache.maven.plugin.version.PluginVersionNotFoundException; -import org.apache.maven.plugin.version.PluginVersionResolutionException; -import org.apache.maven.project.MavenProject; -import org.apache.maven.project.artifact.InvalidDependencyVersionException; -import org.apache.maven.settings.Settings; -import org.codehaus.plexus.component.repository.exception.ComponentLookupException; - -import java.util.Map; - -/** - * @author Jason van Zyl - */ -@Deprecated -public interface PluginManager -{ - String ROLE = PluginManager.class.getName(); - - void executeMojo( MavenProject project, MojoExecution execution, MavenSession session ) - throws MojoExecutionException, ArtifactResolutionException, MojoFailureException, ArtifactNotFoundException, - InvalidDependencyVersionException, PluginManagerException, PluginConfigurationException; - - PluginDescriptor getPluginDescriptorForPrefix( String prefix ); - - Plugin getPluginDefinitionForPrefix( String prefix, MavenSession session, MavenProject project ); - - PluginDescriptor verifyPlugin( Plugin plugin, MavenProject project, Settings settings, - ArtifactRepository localRepository ) - throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException, - InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException, - PluginVersionNotFoundException; - - Object getPluginComponent( Plugin plugin, String role, String roleHint ) - throws PluginManagerException, ComponentLookupException; - - Map getPluginComponents( Plugin plugin, String role ) - throws ComponentLookupException, PluginManagerException; - - /** - * @since 2.2.1 - */ - PluginDescriptor loadPluginDescriptor( Plugin plugin, MavenProject project, MavenSession session ) - throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException, - InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException, - PluginVersionNotFoundException; - - /** - * @since 2.2.1 - */ - PluginDescriptor loadPluginFully( Plugin plugin, MavenProject project, MavenSession session ) - throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException, - InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException, - PluginVersionNotFoundException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginManagerException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginManagerException.java deleted file mode 100644 index dc8f9a20..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginManagerException.java +++ /dev/null @@ -1,197 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.PlexusContainerException; -import org.codehaus.plexus.classworlds.realm.NoSuchRealmException; -import org.codehaus.plexus.component.repository.exception.ComponentRepositoryException; -import org.codehaus.plexus.configuration.PlexusConfigurationException; - -/** - * Exception in the plugin manager. - * - * @author Brett Porter - */ -public class PluginManagerException - extends Exception -{ - - private final String pluginGroupId; - - private final String pluginArtifactId; - - private final String pluginVersion; - - private String goal; - - private MavenProject project; - - protected PluginManagerException( Plugin plugin, String message, MavenProject project, Throwable cause ) - { - super( message, cause ); - - this.project = project; - pluginGroupId = plugin.getGroupId(); - pluginArtifactId = plugin.getArtifactId(); - pluginVersion = plugin.getVersion(); - } - - public PluginManagerException( Plugin plugin, String message, Throwable cause ) - { - super( message, cause ); - - pluginGroupId = plugin.getGroupId(); - pluginArtifactId = plugin.getArtifactId(); - pluginVersion = plugin.getVersion(); - } - - protected PluginManagerException( MojoDescriptor mojoDescriptor, String message, Throwable cause ) - { - super( message, cause ); - pluginGroupId = mojoDescriptor.getPluginDescriptor().getGroupId(); - pluginArtifactId = mojoDescriptor.getPluginDescriptor().getArtifactId(); - pluginVersion = mojoDescriptor.getPluginDescriptor().getVersion(); - goal = mojoDescriptor.getGoal(); - } - - protected PluginManagerException( MojoDescriptor mojoDescriptor, MavenProject project, String message ) - { - super( message ); - this.project = project; - pluginGroupId = mojoDescriptor.getPluginDescriptor().getGroupId(); - pluginArtifactId = mojoDescriptor.getPluginDescriptor().getArtifactId(); - pluginVersion = mojoDescriptor.getPluginDescriptor().getVersion(); - goal = mojoDescriptor.getGoal(); - } - - protected PluginManagerException( MojoDescriptor mojoDescriptor, MavenProject project, String message, - Throwable cause ) - { - super( message, cause ); - this.project = project; - pluginGroupId = mojoDescriptor.getPluginDescriptor().getGroupId(); - pluginArtifactId = mojoDescriptor.getPluginDescriptor().getArtifactId(); - pluginVersion = mojoDescriptor.getPluginDescriptor().getVersion(); - goal = mojoDescriptor.getGoal(); - } - - public PluginManagerException( Plugin plugin, InvalidVersionSpecificationException cause ) - { - super( cause ); - - pluginGroupId = plugin.getGroupId(); - pluginArtifactId = plugin.getArtifactId(); - pluginVersion = plugin.getVersion(); - } - - public PluginManagerException( Plugin plugin, String message, PlexusConfigurationException cause ) - { - super( message, cause ); - - pluginGroupId = plugin.getGroupId(); - pluginArtifactId = plugin.getArtifactId(); - pluginVersion = plugin.getVersion(); - } - - public PluginManagerException( Plugin plugin, String message, ComponentRepositoryException cause ) - { - super( message, cause ); - - pluginGroupId = plugin.getGroupId(); - pluginArtifactId = plugin.getArtifactId(); - pluginVersion = plugin.getVersion(); - } - - public PluginManagerException( MojoDescriptor mojoDescriptor, MavenProject project, String message, - NoSuchRealmException cause ) - { - super( message, cause ); - - this.project = project; - pluginGroupId = mojoDescriptor.getPluginDescriptor().getGroupId(); - pluginArtifactId = mojoDescriptor.getPluginDescriptor().getArtifactId(); - pluginVersion = mojoDescriptor.getPluginDescriptor().getVersion(); - goal = mojoDescriptor.getGoal(); - } - - public PluginManagerException( MojoDescriptor mojoDescriptor, String message, MavenProject project, - PlexusContainerException cause ) - { - super( message, cause ); - - this.project = project; - - PluginDescriptor pd = mojoDescriptor.getPluginDescriptor(); - pluginGroupId = pd.getGroupId(); - pluginArtifactId = pd.getArtifactId(); - pluginVersion = pd.getVersion(); - - goal = mojoDescriptor.getGoal(); - } - - public PluginManagerException( Plugin plugin, String message, PlexusContainerException cause ) - { - super( message, cause ); - - pluginGroupId = plugin.getGroupId(); - pluginArtifactId = plugin.getArtifactId(); - pluginVersion = plugin.getVersion(); - } - - public PluginManagerException( Plugin plugin, String message, MavenProject project ) - { - super( message ); - - pluginGroupId = plugin.getGroupId(); - pluginArtifactId = plugin.getArtifactId(); - pluginVersion = plugin.getVersion(); - this.project = project; - } - - public String getPluginGroupId() - { - return pluginGroupId; - } - - public String getPluginArtifactId() - { - return pluginArtifactId; - } - - public String getPluginVersion() - { - return pluginVersion; - } - - public String getGoal() - { - return goal; - } - - public MavenProject getProject() - { - return project; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginNotFoundException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginNotFoundException.java deleted file mode 100644 index ef54e2d7..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginNotFoundException.java +++ /dev/null @@ -1,58 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.resolver.AbstractArtifactResolutionException; -import org.apache.maven.artifact.resolver.ArtifactNotFoundException; -import org.apache.maven.model.Plugin; - -/** - * Exception occurring trying to resolve a plugin. - * - * @author Brett Porter - */ -public class PluginNotFoundException - extends AbstractArtifactResolutionException -{ - private Plugin plugin; - - public PluginNotFoundException( Plugin plugin, ArtifactNotFoundException e ) - { - super( "Plugin could not be found - check that the goal name is correct: " + e.getMessage(), e.getGroupId(), - e.getArtifactId(), e.getVersion(), "maven-plugin", null, e.getRemoteRepositories(), null, e.getCause() ); - this.plugin = plugin; - } - - public PluginNotFoundException( Plugin plugin, List remoteRepositories ) - { - super( "Plugin could not be found, please check its coordinates for typos and ensure the required" - + " plugin repositories are defined in the POM", plugin.getGroupId(), plugin.getArtifactId(), - plugin.getVersion(), "maven-plugin", null, remoteRepositories, null ); - this.plugin = plugin; - } - - public Plugin getPlugin() - { - return plugin; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterException.java deleted file mode 100644 index dcf459e7..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterException.java +++ /dev/null @@ -1,192 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Properties; - -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.descriptor.Parameter; -import org.codehaus.plexus.util.StringUtils; - -public class PluginParameterException - extends PluginConfigurationException -{ - - private final List parameters; - - private final MojoDescriptor mojo; - - public PluginParameterException( MojoDescriptor mojo, List parameters ) - { - super( mojo.getPluginDescriptor(), "The parameters " + format( parameters ) + " for goal " - + mojo.getRoleHint() + " are missing or invalid" ); - - this.mojo = mojo; - - this.parameters = parameters; - } - - private static String format( List parameters ) - { - StringBuilder buffer = new StringBuilder( 128 ); - if ( parameters != null ) - { - for ( Parameter parameter : parameters ) - { - if ( buffer.length() > 0 ) - { - buffer.append( ", " ); - } - buffer.append( '\'' ).append( parameter.getName() ).append( '\'' ); - } - } - return buffer.toString(); - } - - public MojoDescriptor getMojoDescriptor() - { - return mojo; - } - - public List getParameters() - { - return parameters; - } - - private static void decomposeParameterIntoUserInstructions( MojoDescriptor mojo, Parameter param, - StringBuilder messageBuffer ) - { - String expression = param.getExpression(); - - if ( param.isEditable() ) - { - boolean isArray = param.getType().endsWith( "[]" ); - boolean isCollection = false; - boolean isMap = false; - boolean isProperties = false; - if ( !isArray ) - { - try - { - //assuming Type is available in current ClassLoader - isCollection = Collection.class.isAssignableFrom( Class.forName( param.getType() ) ); - isMap = Map.class.isAssignableFrom( Class.forName( param.getType() ) ); - isProperties = Properties.class.isAssignableFrom( Class.forName( param.getType() ) ); - } - catch ( ClassNotFoundException e ) - { - // assume it is not assignable from Collection or Map - } - } - - messageBuffer.append( "Inside the definition for plugin \'" ); - messageBuffer.append( mojo.getPluginDescriptor().getArtifactId() ); - messageBuffer.append( "\', specify the following:\n\n\n ...\n" ); - messageBuffer.append( " <" ).append( param.getName() ).append( '>' ); - if ( isArray || isCollection ) - { - messageBuffer.append( '\n' ); - messageBuffer.append( " " ); - } - else if ( isProperties ) - { - messageBuffer.append( '\n' ); - messageBuffer.append( " \n" ); - messageBuffer.append( " KEY\n" ); - messageBuffer.append( " " ); - } - else if ( isMap ) - { - messageBuffer.append( '\n' ); - messageBuffer.append( " " ); - } - messageBuffer.append( "VALUE" ); - if ( isArray || isCollection ) - { - messageBuffer.append( "\n" ); - messageBuffer.append( " " ); - } - else if ( isProperties ) - { - messageBuffer.append( "\n" ); - messageBuffer.append( " \n" ); - messageBuffer.append( " " ); - } - else if ( isMap ) - { - messageBuffer.append( "\n" ); - messageBuffer.append( " " ); - } - messageBuffer.append( "\n" ); - messageBuffer.append( "" ); - - String alias = param.getAlias(); - if ( StringUtils.isNotEmpty( alias ) && !alias.equals( param.getName() ) ) - { - messageBuffer.append( "\n\n-OR-\n\n\n ...\n <" ).append( alias ).append( - ">VALUE\n\n" ); - } - } - - if ( StringUtils.isEmpty( expression ) ) - { - messageBuffer.append( "." ); - } - else - { - if ( param.isEditable() ) - { - messageBuffer.append( "\n\n-OR-\n\n" ); - } - - //addParameterUsageInfo( expression, messageBuffer ); - } - } - - public String buildDiagnosticMessage() - { - StringBuilder messageBuffer = new StringBuilder( 256 ); - - List params = getParameters(); - MojoDescriptor mojo = getMojoDescriptor(); - - messageBuffer.append( "One or more required plugin parameters are invalid/missing for \'" ) - .append( mojo.getPluginDescriptor().getGoalPrefix() ).append( ":" ).append( mojo.getGoal() ) - .append( "\'\n" ); - - int idx = 0; - for ( Iterator it = params.iterator(); it.hasNext(); idx++ ) - { - Parameter param = it.next(); - - messageBuffer.append( "\n[" ).append( idx ).append( "] " ); - - decomposeParameterIntoUserInstructions( mojo, param, messageBuffer ); - - messageBuffer.append( "\n" ); - } - - return messageBuffer.toString(); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java deleted file mode 100644 index 9199ba5a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java +++ /dev/null @@ -1,482 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.Properties; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.apache.maven.project.MavenProject; -import org.apache.maven.project.path.PathTranslator; -import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException; -import org.codehaus.plexus.component.configurator.expression.TypeAwareExpressionEvaluator; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.util.introspection.ReflectionValueExtractor; - -/** - * Evaluator for plugin parameters expressions. Content surrounded by ${ and } is evaluated. - * Recognized values are: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
expression evaluation result
session the actual {@link MavenSession}
session.* (since Maven 3)
localRepository {@link MavenSession#getLocalRepository()}
reactorProjects {@link MavenSession#getProjects()}
repositorySystemSession (since Maven 3){@link MavenSession#getRepositorySession()}
project {@link MavenSession#getCurrentProject()}
project.*
pom.* (since Maven 3)same as project.*
executedProject {@link MavenProject#getExecutionProject()}
settings {@link MavenSession#getSettings()}
settings.*
basedir {@link MavenSession#getExecutionRootDirectory()} or - * System.getProperty( "user.dir" ) if null
mojoExecution the actual {@link MojoExecution}
mojo (since Maven 3)same as mojoExecution
mojo.* (since Maven 3)
plugin (since Maven 3){@link MojoExecution#getMojoDescriptor()}.{@link MojoDescriptor#getPluginDescriptor() - * getPluginDescriptor()}
plugin.*
* system properties
* project properties
- * Notice: reports was supported in Maven 2.x but was removed in Maven 3 - * - * @author Jason van Zyl - * @see MavenSession - * @see MojoExecution - */ -public class PluginParameterExpressionEvaluator - implements TypeAwareExpressionEvaluator -{ - private MavenSession session; - - private MojoExecution mojoExecution; - - private MavenProject project; - - private String basedir; - - private Properties properties; - - @Deprecated //TODO: used by the Enforcer plugin - public PluginParameterExpressionEvaluator( MavenSession session, MojoExecution mojoExecution, - PathTranslator pathTranslator, Logger logger, MavenProject project, - Properties properties ) - { - this( session, mojoExecution ); - } - - public PluginParameterExpressionEvaluator( MavenSession session ) - { - this( session, null ); - } - - public PluginParameterExpressionEvaluator( MavenSession session, MojoExecution mojoExecution ) - { - this.session = session; - this.mojoExecution = mojoExecution; - this.properties = new Properties(); - this.project = session.getCurrentProject(); - - // - // Maven4: We may want to evaluate how this is used but we add these separate as the - // getExecutionProperties is deprecated in MavenSession. - // - this.properties.putAll( session.getUserProperties() ); - this.properties.putAll( session.getSystemProperties() ); - - String basedir = null; - - if ( project != null ) - { - File projectFile = project.getBasedir(); - - // this should always be the case for non-super POM instances... - if ( projectFile != null ) - { - basedir = projectFile.getAbsolutePath(); - } - } - - if ( basedir == null ) - { - basedir = session.getExecutionRootDirectory(); - } - - if ( basedir == null ) - { - basedir = System.getProperty( "user.dir" ); - } - - this.basedir = basedir; - } - - @Override - public Object evaluate( String expr ) - throws ExpressionEvaluationException - { - return evaluate( expr, null ); - } - - @Override - public Object evaluate( String expr, Class type ) - throws ExpressionEvaluationException - { - Object value = null; - - if ( expr == null ) - { - return null; - } - - String expression = stripTokens( expr ); - if ( expression.equals( expr ) ) - { - int index = expr.indexOf( "${" ); - if ( index >= 0 ) - { - int lastIndex = expr.indexOf( "}", index ); - if ( lastIndex >= 0 ) - { - String retVal = expr.substring( 0, index ); - - if ( ( index > 0 ) && ( expr.charAt( index - 1 ) == '$' ) ) - { - retVal += expr.substring( index + 1, lastIndex + 1 ); - } - else - { - Object subResult = evaluate( expr.substring( index, lastIndex + 1 ) ); - - if ( subResult != null ) - { - retVal += subResult; - } - else - { - retVal += "$" + expr.substring( index + 1, lastIndex + 1 ); - } - } - - retVal += evaluate( expr.substring( lastIndex + 1 ) ); - return retVal; - } - } - - // Was not an expression - if ( expression.contains( "$$" ) ) - { - return expression.replaceAll( "\\$\\$", "\\$" ); - } - else - { - return expression; - } - } - - MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor(); - - if ( "localRepository".equals( expression ) ) - { - value = session.getLocalRepository(); - } - else if ( "session".equals( expression ) ) - { - value = session; - } - else if ( expression.startsWith( "session" ) ) - { - try - { - int pathSeparator = expression.indexOf( "/" ); - - if ( pathSeparator > 0 ) - { - String pathExpression = expression.substring( 1, pathSeparator ); - value = ReflectionValueExtractor.evaluate( pathExpression, session ); - value = value + expression.substring( pathSeparator ); - } - else - { - value = ReflectionValueExtractor.evaluate( expression.substring( 1 ), session ); - } - } - catch ( Exception e ) - { - // TODO: don't catch exception - throw new ExpressionEvaluationException( "Error evaluating plugin parameter expression: " + expression, - e ); - } - } - else if ( "reactorProjects".equals( expression ) ) - { - value = session.getProjects(); - } - else if ( "mojoExecution".equals( expression ) ) - { - value = mojoExecution; - } - else if ( "project".equals( expression ) ) - { - value = project; - } - else if ( "executedProject".equals( expression ) ) - { - value = project.getExecutionProject(); - } - else if ( expression.startsWith( "project" ) || expression.startsWith( "pom" ) ) - { - try - { - int pathSeparator = expression.indexOf( "/" ); - - if ( pathSeparator > 0 ) - { - String pathExpression = expression.substring( 0, pathSeparator ); - value = ReflectionValueExtractor.evaluate( pathExpression, project ); - value = value + expression.substring( pathSeparator ); - } - else - { - value = ReflectionValueExtractor.evaluate( expression.substring( 1 ), project ); - } - } - catch ( Exception e ) - { - // TODO: don't catch exception - throw new ExpressionEvaluationException( "Error evaluating plugin parameter expression: " + expression, - e ); - } - } - else if ( expression.equals( "repositorySystemSession" ) ) - { - value = session.getRepositorySession(); - } - else if ( expression.equals( "mojo" ) ) - { - value = mojoExecution; - } - else if ( expression.startsWith( "mojo" ) ) - { - try - { - int pathSeparator = expression.indexOf( "/" ); - - if ( pathSeparator > 0 ) - { - String pathExpression = expression.substring( 1, pathSeparator ); - value = ReflectionValueExtractor.evaluate( pathExpression, mojoExecution ); - value = value + expression.substring( pathSeparator ); - } - else - { - value = ReflectionValueExtractor.evaluate( expression.substring( 1 ), mojoExecution ); - } - } - catch ( Exception e ) - { - // TODO: don't catch exception - throw new ExpressionEvaluationException( "Error evaluating plugin parameter expression: " + expression, - e ); - } - } - else if ( expression.equals( "plugin" ) ) - { - value = mojoDescriptor.getPluginDescriptor(); - } - else if ( expression.startsWith( "plugin" ) ) - { - try - { - int pathSeparator = expression.indexOf( "/" ); - - PluginDescriptor pluginDescriptor = mojoDescriptor.getPluginDescriptor(); - - if ( pathSeparator > 0 ) - { - String pathExpression = expression.substring( 1, pathSeparator ); - value = ReflectionValueExtractor.evaluate( pathExpression, pluginDescriptor ); - value = value + expression.substring( pathSeparator ); - } - else - { - value = ReflectionValueExtractor.evaluate( expression.substring( 1 ), pluginDescriptor ); - } - } - catch ( Exception e ) - { - throw new ExpressionEvaluationException( "Error evaluating plugin parameter expression: " + expression, - e ); - } - } - else if ( "settings".equals( expression ) ) - { - value = session.getSettings(); - } - else if ( expression.startsWith( "settings" ) ) - { - try - { - int pathSeparator = expression.indexOf( "/" ); - - if ( pathSeparator > 0 ) - { - String pathExpression = expression.substring( 1, pathSeparator ); - value = ReflectionValueExtractor.evaluate( pathExpression, session.getSettings() ); - value = value + expression.substring( pathSeparator ); - } - else - { - value = ReflectionValueExtractor.evaluate( expression.substring( 1 ), session.getSettings() ); - } - } - catch ( Exception e ) - { - // TODO: don't catch exception - throw new ExpressionEvaluationException( "Error evaluating plugin parameter expression: " + expression, - e ); - } - } - else if ( "basedir".equals( expression ) ) - { - value = basedir; - } - else if ( expression.startsWith( "basedir" ) ) - { - int pathSeparator = expression.indexOf( "/" ); - - if ( pathSeparator > 0 ) - { - value = basedir + expression.substring( pathSeparator ); - } - } - - /* - * MNG-4312: We neither have reserved all of the above magic expressions nor is their set fixed/well-known (it - * gets occasionally extended by newer Maven versions). This imposes the risk for existing plugins to - * unintentionally use such a magic expression for an ordinary system property. So here we check whether we - * ended up with a magic value that is not compatible with the type of the configured mojo parameter (a string - * could still be converted by the configurator so we leave those alone). If so, back off to evaluating the - * expression from properties only. - */ - if ( value != null && type != null && !( value instanceof String ) && !isTypeCompatible( type, value ) ) - { - value = null; - } - - if ( value == null ) - { - // The CLI should win for defining properties - - if ( properties != null ) - { - // We will attempt to get nab a system property as a way to specify a - // parameter to a plugins. My particular case here is allowing the surefire - // plugin to run a single test so I want to specify that class on the cli - // as a parameter. - - value = properties.getProperty( expression ); - } - - if ( ( value == null ) && ( ( project != null ) && ( project.getProperties() != null ) ) ) - { - value = project.getProperties().getProperty( expression ); - } - - } - - if ( value instanceof String ) - { - // TODO: without #, this could just be an evaluate call... - - String val = (String) value; - - int exprStartDelimiter = val.indexOf( "${" ); - - if ( exprStartDelimiter >= 0 ) - { - if ( exprStartDelimiter > 0 ) - { - value = val.substring( 0, exprStartDelimiter ) + evaluate( val.substring( exprStartDelimiter ) ); - } - else - { - value = evaluate( val.substring( exprStartDelimiter ) ); - } - } - } - - return value; - } - - private static boolean isTypeCompatible( Class type, Object value ) - { - if ( type.isInstance( value ) ) - { - return true; - } - // likely Boolean -> boolean, Short -> int etc. conversions, it's not the problem case we try to avoid - return ( ( type.isPrimitive() || type.getName().startsWith( "java.lang." ) ) - && value.getClass().getName().startsWith( "java.lang." ) ); - } - - private String stripTokens( String expr ) - { - if ( expr.startsWith( "${" ) && ( expr.indexOf( "}" ) == expr.length() - 1 ) ) - { - expr = expr.substring( 2, expr.length() - 1 ); - } - return expr; - } - - @Override - public File alignToBaseDirectory( File file ) - { - // TODO: Copied from the DefaultInterpolator. We likely want to resurrect the PathTranslator or at least a - // similar component for re-usage - if ( file != null ) - { - if ( file.isAbsolute() ) - { - // path was already absolute, just normalize file separator and we're done - } - else if ( file.getPath().startsWith( File.separator ) ) - { - // drive-relative Windows path, don't align with project directory but with drive root - file = file.getAbsoluteFile(); - } - else - { - // an ordinary relative path, align with project directory - file = new File( new File( basedir, file.getPath() ).toURI().normalize() ).getAbsoluteFile(); - } - } - return file; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginRealmCache.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginRealmCache.java deleted file mode 100644 index 1ffa1575..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginRealmCache.java +++ /dev/null @@ -1,85 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; -import java.util.Map; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.model.Plugin; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.classworlds.realm.ClassRealm; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.graph.DependencyFilter; -import org.eclipse.aether.repository.RemoteRepository; - -/** - * Caches plugin class realms. Warning: This is an internal utility interface that is only public for - * technical reasons, it is not part of the public API. In particular, this interface can be changed or deleted without - * prior notice. - * - * @author Igor Fedorenko - * @author Benjamin Bentmann - */ -public interface PluginRealmCache -{ - - static class CacheRecord - { - public final ClassRealm realm; - - public final List artifacts; - - public CacheRecord( ClassRealm realm, List artifacts ) - { - this.realm = realm; - this.artifacts = artifacts; - } - } - - /** - * A cache key. - */ - interface Key - { - // marker interface for cache keys - } - - Key createKey( Plugin plugin, ClassLoader parentRealm, Map foreignImports, - DependencyFilter dependencyFilter, List repositories, - RepositorySystemSession session ); - - CacheRecord get( Key key ); - - CacheRecord put( Key key, ClassRealm pluginRealm, List pluginArtifacts ); - - void flush(); - - /** - * Registers the specified cache record for usage with the given project. Integrators can use the information - * collected from this method in combination with a custom cache implementation to dispose unused records from the - * cache. - * - * @param project The project that employs the plugin realm, must not be {@code null}. - * @param record The cache record being used for the project, must not be {@code null}. - */ - void register( MavenProject project, Key key, CacheRecord record ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginResolutionException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginResolutionException.java deleted file mode 100644 index ab280643..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/PluginResolutionException.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.model.Plugin; - -/** - * Exception occurring trying to resolve a plugin. - * - * @author Brett Porter - */ -public class PluginResolutionException - extends Exception -{ - - private final Plugin plugin; - - public PluginResolutionException( Plugin plugin, Throwable cause ) - { - super( "Plugin " + plugin.getId() + " or one of its dependencies could not be resolved: " + cause.getMessage(), - cause ); - this.plugin = plugin; - } - - public Plugin getPlugin() - { - return plugin; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultLegacySupport.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultLegacySupport.java deleted file mode 100644 index f397c1e8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultLegacySupport.java +++ /dev/null @@ -1,74 +0,0 @@ -package org.apache.maven.plugin.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.concurrent.atomic.AtomicReference; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.plugin.LegacySupport; -import org.codehaus.plexus.component.annotations.Component; -import org.eclipse.aether.RepositorySystemSession; - -/** - * Helps to provide backward-compatibility with plugins that use legacy components. Warning: This is an - * internal utility component that is only public for technical reasons, it is not part of the public API. In - * particular, this component can be changed or deleted without prior notice. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -@Component( role = LegacySupport.class ) -public class DefaultLegacySupport - implements LegacySupport -{ - - private static final ThreadLocal> SESSION = - new InheritableThreadLocal>(); - - public void setSession( MavenSession session ) - { - AtomicReference reference = DefaultLegacySupport.SESSION.get(); - if ( reference != null ) - { - reference.set( null ); - } - - if ( session == null && reference != null ) - { - DefaultLegacySupport.SESSION.remove(); - } - else - { - DefaultLegacySupport.SESSION.set( new AtomicReference( session ) ); - } - } - - public MavenSession getSession() - { - AtomicReference currentSession = DefaultLegacySupport.SESSION.get(); - return currentSession != null ? currentSession.get() : null; - } - - public RepositorySystemSession getRepositorySession() - { - MavenSession session = getSession(); - return ( session != null ) ? session.getRepositorySession() : null; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java deleted file mode 100644 index d32e04c1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java +++ /dev/null @@ -1,946 +0,0 @@ -package org.apache.maven.plugin.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.BufferedInputStream; -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.io.FileInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.PrintStream; -import java.io.Reader; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.jar.JarFile; -import java.util.zip.ZipEntry; - -import org.apache.maven.RepositoryUtils; -import org.apache.maven.artifact.Artifact; -import org.apache.maven.classrealm.ClassRealmManager; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.execution.scope.internal.MojoExecutionScopeModule; -import org.apache.maven.model.Plugin; -import org.apache.maven.monitor.logging.DefaultLog; -import org.apache.maven.plugin.ContextEnabled; -import org.apache.maven.plugin.DebugConfigurationListener; -import org.apache.maven.plugin.ExtensionRealmCache; -import org.apache.maven.plugin.InvalidPluginDescriptorException; -import org.apache.maven.plugin.MavenPluginManager; -import org.apache.maven.plugin.MavenPluginValidator; -import org.apache.maven.plugin.Mojo; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.plugin.MojoNotFoundException; -import org.apache.maven.plugin.PluginArtifactsCache; -import org.apache.maven.plugin.PluginConfigurationException; -import org.apache.maven.plugin.PluginContainerException; -import org.apache.maven.plugin.PluginDescriptorCache; -import org.apache.maven.plugin.PluginDescriptorParsingException; -import org.apache.maven.plugin.PluginIncompatibleException; -import org.apache.maven.plugin.PluginManagerException; -import org.apache.maven.plugin.PluginParameterException; -import org.apache.maven.plugin.PluginParameterExpressionEvaluator; -import org.apache.maven.plugin.PluginRealmCache; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.descriptor.Parameter; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.apache.maven.plugin.descriptor.PluginDescriptorBuilder; -import org.apache.maven.plugin.version.DefaultPluginVersionRequest; -import org.apache.maven.plugin.version.PluginVersionRequest; -import org.apache.maven.plugin.version.PluginVersionResolutionException; -import org.apache.maven.plugin.version.PluginVersionResolver; -import org.apache.maven.project.ExtensionDescriptor; -import org.apache.maven.project.ExtensionDescriptorBuilder; -import org.apache.maven.project.MavenProject; -import org.apache.maven.rtinfo.RuntimeInformation; -import org.apache.maven.session.scope.internal.SessionScopeModule; -import org.codehaus.plexus.DefaultPlexusContainer; -import org.codehaus.plexus.PlexusContainer; -import org.codehaus.plexus.classworlds.realm.ClassRealm; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.component.composition.CycleDetectedInComponentGraphException; -import org.codehaus.plexus.component.configurator.ComponentConfigurationException; -import org.codehaus.plexus.component.configurator.ComponentConfigurator; -import org.codehaus.plexus.component.configurator.ConfigurationListener; -import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException; -import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator; -import org.codehaus.plexus.component.repository.ComponentDescriptor; -import org.codehaus.plexus.component.repository.exception.ComponentLifecycleException; -import org.codehaus.plexus.component.repository.exception.ComponentLookupException; -import org.codehaus.plexus.configuration.PlexusConfiguration; -import org.codehaus.plexus.configuration.PlexusConfigurationException; -import org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.logging.LoggerManager; -import org.codehaus.plexus.util.IOUtil; -import org.codehaus.plexus.util.ReaderFactory; -import org.codehaus.plexus.util.StringUtils; -import org.codehaus.plexus.util.xml.Xpp3Dom; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.graph.DependencyFilter; -import org.eclipse.aether.graph.DependencyNode; -import org.eclipse.aether.repository.RemoteRepository; -import org.eclipse.aether.util.filter.AndDependencyFilter; -import org.eclipse.aether.util.graph.visitor.PreorderNodeListGenerator; - -/** - * Provides basic services to manage Maven plugins and their mojos. This component is kept general in its design such - * that the plugins/mojos can be used in arbitrary contexts. In particular, the mojos can be used for ordinary build - * plugins as well as special purpose plugins like reports. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -@Component( role = MavenPluginManager.class ) -public class DefaultMavenPluginManager - implements MavenPluginManager -{ - - /** - * PluginId=>ExtensionRealmCache.CacheRecord map MavenProject context value key. The map is used to ensure the same - * class realm is used to load build extensions and load mojos for extensions=true plugins. - * - * @noreference this is part of internal implementation and may be changed or removed without notice - * @since 3.3.0 - */ - public static final String KEY_EXTENSIONS_REALMS = DefaultMavenPluginManager.class.getName() + "/extensionsRealms"; - - @Requirement - private Logger logger; - - @Requirement - private LoggerManager loggerManager; - - @Requirement - private PlexusContainer container; - - @Requirement - private ClassRealmManager classRealmManager; - - @Requirement - private PluginDescriptorCache pluginDescriptorCache; - - @Requirement - private PluginRealmCache pluginRealmCache; - - @Requirement - private PluginDependenciesResolver pluginDependenciesResolver; - - @Requirement - private RuntimeInformation runtimeInformation; - - @Requirement - private ExtensionRealmCache extensionRealmCache; - - @Requirement - private PluginVersionResolver pluginVersionResolver; - - @Requirement - private PluginArtifactsCache pluginArtifactsCache; - - private ExtensionDescriptorBuilder extensionDescriptorBuilder = new ExtensionDescriptorBuilder(); - - private PluginDescriptorBuilder builder = new PluginDescriptorBuilder(); - - public synchronized PluginDescriptor getPluginDescriptor( Plugin plugin, List repositories, - RepositorySystemSession session ) - throws PluginResolutionException, PluginDescriptorParsingException, InvalidPluginDescriptorException - { - PluginDescriptorCache.Key cacheKey = pluginDescriptorCache.createKey( plugin, repositories, session ); - - PluginDescriptor pluginDescriptor = pluginDescriptorCache.get( cacheKey ); - - if ( pluginDescriptor == null ) - { - org.eclipse.aether.artifact.Artifact artifact = - pluginDependenciesResolver.resolve( plugin, repositories, session ); - - Artifact pluginArtifact = RepositoryUtils.toArtifact( artifact ); - - pluginDescriptor = extractPluginDescriptor( pluginArtifact, plugin ); - - pluginDescriptor.setRequiredMavenVersion( artifact.getProperty( "requiredMavenVersion", null ) ); - - pluginDescriptorCache.put( cacheKey, pluginDescriptor ); - } - - pluginDescriptor.setPlugin( plugin ); - - return pluginDescriptor; - } - - private PluginDescriptor extractPluginDescriptor( Artifact pluginArtifact, Plugin plugin ) - throws PluginDescriptorParsingException, InvalidPluginDescriptorException - { - PluginDescriptor pluginDescriptor = null; - - File pluginFile = pluginArtifact.getFile(); - - try - { - if ( pluginFile.isFile() ) - { - JarFile pluginJar = new JarFile( pluginFile, false ); - try - { - ZipEntry pluginDescriptorEntry = pluginJar.getEntry( getPluginDescriptorLocation() ); - - if ( pluginDescriptorEntry != null ) - { - InputStream is = pluginJar.getInputStream( pluginDescriptorEntry ); - - pluginDescriptor = parsePluginDescriptor( is, plugin, pluginFile.getAbsolutePath() ); - } - } - finally - { - pluginJar.close(); - } - } - else - { - File pluginXml = new File( pluginFile, getPluginDescriptorLocation() ); - - if ( pluginXml.isFile() ) - { - InputStream is = new BufferedInputStream( new FileInputStream( pluginXml ) ); - try - { - pluginDescriptor = parsePluginDescriptor( is, plugin, pluginXml.getAbsolutePath() ); - } - finally - { - IOUtil.close( is ); - } - } - } - - if ( pluginDescriptor == null ) - { - throw new IOException( "No plugin descriptor found at " + getPluginDescriptorLocation() ); - } - } - catch ( IOException e ) - { - throw new PluginDescriptorParsingException( plugin, pluginFile.getAbsolutePath(), e ); - } - - MavenPluginValidator validator = new MavenPluginValidator( pluginArtifact ); - - validator.validate( pluginDescriptor ); - - if ( validator.hasErrors() ) - { - throw new InvalidPluginDescriptorException( "Invalid plugin descriptor for " + plugin.getId() + " (" - + pluginFile + ")", validator.getErrors() ); - } - - pluginDescriptor.setPluginArtifact( pluginArtifact ); - - return pluginDescriptor; - } - - private String getPluginDescriptorLocation() - { - return "META-INF/maven/plugin.xml"; - } - - private PluginDescriptor parsePluginDescriptor( InputStream is, Plugin plugin, String descriptorLocation ) - throws PluginDescriptorParsingException - { - try - { - Reader reader = ReaderFactory.newXmlReader( is ); - - PluginDescriptor pluginDescriptor = builder.build( reader, descriptorLocation ); - - return pluginDescriptor; - } - catch ( IOException e ) - { - throw new PluginDescriptorParsingException( plugin, descriptorLocation, e ); - } - catch ( PlexusConfigurationException e ) - { - throw new PluginDescriptorParsingException( plugin, descriptorLocation, e ); - } - } - - public MojoDescriptor getMojoDescriptor( Plugin plugin, String goal, List repositories, - RepositorySystemSession session ) - throws MojoNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - InvalidPluginDescriptorException - { - PluginDescriptor pluginDescriptor = getPluginDescriptor( plugin, repositories, session ); - - MojoDescriptor mojoDescriptor = pluginDescriptor.getMojo( goal ); - - if ( mojoDescriptor == null ) - { - throw new MojoNotFoundException( goal, pluginDescriptor ); - } - - return mojoDescriptor; - } - - public void checkRequiredMavenVersion( PluginDescriptor pluginDescriptor ) - throws PluginIncompatibleException - { - String requiredMavenVersion = pluginDescriptor.getRequiredMavenVersion(); - if ( StringUtils.isNotBlank( requiredMavenVersion ) ) - { - try - { - if ( !runtimeInformation.isMavenVersion( requiredMavenVersion ) ) - { - throw new PluginIncompatibleException( pluginDescriptor.getPlugin(), "The plugin " - + pluginDescriptor.getId() + " requires Maven version " + requiredMavenVersion ); - } - } - catch ( RuntimeException e ) - { - logger.warn( "Could not verify plugin's Maven prerequisite: " + e.getMessage() ); - } - } - } - - public synchronized void setupPluginRealm( PluginDescriptor pluginDescriptor, MavenSession session, - ClassLoader parent, List imports, DependencyFilter filter ) - throws PluginResolutionException, PluginContainerException - { - Plugin plugin = pluginDescriptor.getPlugin(); - MavenProject project = session.getCurrentProject(); - - if ( plugin.isExtensions() ) - { - ExtensionRealmCache.CacheRecord extensionRecord; - try - { - RepositorySystemSession repositorySession = session.getRepositorySession(); - extensionRecord = setupExtensionsRealm( project, plugin, repositorySession ); - } - catch ( PluginManagerException e ) - { - // extensions realm is expected to be fully setup at this point - // any exception means a problem in maven code, not a user error - throw new IllegalStateException( e ); - } - - ClassRealm pluginRealm = extensionRecord.realm; - List pluginArtifacts = extensionRecord.artifacts; - - for ( ComponentDescriptor componentDescriptor : pluginDescriptor.getComponents() ) - { - componentDescriptor.setRealm( pluginRealm ); - } - - pluginDescriptor.setClassRealm( pluginRealm ); - pluginDescriptor.setArtifacts( pluginArtifacts ); - } - else - { - Map foreignImports = calcImports( project, parent, imports ); - - PluginRealmCache.Key cacheKey = - pluginRealmCache.createKey( plugin, parent, foreignImports, filter, - project.getRemotePluginRepositories(), session.getRepositorySession() ); - - PluginRealmCache.CacheRecord cacheRecord = pluginRealmCache.get( cacheKey ); - - if ( cacheRecord != null ) - { - pluginDescriptor.setClassRealm( cacheRecord.realm ); - pluginDescriptor.setArtifacts( new ArrayList( cacheRecord.artifacts ) ); - for ( ComponentDescriptor componentDescriptor : pluginDescriptor.getComponents() ) - { - componentDescriptor.setRealm( cacheRecord.realm ); - } - } - else - { - createPluginRealm( pluginDescriptor, session, parent, foreignImports, filter ); - - cacheRecord = - pluginRealmCache.put( cacheKey, pluginDescriptor.getClassRealm(), pluginDescriptor.getArtifacts() ); - } - - pluginRealmCache.register( project, cacheKey, cacheRecord ); - } - } - - private void createPluginRealm( PluginDescriptor pluginDescriptor, MavenSession session, ClassLoader parent, - Map foreignImports, DependencyFilter filter ) - throws PluginResolutionException, PluginContainerException - { - Plugin plugin = pluginDescriptor.getPlugin(); - - if ( plugin == null ) - { - throw new IllegalArgumentException( "incomplete plugin descriptor, plugin missing" ); - } - - Artifact pluginArtifact = pluginDescriptor.getPluginArtifact(); - - if ( pluginArtifact == null ) - { - throw new IllegalArgumentException( "incomplete plugin descriptor, plugin artifact missing" ); - } - - MavenProject project = session.getCurrentProject(); - - final ClassRealm pluginRealm; - final List pluginArtifacts; - - RepositorySystemSession repositorySession = session.getRepositorySession(); - DependencyFilter dependencyFilter = project.getExtensionDependencyFilter(); - dependencyFilter = AndDependencyFilter.newInstance( dependencyFilter, filter ); - - DependencyNode root = - pluginDependenciesResolver.resolve( plugin, RepositoryUtils.toArtifact( pluginArtifact ), - dependencyFilter, project.getRemotePluginRepositories(), - repositorySession ); - - PreorderNodeListGenerator nlg = new PreorderNodeListGenerator(); - root.accept( nlg ); - - pluginArtifacts = toMavenArtifacts( root, nlg ); - - pluginRealm = - classRealmManager.createPluginRealm( plugin, parent, null, foreignImports, - toAetherArtifacts( pluginArtifacts ) ); - - discoverPluginComponents( pluginRealm, plugin, pluginDescriptor ); - - pluginDescriptor.setClassRealm( pluginRealm ); - pluginDescriptor.setArtifacts( pluginArtifacts ); - } - - private void discoverPluginComponents( final ClassRealm pluginRealm, Plugin plugin, - PluginDescriptor pluginDescriptor ) - throws PluginContainerException - { - try - { - if ( pluginDescriptor != null ) - { - for ( ComponentDescriptor componentDescriptor : pluginDescriptor.getComponents() ) - { - componentDescriptor.setRealm( pluginRealm ); - container.addComponentDescriptor( componentDescriptor ); - } - } - - ( (DefaultPlexusContainer) container ).discoverComponents( pluginRealm, - new SessionScopeModule( container ), - new MojoExecutionScopeModule( container ) ); - } - catch ( ComponentLookupException e ) - { - throw new PluginContainerException( plugin, pluginRealm, "Error in component graph of plugin " - + plugin.getId() + ": " + e.getMessage(), e ); - } - catch ( CycleDetectedInComponentGraphException e ) - { - throw new PluginContainerException( plugin, pluginRealm, "Error in component graph of plugin " - + plugin.getId() + ": " + e.getMessage(), e ); - } - } - - private List toAetherArtifacts( final List pluginArtifacts ) - { - return new ArrayList( RepositoryUtils.toArtifacts( pluginArtifacts ) ); - } - - private List toMavenArtifacts( DependencyNode root, PreorderNodeListGenerator nlg ) - { - List artifacts = new ArrayList( nlg.getNodes().size() ); - RepositoryUtils.toArtifacts( artifacts, Collections.singleton( root ), Collections.emptyList(), null ); - for ( Iterator it = artifacts.iterator(); it.hasNext(); ) - { - Artifact artifact = it.next(); - if ( artifact.getFile() == null ) - { - it.remove(); - } - } - return artifacts; - } - - private Map calcImports( MavenProject project, ClassLoader parent, List imports ) - { - Map foreignImports = new HashMap(); - - ClassLoader projectRealm = project.getClassRealm(); - if ( projectRealm != null ) - { - foreignImports.put( "", projectRealm ); - } - else - { - foreignImports.put( "", classRealmManager.getMavenApiRealm() ); - } - - if ( parent != null && imports != null ) - { - for ( String parentImport : imports ) - { - foreignImports.put( parentImport, parent ); - } - } - - return foreignImports; - } - - public T getConfiguredMojo( Class mojoInterface, MavenSession session, MojoExecution mojoExecution ) - throws PluginConfigurationException, PluginContainerException - { - MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor(); - - PluginDescriptor pluginDescriptor = mojoDescriptor.getPluginDescriptor(); - - ClassRealm pluginRealm = pluginDescriptor.getClassRealm(); - - if ( logger.isDebugEnabled() ) - { - logger.debug( "Configuring mojo " + mojoDescriptor.getId() + " from plugin realm " + pluginRealm ); - } - - // We are forcing the use of the plugin realm for all lookups that might occur during - // the lifecycle that is part of the lookup. Here we are specifically trying to keep - // lookups that occur in contextualize calls in line with the right realm. - ClassRealm oldLookupRealm = container.setLookupRealm( pluginRealm ); - - ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); - Thread.currentThread().setContextClassLoader( pluginRealm ); - - try - { - T mojo; - - try - { - mojo = container.lookup( mojoInterface, mojoDescriptor.getRoleHint() ); - } - catch ( ComponentLookupException e ) - { - Throwable cause = e.getCause(); - while ( cause != null && !( cause instanceof LinkageError ) - && !( cause instanceof ClassNotFoundException ) ) - { - cause = cause.getCause(); - } - - if ( ( cause instanceof NoClassDefFoundError ) || ( cause instanceof ClassNotFoundException ) ) - { - ByteArrayOutputStream os = new ByteArrayOutputStream( 1024 ); - PrintStream ps = new PrintStream( os ); - ps.println( "Unable to load the mojo '" + mojoDescriptor.getGoal() + "' in the plugin '" - + pluginDescriptor.getId() + "'. A required class is missing: " + cause.getMessage() ); - pluginRealm.display( ps ); - - throw new PluginContainerException( mojoDescriptor, pluginRealm, os.toString(), cause ); - } - else if ( cause instanceof LinkageError ) - { - ByteArrayOutputStream os = new ByteArrayOutputStream( 1024 ); - PrintStream ps = new PrintStream( os ); - ps.println( "Unable to load the mojo '" + mojoDescriptor.getGoal() + "' in the plugin '" - + pluginDescriptor.getId() + "' due to an API incompatibility: " + e.getClass().getName() - + ": " + cause.getMessage() ); - pluginRealm.display( ps ); - - throw new PluginContainerException( mojoDescriptor, pluginRealm, os.toString(), cause ); - } - - throw new PluginContainerException( mojoDescriptor, pluginRealm, "Unable to load the mojo '" - + mojoDescriptor.getGoal() + "' (or one of its required components) from the plugin '" - + pluginDescriptor.getId() + "'", e ); - } - - if ( mojo instanceof ContextEnabled ) - { - MavenProject project = session.getCurrentProject(); - - Map pluginContext = session.getPluginContext( pluginDescriptor, project ); - - if ( pluginContext != null ) - { - pluginContext.put( "project", project ); - - pluginContext.put( "pluginDescriptor", pluginDescriptor ); - - ( (ContextEnabled) mojo ).setPluginContext( pluginContext ); - } - } - - if ( mojo instanceof Mojo ) - { - Logger mojoLogger = loggerManager.getLoggerForComponent( mojoDescriptor.getImplementation() ); - ( (Mojo) mojo ).setLog( new DefaultLog( mojoLogger ) ); - } - - Xpp3Dom dom = mojoExecution.getConfiguration(); - - PlexusConfiguration pomConfiguration; - - if ( dom == null ) - { - pomConfiguration = new XmlPlexusConfiguration( "configuration" ); - } - else - { - pomConfiguration = new XmlPlexusConfiguration( dom ); - } - - ExpressionEvaluator expressionEvaluator = new PluginParameterExpressionEvaluator( session, mojoExecution ); - - populatePluginFields( mojo, mojoDescriptor, pluginRealm, pomConfiguration, expressionEvaluator ); - - return mojo; - } - finally - { - Thread.currentThread().setContextClassLoader( oldClassLoader ); - container.setLookupRealm( oldLookupRealm ); - } - } - - private void populatePluginFields( Object mojo, MojoDescriptor mojoDescriptor, ClassRealm pluginRealm, - PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator ) - throws PluginConfigurationException - { - ComponentConfigurator configurator = null; - - String configuratorId = mojoDescriptor.getComponentConfigurator(); - - if ( StringUtils.isEmpty( configuratorId ) ) - { - configuratorId = "basic"; - } - - try - { - // TODO: could the configuration be passed to lookup and the configurator known to plexus via the descriptor - // so that this method could entirely be handled by a plexus lookup? - configurator = container.lookup( ComponentConfigurator.class, configuratorId ); - - ConfigurationListener listener = new DebugConfigurationListener( logger ); - - ValidatingConfigurationListener validator = - new ValidatingConfigurationListener( mojo, mojoDescriptor, listener ); - - logger.debug( "Configuring mojo '" + mojoDescriptor.getId() + "' with " + configuratorId - + " configurator -->" ); - - configurator.configureComponent( mojo, configuration, expressionEvaluator, pluginRealm, validator ); - - logger.debug( "-- end configuration --" ); - - Collection missingParameters = validator.getMissingParameters(); - if ( !missingParameters.isEmpty() ) - { - if ( "basic".equals( configuratorId ) ) - { - throw new PluginParameterException( mojoDescriptor, new ArrayList( missingParameters ) ); - } - else - { - /* - * NOTE: Other configurators like the map-oriented one don't call into the listener, so do it the - * hard way. - */ - validateParameters( mojoDescriptor, configuration, expressionEvaluator ); - } - } - } - catch ( ComponentConfigurationException e ) - { - String message = "Unable to parse configuration of mojo " + mojoDescriptor.getId(); - if ( e.getFailedConfiguration() != null ) - { - message += " for parameter " + e.getFailedConfiguration().getName(); - } - message += ": " + e.getMessage(); - - throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(), message, e ); - } - catch ( ComponentLookupException e ) - { - throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(), - "Unable to retrieve component configurator " + configuratorId - + " for configuration of mojo " + mojoDescriptor.getId(), e ); - } - catch ( NoClassDefFoundError e ) - { - ByteArrayOutputStream os = new ByteArrayOutputStream( 1024 ); - PrintStream ps = new PrintStream( os ); - ps.println( "A required class was missing during configuration of mojo " + mojoDescriptor.getId() + ": " - + e.getMessage() ); - pluginRealm.display( ps ); - - throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(), os.toString(), e ); - } - catch ( LinkageError e ) - { - ByteArrayOutputStream os = new ByteArrayOutputStream( 1024 ); - PrintStream ps = new PrintStream( os ); - ps.println( "An API incompatibility was encountered during configuration of mojo " + mojoDescriptor.getId() - + ": " + e.getClass().getName() + ": " + e.getMessage() ); - pluginRealm.display( ps ); - - throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(), os.toString(), e ); - } - finally - { - if ( configurator != null ) - { - try - { - container.release( configurator ); - } - catch ( ComponentLifecycleException e ) - { - logger.debug( "Failed to release mojo configurator - ignoring." ); - } - } - } - } - - private void validateParameters( MojoDescriptor mojoDescriptor, PlexusConfiguration configuration, - ExpressionEvaluator expressionEvaluator ) - throws ComponentConfigurationException, PluginParameterException - { - if ( mojoDescriptor.getParameters() == null ) - { - return; - } - - List invalidParameters = new ArrayList(); - - for ( Parameter parameter : mojoDescriptor.getParameters() ) - { - if ( !parameter.isRequired() ) - { - continue; - } - - Object value = null; - - PlexusConfiguration config = configuration.getChild( parameter.getName(), false ); - if ( config != null ) - { - String expression = config.getValue( null ); - - try - { - value = expressionEvaluator.evaluate( expression ); - - if ( value == null ) - { - value = config.getAttribute( "default-value", null ); - } - } - catch ( ExpressionEvaluationException e ) - { - String msg = - "Error evaluating the expression '" + expression + "' for configuration value '" - + configuration.getName() + "'"; - throw new ComponentConfigurationException( configuration, msg, e ); - } - } - - if ( value == null && ( config == null || config.getChildCount() <= 0 ) ) - { - invalidParameters.add( parameter ); - } - } - - if ( !invalidParameters.isEmpty() ) - { - throw new PluginParameterException( mojoDescriptor, invalidParameters ); - } - } - - public void releaseMojo( Object mojo, MojoExecution mojoExecution ) - { - if ( mojo != null ) - { - try - { - container.release( mojo ); - } - catch ( ComponentLifecycleException e ) - { - String goalExecId = mojoExecution.getGoal(); - - if ( mojoExecution.getExecutionId() != null ) - { - goalExecId += " {execution: " + mojoExecution.getExecutionId() + "}"; - } - - logger.debug( "Error releasing mojo for " + goalExecId, e ); - } - } - } - - public ExtensionRealmCache.CacheRecord setupExtensionsRealm( MavenProject project, Plugin plugin, - RepositorySystemSession session ) - throws PluginManagerException - { - @SuppressWarnings( "unchecked" ) - Map pluginRealms = - (Map) project.getContextValue( KEY_EXTENSIONS_REALMS ); - if ( pluginRealms == null ) - { - pluginRealms = new HashMap(); - project.setContextValue( KEY_EXTENSIONS_REALMS, pluginRealms ); - } - - final String pluginKey = plugin.getId(); - - ExtensionRealmCache.CacheRecord extensionRecord = pluginRealms.get( pluginKey ); - if ( extensionRecord != null ) - { - return extensionRecord; - } - - final List repositories = project.getRemotePluginRepositories(); - - // resolve plugin version as necessary - if ( plugin.getVersion() == null ) - { - PluginVersionRequest versionRequest = new DefaultPluginVersionRequest( plugin, session, repositories ); - try - { - plugin.setVersion( pluginVersionResolver.resolve( versionRequest ).getVersion() ); - } - catch ( PluginVersionResolutionException e ) - { - throw new PluginManagerException( plugin, e.getMessage(), e ); - } - } - - // resolve plugin artifacts - List artifacts; - PluginArtifactsCache.Key cacheKey = pluginArtifactsCache.createKey( plugin, null, repositories, session ); - PluginArtifactsCache.CacheRecord recordArtifacts; - try - { - recordArtifacts = pluginArtifactsCache.get( cacheKey ); - } - catch ( PluginResolutionException e ) - { - throw new PluginManagerException( plugin, e.getMessage(), e ); - } - if ( recordArtifacts != null ) - { - artifacts = recordArtifacts.artifacts; - } - else - { - try - { - artifacts = resolveExtensionArtifacts( plugin, repositories, session ); - recordArtifacts = pluginArtifactsCache.put( cacheKey, artifacts ); - } - catch ( PluginResolutionException e ) - { - pluginArtifactsCache.put( cacheKey, e ); - pluginArtifactsCache.register( project, cacheKey, recordArtifacts ); - throw new PluginManagerException( plugin, e.getMessage(), e ); - } - } - pluginArtifactsCache.register( project, cacheKey, recordArtifacts ); - - // create and cache extensions realms - final ExtensionRealmCache.Key extensionKey = extensionRealmCache.createKey( artifacts ); - extensionRecord = extensionRealmCache.get( extensionKey ); - if ( extensionRecord == null ) - { - ClassRealm extensionRealm = classRealmManager.createExtensionRealm( plugin, - toAetherArtifacts( artifacts ) ); - - // TODO figure out how to use the same PluginDescriptor when running mojos - - PluginDescriptor pluginDescriptor = null; - if ( plugin.isExtensions() && !artifacts.isEmpty() ) - { - // ignore plugin descriptor parsing errors at this point - // these errors will reported during calculation of project build execution plan - try - { - pluginDescriptor = extractPluginDescriptor( artifacts.get( 0 ), plugin ); - } - catch ( PluginDescriptorParsingException e ) - { - // ignore, see above - } - catch ( InvalidPluginDescriptorException e ) - { - // ignore, see above - } - } - - discoverPluginComponents( extensionRealm, plugin, pluginDescriptor ); - - ExtensionDescriptor extensionDescriptor = null; - Artifact extensionArtifact = artifacts.get( 0 ); - try - { - extensionDescriptor = extensionDescriptorBuilder.build( extensionArtifact.getFile() ); - } - catch ( IOException e ) - { - String message = "Invalid extension descriptor for " + plugin.getId() + ": " + e.getMessage(); - if ( logger.isDebugEnabled() ) - { - logger.error( message, e ); - } - else - { - logger.error( message ); - } - } - extensionRecord = extensionRealmCache.put( extensionKey, extensionRealm, extensionDescriptor, artifacts ); - } - extensionRealmCache.register( project, extensionKey, extensionRecord ); - pluginRealms.put( pluginKey, extensionRecord ); - - return extensionRecord; - } - - private List resolveExtensionArtifacts( Plugin extensionPlugin, List repositories, - RepositorySystemSession session ) - throws PluginResolutionException - { - DependencyNode root = pluginDependenciesResolver.resolve( extensionPlugin, null, null, repositories, session ); - PreorderNodeListGenerator nlg = new PreorderNodeListGenerator(); - root.accept( nlg ); - return toMavenArtifacts( root, nlg ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginDependenciesResolver.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginDependenciesResolver.java deleted file mode 100644 index 5b0c2712..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginDependenciesResolver.java +++ /dev/null @@ -1,256 +0,0 @@ -package org.apache.maven.plugin.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; - -import org.apache.maven.RepositoryUtils; -import org.apache.maven.model.Dependency; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.PluginResolutionException; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; -import org.eclipse.aether.DefaultRepositorySystemSession; -import org.eclipse.aether.RepositorySystem; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.RequestTrace; -import org.eclipse.aether.artifact.Artifact; -import org.eclipse.aether.artifact.DefaultArtifact; -import org.eclipse.aether.collection.CollectRequest; -import org.eclipse.aether.collection.DependencyCollectionException; -import org.eclipse.aether.collection.DependencyGraphTransformer; -import org.eclipse.aether.collection.DependencySelector; -import org.eclipse.aether.graph.DependencyFilter; -import org.eclipse.aether.graph.DependencyNode; -import org.eclipse.aether.graph.DependencyVisitor; -import org.eclipse.aether.repository.RemoteRepository; -import org.eclipse.aether.resolution.ArtifactDescriptorException; -import org.eclipse.aether.resolution.ArtifactDescriptorRequest; -import org.eclipse.aether.resolution.ArtifactDescriptorResult; -import org.eclipse.aether.resolution.ArtifactRequest; -import org.eclipse.aether.resolution.ArtifactResolutionException; -import org.eclipse.aether.resolution.DependencyRequest; -import org.eclipse.aether.resolution.DependencyResolutionException; -import org.eclipse.aether.util.artifact.JavaScopes; -import org.eclipse.aether.util.filter.AndDependencyFilter; -import org.eclipse.aether.util.filter.ScopeDependencyFilter; -import org.eclipse.aether.util.graph.selector.AndDependencySelector; -import org.eclipse.aether.util.graph.transformer.ChainedDependencyGraphTransformer; -import org.eclipse.aether.util.repository.SimpleArtifactDescriptorPolicy; - -/** - * Assists in resolving the dependencies of a plugin. Warning: This is an internal utility class that - * is only public for technical reasons, it is not part of the public API. In particular, this class can be changed or - * deleted without prior notice. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -@Component( role = PluginDependenciesResolver.class ) -public class DefaultPluginDependenciesResolver - implements PluginDependenciesResolver -{ - - private static final String REPOSITORY_CONTEXT = "plugin"; - - @Requirement - private Logger logger; - - @Requirement - private RepositorySystem repoSystem; - - private Artifact toArtifact( Plugin plugin, RepositorySystemSession session ) - { - return new DefaultArtifact( plugin.getGroupId(), plugin.getArtifactId(), null, "jar", plugin.getVersion(), - session.getArtifactTypeRegistry().get( "maven-plugin" ) ); - } - - public Artifact resolve( Plugin plugin, List repositories, RepositorySystemSession session ) - throws PluginResolutionException - { - RequestTrace trace = RequestTrace.newChild( null, plugin ); - - Artifact pluginArtifact = toArtifact( plugin, session ); - - try - { - DefaultRepositorySystemSession pluginSession = new DefaultRepositorySystemSession( session ); - pluginSession.setArtifactDescriptorPolicy( new SimpleArtifactDescriptorPolicy( true, false ) ); - - ArtifactDescriptorRequest request = - new ArtifactDescriptorRequest( pluginArtifact, repositories, REPOSITORY_CONTEXT ); - request.setTrace( trace ); - ArtifactDescriptorResult result = repoSystem.readArtifactDescriptor( pluginSession, request ); - - pluginArtifact = result.getArtifact(); - - String requiredMavenVersion = (String) result.getProperties().get( "prerequisites.maven" ); - if ( requiredMavenVersion != null ) - { - Map props = new LinkedHashMap( pluginArtifact.getProperties() ); - props.put( "requiredMavenVersion", requiredMavenVersion ); - pluginArtifact = pluginArtifact.setProperties( props ); - } - } - catch ( ArtifactDescriptorException e ) - { - throw new PluginResolutionException( plugin, e ); - } - - try - { - ArtifactRequest request = new ArtifactRequest( pluginArtifact, repositories, REPOSITORY_CONTEXT ); - request.setTrace( trace ); - pluginArtifact = repoSystem.resolveArtifact( session, request ).getArtifact(); - } - catch ( ArtifactResolutionException e ) - { - throw new PluginResolutionException( plugin, e ); - } - - return pluginArtifact; - } - - /** - * @since 3.3.0 - */ - public DependencyNode resolveCoreExtension( Plugin plugin, DependencyFilter dependencyFilter, - List repositories, RepositorySystemSession session ) - throws PluginResolutionException - { - return resolveInternal( plugin, null /* pluginArtifact */, dependencyFilter, null /* transformer */, - repositories, session ); - } - - public DependencyNode resolve( Plugin plugin, Artifact pluginArtifact, DependencyFilter dependencyFilter, - List repositories, RepositorySystemSession session ) - throws PluginResolutionException - { - return resolveInternal( plugin, pluginArtifact, dependencyFilter, new PlexusUtilsInjector(), repositories, - session ); - } - - private DependencyNode resolveInternal( Plugin plugin, Artifact pluginArtifact, DependencyFilter dependencyFilter, - DependencyGraphTransformer transformer, - List repositories, RepositorySystemSession session ) - throws PluginResolutionException - { - RequestTrace trace = RequestTrace.newChild( null, plugin ); - - if ( pluginArtifact == null ) - { - pluginArtifact = toArtifact( plugin, session ); - } - - DependencyFilter collectionFilter = new ScopeDependencyFilter( "provided", "test" ); - DependencyFilter resolutionFilter = AndDependencyFilter.newInstance( collectionFilter, dependencyFilter ); - - DependencyNode node; - - try - { - DependencySelector selector = - AndDependencySelector.newInstance( session.getDependencySelector(), new WagonExcluder() ); - - transformer = - ChainedDependencyGraphTransformer.newInstance( session.getDependencyGraphTransformer(), transformer ); - - DefaultRepositorySystemSession pluginSession = new DefaultRepositorySystemSession( session ); - pluginSession.setDependencySelector( selector ); - pluginSession.setDependencyGraphTransformer( transformer ); - - CollectRequest request = new CollectRequest(); - request.setRequestContext( REPOSITORY_CONTEXT ); - request.setRepositories( repositories ); - request.setRoot( new org.eclipse.aether.graph.Dependency( pluginArtifact, null ) ); - for ( Dependency dependency : plugin.getDependencies() ) - { - org.eclipse.aether.graph.Dependency pluginDep = - RepositoryUtils.toDependency( dependency, session.getArtifactTypeRegistry() ); - if ( !JavaScopes.SYSTEM.equals( pluginDep.getScope() ) ) - { - pluginDep = pluginDep.setScope( JavaScopes.RUNTIME ); - } - request.addDependency( pluginDep ); - } - - DependencyRequest depRequest = new DependencyRequest( request, resolutionFilter ); - depRequest.setTrace( trace ); - - request.setTrace( RequestTrace.newChild( trace, depRequest ) ); - - node = repoSystem.collectDependencies( pluginSession, request ).getRoot(); - - if ( logger.isDebugEnabled() ) - { - node.accept( new GraphLogger() ); - } - - depRequest.setRoot( node ); - repoSystem.resolveDependencies( session, depRequest ); - } - catch ( DependencyCollectionException e ) - { - throw new PluginResolutionException( plugin, e ); - } - catch ( DependencyResolutionException e ) - { - throw new PluginResolutionException( plugin, e.getCause() ); - } - - return node; - } - - class GraphLogger - implements DependencyVisitor - { - - private String indent = ""; - - public boolean visitEnter( DependencyNode node ) - { - StringBuilder buffer = new StringBuilder( 128 ); - buffer.append( indent ); - org.eclipse.aether.graph.Dependency dep = node.getDependency(); - if ( dep != null ) - { - Artifact art = dep.getArtifact(); - - buffer.append( art ); - buffer.append( ':' ).append( dep.getScope() ); - } - - logger.debug( buffer.toString() ); - indent += " "; - return true; - } - - public boolean visitLeave( DependencyNode node ) - { - indent = indent.substring( 0, indent.length() - 3 ); - return true; - } - - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginManager.java deleted file mode 100644 index 015060f6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginManager.java +++ /dev/null @@ -1,261 +0,0 @@ -package org.apache.maven.plugin.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Map; - -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.resolver.ArtifactNotFoundException; -import org.apache.maven.artifact.resolver.ArtifactResolutionException; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.InvalidPluginDescriptorException; -import org.apache.maven.plugin.InvalidPluginException; -import org.apache.maven.plugin.LegacySupport; -import org.apache.maven.plugin.MavenPluginManager; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.plugin.MojoExecutionException; -import org.apache.maven.plugin.MojoFailureException; -import org.apache.maven.plugin.PluginConfigurationException; -import org.apache.maven.plugin.PluginDescriptorParsingException; -import org.apache.maven.plugin.PluginManager; -import org.apache.maven.plugin.PluginManagerException; -import org.apache.maven.plugin.PluginNotFoundException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.apache.maven.plugin.prefix.DefaultPluginPrefixRequest; -import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException; -import org.apache.maven.plugin.prefix.PluginPrefixRequest; -import org.apache.maven.plugin.prefix.PluginPrefixResolver; -import org.apache.maven.plugin.prefix.PluginPrefixResult; -import org.apache.maven.plugin.version.DefaultPluginVersionRequest; -import org.apache.maven.plugin.version.PluginVersionNotFoundException; -import org.apache.maven.plugin.version.PluginVersionRequest; -import org.apache.maven.plugin.version.PluginVersionResolutionException; -import org.apache.maven.plugin.version.PluginVersionResolver; -import org.apache.maven.project.MavenProject; -import org.apache.maven.project.artifact.InvalidDependencyVersionException; -import org.apache.maven.settings.Settings; -import org.codehaus.plexus.PlexusContainer; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.component.repository.exception.ComponentLookupException; - -/** - * @author Benjamin Bentmann - */ -@Component( role = PluginManager.class ) -public class DefaultPluginManager - implements PluginManager -{ - - @Requirement - private PlexusContainer container; - - @Requirement - private MavenPluginManager pluginManager; - - @Requirement - private PluginVersionResolver pluginVersionResolver; - - @Requirement - private PluginPrefixResolver pluginPrefixResolver; - - @Requirement - private LegacySupport legacySupport; - - public void executeMojo( MavenProject project, MojoExecution execution, MavenSession session ) - throws MojoExecutionException, ArtifactResolutionException, MojoFailureException, ArtifactNotFoundException, - InvalidDependencyVersionException, PluginManagerException, PluginConfigurationException - { - throw new UnsupportedOperationException(); - } - - public Object getPluginComponent( Plugin plugin, String role, String roleHint ) - throws PluginManagerException, ComponentLookupException - { - MavenSession session = legacySupport.getSession(); - - PluginDescriptor pluginDescriptor; - try - { - pluginDescriptor = - pluginManager.getPluginDescriptor( plugin, session.getCurrentProject().getRemotePluginRepositories(), - session.getRepositorySession() ); - - pluginManager.setupPluginRealm( pluginDescriptor, session, null, null, null ); - } - catch ( Exception e ) - { - throw new PluginManagerException( plugin, e.getMessage(), e ); - } - - ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); - try - { - Thread.currentThread().setContextClassLoader( pluginDescriptor.getClassRealm() ); - - return container.lookup( role, roleHint ); - } - finally - { - Thread.currentThread().setContextClassLoader( oldClassLoader ); - } - } - - public Map getPluginComponents( Plugin plugin, String role ) - throws ComponentLookupException, PluginManagerException - { - MavenSession session = legacySupport.getSession(); - - PluginDescriptor pluginDescriptor; - try - { - pluginDescriptor = - pluginManager.getPluginDescriptor( plugin, session.getCurrentProject().getRemotePluginRepositories(), - session.getRepositorySession() ); - - pluginManager.setupPluginRealm( pluginDescriptor, session, null, null, null ); - } - catch ( Exception e ) - { - throw new PluginManagerException( plugin, e.getMessage(), e ); - } - - ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); - try - { - Thread.currentThread().setContextClassLoader( pluginDescriptor.getClassRealm() ); - - return container.lookupMap( role ); - } - finally - { - Thread.currentThread().setContextClassLoader( oldClassLoader ); - } - } - - public Plugin getPluginDefinitionForPrefix( String prefix, MavenSession session, MavenProject project ) - { - PluginPrefixRequest request = new DefaultPluginPrefixRequest( prefix, session ); - request.setPom( project.getModel() ); - - try - { - PluginPrefixResult result = pluginPrefixResolver.resolve( request ); - - Plugin plugin = new Plugin(); - plugin.setGroupId( result.getGroupId() ); - plugin.setArtifactId( result.getArtifactId() ); - - return plugin; - } - catch ( NoPluginFoundForPrefixException e ) - { - return null; - } - } - - public PluginDescriptor getPluginDescriptorForPrefix( String prefix ) - { - MavenSession session = legacySupport.getSession(); - - PluginPrefixRequest request = new DefaultPluginPrefixRequest( prefix, session ); - - try - { - PluginPrefixResult result = pluginPrefixResolver.resolve( request ); - - Plugin plugin = new Plugin(); - plugin.setGroupId( result.getGroupId() ); - plugin.setArtifactId( result.getArtifactId() ); - - return loadPluginDescriptor( plugin, session.getCurrentProject(), session ); - } - catch ( Exception e ) - { - return null; - } - } - - public PluginDescriptor loadPluginDescriptor( Plugin plugin, MavenProject project, MavenSession session ) - throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException, - InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException, - PluginVersionNotFoundException - { - return verifyPlugin( plugin, project, session.getSettings(), session.getLocalRepository() ); - } - - public PluginDescriptor loadPluginFully( Plugin plugin, MavenProject project, MavenSession session ) - throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException, - InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException, - PluginVersionNotFoundException - { - PluginDescriptor pluginDescriptor = loadPluginDescriptor( plugin, project, session ); - - try - { - pluginManager.setupPluginRealm( pluginDescriptor, session, null, null, null ); - } - catch ( PluginResolutionException e ) - { - throw new PluginManagerException( plugin, e.getMessage(), e ); - } - - return pluginDescriptor; - } - - public PluginDescriptor verifyPlugin( Plugin plugin, MavenProject project, Settings settings, - ArtifactRepository localRepository ) - throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException, - InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException, - PluginVersionNotFoundException - { - MavenSession session = legacySupport.getSession(); - - if ( plugin.getVersion() == null ) - { - PluginVersionRequest versionRequest = - new DefaultPluginVersionRequest( plugin, session.getRepositorySession(), - project.getRemotePluginRepositories() ); - plugin.setVersion( pluginVersionResolver.resolve( versionRequest ).getVersion() ); - } - - try - { - return pluginManager.getPluginDescriptor( plugin, project.getRemotePluginRepositories(), - session.getRepositorySession() ); - } - catch ( PluginResolutionException e ) - { - throw new PluginNotFoundException( plugin, project.getPluginArtifactRepositories() ); - } - catch ( PluginDescriptorParsingException e ) - { - throw new PluginManagerException( plugin, e.getMessage(), e ); - } - catch ( InvalidPluginDescriptorException e ) - { - throw new PluginManagerException( plugin, e.getMessage(), e ); - } - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/PlexusUtilsInjector.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/PlexusUtilsInjector.java deleted file mode 100644 index 16a0b63c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/PlexusUtilsInjector.java +++ /dev/null @@ -1,87 +0,0 @@ -package org.apache.maven.plugin.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.eclipse.aether.RepositoryException; -import org.eclipse.aether.artifact.Artifact; -import org.eclipse.aether.artifact.DefaultArtifact; -import org.eclipse.aether.collection.DependencyGraphTransformationContext; -import org.eclipse.aether.collection.DependencyGraphTransformer; -import org.eclipse.aether.graph.DefaultDependencyNode; -import org.eclipse.aether.graph.Dependency; -import org.eclipse.aether.graph.DependencyNode; -import org.eclipse.aether.util.artifact.JavaScopes; - -/** - * Injects plexus-utils:1.1 into a plugin's class path if it doesn't already declare a dependency on plexus-utils. This - * is another legacy bit to provide backward-compat with Maven 2.x. - * - * @author Benjamin Bentmann - */ -class PlexusUtilsInjector - implements DependencyGraphTransformer -{ - - private static final String GID = "org.codehaus.plexus"; - - private static final String AID = "plexus-utils"; - - private static final String VER = "1.1"; - - private static final String EXT = "jar"; - - public DependencyNode transformGraph( DependencyNode node, DependencyGraphTransformationContext context ) - throws RepositoryException - { - if ( findPlexusUtils( node ) == null ) - { - Artifact pu = new DefaultArtifact( GID, AID, null, EXT, VER ); - DefaultDependencyNode child = new DefaultDependencyNode( new Dependency( pu, JavaScopes.RUNTIME ) ); - child.setRepositories( node.getRepositories() ); - child.setRequestContext( node.getRequestContext() ); - node.getChildren().add( child ); - } - - return node; - } - - private DependencyNode findPlexusUtils( DependencyNode node ) - { - Artifact artifact = node.getDependency().getArtifact(); - - if ( AID.equals( artifact.getArtifactId() ) && GID.equals( artifact.getGroupId() ) - && EXT.equals( artifact.getExtension() ) && "".equals( artifact.getClassifier() ) ) - { - return node; - } - - for ( DependencyNode child : node.getChildren() ) - { - DependencyNode result = findPlexusUtils( child ); - if ( result != null ) - { - return result; - } - } - - return null; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/PluginDependenciesResolver.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/PluginDependenciesResolver.java deleted file mode 100644 index 41942978..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/PluginDependenciesResolver.java +++ /dev/null @@ -1,71 +0,0 @@ -package org.apache.maven.plugin.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.PluginResolutionException; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.artifact.Artifact; -import org.eclipse.aether.graph.DependencyFilter; -import org.eclipse.aether.graph.DependencyNode; -import org.eclipse.aether.repository.RemoteRepository; - -/** - * Assists in resolving the dependencies of a plugin. Warning: This is an internal utility interface - * that is only public for technical reasons, it is not part of the public API. In particular, this interface can be - * changed or deleted without prior notice. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -public interface PluginDependenciesResolver -{ - - /** - * Resolves the main artifact of the specified plugin. - * - * @param plugin The plugin for which to resolve the main artifact, must not be {@code null}. - * @param repositories The plugin repositories to use for resolving the plugin's main artifact, must not be {@code - * null}. - * @param session The repository session to use for resolving the plugin's main artifact, must not be {@code null}. - * @return The resolved plugin artifact, never {@code null}. - * @throws PluginResolutionException If the plugin artifact could not be resolved. - */ - Artifact resolve( Plugin plugin, List repositories, RepositorySystemSession session ) - throws PluginResolutionException; - - /** - * Resolves the runtime dependencies of the specified plugin. - * - * @param plugin The plugin for which to resolve the dependencies, must not be {@code null}. - * @param pluginArtifact The plugin's main artifact, may be {@code null}. - * @param dependencyFilter A filter to exclude artifacts from resolution (but not collection), may be {@code null}. - * @param repositories The plugin repositories to use for resolving the plugin artifacts, must not be {@code null}. - * @param session The repository session to use for resolving the plugin artifacts, must not be {@code null}. - * @return The dependency tree denoting the resolved plugin class path, never {@code null}. - * @throws PluginResolutionException If any dependency could not be resolved. - */ - DependencyNode resolve( Plugin plugin, Artifact pluginArtifact, DependencyFilter dependencyFilter, - List repositories, RepositorySystemSession session ) - throws PluginResolutionException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/PluginDependencyResolutionListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/PluginDependencyResolutionListener.java deleted file mode 100644 index 533920a8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/PluginDependencyResolutionListener.java +++ /dev/null @@ -1,158 +0,0 @@ -package org.apache.maven.plugin.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collection; -import java.util.IdentityHashMap; -import java.util.Iterator; -import java.util.LinkedList; -import java.util.Map; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.resolver.ResolutionListener; -import org.apache.maven.artifact.resolver.filter.ArtifactFilter; -import org.apache.maven.artifact.versioning.VersionRange; - -/** - * Assists in detecting wagon providers brought into the plugin class path via legacy Maven core artifacts (e.g. - * maven-core:2.0.6) and excluding them. A plugin should be able to explicitly declare dependencies on specific wagons - * for its use. However, the (old) wagons pulled in transitively via legacy Maven core artifacts are usually not - * intended as dependencies and more importantly screw up artifact resolution because they would get preferred over the - * core wagon versions. This is a hack to provide backward-compat with Maven 2 (MNG-4528, MNG-4561). - * - * @since 3.0 - * @author Benjamin Bentmann - */ -class PluginDependencyResolutionListener - implements ResolutionListener -{ - - private ArtifactFilter coreFilter; - - private LinkedList coreArtifacts = new LinkedList(); - - private Artifact wagonProvider; - - private Map bannedArtifacts = new IdentityHashMap(); - - public PluginDependencyResolutionListener( ArtifactFilter coreFilter ) - { - this.coreFilter = coreFilter; - } - - public void removeBannedDependencies( Collection artifacts ) - { - if ( !bannedArtifacts.isEmpty() && artifacts != null ) - { - for ( Iterator it = artifacts.iterator(); it.hasNext(); ) - { - Artifact artifact = it.next(); - if ( bannedArtifacts.containsKey( artifact ) ) - { - it.remove(); - } - } - } - } - - public void startProcessChildren( Artifact artifact ) - { - if ( wagonProvider == null ) - { - if ( isLegacyCoreArtifact( artifact ) ) - { - coreArtifacts.addFirst( artifact ); - } - else if ( !coreArtifacts.isEmpty() && isWagonProvider( artifact ) ) - { - wagonProvider = artifact; - bannedArtifacts.put( artifact, null ); - } - } - } - - private boolean isLegacyCoreArtifact( Artifact artifact ) - { - String version = artifact.getVersion(); - return version != null && version.startsWith( "2." ) && !coreFilter.include( artifact ); - } - - public void endProcessChildren( Artifact artifact ) - { - if ( wagonProvider == artifact ) - { - wagonProvider = null; - } - else if ( coreArtifacts.peek() == artifact ) - { - coreArtifacts.removeFirst(); - } - } - - public void includeArtifact( Artifact artifact ) - { - if ( wagonProvider != null ) - { - bannedArtifacts.put( artifact, null ); - } - } - - private boolean isWagonProvider( Artifact artifact ) - { - if ( "org.apache.maven.wagon".equals( artifact.getGroupId() ) ) - { - return artifact.getArtifactId().startsWith( "wagon-" ); - } - return false; - } - - public void manageArtifact( Artifact artifact, Artifact replacement ) - { - } - - public void omitForCycle( Artifact artifact ) - { - } - - public void omitForNearer( Artifact omitted, Artifact kept ) - { - } - - public void restrictRange( Artifact artifact, Artifact replacement, VersionRange newRange ) - { - } - - public void selectVersionFromRange( Artifact artifact ) - { - } - - public void testArtifact( Artifact node ) - { - } - - public void updateScope( Artifact artifact, String scope ) - { - } - - public void updateScopeCurrentPom( Artifact artifact, String ignoredScope ) - { - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/ValidatingConfigurationListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/ValidatingConfigurationListener.java deleted file mode 100644 index 706694b8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/ValidatingConfigurationListener.java +++ /dev/null @@ -1,97 +0,0 @@ -package org.apache.maven.plugin.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; - -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.descriptor.Parameter; -import org.codehaus.plexus.component.configurator.ConfigurationListener; - -/** - * A configuration listener to help validate the plugin configuration. For instance, check for required but missing - * parameters. - * - * @author Benjamin Bentmann - */ -class ValidatingConfigurationListener - implements ConfigurationListener -{ - - private final Object mojo; - - private final ConfigurationListener delegate; - - private final Map missingParameters; - - public ValidatingConfigurationListener( Object mojo, MojoDescriptor mojoDescriptor, ConfigurationListener delegate ) - { - this.mojo = mojo; - this.delegate = delegate; - this.missingParameters = new HashMap(); - - if ( mojoDescriptor.getParameters() != null ) - { - for ( Parameter param : mojoDescriptor.getParameters() ) - { - if ( param.isRequired() ) - { - missingParameters.put( param.getName(), param ); - } - } - } - } - - public Collection getMissingParameters() - { - return missingParameters.values(); - } - - public void notifyFieldChangeUsingSetter( String fieldName, Object value, Object target ) - { - delegate.notifyFieldChangeUsingSetter( fieldName, value, target ); - - if ( mojo == target ) - { - notify( fieldName, value ); - } - } - - public void notifyFieldChangeUsingReflection( String fieldName, Object value, Object target ) - { - delegate.notifyFieldChangeUsingReflection( fieldName, value, target ); - - if ( mojo == target ) - { - notify( fieldName, value ); - } - } - - private void notify( String fieldName, Object value ) - { - if ( value != null ) - { - missingParameters.remove( fieldName ); - } - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/WagonExcluder.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/WagonExcluder.java deleted file mode 100644 index 43e8cfc4..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/internal/WagonExcluder.java +++ /dev/null @@ -1,109 +0,0 @@ -package org.apache.maven.plugin.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.eclipse.aether.artifact.Artifact; -import org.eclipse.aether.collection.DependencyCollectionContext; -import org.eclipse.aether.collection.DependencySelector; -import org.eclipse.aether.graph.Dependency; - -/** - * Assists in detecting wagon providers brought into the plugin class path via legacy Maven core artifacts (e.g. - * maven-core:2.0.6) and excluding them. A plugin should be able to explicitly declare dependencies on specific wagons - * for its use. However, the (old) wagons pulled in transitively via legacy Maven core artifacts are usually not - * intended as dependencies and more importantly screw up artifact resolution because they would get preferred over the - * core wagon versions. This is a hack to provide backward-compat with Maven 2 (MNG-4528, MNG-4561). - * - * @author Benjamin Bentmann - */ -class WagonExcluder - implements DependencySelector -{ - - private final boolean coreArtifact; - - public WagonExcluder() - { - this( false ); - } - - private WagonExcluder( boolean coreArtifact ) - { - this.coreArtifact = coreArtifact; - } - - public boolean selectDependency( Dependency dependency ) - { - return !coreArtifact || !isWagonProvider( dependency.getArtifact() ); - } - - public DependencySelector deriveChildSelector( DependencyCollectionContext context ) - { - if ( coreArtifact || !isLegacyCoreArtifact( context.getDependency().getArtifact() ) ) - { - return this; - } - else - { - return new WagonExcluder( true ); - } - } - - private boolean isLegacyCoreArtifact( Artifact artifact ) - { - String version = artifact.getVersion(); - return version != null && version.startsWith( "2." ) && artifact.getArtifactId().startsWith( "maven-" ) - && artifact.getGroupId().equals( "org.apache.maven" ); - } - - private boolean isWagonProvider( Artifact artifact ) - { - if ( "org.apache.maven.wagon".equals( artifact.getGroupId() ) ) - { - return artifact.getArtifactId().startsWith( "wagon-" ); - } - return false; - } - - @Override - public boolean equals( Object obj ) - { - if ( obj == this ) - { - return true; - } - else if ( obj == null || !getClass().equals( obj.getClass() ) ) - { - return false; - } - - WagonExcluder that = (WagonExcluder) obj; - return coreArtifact == that.coreArtifact; - } - - @Override - public int hashCode() - { - int hash = getClass().hashCode(); - hash = hash * 31 + ( coreArtifact ? 1 : 0 ); - return hash; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/DefaultPluginPrefixRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/DefaultPluginPrefixRequest.java deleted file mode 100644 index 7ab86cfd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/DefaultPluginPrefixRequest.java +++ /dev/null @@ -1,156 +0,0 @@ -package org.apache.maven.plugin.prefix; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collections; -import java.util.List; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.model.Model; -import org.apache.maven.project.MavenProject; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.repository.RemoteRepository; - -/** - * Collects settings required to resolve a plugin prefix. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -public class DefaultPluginPrefixRequest - implements PluginPrefixRequest -{ - - private String prefix; - - private List pluginGroups = Collections.emptyList(); - - private Model pom; - - private List repositories = Collections.emptyList(); - - private RepositorySystemSession session; - - /** - * Creates an empty request. - */ - public DefaultPluginPrefixRequest() - { - } - - /** - * Creates a request for the specified plugin prefix and build session. The provided build session will be used to - * configure repository settings. If the session has a current project, its plugin repositories and model will be - * used as well. - * - * @param prefix The plugin prefix to resolve, must not be {@code null}. - * @param session The build session from which to derive further settings, must not be {@code null}. - */ - public DefaultPluginPrefixRequest( String prefix, MavenSession session ) - { - setPrefix( prefix ); - - setRepositorySession( session.getRepositorySession() ); - - MavenProject project = session.getCurrentProject(); - if ( project != null ) - { - setRepositories( project.getRemotePluginRepositories() ); - setPom( project.getModel() ); - } - - setPluginGroups( session.getPluginGroups() ); - } - - public String getPrefix() - { - return prefix; - } - - public DefaultPluginPrefixRequest setPrefix( String prefix ) - { - this.prefix = prefix; - - return this; - } - - public List getPluginGroups() - { - return pluginGroups; - } - - public DefaultPluginPrefixRequest setPluginGroups( List pluginGroups ) - { - if ( pluginGroups != null ) - { - this.pluginGroups = pluginGroups; - } - else - { - this.pluginGroups = Collections.emptyList(); - } - - return this; - } - - public Model getPom() - { - return pom; - } - - public DefaultPluginPrefixRequest setPom( Model pom ) - { - this.pom = pom; - - return this; - } - - public List getRepositories() - { - return repositories; - } - - public DefaultPluginPrefixRequest setRepositories( List repositories ) - { - if ( repositories != null ) - { - this.repositories = repositories; - } - else - { - this.repositories = Collections.emptyList(); - } - - return this; - } - - public RepositorySystemSession getRepositorySession() - { - return session; - } - - public DefaultPluginPrefixRequest setRepositorySession( RepositorySystemSession session ) - { - this.session = session; - - return this; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/NoPluginFoundForPrefixException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/NoPluginFoundForPrefixException.java deleted file mode 100644 index 32870217..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/NoPluginFoundForPrefixException.java +++ /dev/null @@ -1,65 +0,0 @@ -package org.apache.maven.plugin.prefix; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.eclipse.aether.repository.LocalRepository; -import org.eclipse.aether.repository.RemoteRepository; - -public class NoPluginFoundForPrefixException - extends Exception -{ - - public NoPluginFoundForPrefixException( String prefix, List pluginGroups, LocalRepository localRepository, - List remoteRepositories ) - { - super( "No plugin found for prefix '" + prefix + "' in the current project and in the plugin groups " - + pluginGroups + " available from the repositories " + format( localRepository, remoteRepositories ) ); - } - - private static String format( LocalRepository localRepository, List remoteRepositories ) - { - String repos = "["; - - if ( localRepository != null ) - { - repos += localRepository.getId() + " (" + localRepository.getBasedir() + ")"; - } - - if ( remoteRepositories != null && !remoteRepositories.isEmpty() ) - { - for ( RemoteRepository repository : remoteRepositories ) - { - repos += ", "; - - if ( repository != null ) - { - repos += repository.getId() + " (" + repository.getUrl() + ")"; - } - } - } - - repos += "]"; - - return repos; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/PluginPrefixRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/PluginPrefixRequest.java deleted file mode 100644 index 23df66ee..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/PluginPrefixRequest.java +++ /dev/null @@ -1,115 +0,0 @@ -package org.apache.maven.plugin.prefix; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.model.Model; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.repository.RemoteRepository; - -/** - * Collects settings required to resolve a plugin prefix. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -public interface PluginPrefixRequest -{ - - /** - * Gets the prefix of the plugin. - * - * @return The prefix of the plugin. - */ - String getPrefix(); - - /** - * Sets the prefix of the plugin. - * - * @param prefix The prefix of the plugin. - * @return This request, never {@code null}. - */ - PluginPrefixRequest setPrefix( String prefix ); - - /** - * Gets the list of group ids to scan for the plugin prefix. - * - * @return The list of group ids to scan for the plugin prefix, never {@code null}. - */ - List getPluginGroups(); - - /** - * Sets the list of group ids to scan for the plugin prefix. - * - * @param pluginGroups The list of group ids to scan for the plugin prefix, may be {@code null}. - * @return This request, never {@code null}. - */ - PluginPrefixRequest setPluginGroups( List pluginGroups ); - - /** - * Gets the POM whose build plugins are to be scanned for the prefix. - * - * @return The POM whose build plugins are to be scanned for the prefix or {@code null} to only search the plugin - * repositories. - */ - Model getPom(); - - /** - * Sets the POM whose build plugins are to be scanned for the prefix. - * - * @param pom The POM whose build plugins are to be scanned for the prefix, may be {@code null} to only search the - * plugin repositories. - * @return This request, never {@code null}. - */ - PluginPrefixRequest setPom( Model pom ); - - /** - * Gets the remote repositories to use. - * - * @return The remote repositories to use, never {@code null}. - */ - List getRepositories(); - - /** - * Sets the remote repositories to use. Note: When creating a request from a project, be sure to use the - * plugin repositories and not the regular project repositories. - * - * @param repositories The remote repositories to use. - * @return This request, never {@code null}. - */ - PluginPrefixRequest setRepositories( List repositories ); - - /** - * Gets the session to use for repository access. - * - * @return The repository session or {@code null} if not set. - */ - RepositorySystemSession getRepositorySession(); - - /** - * Sets the session to use for repository access. - * - * @param repositorySession The repository session to use. - * @return This request, never {@code null}. - */ - PluginPrefixRequest setRepositorySession( RepositorySystemSession repositorySession ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/PluginPrefixResolver.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/PluginPrefixResolver.java deleted file mode 100644 index 943e6833..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/PluginPrefixResolver.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.apache.maven.plugin.prefix; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Resolves a plugin prefix. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -public interface PluginPrefixResolver -{ - - /** - * Resolves the plugin prefix for the specified request. - * - * @param request The request that holds the details about the plugin and the repositories to consult, must not be - * {@code null}. - * @return The result of the prefix resolution, never {@code null}. - * @throws NoPluginFoundForPrefixException If the plugin prefix could not be resolved. - */ - PluginPrefixResult resolve( PluginPrefixRequest request ) - throws NoPluginFoundForPrefixException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/PluginPrefixResult.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/PluginPrefixResult.java deleted file mode 100644 index 8fe1a71a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/PluginPrefixResult.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.apache.maven.plugin.prefix; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.eclipse.aether.repository.ArtifactRepository; - -/** - * Describes the result of a plugin prefix resolution request. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -public interface PluginPrefixResult -{ - - /** - * The resolved group id for the plugin. - * - * @return The resolved group id for the plugin, never {@code null}. - */ - String getGroupId(); - - /** - * The resolved artifact id for the plugin. - * - * @return The resolved artifact id for the plugin, never {@code null}. - */ - String getArtifactId(); - - /** - * The repository from which the plugin prefix was resolved. - * - * @return The repository from which the plugin prefix was resolved or {@code null} if the prefix was resolved from - * the supplied POM. - */ - ArtifactRepository getRepository(); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java deleted file mode 100644 index 8d2ad0f7..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java +++ /dev/null @@ -1,294 +0,0 @@ -package org.apache.maven.plugin.prefix.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.IOException; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Map; - -import org.apache.maven.artifact.repository.metadata.Metadata; -import org.apache.maven.artifact.repository.metadata.io.MetadataReader; -import org.apache.maven.model.Build; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.BuildPluginManager; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException; -import org.apache.maven.plugin.prefix.PluginPrefixRequest; -import org.apache.maven.plugin.prefix.PluginPrefixResolver; -import org.apache.maven.plugin.prefix.PluginPrefixResult; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; -import org.eclipse.aether.RepositoryEvent.EventType; -import org.eclipse.aether.DefaultRepositorySystemSession; -import org.eclipse.aether.RepositoryEvent; -import org.eclipse.aether.RepositoryListener; -import org.eclipse.aether.RepositorySystem; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.RequestTrace; -import org.eclipse.aether.metadata.DefaultMetadata; -import org.eclipse.aether.repository.ArtifactRepository; -import org.eclipse.aether.repository.RemoteRepository; -import org.eclipse.aether.repository.RepositoryPolicy; -import org.eclipse.aether.resolution.MetadataRequest; -import org.eclipse.aether.resolution.MetadataResult; - -/** - * Resolves a plugin prefix. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -@Component( role = PluginPrefixResolver.class ) -public class DefaultPluginPrefixResolver - implements PluginPrefixResolver -{ - - private static final String REPOSITORY_CONTEXT = "plugin"; - - @Requirement - private Logger logger; - - @Requirement - private BuildPluginManager pluginManager; - - @Requirement - private RepositorySystem repositorySystem; - - @Requirement - private MetadataReader metadataReader; - - public PluginPrefixResult resolve( PluginPrefixRequest request ) - throws NoPluginFoundForPrefixException - { - logger.debug( "Resolving plugin prefix " + request.getPrefix() + " from " + request.getPluginGroups() ); - - PluginPrefixResult result = resolveFromProject( request ); - - if ( result == null ) - { - result = resolveFromRepository( request ); - - if ( result == null ) - { - throw new NoPluginFoundForPrefixException( request.getPrefix(), request.getPluginGroups(), - request.getRepositorySession().getLocalRepository(), - request.getRepositories() ); - } - else if ( logger.isDebugEnabled() ) - { - logger.debug( "Resolved plugin prefix " + request.getPrefix() + " to " + result.getGroupId() + ":" - + result.getArtifactId() + " from repository " - + ( result.getRepository() != null ? result.getRepository().getId() : "null" ) ); - } - } - else if ( logger.isDebugEnabled() ) - { - logger.debug( "Resolved plugin prefix " + request.getPrefix() + " to " + result.getGroupId() + ":" - + result.getArtifactId() + " from POM " + request.getPom() ); - } - - return result; - } - - private PluginPrefixResult resolveFromProject( PluginPrefixRequest request ) - { - PluginPrefixResult result = null; - - if ( request.getPom() != null && request.getPom().getBuild() != null ) - { - Build build = request.getPom().getBuild(); - - result = resolveFromProject( request, build.getPlugins() ); - - if ( result == null && build.getPluginManagement() != null ) - { - result = resolveFromProject( request, build.getPluginManagement().getPlugins() ); - } - } - - return result; - } - - private PluginPrefixResult resolveFromProject( PluginPrefixRequest request, List plugins ) - { - for ( Plugin plugin : plugins ) - { - try - { - PluginDescriptor pluginDescriptor = - pluginManager.loadPlugin( plugin, request.getRepositories(), request.getRepositorySession() ); - - if ( request.getPrefix().equals( pluginDescriptor.getGoalPrefix() ) ) - { - return new DefaultPluginPrefixResult( plugin ); - } - } - catch ( Exception e ) - { - if ( logger.isDebugEnabled() ) - { - logger.warn( "Failed to retrieve plugin descriptor for " + plugin.getId() + ": " + e.getMessage(), - e ); - } - else - { - logger.warn( "Failed to retrieve plugin descriptor for " + plugin.getId() + ": " + e.getMessage() ); - } - } - } - - return null; - } - - private PluginPrefixResult resolveFromRepository( PluginPrefixRequest request ) - { - RequestTrace trace = RequestTrace.newChild( null, request ); - - List requests = new ArrayList(); - - for ( String pluginGroup : request.getPluginGroups() ) - { - org.eclipse.aether.metadata.Metadata metadata = - new DefaultMetadata( pluginGroup, "maven-metadata.xml", DefaultMetadata.Nature.RELEASE_OR_SNAPSHOT ); - - requests.add( new MetadataRequest( metadata, null, REPOSITORY_CONTEXT ).setTrace( trace ) ); - - for ( RemoteRepository repository : request.getRepositories() ) - { - requests.add( new MetadataRequest( metadata, repository, REPOSITORY_CONTEXT ).setTrace( trace ) ); - } - } - - // initial try, use locally cached metadata - - List results = repositorySystem.resolveMetadata( request.getRepositorySession(), requests ); - requests.clear(); - - PluginPrefixResult result = processResults( request, trace, results, requests ); - - if ( result != null ) - { - return result; - } - - // second try, refetch all (possibly outdated) metadata that wasn't updated in the first attempt - - if ( !request.getRepositorySession().isOffline() && !requests.isEmpty() ) - { - DefaultRepositorySystemSession session = - new DefaultRepositorySystemSession( request.getRepositorySession() ); - session.setUpdatePolicy( RepositoryPolicy.UPDATE_POLICY_ALWAYS ); - - results = repositorySystem.resolveMetadata( session, requests ); - - return processResults( request, trace, results, null ); - } - - return null; - } - - private PluginPrefixResult processResults( PluginPrefixRequest request, RequestTrace trace, - List results, List requests ) - { - for ( MetadataResult res : results ) - { - org.eclipse.aether.metadata.Metadata metadata = res.getMetadata(); - - if ( metadata != null ) - { - ArtifactRepository repository = res.getRequest().getRepository(); - if ( repository == null ) - { - repository = request.getRepositorySession().getLocalRepository(); - } - - PluginPrefixResult result = - resolveFromRepository( request, trace, metadata.getGroupId(), metadata, repository ); - - if ( result != null ) - { - return result; - } - } - - if ( requests != null && !res.isUpdated() ) - { - requests.add( res.getRequest() ); - } - } - - return null; - } - - private PluginPrefixResult resolveFromRepository( PluginPrefixRequest request, RequestTrace trace, - String pluginGroup, - org.eclipse.aether.metadata.Metadata metadata, - ArtifactRepository repository ) - { - if ( metadata != null && metadata.getFile() != null && metadata.getFile().isFile() ) - { - try - { - Map options = Collections.singletonMap( MetadataReader.IS_STRICT, Boolean.FALSE ); - - Metadata pluginGroupMetadata = metadataReader.read( metadata.getFile(), options ); - - List plugins = pluginGroupMetadata.getPlugins(); - - if ( plugins != null ) - { - for ( org.apache.maven.artifact.repository.metadata.Plugin plugin : plugins ) - { - if ( request.getPrefix().equals( plugin.getPrefix() ) ) - { - return new DefaultPluginPrefixResult( pluginGroup, plugin.getArtifactId(), repository ); - } - } - } - } - catch ( IOException e ) - { - invalidMetadata( request.getRepositorySession(), trace, metadata, repository, e ); - } - } - - return null; - } - - private void invalidMetadata( RepositorySystemSession session, RequestTrace trace, - org.eclipse.aether.metadata.Metadata metadata, ArtifactRepository repository, - Exception exception ) - { - RepositoryListener listener = session.getRepositoryListener(); - if ( listener != null ) - { - RepositoryEvent.Builder event = new RepositoryEvent.Builder( session, EventType.METADATA_INVALID ); - event.setTrace( trace ); - event.setMetadata( metadata ); - event.setException( exception ); - event.setRepository( repository ); - listener.metadataInvalid( event.build() ); - } - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResult.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResult.java deleted file mode 100644 index 6a248bff..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResult.java +++ /dev/null @@ -1,90 +0,0 @@ -package org.apache.maven.plugin.prefix.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.prefix.PluginPrefixResult; -import org.eclipse.aether.repository.ArtifactRepository; - -/** - * Describes the result of a plugin prefix resolution request. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -class DefaultPluginPrefixResult - implements PluginPrefixResult -{ - - private String groupId; - - private String artifactId; - - private ArtifactRepository repository; - - public DefaultPluginPrefixResult() - { - // does nothing - } - - public DefaultPluginPrefixResult( Plugin plugin ) - { - groupId = plugin.getGroupId(); - artifactId = plugin.getArtifactId(); - } - - public DefaultPluginPrefixResult( String groupId, String artifactId, ArtifactRepository repository ) - { - this.groupId = groupId; - this.artifactId = artifactId; - this.repository = repository; - } - - public String getGroupId() - { - return groupId; - } - - public void setGroupId( String groupId ) - { - this.groupId = groupId; - } - - public String getArtifactId() - { - return artifactId; - } - - public void setArtifactId( String artifactId ) - { - this.artifactId = artifactId; - } - - public ArtifactRepository getRepository() - { - return repository; - } - - public void setRepository( ArtifactRepository repository ) - { - this.repository = repository; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/DefaultPluginVersionRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/DefaultPluginVersionRequest.java deleted file mode 100644 index 9907066b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/DefaultPluginVersionRequest.java +++ /dev/null @@ -1,165 +0,0 @@ -package org.apache.maven.plugin.version; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collections; -import java.util.List; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.model.Model; -import org.apache.maven.model.Plugin; -import org.apache.maven.project.MavenProject; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.repository.RemoteRepository; - -/** - * Collects settings required to resolve the version for a plugin. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -public class DefaultPluginVersionRequest - implements PluginVersionRequest -{ - - private String groupId; - - private String artifactId; - - private Model pom; - - private List repositories = Collections.emptyList(); - - private RepositorySystemSession session; - - /** - * Creates an empty request. - */ - public DefaultPluginVersionRequest() - { - } - - /** - * Creates a request for the specified plugin by copying settings from the specified build session. If the session - * has a current project, its plugin repositories will be used as well. - * - * @param plugin The plugin for which to resolve a version, must not be {@code null}. - * @param session The Maven session to use, must not be {@code null}. - */ - public DefaultPluginVersionRequest( Plugin plugin, MavenSession session ) - { - setGroupId( plugin.getGroupId() ); - setArtifactId( plugin.getArtifactId() ); - - setRepositorySession( session.getRepositorySession() ); - - MavenProject project = session.getCurrentProject(); - if ( project != null ) - { - setRepositories( project.getRemotePluginRepositories() ); - } - } - - /** - * Creates a request for the specified plugin using the given repository session and plugin repositories. - * - * @param plugin The plugin for which to resolve a version, must not be {@code null}. - * @param session The repository session to use, must not be {@code null}. - * @param repositories The plugin repositories to query, may be {@code null}. - */ - public DefaultPluginVersionRequest( Plugin plugin, RepositorySystemSession session, - List repositories ) - { - setGroupId( plugin.getGroupId() ); - setArtifactId( plugin.getArtifactId() ); - - setRepositorySession( session ); - - setRepositories( repositories ); - } - - public String getGroupId() - { - return groupId; - } - - public DefaultPluginVersionRequest setGroupId( String groupId ) - { - this.groupId = groupId; - - return this; - } - - public String getArtifactId() - { - return artifactId; - } - - public DefaultPluginVersionRequest setArtifactId( String artifactId ) - { - this.artifactId = artifactId; - - return this; - } - - public Model getPom() - { - return pom; - } - - public DefaultPluginVersionRequest setPom( Model pom ) - { - this.pom = pom; - - return this; - } - - public List getRepositories() - { - return repositories; - } - - public DefaultPluginVersionRequest setRepositories( List repositories ) - { - if ( repositories != null ) - { - this.repositories = repositories; - } - else - { - this.repositories = Collections.emptyList(); - } - - return this; - } - - public RepositorySystemSession getRepositorySession() - { - return session; - } - - public DefaultPluginVersionRequest setRepositorySession( RepositorySystemSession session ) - { - this.session = session; - - return this; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionNotFoundException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionNotFoundException.java deleted file mode 100644 index b5539be0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionNotFoundException.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.apache.maven.plugin.version; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -public class PluginVersionNotFoundException - extends Exception -{ - private final String groupId; - - private final String artifactId; - - public PluginVersionNotFoundException( String groupId, String artifactId ) - { - super( "The plugin \'" + groupId + ":" + artifactId + "\' does not exist or no valid version could be found" ); - - this.groupId = groupId; - this.artifactId = artifactId; - } - - public String getGroupId() - { - return groupId; - } - - public String getArtifactId() - { - return artifactId; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionRequest.java deleted file mode 100644 index b22f9e1d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionRequest.java +++ /dev/null @@ -1,115 +0,0 @@ -package org.apache.maven.plugin.version; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.model.Model; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.repository.RemoteRepository; - -/** - * Collects settings required to resolve the version for a plugin. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -public interface PluginVersionRequest -{ - - /** - * Gets the group id of the plugin. - * - * @return The group id of the plugin. - */ - String getGroupId(); - - /** - * Sets the group id of the plugin. - * - * @param groupId The group id of the plugin. - * @return This request, never {@code null}. - */ - PluginVersionRequest setGroupId( String groupId ); - - /** - * Gets the artifact id of the plugin. - * - * @return The artifact id of the plugin. - */ - String getArtifactId(); - - /** - * Sets the artifact id of the plugin. - * - * @param artifactId The artifact id of the plugin. - * @return This request, never {@code null}. - */ - PluginVersionRequest setArtifactId( String artifactId ); - - /** - * Gets the POM whose build plugins are to be scanned for the version. - * - * @return The POM whose build plugins are to be scanned for the verion or {@code null} to only search the plugin - * repositories. - */ - Model getPom(); - - /** - * Sets the POM whose build plugins are to be scanned for the version. - * - * @param pom The POM whose build plugins are to be scanned for the version, may be {@code null} to only search the - * plugin repositories. - * @return This request, never {@code null}. - */ - PluginVersionRequest setPom( Model pom ); - - /** - * Gets the remote repositories to use. - * - * @return The remote repositories to use, never {@code null}. - */ - List getRepositories(); - - /** - * Sets the remote repositories to use. Note: When creating a request from a project, be sure to use the - * plugin repositories and not the regular project repositories. - * - * @param repositories The remote repositories to use. - * @return This request, never {@code null}. - */ - PluginVersionRequest setRepositories( List repositories ); - - /** - * Gets the session to use for repository access. - * - * @return The repository session or {@code null} if not set. - */ - RepositorySystemSession getRepositorySession(); - - /** - * Sets the session to use for repository access. - * - * @param repositorySession The repository session to use. - * @return This request, never {@code null}. - */ - PluginVersionRequest setRepositorySession( RepositorySystemSession repositorySession ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionResolutionException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionResolutionException.java deleted file mode 100644 index 84ec0967..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionResolutionException.java +++ /dev/null @@ -1,107 +0,0 @@ -package org.apache.maven.plugin.version; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.eclipse.aether.repository.LocalRepository; -import org.eclipse.aether.repository.RemoteRepository; - -public class PluginVersionResolutionException - extends Exception -{ - private final String groupId; - - private final String artifactId; - - private final String baseMessage; - - public PluginVersionResolutionException( String groupId, String artifactId, String baseMessage, Throwable cause ) - { - super( "Error resolving version for plugin \'" + groupId + ":" + artifactId + "\': " + baseMessage, cause ); - - this.groupId = groupId; - this.artifactId = artifactId; - this.baseMessage = baseMessage; - } - - public PluginVersionResolutionException( String groupId, String artifactId, String baseMessage ) - { - super( "Error resolving version for plugin \'" + groupId + ":" + artifactId + "\': " + baseMessage ); - - this.groupId = groupId; - this.artifactId = artifactId; - this.baseMessage = baseMessage; - } - - public PluginVersionResolutionException( String groupId, String artifactId, LocalRepository localRepository, - List remoteRepositories, String baseMessage ) - { - super( "Error resolving version for plugin \'" + groupId + ":" + artifactId + "\' from the repositories " - + format( localRepository, remoteRepositories ) + ": " + baseMessage ); - - this.groupId = groupId; - this.artifactId = artifactId; - this.baseMessage = baseMessage; - } - - public String getGroupId() - { - return groupId; - } - - public String getArtifactId() - { - return artifactId; - } - - public String getBaseMessage() - { - return baseMessage; - } - - private static String format( LocalRepository localRepository, List remoteRepositories ) - { - String repos = "["; - - if ( localRepository != null ) - { - repos += localRepository.getId() + " (" + localRepository.getBasedir() + ")"; - } - - if ( remoteRepositories != null && !remoteRepositories.isEmpty() ) - { - for ( RemoteRepository repository : remoteRepositories ) - { - repos += ", "; - - if ( repository != null ) - { - repos += repository.getId() + " (" + repository.getUrl() + ")"; - } - } - } - - repos += "]"; - - return repos; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionResolver.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionResolver.java deleted file mode 100644 index 935fdfc5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionResolver.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.apache.maven.plugin.version; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Resolves a version for a plugin. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -public interface PluginVersionResolver -{ - - /** - * Resolves the version for the specified request. - * - * @param request The request that holds the details about the plugin and the repositories to consult, must not be - * {@code null}. - * @return The result of the version resolution, never {@code null}. - * @throws PluginVersionResolutionException If the plugin version could not be resolved. - */ - PluginVersionResult resolve( PluginVersionRequest request ) - throws PluginVersionResolutionException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionResult.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionResult.java deleted file mode 100644 index 09a69e96..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionResult.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.apache.maven.plugin.version; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.eclipse.aether.repository.ArtifactRepository; - -/** - * Describes the result of a plugin version resolution request. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -public interface PluginVersionResult -{ - - /** - * The resolved plugin version. - * - * @return The resolved plugin version, never {@code null}. - */ - String getVersion(); - - /** - * The repository from which the plugin version was resolved. - * - * @return The repository from which the plugin version was resolved, never {@code null}. - */ - ArtifactRepository getRepository(); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java deleted file mode 100644 index 76b6bfd6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java +++ /dev/null @@ -1,408 +0,0 @@ -package org.apache.maven.plugin.version.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.IOException; -import java.util.ArrayList; -import java.util.Collections; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import java.util.TreeSet; - -import org.apache.maven.artifact.repository.metadata.Metadata; -import org.apache.maven.artifact.repository.metadata.Versioning; -import org.apache.maven.artifact.repository.metadata.io.MetadataReader; -import org.apache.maven.model.Build; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.MavenPluginManager; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.apache.maven.plugin.version.PluginVersionRequest; -import org.apache.maven.plugin.version.PluginVersionResolutionException; -import org.apache.maven.plugin.version.PluginVersionResolver; -import org.apache.maven.plugin.version.PluginVersionResult; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.util.StringUtils; -import org.eclipse.aether.RepositoryEvent.EventType; -import org.eclipse.aether.RepositoryEvent; -import org.eclipse.aether.RepositoryListener; -import org.eclipse.aether.RepositorySystem; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.RequestTrace; -import org.eclipse.aether.metadata.DefaultMetadata; -import org.eclipse.aether.repository.ArtifactRepository; -import org.eclipse.aether.repository.RemoteRepository; -import org.eclipse.aether.resolution.MetadataRequest; -import org.eclipse.aether.resolution.MetadataResult; -import org.eclipse.aether.util.version.GenericVersionScheme; -import org.eclipse.aether.version.InvalidVersionSpecificationException; -import org.eclipse.aether.version.Version; -import org.eclipse.aether.version.VersionScheme; - -/** - * Resolves a version for a plugin. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -@Component( role = PluginVersionResolver.class ) -public class DefaultPluginVersionResolver - implements PluginVersionResolver -{ - - private static final String REPOSITORY_CONTEXT = "plugin"; - - @Requirement - private Logger logger; - - @Requirement - private RepositorySystem repositorySystem; - - @Requirement - private MetadataReader metadataReader; - - @Requirement - private MavenPluginManager pluginManager; - - public PluginVersionResult resolve( PluginVersionRequest request ) - throws PluginVersionResolutionException - { - logger.debug( "Resolving plugin version for " + request.getGroupId() + ":" + request.getArtifactId() ); - - PluginVersionResult result = resolveFromProject( request ); - - if ( result == null ) - { - result = resolveFromRepository( request ); - - if ( logger.isDebugEnabled() ) - { - logger.debug( "Resolved plugin version for " + request.getGroupId() + ":" + request.getArtifactId() - + " to " + result.getVersion() + " from repository " + result.getRepository() ); - } - } - else if ( logger.isDebugEnabled() ) - { - logger.debug( "Resolved plugin version for " + request.getGroupId() + ":" + request.getArtifactId() - + " to " + result.getVersion() + " from POM " + request.getPom() ); - } - - return result; - } - - private PluginVersionResult resolveFromRepository( PluginVersionRequest request ) - throws PluginVersionResolutionException - { - RequestTrace trace = RequestTrace.newChild( null, request ); - - DefaultPluginVersionResult result = new DefaultPluginVersionResult(); - - org.eclipse.aether.metadata.Metadata metadata = - new DefaultMetadata( request.getGroupId(), request.getArtifactId(), "maven-metadata.xml", - DefaultMetadata.Nature.RELEASE_OR_SNAPSHOT ); - - List requests = new ArrayList(); - - requests.add( new MetadataRequest( metadata, null, REPOSITORY_CONTEXT ).setTrace( trace ) ); - - for ( RemoteRepository repository : request.getRepositories() ) - { - requests.add( new MetadataRequest( metadata, repository, REPOSITORY_CONTEXT ).setTrace( trace ) ); - } - - List results = repositorySystem.resolveMetadata( request.getRepositorySession(), requests ); - - Versions versions = new Versions(); - - for ( MetadataResult res : results ) - { - ArtifactRepository repository = res.getRequest().getRepository(); - if ( repository == null ) - { - repository = request.getRepositorySession().getLocalRepository(); - } - - mergeMetadata( request.getRepositorySession(), trace, versions, res.getMetadata(), repository ); - } - - selectVersion( result, request, versions ); - - return result; - } - - private void selectVersion( DefaultPluginVersionResult result, PluginVersionRequest request, Versions versions ) - throws PluginVersionResolutionException - { - String version = null; - ArtifactRepository repo = null; - - if ( StringUtils.isNotEmpty( versions.releaseVersion ) ) - { - version = versions.releaseVersion; - repo = versions.releaseRepository; - } - else if ( StringUtils.isNotEmpty( versions.latestVersion ) ) - { - version = versions.latestVersion; - repo = versions.latestRepository; - } - if ( version != null && !isCompatible( request, version ) ) - { - versions.versions.remove( version ); - version = null; - } - - if ( version == null ) - { - VersionScheme versionScheme = new GenericVersionScheme(); - - TreeSet releases = new TreeSet( Collections.reverseOrder() ); - TreeSet snapshots = new TreeSet( Collections.reverseOrder() ); - - for ( String ver : versions.versions.keySet() ) - { - try - { - Version v = versionScheme.parseVersion( ver ); - - if ( ver.endsWith( "-SNAPSHOT" ) ) - { - snapshots.add( v ); - } - else - { - releases.add( v ); - } - } - catch ( InvalidVersionSpecificationException e ) - { - // ignore - } - } - - for ( Version v : releases ) - { - String ver = v.toString(); - if ( isCompatible( request, ver ) ) - { - version = ver; - repo = versions.versions.get( version ); - break; - } - } - - if ( version == null ) - { - for ( Version v : snapshots ) - { - String ver = v.toString(); - if ( isCompatible( request, ver ) ) - { - version = ver; - repo = versions.versions.get( version ); - break; - } - } - } - } - - if ( version != null ) - { - result.setVersion( version ); - result.setRepository( repo ); - } - else - { - throw new PluginVersionResolutionException( request.getGroupId(), request.getArtifactId(), - request.getRepositorySession().getLocalRepository(), - request.getRepositories(), - "Plugin not found in any plugin repository" ); - } - } - - private boolean isCompatible( PluginVersionRequest request, String version ) - { - Plugin plugin = new Plugin(); - plugin.setGroupId( request.getGroupId() ); - plugin.setArtifactId( request.getArtifactId() ); - plugin.setVersion( version ); - - PluginDescriptor pluginDescriptor; - - try - { - pluginDescriptor = - pluginManager.getPluginDescriptor( plugin, request.getRepositories(), request.getRepositorySession() ); - } - catch ( PluginResolutionException e ) - { - logger.debug( "Ignoring unresolvable plugin version " + version, e ); - return false; - } - catch ( Exception e ) - { - // ignore for now and delay failure to higher level processing - return true; - } - - try - { - pluginManager.checkRequiredMavenVersion( pluginDescriptor ); - } - catch ( Exception e ) - { - logger.debug( "Ignoring incompatible plugin version " + version + ": " + e.getMessage() ); - return false; - } - - return true; - } - - private void mergeMetadata( RepositorySystemSession session, RequestTrace trace, Versions versions, - org.eclipse.aether.metadata.Metadata metadata, ArtifactRepository repository ) - { - if ( metadata != null && metadata.getFile() != null && metadata.getFile().isFile() ) - { - try - { - Map options = Collections.singletonMap( MetadataReader.IS_STRICT, Boolean.FALSE ); - - Metadata repoMetadata = metadataReader.read( metadata.getFile(), options ); - - mergeMetadata( versions, repoMetadata, repository ); - } - catch ( IOException e ) - { - invalidMetadata( session, trace, metadata, repository, e ); - } - } - } - - private void invalidMetadata( RepositorySystemSession session, RequestTrace trace, - org.eclipse.aether.metadata.Metadata metadata, ArtifactRepository repository, - Exception exception ) - { - RepositoryListener listener = session.getRepositoryListener(); - if ( listener != null ) - { - RepositoryEvent.Builder event = new RepositoryEvent.Builder( session, EventType.METADATA_INVALID ); - event.setTrace( trace ); - event.setMetadata( metadata ); - event.setException( exception ); - event.setRepository( repository ); - listener.metadataInvalid( event.build() ); - } - } - - private void mergeMetadata( Versions versions, Metadata source, ArtifactRepository repository ) - { - Versioning versioning = source.getVersioning(); - if ( versioning != null ) - { - String timestamp = StringUtils.clean( versioning.getLastUpdated() ); - - if ( StringUtils.isNotEmpty( versioning.getRelease() ) - && timestamp.compareTo( versions.releaseTimestamp ) > 0 ) - { - versions.releaseVersion = versioning.getRelease(); - versions.releaseTimestamp = timestamp; - versions.releaseRepository = repository; - } - - if ( StringUtils.isNotEmpty( versioning.getLatest() ) - && timestamp.compareTo( versions.latestTimestamp ) > 0 ) - { - versions.latestVersion = versioning.getLatest(); - versions.latestTimestamp = timestamp; - versions.latestRepository = repository; - } - - for ( String version : versioning.getVersions() ) - { - if ( !versions.versions.containsKey( version ) ) - { - versions.versions.put( version, repository ); - } - } - } - } - - private PluginVersionResult resolveFromProject( PluginVersionRequest request ) - { - PluginVersionResult result = null; - - if ( request.getPom() != null && request.getPom().getBuild() != null ) - { - Build build = request.getPom().getBuild(); - - result = resolveFromProject( request, build.getPlugins() ); - - if ( result == null && build.getPluginManagement() != null ) - { - result = resolveFromProject( request, build.getPluginManagement().getPlugins() ); - } - } - - return result; - } - - private PluginVersionResult resolveFromProject( PluginVersionRequest request, List plugins ) - { - for ( Plugin plugin : plugins ) - { - if ( request.getGroupId().equals( plugin.getGroupId() ) - && request.getArtifactId().equals( plugin.getArtifactId() ) ) - { - if ( plugin.getVersion() != null ) - { - return new DefaultPluginVersionResult( plugin.getVersion() ); - } - else - { - return null; - } - } - } - return null; - } - - static class Versions - { - - String releaseVersion = ""; - - String releaseTimestamp = ""; - - ArtifactRepository releaseRepository; - - String latestVersion = ""; - - String latestTimestamp = ""; - - ArtifactRepository latestRepository; - - Map versions = new LinkedHashMap(); - - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResult.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResult.java deleted file mode 100644 index 9027a532..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResult.java +++ /dev/null @@ -1,69 +0,0 @@ -package org.apache.maven.plugin.version.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.plugin.version.PluginVersionResult; -import org.eclipse.aether.repository.ArtifactRepository; - -/** - * Describes the result of a plugin version resolution request. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -class DefaultPluginVersionResult - implements PluginVersionResult -{ - - private String version; - - private ArtifactRepository repository; - - public DefaultPluginVersionResult() - { - // does nothing - } - - public DefaultPluginVersionResult( String version ) - { - this.version = version; - } - - public String getVersion() - { - return version; - } - - public void setVersion( String version ) - { - this.version = version; - } - - public ArtifactRepository getRepository() - { - return repository; - } - - public void setRepository( ArtifactRepository repository ) - { - this.repository = repository; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultDependencyResolutionRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultDependencyResolutionRequest.java deleted file mode 100644 index cf5b0d70..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultDependencyResolutionRequest.java +++ /dev/null @@ -1,82 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.graph.DependencyFilter; - -/** - * @author Benjamin Bentmann - */ -public class DefaultDependencyResolutionRequest - implements DependencyResolutionRequest -{ - - private MavenProject project; - - private DependencyFilter filter; - - private RepositorySystemSession session; - - public DefaultDependencyResolutionRequest() - { - // enables default constructor - } - - public DefaultDependencyResolutionRequest( MavenProject project, RepositorySystemSession session ) - { - setMavenProject( project ); - setRepositorySession( session ); - } - - public DependencyFilter getResolutionFilter() - { - return filter; - } - - public MavenProject getMavenProject() - { - return project; - } - - public RepositorySystemSession getRepositorySession() - { - return session; - } - - public DependencyResolutionRequest setResolutionFilter( DependencyFilter filter ) - { - this.filter = filter; - return this; - } - - public DependencyResolutionRequest setMavenProject( MavenProject project ) - { - this.project = project; - return this; - } - - public DependencyResolutionRequest setRepositorySession( RepositorySystemSession repositorySession ) - { - this.session = repositorySession; - return this; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultDependencyResolutionResult.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultDependencyResolutionResult.java deleted file mode 100644 index 07c6a2f9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultDependencyResolutionResult.java +++ /dev/null @@ -1,111 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Collections; -import java.util.IdentityHashMap; -import java.util.List; -import java.util.Map; - -import org.eclipse.aether.graph.Dependency; -import org.eclipse.aether.graph.DependencyNode; - -/** - * @author Benjamin Bentmann - */ -class DefaultDependencyResolutionResult - implements DependencyResolutionResult -{ - - private DependencyNode root; - - private List dependencies = new ArrayList(); - - private List resolvedDependencies = new ArrayList(); - - private List unresolvedDependencies = new ArrayList(); - - private List collectionErrors = new ArrayList(); - - private Map> resolutionErrors = new IdentityHashMap>(); - - public DependencyNode getDependencyGraph() - { - return root; - } - - public void setDependencyGraph( DependencyNode root ) - { - this.root = root; - } - - public List getDependencies() - { - return dependencies; - } - - public List getResolvedDependencies() - { - return resolvedDependencies; - } - - public void addResolvedDependency( Dependency dependency ) - { - dependencies.add( dependency ); - resolvedDependencies.add( dependency ); - } - - public List getUnresolvedDependencies() - { - return unresolvedDependencies; - } - - public List getCollectionErrors() - { - return collectionErrors; - } - - public void setCollectionErrors( List exceptions ) - { - if ( exceptions != null ) - { - this.collectionErrors = exceptions; - } - else - { - this.collectionErrors = new ArrayList(); - } - } - - public List getResolutionErrors( Dependency dependency ) - { - List errors = resolutionErrors.get( dependency ); - return ( errors != null ) ? errors : Collections.emptyList(); - } - - public void setResolutionErrors( Dependency dependency, List errors ) - { - dependencies.add( dependency ); - unresolvedDependencies.add( dependency ); - resolutionErrors.put( dependency, errors ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectHelper.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectHelper.java deleted file mode 100644 index 2cce9f6a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectHelper.java +++ /dev/null @@ -1,128 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.handler.ArtifactHandler; -import org.apache.maven.artifact.handler.manager.ArtifactHandlerManager; -import org.apache.maven.model.Resource; -import org.apache.maven.project.artifact.AttachedArtifact; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.AbstractLogEnabled; - -@SuppressWarnings( "deprecation" ) -@Component( role = MavenProjectHelper.class ) -public class DefaultMavenProjectHelper - extends AbstractLogEnabled - implements MavenProjectHelper -{ - @Requirement - private ArtifactHandlerManager artifactHandlerManager; - - public void attachArtifact( MavenProject project, String artifactType, String artifactClassifier, - File artifactFile ) - { - String type = artifactType; - - ArtifactHandler handler = null; - - if ( type != null ) - { - handler = artifactHandlerManager.getArtifactHandler( artifactType ); - } - - if ( handler == null ) - { - handler = artifactHandlerManager.getArtifactHandler( "jar" ); - } - - Artifact artifact = new AttachedArtifact( project.getArtifact(), artifactType, artifactClassifier, handler ); - - artifact.setFile( artifactFile ); - artifact.setResolved( true ); - - attachArtifact( project, artifact ); - } - - public void attachArtifact( MavenProject project, String artifactType, File artifactFile ) - { - ArtifactHandler handler = artifactHandlerManager.getArtifactHandler( artifactType ); - - Artifact artifact = new AttachedArtifact( project.getArtifact(), artifactType, handler ); - - artifact.setFile( artifactFile ); - artifact.setResolved( true ); - - attachArtifact( project, artifact ); - } - - public void attachArtifact( MavenProject project, File artifactFile, String artifactClassifier ) - { - Artifact projectArtifact = project.getArtifact(); - - Artifact artifact = - new AttachedArtifact( projectArtifact, projectArtifact.getType(), artifactClassifier, - projectArtifact.getArtifactHandler() ); - - artifact.setFile( artifactFile ); - artifact.setResolved( true ); - - attachArtifact( project, artifact ); - } - - /** - * Add an attached artifact or replace the file for an existing artifact. - * - * @see MavenProject#addAttachedArtifact(org.apache.maven.artifact.Artifact) - * @param project project reference. - * @param artifact artifact to add or replace. - */ - public void attachArtifact( MavenProject project, Artifact artifact ) - { - project.addAttachedArtifact( artifact ); - } - - public void addResource( MavenProject project, String resourceDirectory, List includes, - List excludes ) - { - Resource resource = new Resource(); - resource.setDirectory( resourceDirectory ); - resource.setIncludes( includes ); - resource.setExcludes( excludes ); - - project.addResource( resource ); - } - - public void addTestResource( MavenProject project, String resourceDirectory, List includes, - List excludes ) - { - Resource resource = new Resource(); - resource.setDirectory( resourceDirectory ); - resource.setIncludes( includes ); - resource.setExcludes( excludes ); - - project.addTestResource( resource ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultModelBuildingListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultModelBuildingListener.java deleted file mode 100644 index a5365621..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultModelBuildingListener.java +++ /dev/null @@ -1,155 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.model.Model; -import org.apache.maven.model.building.AbstractModelBuildingListener; -import org.apache.maven.model.building.ModelBuildingEvent; -import org.apache.maven.model.building.ModelProblem.Severity; -import org.apache.maven.model.building.ModelProblem.Version; -import org.apache.maven.model.building.ModelProblemCollectorRequest; -import org.apache.maven.plugin.PluginManagerException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.version.PluginVersionResolutionException; - -/** - * Processes events from the model builder while building the effective model for a {@link MavenProject} instance. - * - * @author Benjamin Bentmann - */ -public class DefaultModelBuildingListener - extends AbstractModelBuildingListener -{ - - private MavenProject project; - - private ProjectBuildingHelper projectBuildingHelper; - - private ProjectBuildingRequest projectBuildingRequest; - - private List remoteRepositories; - - private List pluginRepositories; - - public DefaultModelBuildingListener( MavenProject project, ProjectBuildingHelper projectBuildingHelper, - ProjectBuildingRequest projectBuildingRequest ) - { - if ( project == null ) - { - throw new IllegalArgumentException( "project missing" ); - } - this.project = project; - - if ( projectBuildingHelper == null ) - { - throw new IllegalArgumentException( "project building helper missing" ); - } - this.projectBuildingHelper = projectBuildingHelper; - - if ( projectBuildingRequest == null ) - { - throw new IllegalArgumentException( "project building request missing" ); - } - this.projectBuildingRequest = projectBuildingRequest; - this.remoteRepositories = projectBuildingRequest.getRemoteRepositories(); - this.pluginRepositories = projectBuildingRequest.getPluginArtifactRepositories(); - } - - /** - * Gets the project whose model is being built. - * - * @return The project, never {@code null}. - */ - public MavenProject getProject() - { - return project; - } - - @Override - public void buildExtensionsAssembled( ModelBuildingEvent event ) - { - Model model = event.getModel(); - - try - { - pluginRepositories = - projectBuildingHelper.createArtifactRepositories( model.getPluginRepositories(), pluginRepositories, - projectBuildingRequest ); - } - catch ( Exception e ) - { - event.getProblems().add( new ModelProblemCollectorRequest( Severity.ERROR, Version.BASE ) - .setMessage( "Invalid plugin repository: " + e.getMessage() ) - .setException( e ) ); - } - project.setPluginArtifactRepositories( pluginRepositories ); - - if ( event.getRequest().isProcessPlugins() ) - { - try - { - ProjectRealmCache.CacheRecord record = - projectBuildingHelper.createProjectRealm( project, model, projectBuildingRequest ); - - project.setClassRealm( record.realm ); - project.setExtensionDependencyFilter( record.extensionArtifactFilter ); - } - catch ( PluginResolutionException e ) - { - event.getProblems().add( new ModelProblemCollectorRequest( Severity.ERROR, Version.BASE ) - .setMessage( "Unresolveable build extension: " + e.getMessage() ) - .setException( e ) ); - } - catch ( PluginVersionResolutionException e ) - { - event.getProblems().add( new ModelProblemCollectorRequest( Severity.ERROR, Version.BASE ) - .setMessage( "Unresolveable build extension: " + e.getMessage() ) - .setException( e ) ); - } - catch ( PluginManagerException e ) - { - event.getProblems().add( new ModelProblemCollectorRequest( Severity.ERROR, Version.BASE ) - .setMessage( "Unresolveable build extension: " + e.getMessage() ) - .setException( e ) ); - } - - projectBuildingHelper.selectProjectRealm( project ); - } - - // build the regular repos after extensions are loaded to allow for custom layouts - try - { - remoteRepositories = - projectBuildingHelper.createArtifactRepositories( model.getRepositories(), remoteRepositories, - projectBuildingRequest ); - } - catch ( Exception e ) - { - event.getProblems().add( new ModelProblemCollectorRequest( Severity.ERROR, Version.BASE ) - .setMessage( "Invalid artifact repository: " + e.getMessage() ) - .setException( e ) ); - } - project.setRemoteArtifactRepositories( remoteRepositories ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java deleted file mode 100644 index 99edc802..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java +++ /dev/null @@ -1,929 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import org.apache.maven.RepositoryUtils; -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.InvalidRepositoryException; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.LegacyLocalRepositoryManager; -import org.apache.maven.bridge.MavenRepositorySystem; -import org.apache.maven.model.Build; -import org.apache.maven.model.Dependency; -import org.apache.maven.model.DependencyManagement; -import org.apache.maven.model.DeploymentRepository; -import org.apache.maven.model.Extension; -import org.apache.maven.model.Model; -import org.apache.maven.model.Parent; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.Profile; -import org.apache.maven.model.ReportPlugin; -import org.apache.maven.model.building.DefaultModelBuildingRequest; -import org.apache.maven.model.building.DefaultModelProblem; -import org.apache.maven.model.building.FileModelSource; -import org.apache.maven.model.building.ModelBuilder; -import org.apache.maven.model.building.ModelBuildingException; -import org.apache.maven.model.building.ModelBuildingRequest; -import org.apache.maven.model.building.ModelBuildingResult; -import org.apache.maven.model.building.ModelProblem; -import org.apache.maven.model.building.ModelProcessor; -import org.apache.maven.model.building.ModelSource; -import org.apache.maven.model.building.StringModelSource; -import org.apache.maven.model.resolution.ModelResolver; -import org.apache.maven.repository.internal.ArtifactDescriptorUtils; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.util.Os; -import org.codehaus.plexus.util.StringUtils; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.RequestTrace; -import org.eclipse.aether.impl.RemoteRepositoryManager; -import org.eclipse.aether.repository.LocalRepositoryManager; -import org.eclipse.aether.repository.RemoteRepository; -import org.eclipse.aether.repository.WorkspaceRepository; -import org.eclipse.aether.resolution.ArtifactRequest; -import org.eclipse.aether.resolution.ArtifactResult; -import org.eclipse.aether.resolution.VersionRangeRequest; -import org.eclipse.aether.resolution.VersionRangeResolutionException; -import org.eclipse.aether.resolution.VersionRangeResult; - -/** - */ -@Component( role = ProjectBuilder.class ) -public class DefaultProjectBuilder - implements ProjectBuilder -{ - - @Requirement - private Logger logger; - - @Requirement - private ModelBuilder modelBuilder; - - @Requirement - private ModelProcessor modelProcessor; - - @Requirement - private ProjectBuildingHelper projectBuildingHelper; - - @Requirement - private MavenRepositorySystem repositorySystem; - - @Requirement - private org.eclipse.aether.RepositorySystem repoSystem; - - @Requirement - private RemoteRepositoryManager repositoryManager; - - @Requirement - private ProjectDependenciesResolver dependencyResolver; - - // ---------------------------------------------------------------------- - // MavenProjectBuilder Implementation - // ---------------------------------------------------------------------- - - @Override - public ProjectBuildingResult build( File pomFile, ProjectBuildingRequest request ) - throws ProjectBuildingException - { - return build( pomFile, new FileModelSource( pomFile ), new InternalConfig( request, null ) ); - } - - @Override - public ProjectBuildingResult build( ModelSource modelSource, ProjectBuildingRequest request ) - throws ProjectBuildingException - { - return build( null, modelSource, new InternalConfig( request, null ) ); - } - - private ProjectBuildingResult build( File pomFile, ModelSource modelSource, InternalConfig config ) - throws ProjectBuildingException - { - ClassLoader oldContextClassLoader = Thread.currentThread().getContextClassLoader(); - - try - { - ProjectBuildingRequest projectBuildingRequest = config.request; - - MavenProject project = projectBuildingRequest.getProject(); - - List modelProblems = null; - Throwable error = null; - - if ( project == null ) - { - ModelBuildingRequest request = getModelBuildingRequest( config ); - - project = new MavenProject(); - project.setFile( pomFile ); - - DefaultModelBuildingListener listener = - new DefaultModelBuildingListener( project, projectBuildingHelper, projectBuildingRequest ); - request.setModelBuildingListener( listener ); - - request.setPomFile( pomFile ); - request.setModelSource( modelSource ); - request.setLocationTracking( true ); - - ModelBuildingResult result; - try - { - result = modelBuilder.build( request ); - } - catch ( ModelBuildingException e ) - { - result = e.getResult(); - if ( result == null || result.getEffectiveModel() == null ) - { - throw new ProjectBuildingException( e.getModelId(), e.getMessage(), pomFile, e ); - } - // validation error, continue project building and delay failing to help IDEs - error = e; - } - - modelProblems = result.getProblems(); - - initProject( project, Collections.emptyMap(), result, - new HashMap(), projectBuildingRequest ); - } - else if ( projectBuildingRequest.isResolveDependencies() ) - { - projectBuildingHelper.selectProjectRealm( project ); - } - - DependencyResolutionResult resolutionResult = null; - - if ( projectBuildingRequest.isResolveDependencies() ) - { - resolutionResult = resolveDependencies( project, config.session ); - } - - ProjectBuildingResult result = new DefaultProjectBuildingResult( project, modelProblems, resolutionResult ); - - if ( error != null ) - { - ProjectBuildingException e = new ProjectBuildingException( Arrays.asList( result ) ); - e.initCause( error ); - throw e; - } - - return result; - } - finally - { - Thread.currentThread().setContextClassLoader( oldContextClassLoader ); - } - } - - private DependencyResolutionResult resolveDependencies( MavenProject project, RepositorySystemSession session ) - { - DependencyResolutionResult resolutionResult; - - try - { - DefaultDependencyResolutionRequest resolution = new DefaultDependencyResolutionRequest( project, session ); - resolutionResult = dependencyResolver.resolve( resolution ); - } - catch ( DependencyResolutionException e ) - { - resolutionResult = e.getResult(); - } - - Set artifacts = new LinkedHashSet(); - if ( resolutionResult.getDependencyGraph() != null ) - { - RepositoryUtils.toArtifacts( artifacts, resolutionResult.getDependencyGraph().getChildren(), - Collections.singletonList( project.getArtifact().getId() ), null ); - - // Maven 2.x quirk: an artifact always points at the local repo, regardless whether resolved or not - LocalRepositoryManager lrm = session.getLocalRepositoryManager(); - for ( Artifact artifact : artifacts ) - { - if ( !artifact.isResolved() ) - { - String path = lrm.getPathForLocalArtifact( RepositoryUtils.toArtifact( artifact ) ); - artifact.setFile( new File( lrm.getRepository().getBasedir(), path ) ); - } - } - } - project.setResolvedArtifacts( artifacts ); - project.setArtifacts( artifacts ); - - return resolutionResult; - } - - private List getProfileIds( List profiles ) - { - List ids = new ArrayList( profiles.size() ); - - for ( Profile profile : profiles ) - { - ids.add( profile.getId() ); - } - - return ids; - } - - private ModelBuildingRequest getModelBuildingRequest( InternalConfig config ) - { - ProjectBuildingRequest configuration = config.request; - - ModelBuildingRequest request = new DefaultModelBuildingRequest(); - - RequestTrace trace = RequestTrace.newChild( null, configuration ).newChild( request ); - - ModelResolver resolver = - new ProjectModelResolver( config.session, trace, repoSystem, repositoryManager, config.repositories, - configuration.getRepositoryMerging(), config.modelPool ); - - request.setValidationLevel( configuration.getValidationLevel() ); - request.setProcessPlugins( configuration.isProcessPlugins() ); - request.setProfiles( configuration.getProfiles() ); - request.setActiveProfileIds( configuration.getActiveProfileIds() ); - request.setInactiveProfileIds( configuration.getInactiveProfileIds() ); - request.setSystemProperties( configuration.getSystemProperties() ); - request.setUserProperties( configuration.getUserProperties() ); - request.setBuildStartTime( configuration.getBuildStartTime() ); - request.setModelResolver( resolver ); - request.setModelCache( new ReactorModelCache() ); - - return request; - } - - @Override - public ProjectBuildingResult build( Artifact artifact, ProjectBuildingRequest request ) - throws ProjectBuildingException - { - return build( artifact, false, request ); - } - - @Override - public ProjectBuildingResult build( Artifact artifact, boolean allowStubModel, ProjectBuildingRequest request ) - throws ProjectBuildingException - { - org.eclipse.aether.artifact.Artifact pomArtifact = RepositoryUtils.toArtifact( artifact ); - pomArtifact = ArtifactDescriptorUtils.toPomArtifact( pomArtifact ); - - InternalConfig config = new InternalConfig( request, null ); - - boolean localProject; - - if ( request.isResolveVersionRanges() ) - { - VersionRangeRequest versionRangeRequest = new VersionRangeRequest( pomArtifact, config.repositories, null ); - - try - { - VersionRangeResult versionRangeResult = - repoSystem.resolveVersionRange( config.session, versionRangeRequest ); - - if ( versionRangeResult.getHighestVersion() == null ) - { - throw new ProjectBuildingException( - artifact.getId(), "Error resolving project artifact: No versions matched the requested range", - (Throwable) null ); - - } - - if ( versionRangeResult.getVersionConstraint() != null - && versionRangeResult.getVersionConstraint().getRange() != null - && versionRangeResult.getVersionConstraint().getRange().getUpperBound() == null ) - { - throw new ProjectBuildingException( - artifact.getId(), - "Error resolving project artifact: The requested version range does not specify an upper bound", - (Throwable) null ); - - } - - pomArtifact = pomArtifact.setVersion( versionRangeResult.getHighestVersion().toString() ); - } - catch ( VersionRangeResolutionException e ) - { - throw new ProjectBuildingException( - artifact.getId(), "Error resolving project artifact: " + e.getMessage(), e ); - - } - } - - try - { - ArtifactRequest pomRequest = new ArtifactRequest(); - pomRequest.setArtifact( pomArtifact ); - pomRequest.setRepositories( config.repositories ); - ArtifactResult pomResult = repoSystem.resolveArtifact( config.session, pomRequest ); - - pomArtifact = pomResult.getArtifact(); - localProject = pomResult.getRepository() instanceof WorkspaceRepository; - } - catch ( org.eclipse.aether.resolution.ArtifactResolutionException e ) - { - if ( e.getResults().get( 0 ).isMissing() && allowStubModel ) - { - return build( null, createStubModelSource( artifact ), config ); - } - throw new ProjectBuildingException( artifact.getId(), - "Error resolving project artifact: " + e.getMessage(), e ); - } - - File pomFile = pomArtifact.getFile(); - - if ( "pom".equals( artifact.getType() ) ) - { - artifact.selectVersion( pomArtifact.getVersion() ); - artifact.setFile( pomFile ); - artifact.setResolved( true ); - } - - return build( localProject ? pomFile : null, new FileModelSource( pomFile ), config ); - } - - private ModelSource createStubModelSource( Artifact artifact ) - { - StringBuilder buffer = new StringBuilder( 1024 ); - - buffer.append( "" ); - buffer.append( "" ); - buffer.append( "4.0.0" ); - buffer.append( "" ).append( artifact.getGroupId() ).append( "" ); - buffer.append( "" ).append( artifact.getArtifactId() ).append( "" ); - buffer.append( "" ).append( artifact.getBaseVersion() ).append( "" ); - buffer.append( "" ).append( artifact.getType() ).append( "" ); - buffer.append( "" ); - - return new StringModelSource( buffer, artifact.getId() ); - } - - @Override - public List build( List pomFiles, boolean recursive, ProjectBuildingRequest request ) - throws ProjectBuildingException - { - List results = new ArrayList(); - - List interimResults = new ArrayList(); - - ReactorModelPool modelPool = new ReactorModelPool(); - - InternalConfig config = new InternalConfig( request, modelPool ); - - Map projectIndex = new HashMap( 256 ); - - boolean noErrors = - build( results, interimResults, projectIndex, pomFiles, new LinkedHashSet(), true, recursive, - config ); - - populateReactorModelPool( modelPool, interimResults ); - - ClassLoader oldContextClassLoader = Thread.currentThread().getContextClassLoader(); - - try - { - noErrors = - build( results, new ArrayList(), projectIndex, interimResults, request, - new HashMap() ) && noErrors; - } - finally - { - Thread.currentThread().setContextClassLoader( oldContextClassLoader ); - } - - if ( !noErrors ) - { - throw new ProjectBuildingException( results ); - } - - return results; - } - - private boolean build( List results, List interimResults, - Map projectIndex, List pomFiles, Set aggregatorFiles, - boolean isRoot, boolean recursive, InternalConfig config ) - { - boolean noErrors = true; - - for ( File pomFile : pomFiles ) - { - aggregatorFiles.add( pomFile ); - - if ( !build( results, interimResults, projectIndex, pomFile, aggregatorFiles, isRoot, recursive, config ) ) - { - noErrors = false; - } - - aggregatorFiles.remove( pomFile ); - } - - return noErrors; - } - - private boolean build( List results, List interimResults, - Map projectIndex, File pomFile, Set aggregatorFiles, - boolean isRoot, boolean recursive, InternalConfig config ) - { - boolean noErrors = true; - - ModelBuildingRequest request = getModelBuildingRequest( config ); - - MavenProject project = new MavenProject(); - - request.setPomFile( pomFile ); - request.setTwoPhaseBuilding( true ); - request.setLocationTracking( true ); - - DefaultModelBuildingListener listener = - new DefaultModelBuildingListener( project, projectBuildingHelper, config.request ); - request.setModelBuildingListener( listener ); - - try - { - ModelBuildingResult result = modelBuilder.build( request ); - - Model model = result.getEffectiveModel(); - - projectIndex.put( result.getModelIds().get( 0 ), project ); - - InterimResult interimResult = new InterimResult( pomFile, request, result, listener, isRoot ); - interimResults.add( interimResult ); - - if ( recursive && !model.getModules().isEmpty() ) - { - File basedir = pomFile.getParentFile(); - - List moduleFiles = new ArrayList(); - - for ( String module : model.getModules() ) - { - if ( StringUtils.isEmpty( module ) ) - { - continue; - } - - module = module.replace( '\\', File.separatorChar ).replace( '/', File.separatorChar ); - - File moduleFile = new File( basedir, module ); - - if ( moduleFile.isDirectory() ) - { - moduleFile = modelProcessor.locatePom( moduleFile ); - } - - if ( !moduleFile.isFile() ) - { - ModelProblem problem = - new DefaultModelProblem( "Child module " + moduleFile + " of " + pomFile - + " does not exist", ModelProblem.Severity.ERROR, ModelProblem.Version.BASE, model, -1, - -1, null ); - result.getProblems().add( problem ); - - noErrors = false; - - continue; - } - - if ( Os.isFamily( Os.FAMILY_WINDOWS ) ) - { - // we don't canonicalize on unix to avoid interfering with symlinks - try - { - moduleFile = moduleFile.getCanonicalFile(); - } - catch ( IOException e ) - { - moduleFile = moduleFile.getAbsoluteFile(); - } - } - else - { - moduleFile = new File( moduleFile.toURI().normalize() ); - } - - if ( aggregatorFiles.contains( moduleFile ) ) - { - StringBuilder buffer = new StringBuilder( 256 ); - for ( File aggregatorFile : aggregatorFiles ) - { - buffer.append( aggregatorFile ).append( " -> " ); - } - buffer.append( moduleFile ); - - ModelProblem problem = - new DefaultModelProblem( "Child module " + moduleFile + " of " + pomFile - + " forms aggregation cycle " + buffer, ModelProblem.Severity.ERROR, - ModelProblem.Version.BASE, model, -1, -1, null ); - result.getProblems().add( problem ); - - noErrors = false; - - continue; - } - - moduleFiles.add( moduleFile ); - } - - interimResult.modules = new ArrayList(); - - if ( !build( results, interimResult.modules, projectIndex, moduleFiles, aggregatorFiles, false, - recursive, config ) ) - { - noErrors = false; - } - } - } - catch ( ModelBuildingException e ) - { - results.add( new DefaultProjectBuildingResult( e.getModelId(), pomFile, e.getProblems() ) ); - - noErrors = false; - } - - return noErrors; - } - - static class InterimResult - { - - File pomFile; - - ModelBuildingRequest request; - - ModelBuildingResult result; - - DefaultModelBuildingListener listener; - - boolean root; - - List modules = Collections.emptyList(); - - InterimResult( File pomFile, ModelBuildingRequest request, ModelBuildingResult result, - DefaultModelBuildingListener listener, boolean root ) - { - this.pomFile = pomFile; - this.request = request; - this.result = result; - this.listener = listener; - this.root = root; - } - - } - - private void populateReactorModelPool( ReactorModelPool reactorModelPool, List interimResults ) - { - for ( InterimResult interimResult : interimResults ) - { - Model model = interimResult.result.getEffectiveModel(); - reactorModelPool.put( model.getGroupId(), model.getArtifactId(), model.getVersion(), model.getPomFile() ); - - populateReactorModelPool( reactorModelPool, interimResult.modules ); - } - } - - private boolean build( List results, List projects, - Map projectIndex, List interimResults, - ProjectBuildingRequest request, Map profilesXmls ) - { - boolean noErrors = true; - - for ( InterimResult interimResult : interimResults ) - { - try - { - ModelBuildingResult result = modelBuilder.build( interimResult.request, interimResult.result ); - - MavenProject project = interimResult.listener.getProject(); - initProject( project, projectIndex, result, profilesXmls, request ); - - List modules = new ArrayList(); - noErrors = - build( results, modules, projectIndex, interimResult.modules, request, profilesXmls ) && noErrors; - - projects.addAll( modules ); - projects.add( project ); - - project.setExecutionRoot( interimResult.root ); - project.setCollectedProjects( modules ); - - results.add( new DefaultProjectBuildingResult( project, result.getProblems(), null ) ); - } - catch ( ModelBuildingException e ) - { - results.add( new DefaultProjectBuildingResult( e.getModelId(), interimResult.pomFile, - e.getProblems() ) ); - - noErrors = false; - } - } - - return noErrors; - } - - private void initProject( MavenProject project, Map projects, ModelBuildingResult result, - Map profilesXmls, ProjectBuildingRequest projectBuildingRequest ) - { - Model model = result.getEffectiveModel(); - - project.setModel( model ); - project.setOriginalModel( result.getRawModel() ); - project.setFile( model.getPomFile() ); - Parent p = model.getParent(); - if ( p != null ) - { - project.setParentArtifact( repositorySystem.createProjectArtifact( p.getGroupId(), p.getArtifactId(), - p.getVersion() ) ); - // org.apache.maven.its.mng4834:parent:0.1 - String parentModelId = result.getModelIds().get( 1 ); - File parentPomFile = result.getRawModel( parentModelId ).getPomFile(); - MavenProject parent = projects.get( parentModelId ); - if ( parent == null ) - { - // - // At this point the DefaultModelBuildingListener has fired and it populates the - // remote repositories with those found in the pom.xml, along with the existing externally - // defined repositories. - // - projectBuildingRequest.setRemoteRepositories( project.getRemoteArtifactRepositories() ); - if ( parentPomFile != null ) - { - project.setParentFile( parentPomFile ); - try - { - parent = build( parentPomFile, projectBuildingRequest ).getProject(); - } - catch ( ProjectBuildingException e ) - { - // MNG-4488 where let invalid parents slide on by - logger.warn( "Failed to build parent project for " + project.getId() ); - } - } - else - { - Artifact parentArtifact = project.getParentArtifact(); - try - { - parent = build( parentArtifact, projectBuildingRequest ).getProject(); - } - catch ( ProjectBuildingException e ) - { - // MNG-4488 where let invalid parents slide on by - logger.warn( "Failed to build parent project for " + project.getId() ); - } - } - } - project.setParent( parent ); - } - - Artifact projectArtifact = - repositorySystem.createArtifact( project.getGroupId(), project.getArtifactId(), project.getVersion(), null, - project.getPackaging() ); - project.setArtifact( projectArtifact ); - - if ( project.getFile() != null ) - { - Build build = project.getBuild(); - project.addScriptSourceRoot( build.getScriptSourceDirectory() ); - project.addCompileSourceRoot( build.getSourceDirectory() ); - project.addTestCompileSourceRoot( build.getTestSourceDirectory() ); - } - - List activeProfiles = new ArrayList(); - activeProfiles.addAll( result.getActivePomProfiles( result.getModelIds().get( 0 ) ) ); - activeProfiles.addAll( result.getActiveExternalProfiles() ); - project.setActiveProfiles( activeProfiles ); - - project.setInjectedProfileIds( "external", getProfileIds( result.getActiveExternalProfiles() ) ); - for ( String modelId : result.getModelIds() ) - { - project.setInjectedProfileIds( modelId, getProfileIds( result.getActivePomProfiles( modelId ) ) ); - } - - String modelId = findProfilesXml( result, profilesXmls ); - if ( modelId != null ) - { - ModelProblem problem = - new DefaultModelProblem( "Detected profiles.xml alongside " + modelId - + ", this file is no longer supported and was ignored" + ", please use the settings.xml instead", - ModelProblem.Severity.WARNING, ModelProblem.Version.V30, model, -1, -1, null ); - result.getProblems().add( problem ); - } - - // - // All the parts that were taken out of MavenProject for Maven 4.0.0 - // - - project.setProjectBuildingRequest( projectBuildingRequest ); - - // pluginArtifacts - Set pluginArtifacts = new HashSet(); - for ( Plugin plugin : project.getBuildPlugins() ) - { - Artifact artifact = repositorySystem.createPluginArtifact( plugin ); - - if ( artifact != null ) - { - pluginArtifacts.add( artifact ); - } - } - project.setPluginArtifacts( pluginArtifacts ); - - // reportArtifacts - Set reportArtifacts = new HashSet(); - for ( ReportPlugin report : project.getReportPlugins() ) - { - Plugin pp = new Plugin(); - pp.setGroupId( report.getGroupId() ); - pp.setArtifactId( report.getArtifactId() ); - pp.setVersion( report.getVersion() ); - - Artifact artifact = repositorySystem.createPluginArtifact( pp ); - - if ( artifact != null ) - { - reportArtifacts.add( artifact ); - } - } - project.setReportArtifacts( reportArtifacts ); - - // extensionArtifacts - Set extensionArtifacts = new HashSet(); - List extensions = project.getBuildExtensions(); - if ( extensions != null ) - { - for ( Extension ext : extensions ) - { - String version; - if ( StringUtils.isEmpty( ext.getVersion() ) ) - { - version = "RELEASE"; - } - else - { - version = ext.getVersion(); - } - - Artifact artifact = - repositorySystem.createArtifact( ext.getGroupId(), ext.getArtifactId(), version, null, "jar" ); - - if ( artifact != null ) - { - extensionArtifacts.add( artifact ); - } - } - } - project.setExtensionArtifacts( extensionArtifacts ); - - // managedVersionMap - Map map = null; - if ( repositorySystem != null ) - { - List deps; - DependencyManagement dependencyManagement = project.getDependencyManagement(); - if ( ( dependencyManagement != null ) && ( ( deps = dependencyManagement.getDependencies() ) != null ) - && ( deps.size() > 0 ) ) - { - map = new HashMap(); - for ( Dependency d : dependencyManagement.getDependencies() ) - { - Artifact artifact = repositorySystem.createDependencyArtifact( d ); - - if ( artifact != null ) - { - map.put( d.getManagementKey(), artifact ); - } - } - } - else - { - map = Collections.emptyMap(); - } - } - project.setManagedVersionMap( map ); - - // release artifact repository - if ( project.getDistributionManagement() != null - && project.getDistributionManagement().getRepository() != null ) - { - try - { - DeploymentRepository r = project.getDistributionManagement().getRepository(); - if ( !StringUtils.isEmpty( r.getId() ) && !StringUtils.isEmpty( r.getUrl() ) ) - { - ArtifactRepository repo = repositorySystem.buildArtifactRepository( r ); - repositorySystem.injectProxy( projectBuildingRequest.getRepositorySession(), - Arrays.asList( repo ) ); - repositorySystem.injectAuthentication( projectBuildingRequest.getRepositorySession(), - Arrays.asList( repo ) ); - project.setReleaseArtifactRepository( repo ); - } - } - catch ( InvalidRepositoryException e ) - { - throw new IllegalStateException( "Failed to create release distribution repository for " - + project.getId(), e ); - } - } - - // snapshot artifact repository - if ( project.getDistributionManagement() != null - && project.getDistributionManagement().getSnapshotRepository() != null ) - { - try - { - DeploymentRepository r = project.getDistributionManagement().getSnapshotRepository(); - if ( !StringUtils.isEmpty( r.getId() ) && !StringUtils.isEmpty( r.getUrl() ) ) - { - ArtifactRepository repo = repositorySystem.buildArtifactRepository( r ); - repositorySystem.injectProxy( projectBuildingRequest.getRepositorySession(), - Arrays.asList( repo ) ); - repositorySystem.injectAuthentication( projectBuildingRequest.getRepositorySession(), - Arrays.asList( repo ) ); - project.setSnapshotArtifactRepository( repo ); - } - } - catch ( InvalidRepositoryException e ) - { - throw new IllegalStateException( "Failed to create snapshot distribution repository for " - + project.getId(), e ); - } - } - } - - private String findProfilesXml( ModelBuildingResult result, Map profilesXmls ) - { - for ( String modelId : result.getModelIds() ) - { - Model model = result.getRawModel( modelId ); - - File basedir = model.getProjectDirectory(); - if ( basedir == null ) - { - break; - } - - Boolean profilesXml = profilesXmls.get( basedir ); - if ( profilesXml == null ) - { - profilesXml = new File( basedir, "profiles.xml" ).exists(); - profilesXmls.put( basedir, profilesXml ); - } - if ( profilesXml ) - { - return modelId; - } - } - - return null; - } - - class InternalConfig - { - - public final ProjectBuildingRequest request; - - public final RepositorySystemSession session; - - public final List repositories; - - public final ReactorModelPool modelPool; - - InternalConfig( ProjectBuildingRequest request, ReactorModelPool modelPool ) - { - this.request = request; - this.modelPool = modelPool; - session = - LegacyLocalRepositoryManager.overlay( request.getLocalRepository(), request.getRepositorySession(), - repoSystem ); - repositories = RepositoryUtils.toRepos( request.getRemoteRepositories() ); - } - - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingHelper.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingHelper.java deleted file mode 100644 index aea8fdbe..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingHelper.java +++ /dev/null @@ -1,295 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.HashMap; -import java.util.HashSet; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import org.apache.maven.RepositoryUtils; -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.InvalidRepositoryException; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.classrealm.ClassRealmManager; -import org.apache.maven.model.Build; -import org.apache.maven.model.Extension; -import org.apache.maven.model.Model; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.Repository; -import org.apache.maven.plugin.ExtensionRealmCache; -import org.apache.maven.plugin.MavenPluginManager; -import org.apache.maven.plugin.PluginManagerException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.version.PluginVersionResolutionException; -import org.apache.maven.repository.RepositorySystem; -import org.codehaus.plexus.PlexusContainer; -import org.codehaus.plexus.classworlds.realm.ClassRealm; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; -import org.eclipse.aether.graph.DependencyFilter; -import org.eclipse.aether.util.filter.ExclusionsDependencyFilter; - -/** - * Assists the project builder. Warning: This is an internal utility class that is only public for - * technical reasons, it is not part of the public API. In particular, this class can be changed or deleted without - * prior notice. - * - * @author Benjamin Bentmann - */ -@Component( role = ProjectBuildingHelper.class ) -public class DefaultProjectBuildingHelper - implements ProjectBuildingHelper -{ - - @Requirement - private Logger logger; - - @Requirement - private PlexusContainer container; - - @Requirement - private ClassRealmManager classRealmManager; - - @Requirement - private ProjectRealmCache projectRealmCache; - - @Requirement - private RepositorySystem repositorySystem; - - @Requirement - private MavenPluginManager pluginManager; - - public List createArtifactRepositories( List pomRepositories, - List externalRepositories, - ProjectBuildingRequest request ) - throws InvalidRepositoryException - { - List internalRepositories = new ArrayList(); - - for ( Repository repository : pomRepositories ) - { - internalRepositories.add( repositorySystem.buildArtifactRepository( repository ) ); - } - - repositorySystem.injectMirror( request.getRepositorySession(), internalRepositories ); - - repositorySystem.injectProxy( request.getRepositorySession(), internalRepositories ); - - repositorySystem.injectAuthentication( request.getRepositorySession(), internalRepositories ); - - List dominantRepositories; - List recessiveRepositories; - - if ( ProjectBuildingRequest.RepositoryMerging.REQUEST_DOMINANT.equals( request.getRepositoryMerging() ) ) - { - dominantRepositories = externalRepositories; - recessiveRepositories = internalRepositories; - } - else - { - dominantRepositories = internalRepositories; - recessiveRepositories = externalRepositories; - } - - List artifactRepositories = new ArrayList(); - Collection repoIds = new HashSet(); - - if ( dominantRepositories != null ) - { - for ( ArtifactRepository repository : dominantRepositories ) - { - repoIds.add( repository.getId() ); - artifactRepositories.add( repository ); - } - } - - if ( recessiveRepositories != null ) - { - for ( ArtifactRepository repository : recessiveRepositories ) - { - if ( repoIds.add( repository.getId() ) ) - { - artifactRepositories.add( repository ); - } - } - } - - artifactRepositories = repositorySystem.getEffectiveRepositories( artifactRepositories ); - - return artifactRepositories; - } - - public synchronized ProjectRealmCache.CacheRecord createProjectRealm( MavenProject project, Model model, - ProjectBuildingRequest request ) - throws PluginResolutionException, PluginVersionResolutionException, PluginManagerException - { - ClassRealm projectRealm; - - List extensionPlugins = new ArrayList(); - - Build build = model.getBuild(); - - if ( build != null ) - { - for ( Extension extension : build.getExtensions() ) - { - Plugin plugin = new Plugin(); - plugin.setGroupId( extension.getGroupId() ); - plugin.setArtifactId( extension.getArtifactId() ); - plugin.setVersion( extension.getVersion() ); - extensionPlugins.add( plugin ); - } - - for ( Plugin plugin : build.getPlugins() ) - { - if ( plugin.isExtensions() ) - { - extensionPlugins.add( plugin ); - } - } - } - - if ( extensionPlugins.isEmpty() ) - { - if ( logger.isDebugEnabled() ) - { - logger.debug( "Extension realms for project " + model.getId() + ": (none)" ); - } - - return new ProjectRealmCache.CacheRecord( null, null ); - } - - List extensionRealms = new ArrayList(); - - Map> exportedPackages = new HashMap>(); - - Map> exportedArtifacts = new HashMap>(); - - List publicArtifacts = new ArrayList(); - - for ( Plugin plugin : extensionPlugins ) - { - ExtensionRealmCache.CacheRecord recordRealm = - pluginManager.setupExtensionsRealm( project, plugin, request.getRepositorySession() ); - - final ClassRealm extensionRealm = recordRealm.realm; - final ExtensionDescriptor extensionDescriptor = recordRealm.desciptor; - final List artifacts = recordRealm.artifacts; - - extensionRealms.add( extensionRealm ); - if ( extensionDescriptor != null ) - { - exportedPackages.put( extensionRealm, extensionDescriptor.getExportedPackages() ); - exportedArtifacts.put( extensionRealm, extensionDescriptor.getExportedArtifacts() ); - } - - if ( !plugin.isExtensions() && artifacts.size() == 2 && artifacts.get( 0 ).getFile() != null - && "plexus-utils".equals( artifacts.get( 1 ).getArtifactId() ) ) - { - /* - * This is purely for backward-compat with 2.x where consisting of a single artifact where - * loaded into the core and hence available to plugins, in contrast to bigger extensions that were - * loaded into a dedicated realm which is invisible to plugins (MNG-2749). - */ - publicArtifacts.add( artifacts.get( 0 ) ); - } - } - - if ( logger.isDebugEnabled() ) - { - logger.debug( "Extension realms for project " + model.getId() + ": " + extensionRealms ); - } - - ProjectRealmCache.Key projectRealmKey = projectRealmCache.createKey( extensionRealms ); - - ProjectRealmCache.CacheRecord record = projectRealmCache.get( projectRealmKey ); - - if ( record == null ) - { - projectRealm = classRealmManager.createProjectRealm( model, toAetherArtifacts( publicArtifacts ) ); - - Set exclusions = new LinkedHashSet(); - - for ( ClassRealm extensionRealm : extensionRealms ) - { - List excludes = exportedArtifacts.get( extensionRealm ); - - if ( excludes != null ) - { - exclusions.addAll( excludes ); - } - - List exports = exportedPackages.get( extensionRealm ); - - if ( exports == null || exports.isEmpty() ) - { - /* - * Most existing extensions don't define exported packages, i.e. no classes are to be exposed to - * plugins, yet the components provided by the extension (e.g. artifact handlers) must be - * accessible, i.e. we still must import the extension realm into the project realm. - */ - exports = Arrays.asList( extensionRealm.getId() ); - } - - for ( String export : exports ) - { - projectRealm.importFrom( extensionRealm, export ); - } - } - - DependencyFilter extensionArtifactFilter = null; - if ( !exclusions.isEmpty() ) - { - extensionArtifactFilter = new ExclusionsDependencyFilter( exclusions ); - } - - record = projectRealmCache.put( projectRealmKey, projectRealm, extensionArtifactFilter ); - } - - projectRealmCache.register( project, projectRealmKey, record ); - - return record; - } - - public void selectProjectRealm( MavenProject project ) - { - ClassLoader projectRealm = project.getClassRealm(); - - if ( projectRealm == null ) - { - projectRealm = classRealmManager.getCoreRealm(); - } - - Thread.currentThread().setContextClassLoader( projectRealm ); - } - - private List toAetherArtifacts( final List pluginArtifacts ) - { - return new ArrayList( RepositoryUtils.toArtifacts( pluginArtifacts ) ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingRequest.java deleted file mode 100644 index 185e4ca7..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingRequest.java +++ /dev/null @@ -1,339 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; -import java.util.Properties; - -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.model.Profile; -import org.apache.maven.model.building.ModelBuildingRequest; -import org.eclipse.aether.RepositorySystemSession; - -public class DefaultProjectBuildingRequest - implements ProjectBuildingRequest -{ - - private RepositorySystemSession repositorySession; - - private ArtifactRepository localRepository; - - private List remoteRepositories; - - private List pluginArtifactRepositories; - - private MavenProject project; - - private int validationLevel = ModelBuildingRequest.VALIDATION_LEVEL_STRICT; - - private boolean processPlugins; - - private List profiles; - - private List activeProfileIds; - - private List inactiveProfileIds; - - private Properties systemProperties; - - private Properties userProperties; - - private Date buildStartTime; - - private boolean resolveDependencies; - - private boolean resolveVersionRanges; - - private RepositoryMerging repositoryMerging = RepositoryMerging.POM_DOMINANT; - - public DefaultProjectBuildingRequest() - { - processPlugins = true; - profiles = new ArrayList(); - activeProfileIds = new ArrayList(); - inactiveProfileIds = new ArrayList(); - systemProperties = new Properties(); - userProperties = new Properties(); - remoteRepositories = new ArrayList(); - pluginArtifactRepositories = new ArrayList(); - } - - public DefaultProjectBuildingRequest( ProjectBuildingRequest request ) - { - this(); - setProcessPlugins( request.isProcessPlugins() ); - setProfiles( request.getProfiles() ); - setActiveProfileIds( request.getActiveProfileIds() ); - setInactiveProfileIds( request.getInactiveProfileIds() ); - setSystemProperties( request.getSystemProperties() ); - setUserProperties( request.getUserProperties() ); - setRemoteRepositories( request.getRemoteRepositories() ); - setPluginArtifactRepositories( request.getPluginArtifactRepositories() ); - setRepositorySession( request.getRepositorySession() ); - setLocalRepository( request.getLocalRepository() ); - setBuildStartTime( request.getBuildStartTime() ); - setProject( request.getProject() ); - setResolveDependencies( request.isResolveDependencies() ); - setValidationLevel( request.getValidationLevel() ); - } - - public MavenProject getProject() - { - return project; - } - - public void setProject( MavenProject mavenProject ) - { - this.project = mavenProject; - } - - public ProjectBuildingRequest setLocalRepository( ArtifactRepository localRepository ) - { - this.localRepository = localRepository; - return this; - } - - public ArtifactRepository getLocalRepository() - { - return localRepository; - } - - public List getRemoteRepositories() - { - return remoteRepositories; - } - - public ProjectBuildingRequest setRemoteRepositories( List remoteRepositories ) - { - if ( remoteRepositories != null ) - { - this.remoteRepositories = new ArrayList( remoteRepositories ); - } - else - { - this.remoteRepositories.clear(); - } - - return this; - } - - public List getPluginArtifactRepositories() - { - return pluginArtifactRepositories; - } - - public ProjectBuildingRequest setPluginArtifactRepositories( List pluginArtifactRepositories ) - { - if ( pluginArtifactRepositories != null ) - { - this.pluginArtifactRepositories = new ArrayList( pluginArtifactRepositories ); - } - else - { - this.pluginArtifactRepositories.clear(); - } - - return this; - } - - public Properties getSystemProperties() - { - return systemProperties; - } - - public ProjectBuildingRequest setSystemProperties( Properties systemProperties ) - { - if ( systemProperties != null ) - { - this.systemProperties = new Properties(); - synchronized ( systemProperties ) - { // avoid concurrentmodification if someone else sets/removes an unrelated system property - this.systemProperties.putAll( systemProperties ); - } - } - else - { - this.systemProperties.clear(); - } - - return this; - } - - public Properties getUserProperties() - { - return userProperties; - } - - public ProjectBuildingRequest setUserProperties( Properties userProperties ) - { - if ( userProperties != null ) - { - this.userProperties = new Properties(); - this.userProperties.putAll( userProperties ); - } - else - { - this.userProperties.clear(); - } - - return this; - } - - public boolean isProcessPlugins() - { - return processPlugins; - } - - public ProjectBuildingRequest setProcessPlugins( boolean processPlugins ) - { - this.processPlugins = processPlugins; - return this; - } - - public ProjectBuildingRequest setResolveDependencies( boolean resolveDependencies ) - { - this.resolveDependencies = resolveDependencies; - return this; - } - - public boolean isResolveDependencies() - { - return resolveDependencies; - } - - /** @since 3.2.2 */ - public ProjectBuildingRequest setResolveVersionRanges( boolean value ) - { - this.resolveVersionRanges = value; - return this; - } - - /** @since 3.2.2 */ - public boolean isResolveVersionRanges() - { - return this.resolveVersionRanges; - } - - public ProjectBuildingRequest setValidationLevel( int validationLevel ) - { - this.validationLevel = validationLevel; - return this; - } - - public int getValidationLevel() - { - return validationLevel; - } - - public List getActiveProfileIds() - { - return activeProfileIds; - } - - public void setActiveProfileIds( List activeProfileIds ) - { - if ( activeProfileIds != null ) - { - this.activeProfileIds = new ArrayList( activeProfileIds ); - } - else - { - this.activeProfileIds.clear(); - } - } - - public List getInactiveProfileIds() - { - return inactiveProfileIds; - } - - public void setInactiveProfileIds( List inactiveProfileIds ) - { - if ( inactiveProfileIds != null ) - { - this.inactiveProfileIds = new ArrayList( inactiveProfileIds ); - } - else - { - this.inactiveProfileIds.clear(); - } - } - - public void setProfiles( List profiles ) - { - if ( profiles != null ) - { - this.profiles = new ArrayList( profiles ); - } - else - { - this.profiles.clear(); - } - } - - public void addProfile( Profile profile ) - { - profiles.add( profile ); - } - - public List getProfiles() - { - return profiles; - } - - public Date getBuildStartTime() - { - return buildStartTime; - } - - public void setBuildStartTime( Date buildStartTime ) - { - this.buildStartTime = buildStartTime; - } - - public RepositorySystemSession getRepositorySession() - { - return repositorySession; - } - - public DefaultProjectBuildingRequest setRepositorySession( RepositorySystemSession repositorySession ) - { - this.repositorySession = repositorySession; - return this; - } - - public DefaultProjectBuildingRequest setRepositoryMerging( RepositoryMerging repositoryMerging ) - { - if ( repositoryMerging == null ) - { - throw new IllegalArgumentException( "repository merge mode not specified" ); - } - this.repositoryMerging = repositoryMerging; - return this; - } - - public RepositoryMerging getRepositoryMerging() - { - return repositoryMerging; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingResult.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingResult.java deleted file mode 100644 index b64a395d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingResult.java +++ /dev/null @@ -1,110 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.ArrayList; -import java.util.List; - -import org.apache.maven.model.building.ModelProblem; - -/** - * Collects the output of the project builder. - * - * @author Benjamin Bentmann - */ -class DefaultProjectBuildingResult - implements ProjectBuildingResult -{ - - private String projectId; - - private File pomFile; - - private MavenProject project; - - private List problems; - - private DependencyResolutionResult dependencyResolutionResult; - - /** - * Creates a new result with the specified contents. - * - * @param project The project that was built, may be {@code null}. - * @param problems The problems that were encouterned, may be {@code null}. - * @param dependencyResolutionResult The result of the resolution for the project dependencies, may be {@code null}. - */ - public DefaultProjectBuildingResult( MavenProject project, List problems, - DependencyResolutionResult dependencyResolutionResult ) - { - this.projectId = - ( project != null ) ? project.getGroupId() + ':' + project.getArtifactId() + ':' + project.getVersion() - : ""; - this.pomFile = ( project != null ) ? project.getFile() : null; - this.project = project; - this.problems = problems; - this.dependencyResolutionResult = dependencyResolutionResult; - } - - /** - * Creates a new result with the specified contents. - * - * @param projectId The identifier of the project, may be {@code null}. - * @param pomFile The POM file from which the project was built, may be {@code null}. - * @param problems The problems that were encouterned, may be {@code null}. - */ - public DefaultProjectBuildingResult( String projectId, File pomFile, List problems ) - { - this.projectId = ( projectId != null ) ? projectId : ""; - this.pomFile = pomFile; - this.problems = problems; - } - - public String getProjectId() - { - return projectId; - } - - public File getPomFile() - { - return pomFile; - } - - public MavenProject getProject() - { - return project; - } - - public List getProblems() - { - if ( problems == null ) - { - problems = new ArrayList(); - } - - return problems; - } - - public DependencyResolutionResult getDependencyResolutionResult() - { - return dependencyResolutionResult; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectDependenciesResolver.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectDependenciesResolver.java deleted file mode 100644 index 1287eb14..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectDependenciesResolver.java +++ /dev/null @@ -1,333 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collection; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.apache.maven.RepositoryUtils; -import org.apache.maven.artifact.Artifact; -import org.apache.maven.model.Dependency; -import org.apache.maven.model.DependencyManagement; -import org.apache.maven.model.Exclusion; -import org.apache.maven.model.InputLocation; -import org.apache.maven.model.InputSource; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.util.StringUtils; -import org.eclipse.aether.DefaultRepositorySystemSession; -import org.eclipse.aether.RepositorySystem; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.RequestTrace; -import org.eclipse.aether.artifact.ArtifactProperties; -import org.eclipse.aether.artifact.ArtifactType; -import org.eclipse.aether.artifact.ArtifactTypeRegistry; -import org.eclipse.aether.collection.CollectRequest; -import org.eclipse.aether.collection.DependencyCollectionException; -import org.eclipse.aether.graph.DependencyFilter; -import org.eclipse.aether.graph.DependencyNode; -import org.eclipse.aether.graph.DependencyVisitor; -import org.eclipse.aether.resolution.ArtifactResult; -import org.eclipse.aether.resolution.DependencyRequest; -import org.eclipse.aether.util.artifact.ArtifactIdUtils; -import org.eclipse.aether.util.artifact.JavaScopes; -import org.eclipse.aether.util.graph.manager.DependencyManagerUtils; - -/** - * @author Benjamin Bentmann - */ -@Component( role = ProjectDependenciesResolver.class ) -public class DefaultProjectDependenciesResolver - implements ProjectDependenciesResolver -{ - - @Requirement - private Logger logger; - - @Requirement - private RepositorySystem repoSystem; - - @Requirement - private List decorators; - - public DependencyResolutionResult resolve( DependencyResolutionRequest request ) - throws DependencyResolutionException - { - final RequestTrace trace = RequestTrace.newChild( null, request ); - - final DefaultDependencyResolutionResult result = new DefaultDependencyResolutionResult(); - - final MavenProject project = request.getMavenProject(); - final DependencyFilter filter = request.getResolutionFilter(); - RepositorySystemSession session = request.getRepositorySession(); - ArtifactTypeRegistry stereotypes = session.getArtifactTypeRegistry(); - - if ( logger.isDebugEnabled() - && session.getConfigProperties().get( DependencyManagerUtils.CONFIG_PROP_VERBOSE ) == null ) - { - DefaultRepositorySystemSession verbose = new DefaultRepositorySystemSession( session ); - verbose.setConfigProperty( DependencyManagerUtils.CONFIG_PROP_VERBOSE, Boolean.TRUE ); - session = verbose; - } - - for ( RepositorySessionDecorator decorator : decorators ) - { - RepositorySystemSession decorated = decorator.decorate( project, session ); - if ( decorated != null ) - { - session = decorated; - } - } - - CollectRequest collect = new CollectRequest(); - collect.setRootArtifact( RepositoryUtils.toArtifact( project.getArtifact() ) ); - collect.setRequestContext( "project" ); - collect.setRepositories( project.getRemoteProjectRepositories() ); - - if ( project.getDependencyArtifacts() == null ) - { - for ( Dependency dependency : project.getDependencies() ) - { - if ( StringUtils.isEmpty( dependency.getGroupId() ) || StringUtils.isEmpty( dependency.getArtifactId() ) - || StringUtils.isEmpty( dependency.getVersion() ) ) - { - // guard against case where best-effort resolution for invalid models is requested - continue; - } - collect.addDependency( RepositoryUtils.toDependency( dependency, stereotypes ) ); - } - } - else - { - Map dependencies = new HashMap(); - for ( Dependency dependency : project.getDependencies() ) - { - String classifier = dependency.getClassifier(); - if ( classifier == null ) - { - ArtifactType type = stereotypes.get( dependency.getType() ); - if ( type != null ) - { - classifier = type.getClassifier(); - } - } - String key = - ArtifactIdUtils.toVersionlessId( dependency.getGroupId(), dependency.getArtifactId(), - dependency.getType(), classifier ); - dependencies.put( key, dependency ); - } - for ( Artifact artifact : project.getDependencyArtifacts() ) - { - String key = artifact.getDependencyConflictId(); - Dependency dependency = dependencies.get( key ); - Collection exclusions = dependency != null ? dependency.getExclusions() : null; - org.eclipse.aether.graph.Dependency dep = RepositoryUtils.toDependency( artifact, exclusions ); - if ( !JavaScopes.SYSTEM.equals( dep.getScope() ) && dep.getArtifact().getFile() != null ) - { - // enable re-resolution - org.eclipse.aether.artifact.Artifact art = dep.getArtifact(); - art = art.setFile( null ).setVersion( art.getBaseVersion() ); - dep = dep.setArtifact( art ); - } - collect.addDependency( dep ); - } - } - - DependencyManagement depMngt = project.getDependencyManagement(); - if ( depMngt != null ) - { - for ( Dependency dependency : depMngt.getDependencies() ) - { - collect.addManagedDependency( RepositoryUtils.toDependency( dependency, stereotypes ) ); - } - } - - DependencyRequest depRequest = new DependencyRequest( collect, filter ); - depRequest.setTrace( trace ); - - DependencyNode node; - try - { - collect.setTrace( RequestTrace.newChild( trace, depRequest ) ); - node = repoSystem.collectDependencies( session, collect ).getRoot(); - result.setDependencyGraph( node ); - } - catch ( DependencyCollectionException e ) - { - result.setDependencyGraph( e.getResult().getRoot() ); - result.setCollectionErrors( e.getResult().getExceptions() ); - - throw new DependencyResolutionException( result, "Could not resolve dependencies for project " - + project.getId() + ": " + e.getMessage(), e ); - } - - depRequest.setRoot( node ); - - if ( logger.isWarnEnabled() ) - { - for ( DependencyNode child : node.getChildren() ) - { - if ( !child.getRelocations().isEmpty() ) - { - logger.warn( "The artifact " + child.getRelocations().get( 0 ) + " has been relocated to " - + child.getDependency().getArtifact() ); - } - } - } - - if ( logger.isDebugEnabled() ) - { - node.accept( new GraphLogger( project ) ); - } - - try - { - process( result, repoSystem.resolveDependencies( session, depRequest ).getArtifactResults() ); - } - catch ( org.eclipse.aether.resolution.DependencyResolutionException e ) - { - process( result, e.getResult().getArtifactResults() ); - - throw new DependencyResolutionException( result, "Could not resolve dependencies for project " - + project.getId() + ": " + e.getMessage(), e ); - } - - return result; - } - - private void process( DefaultDependencyResolutionResult result, Collection results ) - { - for ( ArtifactResult ar : results ) - { - DependencyNode node = ar.getRequest().getDependencyNode(); - if ( ar.isResolved() ) - { - result.addResolvedDependency( node.getDependency() ); - } - else - { - result.setResolutionErrors( node.getDependency(), ar.getExceptions() ); - } - } - } - - class GraphLogger - implements DependencyVisitor - { - - private final MavenProject project; - - private String indent = ""; - - private Map managed; - - public GraphLogger( MavenProject project ) - { - this.project = project; - } - - public boolean visitEnter( DependencyNode node ) - { - StringBuilder buffer = new StringBuilder( 128 ); - buffer.append( indent ); - org.eclipse.aether.graph.Dependency dep = node.getDependency(); - if ( dep != null ) - { - org.eclipse.aether.artifact.Artifact art = dep.getArtifact(); - - buffer.append( art ); - buffer.append( ':' ).append( dep.getScope() ); - - String premanagedScope = DependencyManagerUtils.getPremanagedScope( node ); - if ( premanagedScope != null && !premanagedScope.equals( dep.getScope() ) ) - { - buffer.append( " (scope managed from " ).append( premanagedScope ); - appendManagementSource( buffer, art, "scope" ); - buffer.append( ")" ); - } - - String premanagedVersion = DependencyManagerUtils.getPremanagedVersion( node ); - if ( premanagedVersion != null && !premanagedVersion.equals( art.getVersion() ) ) - { - buffer.append( " (version managed from " ).append( premanagedVersion ); - appendManagementSource( buffer, art, "version" ); - buffer.append( ")" ); - } - } - else - { - buffer.append( project.getGroupId() ); - buffer.append( ':' ).append( project.getArtifactId() ); - buffer.append( ':' ).append( project.getPackaging() ); - buffer.append( ':' ).append( project.getVersion() ); - } - - logger.debug( buffer.toString() ); - indent += " "; - return true; - } - - public boolean visitLeave( DependencyNode node ) - { - indent = indent.substring( 0, indent.length() - 3 ); - return true; - } - - private void appendManagementSource( StringBuilder buffer, org.eclipse.aether.artifact.Artifact artifact, - String field ) - { - if ( managed == null ) - { - managed = new HashMap(); - if ( project.getDependencyManagement() != null ) - { - for ( Dependency dep : project.getDependencyManagement().getDependencies() ) - { - managed.put( dep.getManagementKey(), dep ); - } - } - } - - String key = - ArtifactIdUtils.toVersionlessId( artifact.getGroupId(), artifact.getArtifactId(), - artifact.getProperty( ArtifactProperties.TYPE, "jar" ), - artifact.getClassifier() ); - - Dependency dependency = managed.get( key ); - if ( dependency != null ) - { - InputLocation location = dependency.getLocation( field ); - if ( location != null ) - { - InputSource source = location.getSource(); - if ( source != null ) - { - buffer.append( " by " ).append( source.getModelId() ); - } - } - } - } - - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectRealmCache.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectRealmCache.java deleted file mode 100644 index 53b82bcf..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DefaultProjectRealmCache.java +++ /dev/null @@ -1,147 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collections; -import java.util.List; -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; - -import org.codehaus.plexus.classworlds.realm.ClassRealm; -import org.codehaus.plexus.classworlds.realm.NoSuchRealmException; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable; -import org.eclipse.aether.graph.DependencyFilter; - -/** - * Default project realm cache implementation. Assumes cached data does not change. - */ -@Component( role = ProjectRealmCache.class ) -public class DefaultProjectRealmCache - implements ProjectRealmCache, Disposable -{ - - protected static class CacheKey - implements Key - { - - private final List extensionRealms; - - private final int hashCode; - - public CacheKey( List extensionRealms ) - { - this.extensionRealms = ( extensionRealms != null ) ? extensionRealms : Collections.emptyList(); - - this.hashCode = this.extensionRealms.hashCode(); - } - - @Override - public int hashCode() - { - return hashCode; - } - - @Override - public boolean equals( Object o ) - { - if ( o == this ) - { - return true; - } - - if ( !( o instanceof CacheKey ) ) - { - return false; - } - - CacheKey other = (CacheKey) o; - - return extensionRealms.equals( other.extensionRealms ); - } - - @Override - public String toString() - { - return extensionRealms.toString(); - } - } - - protected final Map cache = new ConcurrentHashMap(); - - @Override - public Key createKey( List extensionRealms ) - { - return new CacheKey( extensionRealms ); - } - - public CacheRecord get( Key key ) - { - return cache.get( key ); - } - - public CacheRecord put( Key key, ClassRealm projectRealm, DependencyFilter extensionArtifactFilter ) - { - if ( projectRealm == null ) - { - throw new NullPointerException(); - } - - if ( cache.containsKey( key ) ) - { - throw new IllegalStateException( "Duplicate project realm for extensions " + key ); - } - - CacheRecord record = new CacheRecord( projectRealm, extensionArtifactFilter ); - - cache.put( key, record ); - - return record; - } - - public void flush() - { - for ( CacheRecord record : cache.values() ) - { - ClassRealm realm = record.realm; - try - { - realm.getWorld().disposeRealm( realm.getId() ); - } - catch ( NoSuchRealmException e ) - { - // ignore - } - } - cache.clear(); - } - - public void register( MavenProject project, Key key, CacheRecord record ) - { - // default cache does not track record usage - } - - @Override - public void dispose() - { - flush(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionException.java deleted file mode 100644 index 50e601e7..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionException.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * @author Benjamin Bentmann - */ -public class DependencyResolutionException - extends Exception -{ - - private DependencyResolutionResult result; - - public DependencyResolutionException( DependencyResolutionResult result, String message, Throwable cause ) - { - super( message, cause ); - this.result = result; - } - - public DependencyResolutionResult getResult() - { - return result; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionRequest.java deleted file mode 100644 index c120a137..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionRequest.java +++ /dev/null @@ -1,81 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.graph.DependencyFilter; - -/** - * A request to resolve the dependencies of a project. - * - * @author Benjamin Bentmann - */ -public interface DependencyResolutionRequest -{ - - /** - * Gets the project to resolve dependencies for. - * - * @return The project to resolve dependencies for or {@code null} if not set. - */ - MavenProject getMavenProject(); - - /** - * Sets the project to resolve dependencies for. - * - * @param project The project to resolve dependencies for, may be {@code null}. - * @return This request for chaining, never {@code null}. - */ - DependencyResolutionRequest setMavenProject( MavenProject project ); - - /** - * Gets the filter used to exclude some dependencies from resolution. - * - * @return The filter to exclude dependencies from resolution or {@code null} to resolve all dependencies. - */ - DependencyFilter getResolutionFilter(); - - /** - * Sets the filter used to exclude some dependencies from resolution. Note that this filter only controls the - * resolution/download of dependency artifacts, not the inclusion of dependency nodes in the resolved dependency - * graph. - * - * @param filter The filter to exclude dependencies from resolution, may be {@code null} to resolve all - * dependencies. - * @return This request for chaining, never {@code null}. - */ - DependencyResolutionRequest setResolutionFilter( DependencyFilter filter ); - - /** - * Gets the session to use for repository access. - * - * @return The repository session or {@code null} if not set. - */ - RepositorySystemSession getRepositorySession(); - - /** - * Sets the session to use for repository access. - * - * @param repositorySession The repository session to use. - * @return This request for chaining, never {@code null}. - */ - DependencyResolutionRequest setRepositorySession( RepositorySystemSession repositorySession ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionResult.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionResult.java deleted file mode 100644 index 6ad55fae..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionResult.java +++ /dev/null @@ -1,80 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.eclipse.aether.graph.Dependency; -import org.eclipse.aether.graph.DependencyNode; - -/** - * The result of a project dependency resolution. - * - * @author Benjamin Bentmann - */ -public interface DependencyResolutionResult -{ - - /** - * Gets the dependency graph of the project. - * - * @return The dependency graph or {@code null} if not available. - */ - DependencyNode getDependencyGraph(); - - /** - * Gets the transitive dependencies of the project that were not excluded by - * {@link DependencyResolutionRequest#getResolutionFilter()}. This list is a union of the results from - * {@link #getResolvedDependencies()} and {@link #getUnresolvedDependencies()}. - * - * @return The transitive dependencies, never {@code null}. - */ - List getDependencies(); - - /** - * Gets the dependencies that were successfully resolved. - * - * @return The resolved dependencies, never {@code null}. - */ - List getResolvedDependencies(); - - /** - * Gets the dependencies that could not be resolved. - * - * @return The unresolved dependencies, never {@code null}. - */ - List getUnresolvedDependencies(); - - /** - * Gets the errors that occurred while building the dependency graph. - * - * @return The errors that occurred while building the dependency graph, never {@code null}. - */ - List getCollectionErrors(); - - /** - * Gets the errors that occurred while resolving the specified dependency. - * - * @param dependency The dependency for which to retrieve the errors, must not be {@code null}. - * @return The resolution errors for the specified dependency, never {@code null}. - */ - List getResolutionErrors( Dependency dependency ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DuplicateArtifactAttachmentException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DuplicateArtifactAttachmentException.java deleted file mode 100644 index 6121473d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DuplicateArtifactAttachmentException.java +++ /dev/null @@ -1,64 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.Artifact; - -/** - * This exception is thrown if an application attempts to attach - * two of the same artifacts to a single project. - * - * @author pgier - * @author jdcasey - * @todo Make this a checked exception, and modify the API of MavenProjectHelper. - * Currently, this modification would create compatibility problems for existing plugins. - */ -public class DuplicateArtifactAttachmentException - extends RuntimeException -{ - - private static final String DEFAULT_MESSAGE = "Duplicate artifact attachment detected."; - - private Artifact artifact; - - private final MavenProject project; - - public DuplicateArtifactAttachmentException( MavenProject project, Artifact artifact ) - { - super( constructMessage( project, artifact ) ); - this.project = project; - this.artifact = artifact; - } - - private static String constructMessage( MavenProject project, Artifact artifact ) - { - return DEFAULT_MESSAGE + " (project: " + project.getId() + "; illegal attachment: " + artifact.getId() + ")"; - } - - public MavenProject getProject() - { - return project; - } - - public Artifact getArtifact() - { - return artifact; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DuplicateProjectException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DuplicateProjectException.java deleted file mode 100644 index f73c46b2..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/DuplicateProjectException.java +++ /dev/null @@ -1,80 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; - -/** - * Exception that occurs when the project list contains duplicate projects instead of ignoring one. - * - * @author Brett Porter - */ -public class DuplicateProjectException - extends Exception -{ - private final String projectId; - - private final File existingProjectFile; - - private final File conflictingProjectFile; - - /** - * @deprecated use {@link #DuplicateProjectException(String, File, File, String)} - */ - public DuplicateProjectException( String message ) - { - this( null, null, null, message ); - } - - /** - * @deprecated use {@link #DuplicateProjectException(String, File, File, String)} - */ - public DuplicateProjectException( String message, Exception e ) - { - super( message, e ); - this.projectId = null; - this.existingProjectFile = null; - this.conflictingProjectFile = null; - } - - public DuplicateProjectException( String projectId, File existingProjectFile, File conflictingProjectFile, - String message ) - { - super( message ); - this.projectId = projectId; - this.existingProjectFile = existingProjectFile; - this.conflictingProjectFile = conflictingProjectFile; - } - - public String getProjectId() - { - return projectId; - } - - public File getExistingProjectFile() - { - return existingProjectFile; - } - - public File getConflictingProjectFile() - { - return conflictingProjectFile; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ExtensionDescriptor.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ExtensionDescriptor.java deleted file mode 100644 index 062b8b77..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ExtensionDescriptor.java +++ /dev/null @@ -1,88 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.List; - -/** - * Provides metadata about a build extension. Warning: This is an internal utility class that is only - * public for technical reasons, it is not part of the public API. In particular, this class can be changed or deleted - * without prior notice. - * - * @author Benjamin Bentmann - */ -public class ExtensionDescriptor -{ - - private List exportedPackages; - - private List exportedArtifacts; - - ExtensionDescriptor() - { - // hide constructor - } - - public List getExportedPackages() - { - if ( exportedPackages == null ) - { - exportedPackages = new ArrayList(); - } - - return exportedPackages; - } - - public void setExportedPackages( List exportedPackages ) - { - if ( exportedPackages == null ) - { - this.exportedPackages = null; - } - else - { - this.exportedPackages = new ArrayList( exportedPackages ); - } - } - - public List getExportedArtifacts() - { - if ( exportedArtifacts == null ) - { - exportedArtifacts = new ArrayList(); - } - - return exportedArtifacts; - } - - public void setExportedArtifacts( List exportedArtifacts ) - { - if ( exportedArtifacts == null ) - { - this.exportedArtifacts = null; - } - else - { - this.exportedArtifacts = new ArrayList( exportedArtifacts ); - } - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ExtensionDescriptorBuilder.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ExtensionDescriptorBuilder.java deleted file mode 100644 index c835eff5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ExtensionDescriptorBuilder.java +++ /dev/null @@ -1,168 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.BufferedInputStream; -import java.io.File; -import java.io.FileInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; -import java.util.jar.JarFile; -import java.util.zip.ZipEntry; - -import org.codehaus.plexus.util.IOUtil; -import org.codehaus.plexus.util.ReaderFactory; -import org.codehaus.plexus.util.xml.Xpp3Dom; -import org.codehaus.plexus.util.xml.Xpp3DomBuilder; -import org.codehaus.plexus.util.xml.pull.XmlPullParserException; - -/** - * Creates an extension descriptor from some XML stream. - * - * @author Benjamin Bentmann - */ -public class ExtensionDescriptorBuilder -{ - - /** - * @since 3.3.0 - */ - public String getExtensionDescriptorLocation() - { - return "META-INF/maven/extension.xml"; - } - - /** - * Extracts the extension descriptor (if any) from the specified JAR file. - * - * @param extensionJar The JAR file or directory to extract the descriptor from, must not be {@code null}. - * @return The extracted descriptor or {@code null} if no descriptor was found. - * @throws IOException If the descriptor is present but could not be parsed. - */ - public ExtensionDescriptor build( File extensionJar ) - throws IOException - { - ExtensionDescriptor extensionDescriptor = null; - - if ( extensionJar.isFile() ) - { - JarFile pluginJar = new JarFile( extensionJar, false ); - try - { - ZipEntry pluginDescriptorEntry = pluginJar.getEntry( getExtensionDescriptorLocation() ); - - if ( pluginDescriptorEntry != null ) - { - InputStream is = pluginJar.getInputStream( pluginDescriptorEntry ); - - try - { - extensionDescriptor = build( is ); - } - finally - { - IOUtil.close( is ); - } - } - } - finally - { - pluginJar.close(); - } - } - else - { - File pluginXml = new File( extensionJar, getExtensionDescriptorLocation() ); - - if ( pluginXml.canRead() ) - { - InputStream is = new BufferedInputStream( new FileInputStream( pluginXml ) ); - try - { - extensionDescriptor = build( is ); - } - finally - { - IOUtil.close( is ); - } - } - } - - return extensionDescriptor; - } - - /** - * @since 3.3.0 - */ - public ExtensionDescriptor build( InputStream is ) - throws IOException - { - ExtensionDescriptor extensionDescriptor = new ExtensionDescriptor(); - - Xpp3Dom dom; - try - { - dom = Xpp3DomBuilder.build( ReaderFactory.newXmlReader( is ) ); - } - catch ( XmlPullParserException e ) - { - throw (IOException) new IOException( e.getMessage() ).initCause( e ); - } - - if ( !"extension".equals( dom.getName() ) ) - { - throw new IOException( "Unexpected root element \"" + dom.getName() + "\", expected \"extension\"" ); - } - - extensionDescriptor.setExportedPackages( parseStrings( dom.getChild( "exportedPackages" ) ) ); - - extensionDescriptor.setExportedArtifacts( parseStrings( dom.getChild( "exportedArtifacts" ) ) ); - - return extensionDescriptor; - } - - private List parseStrings( Xpp3Dom dom ) - { - List strings = null; - - if ( dom != null ) - { - strings = new ArrayList(); - - for ( Xpp3Dom child : dom.getChildren() ) - { - String string = child.getValue(); - if ( string != null ) - { - string = string.trim(); - if ( string.length() > 0 ) - { - strings.add( string ); - } - } - } - } - - return strings; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/InvalidProjectVersionException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/InvalidProjectVersionException.java deleted file mode 100644 index 5e42ee46..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/InvalidProjectVersionException.java +++ /dev/null @@ -1,59 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; - -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; - -public class InvalidProjectVersionException - extends ProjectBuildingException -{ - - private final String locationInPom; - - private final String offendingVersion; - - public InvalidProjectVersionException( String projectId, String locationInPom, String offendingVersion, - File pomFile, InvalidVersionSpecificationException cause ) - { - super( projectId, formatMessage( projectId, locationInPom, offendingVersion, cause ), pomFile, cause ); - this.locationInPom = locationInPom; - this.offendingVersion = offendingVersion; - } - - private static String formatMessage( String projectId, String locationInPom, String offendingVersion, - InvalidVersionSpecificationException cause ) - { - return "Invalid version: " + offendingVersion + " found for: " + locationInPom + " in project: " + projectId - + ". Reason: " + cause.getMessage(); - } - - public String getOffendingVersion() - { - return offendingVersion; - } - - public String getLocationInPom() - { - return locationInPom; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/MavenProject.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/MavenProject.java deleted file mode 100644 index 8587a5c3..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/MavenProject.java +++ /dev/null @@ -1,1976 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.IOException; -import java.io.Writer; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Properties; -import java.util.Set; - -import org.apache.maven.RepositoryUtils; -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.ArtifactUtils; -import org.apache.maven.artifact.DependencyResolutionRequiredException; -// remove once createArtifacts() is removed -import org.apache.maven.artifact.factory.ArtifactFactory; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.resolver.filter.ArtifactFilter; -import org.apache.maven.model.Build; -import org.apache.maven.model.CiManagement; -import org.apache.maven.model.Contributor; -import org.apache.maven.model.Dependency; -import org.apache.maven.model.DependencyManagement; -import org.apache.maven.model.Developer; -import org.apache.maven.model.DistributionManagement; -import org.apache.maven.model.Extension; -import org.apache.maven.model.IssueManagement; -import org.apache.maven.model.License; -import org.apache.maven.model.MailingList; -import org.apache.maven.model.Model; -import org.apache.maven.model.Organization; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.PluginExecution; -import org.apache.maven.model.PluginManagement; -import org.apache.maven.model.Prerequisites; -import org.apache.maven.model.Profile; -import org.apache.maven.model.ReportPlugin; -import org.apache.maven.model.ReportSet; -import org.apache.maven.model.Reporting; -import org.apache.maven.model.Repository; -import org.apache.maven.model.Resource; -import org.apache.maven.model.Scm; -import org.apache.maven.model.io.xpp3.MavenXpp3Writer; -import org.apache.maven.project.artifact.InvalidDependencyVersionException; -import org.apache.maven.project.artifact.MavenMetadataSource; -import org.codehaus.plexus.classworlds.realm.ClassRealm; -import org.codehaus.plexus.util.xml.Xpp3Dom; -import org.eclipse.aether.graph.DependencyFilter; -import org.eclipse.aether.repository.RemoteRepository; - -/** - * The concern of the project is provide runtime values based on the model. - *

- * The values in the model remain untouched but during the process of building a project notions like inheritance and - * interpolation can be added. This allows to have an entity which is useful in a runtime while preserving the model so - * that it can be marshalled and unmarshalled without being tainted by runtime requirements. - *

- *

- * With changes during 3.2.2 release MavenProject is closer to being immutable after construction with the removal of - * all components from this class, and the upfront construction taken care of entirely by the @{ProjectBuilder}. There - * is still the issue of having to run the lifecycle in order to find all the compile source roots and resource - * directories but I hope to take care of this during the Maven 4.0 release (jvz). - *

- */ -public class MavenProject - implements Cloneable -{ - public static final String EMPTY_PROJECT_GROUP_ID = "unknown"; - - public static final String EMPTY_PROJECT_ARTIFACT_ID = "empty-project"; - - public static final String EMPTY_PROJECT_VERSION = "0"; - - private Model model; - - private MavenProject parent; - - private File file; - - private File basedir; - - private Set resolvedArtifacts; - - private ArtifactFilter artifactFilter; - - private Set artifacts; - - private Artifact parentArtifact; - - private Set pluginArtifacts; - - private List remoteArtifactRepositories; - - private List pluginArtifactRepositories; - - private List remoteProjectRepositories; - - private List remotePluginRepositories; - - private List attachedArtifacts; - - private MavenProject executionProject; - - private List collectedProjects; - - private List compileSourceRoots = new ArrayList(); - - private List testCompileSourceRoots = new ArrayList(); - - private List scriptSourceRoots = new ArrayList(); - - private ArtifactRepository releaseArtifactRepository; - - private ArtifactRepository snapshotArtifactRepository; - - private List activeProfiles = new ArrayList(); - - private Map> injectedProfileIds = new LinkedHashMap>(); - - private Set dependencyArtifacts; - - private Artifact artifact; - - // calculated. - private Map artifactMap; - - private Model originalModel; - - private Map pluginArtifactMap; - - private Set reportArtifacts; - - private Map reportArtifactMap; - - private Set extensionArtifacts; - - private Map extensionArtifactMap; - - private Map managedVersionMap; - - private Map projectReferences = new HashMap(); - - private boolean executionRoot; - - private File parentFile; - - private Map context; - - private ClassRealm classRealm; - - private DependencyFilter extensionDependencyFilter; - - private final Set lifecyclePhases = Collections.synchronizedSet( new LinkedHashSet() ); - - public MavenProject() - { - Model model = new Model(); - - model.setGroupId( EMPTY_PROJECT_GROUP_ID ); - model.setArtifactId( EMPTY_PROJECT_ARTIFACT_ID ); - model.setVersion( EMPTY_PROJECT_VERSION ); - - setModel( model ); - } - - public MavenProject( Model model ) - { - setModel( model ); - } - - public MavenProject( MavenProject project ) - { - deepCopy( project ); - } - - public File getParentFile() - { - return parentFile; - } - - public void setParentFile( File parentFile ) - { - this.parentFile = parentFile; - } - - // ---------------------------------------------------------------------- - // Accessors - // ---------------------------------------------------------------------- - - public Artifact getArtifact() - { - return artifact; - } - - public void setArtifact( Artifact artifact ) - { - this.artifact = artifact; - } - - // @todo I would like to get rid of this. jvz. - public Model getModel() - { - return model; - } - - /** - * Returns the project corresponding to a declared parent. - * - * @return the parent, or null if no parent is declared or there was an error building it - */ - public MavenProject getParent() - { - return parent; - } - - public void setParent( MavenProject parent ) - { - this.parent = parent; - } - - public boolean hasParent() - { - return getParent() != null; - } - - public File getFile() - { - return file; - } - - public void setFile( File file ) - { - this.file = file; - this.basedir = file != null ? file.getParentFile() : null; - } - - /** - * Sets project {@code file} without changing project {@code basedir}. - * - * @since 3.2.4 - */ - public void setPomFile( File file ) - { - this.file = file; - } - - public File getBasedir() - { - return basedir; - } - - public void setDependencies( List dependencies ) - { - getModel().setDependencies( dependencies ); - } - - public List getDependencies() - { - return getModel().getDependencies(); - } - - public DependencyManagement getDependencyManagement() - { - return getModel().getDependencyManagement(); - } - - // ---------------------------------------------------------------------- - // Test and compile sourceroots. - // ---------------------------------------------------------------------- - - private void addPath( List paths, String path ) - { - if ( path != null ) - { - path = path.trim(); - if ( path.length() > 0 ) - { - File file = new File( path ); - if ( file.isAbsolute() ) - { - path = file.getAbsolutePath(); - } - else - { - path = new File( getBasedir(), path ).getAbsolutePath(); - } - - if ( !paths.contains( path ) ) - { - paths.add( path ); - } - } - } - } - - public void addCompileSourceRoot( String path ) - { - addPath( getCompileSourceRoots(), path ); - } - - public void addTestCompileSourceRoot( String path ) - { - addPath( getTestCompileSourceRoots(), path ); - } - - public List getCompileSourceRoots() - { - return compileSourceRoots; - } - - public List getTestCompileSourceRoots() - { - return testCompileSourceRoots; - } - - public List getCompileClasspathElements() - throws DependencyResolutionRequiredException - { - List list = new ArrayList( getArtifacts().size() + 1 ); - - String d = getBuild().getOutputDirectory(); - if ( d != null ) - { - list.add( d ); - } - - for ( Artifact a : getArtifacts() ) - { - if ( a.getArtifactHandler().isAddedToClasspath() ) - { - // TODO: let the scope handler deal with this - if ( Artifact.SCOPE_COMPILE.equals( a.getScope() ) || Artifact.SCOPE_PROVIDED.equals( a.getScope() ) - || Artifact.SCOPE_SYSTEM.equals( a.getScope() ) ) - { - addArtifactPath( a, list ); - } - } - } - - return list; - } - - // TODO: this checking for file == null happens because the resolver has been confused about the root - // artifact or not. things like the stupid dummy artifact coming from surefire. - public List getTestClasspathElements() - throws DependencyResolutionRequiredException - { - List list = new ArrayList( getArtifacts().size() + 2 ); - - String d = getBuild().getTestOutputDirectory(); - if ( d != null ) - { - list.add( d ); - } - - d = getBuild().getOutputDirectory(); - if ( d != null ) - { - list.add( d ); - } - - for ( Artifact a : getArtifacts() ) - { - if ( a.getArtifactHandler().isAddedToClasspath() ) - { - addArtifactPath( a, list ); - } - } - - return list; - } - - public List getRuntimeClasspathElements() - throws DependencyResolutionRequiredException - { - List list = new ArrayList( getArtifacts().size() + 1 ); - - String d = getBuild().getOutputDirectory(); - if ( d != null ) - { - list.add( d ); - } - - for ( Artifact a : getArtifacts() ) - { - if ( a.getArtifactHandler().isAddedToClasspath() - // TODO: let the scope handler deal with this - && ( Artifact.SCOPE_COMPILE.equals( a.getScope() ) || Artifact.SCOPE_RUNTIME.equals( a.getScope() ) ) ) - { - addArtifactPath( a, list ); - } - } - return list; - } - - // ---------------------------------------------------------------------- - // Delegate to the model - // ---------------------------------------------------------------------- - - public void setModelVersion( String pomVersion ) - { - getModel().setModelVersion( pomVersion ); - } - - public String getModelVersion() - { - return getModel().getModelVersion(); - } - - public String getId() - { - return getModel().getId(); - } - - public void setGroupId( String groupId ) - { - getModel().setGroupId( groupId ); - } - - public String getGroupId() - { - String groupId = getModel().getGroupId(); - - if ( ( groupId == null ) && ( getModel().getParent() != null ) ) - { - groupId = getModel().getParent().getGroupId(); - } - - return groupId; - } - - public void setArtifactId( String artifactId ) - { - getModel().setArtifactId( artifactId ); - } - - public String getArtifactId() - { - return getModel().getArtifactId(); - } - - public void setName( String name ) - { - getModel().setName( name ); - } - - public String getName() - { - // TODO: this should not be allowed to be null. - if ( getModel().getName() != null ) - { - return getModel().getName(); - } - else - { - return getArtifactId(); - } - } - - public void setVersion( String version ) - { - getModel().setVersion( version ); - } - - public String getVersion() - { - String version = getModel().getVersion(); - - if ( ( version == null ) && ( getModel().getParent() != null ) ) - { - version = getModel().getParent().getVersion(); - } - - return version; - } - - public String getPackaging() - { - return getModel().getPackaging(); - } - - public void setPackaging( String packaging ) - { - getModel().setPackaging( packaging ); - } - - public void setInceptionYear( String inceptionYear ) - { - getModel().setInceptionYear( inceptionYear ); - } - - public String getInceptionYear() - { - return getModel().getInceptionYear(); - } - - public void setUrl( String url ) - { - getModel().setUrl( url ); - } - - public String getUrl() - { - return getModel().getUrl(); - } - - public Prerequisites getPrerequisites() - { - return getModel().getPrerequisites(); - } - - public void setIssueManagement( IssueManagement issueManagement ) - { - getModel().setIssueManagement( issueManagement ); - } - - public CiManagement getCiManagement() - { - return getModel().getCiManagement(); - } - - public void setCiManagement( CiManagement ciManagement ) - { - getModel().setCiManagement( ciManagement ); - } - - public IssueManagement getIssueManagement() - { - return getModel().getIssueManagement(); - } - - public void setDistributionManagement( DistributionManagement distributionManagement ) - { - getModel().setDistributionManagement( distributionManagement ); - } - - public DistributionManagement getDistributionManagement() - { - return getModel().getDistributionManagement(); - } - - public void setDescription( String description ) - { - getModel().setDescription( description ); - } - - public String getDescription() - { - return getModel().getDescription(); - } - - public void setOrganization( Organization organization ) - { - getModel().setOrganization( organization ); - } - - public Organization getOrganization() - { - return getModel().getOrganization(); - } - - public void setScm( Scm scm ) - { - getModel().setScm( scm ); - } - - public Scm getScm() - { - return getModel().getScm(); - } - - public void setMailingLists( List mailingLists ) - { - getModel().setMailingLists( mailingLists ); - } - - public List getMailingLists() - { - return getModel().getMailingLists(); - } - - public void addMailingList( MailingList mailingList ) - { - getModel().addMailingList( mailingList ); - } - - public void setDevelopers( List developers ) - { - getModel().setDevelopers( developers ); - } - - public List getDevelopers() - { - return getModel().getDevelopers(); - } - - public void addDeveloper( Developer developer ) - { - getModel().addDeveloper( developer ); - } - - public void setContributors( List contributors ) - { - getModel().setContributors( contributors ); - } - - public List getContributors() - { - return getModel().getContributors(); - } - - public void addContributor( Contributor contributor ) - { - getModel().addContributor( contributor ); - } - - public void setBuild( Build build ) - { - getModel().setBuild( build ); - } - - public Build getBuild() - { - return getModelBuild(); - } - - public List getResources() - { - return getBuild().getResources(); - } - - public List getTestResources() - { - return getBuild().getTestResources(); - } - - public void addResource( Resource resource ) - { - getBuild().addResource( resource ); - } - - public void addTestResource( Resource testResource ) - { - getBuild().addTestResource( testResource ); - } - - public void setLicenses( List licenses ) - { - getModel().setLicenses( licenses ); - } - - public List getLicenses() - { - return getModel().getLicenses(); - } - - public void addLicense( License license ) - { - getModel().addLicense( license ); - } - - public void setArtifacts( Set artifacts ) - { - this.artifacts = artifacts; - - // flush the calculated artifactMap - artifactMap = null; - } - - /** - * All dependencies that this project has, including transitive ones. Contents are lazily populated, so depending on - * what phases have run dependencies in some scopes won't be included. eg. if only compile phase has run, - * dependencies with scope test won't be included. - * - * @return {@link Set} < {@link Artifact} > - * @see #getDependencyArtifacts() to get only direct dependencies - */ - public Set getArtifacts() - { - if ( artifacts == null ) - { - if ( artifactFilter == null || resolvedArtifacts == null ) - { - artifacts = new LinkedHashSet(); - } - else - { - artifacts = new LinkedHashSet( resolvedArtifacts.size() * 2 ); - for ( Artifact artifact : resolvedArtifacts ) - { - if ( artifactFilter.include( artifact ) ) - { - artifacts.add( artifact ); - } - } - } - } - return artifacts; - } - - public Map getArtifactMap() - { - if ( artifactMap == null ) - { - artifactMap = ArtifactUtils.artifactMapByVersionlessId( getArtifacts() ); - } - return artifactMap; - } - - public void setPluginArtifacts( Set pluginArtifacts ) - { - this.pluginArtifacts = pluginArtifacts; - - this.pluginArtifactMap = null; - } - - public Set getPluginArtifacts() - { - return pluginArtifacts; - } - - public Map getPluginArtifactMap() - { - if ( pluginArtifactMap == null ) - { - pluginArtifactMap = ArtifactUtils.artifactMapByVersionlessId( getPluginArtifacts() ); - } - - return pluginArtifactMap; - } - - public void setParentArtifact( Artifact parentArtifact ) - { - this.parentArtifact = parentArtifact; - } - - public Artifact getParentArtifact() - { - return parentArtifact; - } - - public List getRepositories() - { - return getModel().getRepositories(); - } - - // ---------------------------------------------------------------------- - // Plugins - // ---------------------------------------------------------------------- - - public List getBuildPlugins() - { - if ( getModel().getBuild() == null ) - { - return Collections.emptyList(); - } - return getModel().getBuild().getPlugins(); - } - - public List getModules() - { - return getModel().getModules(); - } - - public PluginManagement getPluginManagement() - { - PluginManagement pluginMgmt = null; - - Build build = getModel().getBuild(); - if ( build != null ) - { - pluginMgmt = build.getPluginManagement(); - } - - return pluginMgmt; - } - - private Build getModelBuild() - { - Build build = getModel().getBuild(); - - if ( build == null ) - { - build = new Build(); - - getModel().setBuild( build ); - } - - return build; - } - - public void setRemoteArtifactRepositories( List remoteArtifactRepositories ) - { - this.remoteArtifactRepositories = remoteArtifactRepositories; - this.remoteProjectRepositories = RepositoryUtils.toRepos( getRemoteArtifactRepositories() ); - } - - public List getRemoteArtifactRepositories() - { - if ( remoteArtifactRepositories == null ) - { - remoteArtifactRepositories = new ArrayList(); - } - - return remoteArtifactRepositories; - } - - public void setPluginArtifactRepositories( List pluginArtifactRepositories ) - { - this.pluginArtifactRepositories = pluginArtifactRepositories; - this.remotePluginRepositories = RepositoryUtils.toRepos( getPluginArtifactRepositories() ); - } - - /** - * @return a list of ArtifactRepository objects constructed from the Repository objects returned by - * getPluginRepositories. - */ - public List getPluginArtifactRepositories() - { - if ( pluginArtifactRepositories == null ) - { - pluginArtifactRepositories = new ArrayList(); - } - - return pluginArtifactRepositories; - } - - public ArtifactRepository getDistributionManagementArtifactRepository() - { - return getArtifact().isSnapshot() && ( getSnapshotArtifactRepository() != null ) - ? getSnapshotArtifactRepository() - : getReleaseArtifactRepository(); - } - - public List getPluginRepositories() - { - return getModel().getPluginRepositories(); - } - - public List getRemoteProjectRepositories() - { - return remoteProjectRepositories; - } - - public List getRemotePluginRepositories() - { - return remotePluginRepositories; - } - - public void setActiveProfiles( List activeProfiles ) - { - this.activeProfiles = activeProfiles; - } - - public List getActiveProfiles() - { - return activeProfiles; - } - - public void setInjectedProfileIds( String source, List injectedProfileIds ) - { - if ( injectedProfileIds != null ) - { - this.injectedProfileIds.put( source, new ArrayList( injectedProfileIds ) ); - } - else - { - this.injectedProfileIds.remove( source ); - } - } - - /** - * Gets the identifiers of all profiles that contributed to this project's effective model. This includes active - * profiles from the project's POM and all its parent POMs as well as from external sources like the - * {@code settings.xml}. The profile identifiers are grouped by the identifier of their source, e.g. - * {@code ::} for a POM profile or {@code external} for profiles from the - * {@code settings.xml}. - * - * @return The identifiers of all injected profiles, indexed by the source from which the profiles originated, never - * {@code null}. - */ - public Map> getInjectedProfileIds() - { - return this.injectedProfileIds; - } - - /** - * Add or replace an artifact. This method is now deprecated. Use the @{MavenProjectHelper} to attach artifacts to a - * project. In spite of the 'throws' declaration on this API, this method has never thrown an exception since Maven - * 3.0.x. Historically, it logged and ignored a second addition of the same g/a/v/c/t. Now it replaces the file for - * the artifact, so that plugins (e.g. shade) can change the pathname of the file for a particular set of - * coordinates. - * - * @param artifact the artifact to add or replace. - * @throws DuplicateArtifactAttachmentException - */ - public void addAttachedArtifact( Artifact artifact ) - throws DuplicateArtifactAttachmentException - { - getAttachedArtifacts().add( artifact ); - } - - public List getAttachedArtifacts() - { - if ( attachedArtifacts == null ) - { - attachedArtifacts = new ArrayList(); - } - return attachedArtifacts; - } - - public Xpp3Dom getGoalConfiguration( String pluginGroupId, String pluginArtifactId, String executionId, - String goalId ) - { - Xpp3Dom dom = null; - - if ( getBuildPlugins() != null ) - { - for ( Plugin plugin : getBuildPlugins() ) - { - if ( pluginGroupId.equals( plugin.getGroupId() ) && pluginArtifactId.equals( plugin.getArtifactId() ) ) - { - dom = (Xpp3Dom) plugin.getConfiguration(); - - if ( executionId != null ) - { - PluginExecution execution = plugin.getExecutionsAsMap().get( executionId ); - if ( execution != null ) - { - // NOTE: The PluginConfigurationExpander already merged the plugin-level config in - dom = (Xpp3Dom) execution.getConfiguration(); - } - } - break; - } - } - } - - if ( dom != null ) - { - // make a copy so the original in the POM doesn't get messed with - dom = new Xpp3Dom( dom ); - } - - return dom; - } - - public MavenProject getExecutionProject() - { - return ( executionProject == null ? this : executionProject ); - } - - public void setExecutionProject( MavenProject executionProject ) - { - this.executionProject = executionProject; - } - - public List getCollectedProjects() - { - return collectedProjects; - } - - public void setCollectedProjects( List collectedProjects ) - { - this.collectedProjects = collectedProjects; - } - - /** - * Direct dependencies that this project has. - * - * @return {@link Set} < {@link Artifact} > - * @see #getArtifacts() to get all transitive dependencies - */ - public Set getDependencyArtifacts() - { - return dependencyArtifacts; - } - - public void setDependencyArtifacts( Set dependencyArtifacts ) - { - this.dependencyArtifacts = dependencyArtifacts; - } - - public void setReleaseArtifactRepository( ArtifactRepository releaseArtifactRepository ) - { - this.releaseArtifactRepository = releaseArtifactRepository; - } - - public void setSnapshotArtifactRepository( ArtifactRepository snapshotArtifactRepository ) - { - this.snapshotArtifactRepository = snapshotArtifactRepository; - } - - public void setOriginalModel( Model originalModel ) - { - this.originalModel = originalModel; - } - - public Model getOriginalModel() - { - return originalModel; - } - - public void setManagedVersionMap( Map map ) - { - managedVersionMap = map; - } - - public Map getManagedVersionMap() - { - return managedVersionMap; - } - - @Override - public boolean equals( Object other ) - { - if ( other == this ) - { - return true; - } - else if ( !( other instanceof MavenProject ) ) - { - return false; - } - - MavenProject that = (MavenProject) other; - - return eq( getArtifactId(), that.getArtifactId() ) && eq( getGroupId(), that.getGroupId() ) - && eq( getVersion(), that.getVersion() ); - } - - private static boolean eq( T s1, T s2 ) - { - return ( s1 != null ) ? s1.equals( s2 ) : s2 == null; - } - - @Override - public int hashCode() - { - int hash = 17; - hash = 31 * hash + getGroupId().hashCode(); - hash = 31 * hash + getArtifactId().hashCode(); - hash = 31 * hash + getVersion().hashCode(); - return hash; - } - - public List getBuildExtensions() - { - Build build = getBuild(); - if ( ( build == null ) || ( build.getExtensions() == null ) ) - { - return Collections.emptyList(); - } - else - { - return build.getExtensions(); - } - } - - public void addProjectReference( MavenProject project ) - { - projectReferences.put( getProjectReferenceId( project.getGroupId(), project.getArtifactId(), - project.getVersion() ), project ); - } - - public Properties getProperties() - { - return getModel().getProperties(); - } - - public List getFilters() - { - return getBuild().getFilters(); - } - - public Map getProjectReferences() - { - return projectReferences; - } - - public boolean isExecutionRoot() - { - return executionRoot; - } - - public void setExecutionRoot( boolean executionRoot ) - { - this.executionRoot = executionRoot; - } - - public String getDefaultGoal() - { - return getBuild() != null ? getBuild().getDefaultGoal() : null; - } - - public Plugin getPlugin( String pluginKey ) - { - return getBuild().getPluginsAsMap().get( pluginKey ); - } - - /** - * Default toString - */ - @Override - public String toString() - { - StringBuilder sb = new StringBuilder( 128 ); - sb.append( "MavenProject: " ); - sb.append( getGroupId() ); - sb.append( ":" ); - sb.append( getArtifactId() ); - sb.append( ":" ); - sb.append( getVersion() ); - sb.append( " @ " ); - - try - { - sb.append( getFile().getPath() ); - } - catch ( NullPointerException e ) - { - // don't log it. - } - - return sb.toString(); - } - - /** - * @throws CloneNotSupportedException - * @since 2.0.9 - */ - @Override - public MavenProject clone() - { - MavenProject clone; - try - { - clone = (MavenProject) super.clone(); - } - catch ( CloneNotSupportedException e ) - { - throw new UnsupportedOperationException( e ); - } - - clone.deepCopy( this ); - - return clone; - } - - public void setModel( Model model ) - { - this.model = model; - } - - protected void setAttachedArtifacts( List attachedArtifacts ) - { - this.attachedArtifacts = attachedArtifacts; - } - - protected void setCompileSourceRoots( List compileSourceRoots ) - { - this.compileSourceRoots = compileSourceRoots; - } - - protected void setTestCompileSourceRoots( List testCompileSourceRoots ) - { - this.testCompileSourceRoots = testCompileSourceRoots; - } - - protected ArtifactRepository getReleaseArtifactRepository() - { - return releaseArtifactRepository; - } - - protected ArtifactRepository getSnapshotArtifactRepository() - { - return snapshotArtifactRepository; - } - - private void deepCopy( MavenProject project ) - { - // disown the parent - - // copy fields - setFile( project.getFile() ); - - // don't need a deep copy, they don't get modified or added/removed to/from - but make them unmodifiable to be - // sure! - if ( project.getDependencyArtifacts() != null ) - { - setDependencyArtifacts( Collections.unmodifiableSet( project.getDependencyArtifacts() ) ); - } - - if ( project.getArtifacts() != null ) - { - setArtifacts( Collections.unmodifiableSet( project.getArtifacts() ) ); - } - - if ( project.getParentFile() != null ) - { - parentFile = new File( project.getParentFile().getAbsolutePath() ); - } - - if ( project.getPluginArtifacts() != null ) - { - setPluginArtifacts( Collections.unmodifiableSet( project.getPluginArtifacts() ) ); - } - - if ( project.getReportArtifacts() != null ) - { - setReportArtifacts( Collections.unmodifiableSet( project.getReportArtifacts() ) ); - } - - if ( project.getExtensionArtifacts() != null ) - { - setExtensionArtifacts( Collections.unmodifiableSet( project.getExtensionArtifacts() ) ); - } - - setParentArtifact( ( project.getParentArtifact() ) ); - - if ( project.getRemoteArtifactRepositories() != null ) - { - setRemoteArtifactRepositories( Collections.unmodifiableList( project.getRemoteArtifactRepositories() ) ); - } - - if ( project.getPluginArtifactRepositories() != null ) - { - setPluginArtifactRepositories( Collections.unmodifiableList( project.getPluginArtifactRepositories() ) ); - } - - if ( project.getActiveProfiles() != null ) - { - setActiveProfiles( ( Collections.unmodifiableList( project.getActiveProfiles() ) ) ); - } - - if ( project.getAttachedArtifacts() != null ) - { - // clone properties modifyable by plugins in a forked lifecycle - setAttachedArtifacts( new ArrayList( project.getAttachedArtifacts() ) ); - } - - if ( project.getCompileSourceRoots() != null ) - { - // clone source roots - setCompileSourceRoots( ( new ArrayList( project.getCompileSourceRoots() ) ) ); - } - - if ( project.getTestCompileSourceRoots() != null ) - { - setTestCompileSourceRoots( ( new ArrayList( project.getTestCompileSourceRoots() ) ) ); - } - - if ( project.getScriptSourceRoots() != null ) - { - setScriptSourceRoots( ( new ArrayList( project.getScriptSourceRoots() ) ) ); - } - - if ( project.getModel() != null ) - { - setModel( project.getModel().clone() ); - } - - if ( project.getOriginalModel() != null ) - { - setOriginalModel( project.getOriginalModel() ); - } - - setExecutionRoot( project.isExecutionRoot() ); - - if ( project.getArtifact() != null ) - { - setArtifact( ArtifactUtils.copyArtifact( project.getArtifact() ) ); - } - - if ( project.getManagedVersionMap() != null ) - { - setManagedVersionMap( new HashMap( project.getManagedVersionMap() ) ); - } - - lifecyclePhases.addAll( project.lifecyclePhases ); - } - - private void addArtifactPath( Artifact artifact, List classpath ) - { - File file = artifact.getFile(); - if ( file != null ) - { - classpath.add( file.getPath() ); - } - } - - private static String getProjectReferenceId( String groupId, String artifactId, String version ) - { - StringBuilder buffer = new StringBuilder( 128 ); - buffer.append( groupId ).append( ':' ).append( artifactId ).append( ':' ).append( version ); - return buffer.toString(); - } - - /** - * Sets the value of the context value of this project identified by the given key. If the supplied value is - * null, the context value is removed from this project. Context values are intended to allow core - * extensions to associate derived state with project instances. - */ - public void setContextValue( String key, Object value ) - { - if ( context == null ) - { - context = new HashMap(); - } - if ( value != null ) - { - context.put( key, value ); - } - else - { - context.remove( key ); - } - } - - /** - * Returns context value of this project associated with the given key or null if this project has no such value. - */ - public Object getContextValue( String key ) - { - if ( context == null ) - { - return null; - } - return context.get( key ); - } - - /** - * Sets the project's class realm. Warning: This is an internal utility method that is only public - * for technical reasons, it is not part of the public API. In particular, this method can be changed or deleted - * without prior notice and must not be used by plugins. - * - * @param classRealm The class realm hosting the build extensions of this project, may be {@code null}. - */ - public void setClassRealm( ClassRealm classRealm ) - { - this.classRealm = classRealm; - } - - /** - * Gets the project's class realm. This class realm hosts the build extensions of the project. - * Warning: This is an internal utility method that is only public for technical reasons, it is not - * part of the public API. In particular, this method can be changed or deleted without prior notice and must not be - * used by plugins. - * - * @return The project's class realm or {@code null}. - */ - public ClassRealm getClassRealm() - { - return classRealm; - } - - /** - * Sets the artifact filter used to exclude shared extension artifacts from plugin realms. Warning: - * This is an internal utility method that is only public for technical reasons, it is not part of the public API. - * In particular, this method can be changed or deleted without prior notice and must not be used by plugins. - * - * @param extensionDependencyFilter The dependency filter to apply to plugins, may be {@code null}. - */ - public void setExtensionDependencyFilter( DependencyFilter extensionDependencyFilter ) - { - this.extensionDependencyFilter = extensionDependencyFilter; - } - - /** - * Gets the dependency filter used to exclude shared extension artifacts from plugin realms. - * Warning: This is an internal utility method that is only public for technical reasons, it is not - * part of the public API. In particular, this method can be changed or deleted without prior notice and must not be - * used by plugins. - * - * @return The dependency filter or {@code null}. - */ - public DependencyFilter getExtensionDependencyFilter() - { - return extensionDependencyFilter; - } - - /** - * Sets the transitive dependency artifacts that have been resolved/collected for this project. - * Warning: This is an internal utility method that is only public for technical reasons, it is not - * part of the public API. In particular, this method can be changed or deleted without prior notice and must not be - * used by plugins. - * - * @param artifacts The set of artifacts, may be {@code null}. - */ - public void setResolvedArtifacts( Set artifacts ) - { - this.resolvedArtifacts = ( artifacts != null ) ? artifacts : Collections.emptySet(); - this.artifacts = null; - this.artifactMap = null; - } - - /** - * Sets the scope filter to select the artifacts being exposed to the currently executed mojo. - * Warning: This is an internal utility method that is only public for technical reasons, it is not - * part of the public API. In particular, this method can be changed or deleted without prior notice and must not be - * used by plugins. - * - * @param artifactFilter The artifact filter, may be {@code null} to exclude all artifacts. - */ - public void setArtifactFilter( ArtifactFilter artifactFilter ) - { - this.artifactFilter = artifactFilter; - this.artifacts = null; - this.artifactMap = null; - } - - /** - * Warning: This is an internal utility method that is only public for technical reasons, it is not - * part of the public API. In particular, this method can be changed or deleted without prior notice and must not be - * used by plugins. - * - * @param phase The phase to check for, must not be {@code null}. - * @return {@code true} if the phase has been seen. - */ - public boolean hasLifecyclePhase( String phase ) - { - return lifecyclePhases.contains( phase ); - } - - /** - * Warning: This is an internal utility method that is only public for technical reasons, it is not - * part of the public API. In particular, this method can be changed or deleted without prior notice and must not be - * used by plugins. - * - * @param lifecyclePhase The lifecycle phase to add, must not be {@code null}. - */ - public void addLifecyclePhase( String lifecyclePhase ) - { - lifecyclePhases.add( lifecyclePhase ); - } - - // ---------------------------------------------------------------------------------------------------------------- - // - // - // D E P R E C A T E D - // - // - // ---------------------------------------------------------------------------------------------------------------- - // - // Everything below will be removed for Maven 4.0.0 - // - // ---------------------------------------------------------------------------------------------------------------- - - private ProjectBuildingRequest projectBuilderConfiguration; - - private Map moduleAdjustments; - - @Deprecated // This appears only to be used in test code - public String getModulePathAdjustment( MavenProject moduleProject ) - throws IOException - { - // FIXME: This is hacky. What if module directory doesn't match artifactid, and parent - // is coming from the repository?? - String module = moduleProject.getArtifactId(); - - File moduleFile = moduleProject.getFile(); - - if ( moduleFile != null ) - { - File moduleDir = moduleFile.getCanonicalFile().getParentFile(); - - module = moduleDir.getName(); - } - - if ( moduleAdjustments == null ) - { - moduleAdjustments = new HashMap(); - - List modules = getModules(); - if ( modules != null ) - { - for ( String modulePath : modules ) - { - String moduleName = modulePath; - - if ( moduleName.endsWith( "/" ) || moduleName.endsWith( "\\" ) ) - { - moduleName = moduleName.substring( 0, moduleName.length() - 1 ); - } - - int lastSlash = moduleName.lastIndexOf( '/' ); - - if ( lastSlash < 0 ) - { - lastSlash = moduleName.lastIndexOf( '\\' ); - } - - String adjustment = null; - - if ( lastSlash > -1 ) - { - moduleName = moduleName.substring( lastSlash + 1 ); - adjustment = modulePath.substring( 0, lastSlash ); - } - - moduleAdjustments.put( moduleName, adjustment ); - } - } - } - - return moduleAdjustments.get( module ); - } - - @Deprecated - public Set createArtifacts( ArtifactFactory artifactFactory, String inheritedScope, - ArtifactFilter filter ) - throws InvalidDependencyVersionException - { - return MavenMetadataSource.createArtifacts( artifactFactory, getDependencies(), inheritedScope, filter, this ); - } - - @Deprecated - protected void setScriptSourceRoots( List scriptSourceRoots ) - { - this.scriptSourceRoots = scriptSourceRoots; - } - - @Deprecated - public void addScriptSourceRoot( String path ) - { - if ( path != null ) - { - path = path.trim(); - if ( path.length() != 0 ) - { - if ( !getScriptSourceRoots().contains( path ) ) - { - getScriptSourceRoots().add( path ); - } - } - } - } - - @Deprecated - public List getScriptSourceRoots() - { - return scriptSourceRoots; - } - - @Deprecated - public List getCompileArtifacts() - { - List list = new ArrayList( getArtifacts().size() ); - - for ( Artifact a : getArtifacts() ) - { - // TODO: classpath check doesn't belong here - that's the other method - if ( a.getArtifactHandler().isAddedToClasspath() ) - { - // TODO: let the scope handler deal with this - if ( Artifact.SCOPE_COMPILE.equals( a.getScope() ) || Artifact.SCOPE_PROVIDED.equals( a.getScope() ) - || Artifact.SCOPE_SYSTEM.equals( a.getScope() ) ) - { - list.add( a ); - } - } - } - return list; - } - - @Deprecated - public List getCompileDependencies() - { - Set artifacts = getArtifacts(); - - if ( ( artifacts == null ) || artifacts.isEmpty() ) - { - return Collections.emptyList(); - } - - List list = new ArrayList( artifacts.size() ); - - for ( Artifact a : getArtifacts() ) - { - // TODO: let the scope handler deal with this - if ( Artifact.SCOPE_COMPILE.equals( a.getScope() ) || Artifact.SCOPE_PROVIDED.equals( a.getScope() ) - || Artifact.SCOPE_SYSTEM.equals( a.getScope() ) ) - { - Dependency dependency = new Dependency(); - - dependency.setArtifactId( a.getArtifactId() ); - dependency.setGroupId( a.getGroupId() ); - dependency.setVersion( a.getVersion() ); - dependency.setScope( a.getScope() ); - dependency.setType( a.getType() ); - dependency.setClassifier( a.getClassifier() ); - - list.add( dependency ); - } - } - return list; - } - - @Deprecated - public List getTestArtifacts() - { - List list = new ArrayList( getArtifacts().size() ); - - for ( Artifact a : getArtifacts() ) - { - // TODO: classpath check doesn't belong here - that's the other method - if ( a.getArtifactHandler().isAddedToClasspath() ) - { - list.add( a ); - } - } - return list; - } - - @Deprecated - public List getTestDependencies() - { - Set artifacts = getArtifacts(); - - if ( ( artifacts == null ) || artifacts.isEmpty() ) - { - return Collections.emptyList(); - } - - List list = new ArrayList( artifacts.size() ); - - for ( Artifact a : getArtifacts() ) - { - Dependency dependency = new Dependency(); - - dependency.setArtifactId( a.getArtifactId() ); - dependency.setGroupId( a.getGroupId() ); - dependency.setVersion( a.getVersion() ); - dependency.setScope( a.getScope() ); - dependency.setType( a.getType() ); - dependency.setClassifier( a.getClassifier() ); - - list.add( dependency ); - } - return list; - } - - @Deprecated // used by the Maven ITs - public List getRuntimeDependencies() - { - Set artifacts = getArtifacts(); - - if ( ( artifacts == null ) || artifacts.isEmpty() ) - { - return Collections.emptyList(); - } - - List list = new ArrayList( artifacts.size() ); - - for ( Artifact a : getArtifacts() ) - { - // TODO: let the scope handler deal with this - if ( Artifact.SCOPE_COMPILE.equals( a.getScope() ) || Artifact.SCOPE_RUNTIME.equals( a.getScope() ) ) - { - Dependency dependency = new Dependency(); - - dependency.setArtifactId( a.getArtifactId() ); - dependency.setGroupId( a.getGroupId() ); - dependency.setVersion( a.getVersion() ); - dependency.setScope( a.getScope() ); - dependency.setType( a.getType() ); - dependency.setClassifier( a.getClassifier() ); - - list.add( dependency ); - } - } - return list; - } - - @Deprecated - public List getRuntimeArtifacts() - { - List list = new ArrayList( getArtifacts().size() ); - - for ( Artifact a : getArtifacts() ) - { - // TODO: classpath check doesn't belong here - that's the other method - if ( a.getArtifactHandler().isAddedToClasspath() - // TODO: let the scope handler deal with this - && ( Artifact.SCOPE_COMPILE.equals( a.getScope() ) || Artifact.SCOPE_RUNTIME.equals( a.getScope() ) ) ) - { - list.add( a ); - } - } - return list; - } - - @Deprecated - public List getSystemClasspathElements() - throws DependencyResolutionRequiredException - { - List list = new ArrayList( getArtifacts().size() ); - - String d = getBuild().getOutputDirectory(); - if ( d != null ) - { - list.add( d ); - } - - for ( Artifact a : getArtifacts() ) - { - if ( a.getArtifactHandler().isAddedToClasspath() ) - { - // TODO: let the scope handler deal with this - if ( Artifact.SCOPE_SYSTEM.equals( a.getScope() ) ) - { - addArtifactPath( a, list ); - } - } - } - return list; - } - - @Deprecated - public List getSystemArtifacts() - { - List list = new ArrayList( getArtifacts().size() ); - - for ( Artifact a : getArtifacts() ) - { - // TODO: classpath check doesn't belong here - that's the other method - if ( a.getArtifactHandler().isAddedToClasspath() ) - { - // TODO: let the scope handler deal with this - if ( Artifact.SCOPE_SYSTEM.equals( a.getScope() ) ) - { - list.add( a ); - } - } - } - return list; - } - - @Deprecated - public List getSystemDependencies() - { - Set artifacts = getArtifacts(); - - if ( ( artifacts == null ) || artifacts.isEmpty() ) - { - return Collections.emptyList(); - } - - List list = new ArrayList( artifacts.size() ); - - for ( Artifact a : getArtifacts() ) - { - // TODO: let the scope handler deal with this - if ( Artifact.SCOPE_SYSTEM.equals( a.getScope() ) ) - { - Dependency dependency = new Dependency(); - - dependency.setArtifactId( a.getArtifactId() ); - dependency.setGroupId( a.getGroupId() ); - dependency.setVersion( a.getVersion() ); - dependency.setScope( a.getScope() ); - dependency.setType( a.getType() ); - dependency.setClassifier( a.getClassifier() ); - - list.add( dependency ); - } - } - return list; - } - - @Deprecated - public void setReporting( Reporting reporting ) - { - getModel().setReporting( reporting ); - } - - @Deprecated - public Reporting getReporting() - { - return getModel().getReporting(); - } - - @Deprecated - public void setReportArtifacts( Set reportArtifacts ) - { - this.reportArtifacts = reportArtifacts; - - reportArtifactMap = null; - } - - @Deprecated - public Set getReportArtifacts() - { - return reportArtifacts; - } - - @Deprecated - public Map getReportArtifactMap() - { - if ( reportArtifactMap == null ) - { - reportArtifactMap = ArtifactUtils.artifactMapByVersionlessId( getReportArtifacts() ); - } - - return reportArtifactMap; - } - - @Deprecated - public void setExtensionArtifacts( Set extensionArtifacts ) - { - this.extensionArtifacts = extensionArtifacts; - - extensionArtifactMap = null; - } - - @Deprecated - public Set getExtensionArtifacts() - { - return extensionArtifacts; - } - - @Deprecated - public Map getExtensionArtifactMap() - { - if ( extensionArtifactMap == null ) - { - extensionArtifactMap = ArtifactUtils.artifactMapByVersionlessId( getExtensionArtifacts() ); - } - - return extensionArtifactMap; - } - - @Deprecated - public List getReportPlugins() - { - if ( getModel().getReporting() == null ) - { - return Collections.emptyList(); - } - return getModel().getReporting().getPlugins(); - - } - - @Deprecated - public Xpp3Dom getReportConfiguration( String pluginGroupId, String pluginArtifactId, String reportSetId ) - { - Xpp3Dom dom = null; - - // ---------------------------------------------------------------------- - // I would like to be able to lookup the Mojo object using a key but - // we have a limitation in modello that will be remedied shortly. So - // for now I have to iterate through and see what we have. - // ---------------------------------------------------------------------- - - if ( getReportPlugins() != null ) - { - for ( ReportPlugin plugin : getReportPlugins() ) - { - if ( pluginGroupId.equals( plugin.getGroupId() ) && pluginArtifactId.equals( plugin.getArtifactId() ) ) - { - dom = (Xpp3Dom) plugin.getConfiguration(); - - if ( reportSetId != null ) - { - ReportSet reportSet = plugin.getReportSetsAsMap().get( reportSetId ); - if ( reportSet != null ) - { - Xpp3Dom executionConfiguration = (Xpp3Dom) reportSet.getConfiguration(); - if ( executionConfiguration != null ) - { - Xpp3Dom newDom = new Xpp3Dom( executionConfiguration ); - dom = Xpp3Dom.mergeXpp3Dom( newDom, dom ); - } - } - } - break; - } - } - } - - if ( dom != null ) - { - // make a copy so the original in the POM doesn't get messed with - dom = new Xpp3Dom( dom ); - } - - return dom; - } - - /** - * @deprecated Use MavenProjectHelper.attachArtifact(..) instead. - */ - @Deprecated - public void attachArtifact( String type, String classifier, File file ) - { - } - - /** - * @deprecated Use {@link org.apache.maven.model.io.ModelWriter}. - */ - @Deprecated - public void writeModel( Writer writer ) - throws IOException - { - MavenXpp3Writer pomWriter = new MavenXpp3Writer(); - pomWriter.write( writer, getModel() ); - } - - /** - * @deprecated Use {@link org.apache.maven.model.io.ModelWriter}. - */ - @Deprecated - public void writeOriginalModel( Writer writer ) - throws IOException - { - MavenXpp3Writer pomWriter = new MavenXpp3Writer(); - pomWriter.write( writer, getOriginalModel() ); - } - - @Deprecated - public Artifact replaceWithActiveArtifact( Artifact pluginArtifact ) - { - return pluginArtifact; - } - - /** - * Gets the project building request from which this project instance was created. Warning: This is - * an utility method that is meant to assist integrators of Maven, it must not be used by Maven plugins. - * - * @return The project building request or {@code null}. - * @since 2.1 - */ - @Deprecated - public ProjectBuildingRequest getProjectBuildingRequest() - { - return projectBuilderConfiguration; - } - - /** - * Sets the project building request from which this project instance was created. Warning: This is - * an utility method that is meant to assist integrators of Maven, it must not be used by Maven plugins. - * - * @param projectBuildingRequest The project building request, may be {@code null}. - * @since 2.1 - */ - // used by maven-dependency-tree - @Deprecated - public void setProjectBuildingRequest( ProjectBuildingRequest projectBuildingRequest ) - { - this.projectBuilderConfiguration = projectBuildingRequest; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/MavenProjectHelper.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/MavenProjectHelper.java deleted file mode 100644 index 0b54c004..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/MavenProjectHelper.java +++ /dev/null @@ -1,76 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.List; - -/** - * Convenience interface for plugins to add or replace artifacts and resources on projects. - */ -public interface MavenProjectHelper -{ - String ROLE = MavenProjectHelper.class.getName(); - - /** - * See {@link #attachArtifact(MavenProject, String, String, java.io.File)}, but with type set to null. - * @param project project reference. - * @param artifactFile artifact file. - * @param artifactClassifier artifact classifier. - */ - void attachArtifact( MavenProject project, File artifactFile, String artifactClassifier ); - - /** - * * See {@link #attachArtifact(MavenProject, String, String, java.io.File)}, but with classifier set to null. - * @param project project reference. - * @param artifactType artifact type. - * @param artifactFile arrifact file. - */ - void attachArtifact( MavenProject project, String artifactType, File artifactFile ); - - /** - * Add or replace an artifact to the current project. - * @param project the project reference. - * @param artifactType the type (e.g. jar) or null. - * @param artifactClassifier the classifier or null. - * @param artifactFile the file for the artifact. - */ - void attachArtifact( MavenProject project, String artifactType, String artifactClassifier, File artifactFile ); - - /** - * Add a resource directory to the project. - * @param project project reference. - * @param resourceDirectory directory. - * @param includes include patterns. - * @param excludes exclude patterns. - */ - void addResource( MavenProject project, String resourceDirectory, List includes, List excludes ); - - /** - * Add a test resource directory to the project. - * @param project project reference. - * @param resourceDirectory directory. - * @param includes include patterns. - * @param excludes exclude patterns. - */ - void addTestResource( MavenProject project, String resourceDirectory, List includes, - List excludes ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuilder.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuilder.java deleted file mode 100644 index 4ac83972..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.model.building.ModelSource; - -/** - * Builds in-memory descriptions of projects. - */ -public interface ProjectBuilder -{ - - /** - * Builds a project descriptor from the specified POM file. - * - * @param projectFile The POM file to build the project from, must not be {@code null}. - * @param request The project building request that holds further parameters, must not be {@code null}. - * @return The result of the project building, never {@code null}. - * @throws ProjectBuildingException If the project descriptor could not be successfully built. - */ - ProjectBuildingResult build( File projectFile, ProjectBuildingRequest request ) - throws ProjectBuildingException; - - /** - * Builds a project descriptor for the specified artifact. - * - * @param projectArtifact The POM artifact to build the project from, must not be {@code null}. - * @param request The project building request that holds further parameters, must not be {@code null}. - * @return The result of the project building, never {@code null}. - * @throws ProjectBuildingException If the project descriptor could not be successfully built. - */ - ProjectBuildingResult build( Artifact projectArtifact, ProjectBuildingRequest request ) - throws ProjectBuildingException; - - /** - * Builds a project descriptor for the specified artifact. - * - * @param projectArtifact The POM artifact to build the project from, must not be {@code null}. - * @param allowStubModel A flag controlling the case of a missing POM artifact. If {@code true} and the specified - * POM artifact does not exist, a simple stub model will be returned. If {@code false}, an exception will - * be thrown. - * @param request The project building request that holds further parameters, must not be {@code null}. - * @return The result of the project building, never {@code null}. - * @throws ProjectBuildingException If the project descriptor could not be successfully built. - */ - ProjectBuildingResult build( Artifact projectArtifact, boolean allowStubModel, ProjectBuildingRequest request ) - throws ProjectBuildingException; - - /** - * Builds a project descriptor for the specified model source. - * - * @param modelSource The source of the model to built the project descriptor from, must not be {@code null}. - * @param request The project building request that holds further parameters, must not be {@code null}. - * @return The result of the project building, never {@code null}. - * @throws ProjectBuildingException If the project descriptor could not be successfully built. - * - * @see org.apache.maven.model.building.ModelSource2 - */ - ProjectBuildingResult build( ModelSource modelSource, ProjectBuildingRequest request ) - throws ProjectBuildingException; - - /** - * Builds the projects for the specified POM files and optionally their children. - * - * @param pomFiles The POM files to build, must not be {@code null}. - * @param recursive {@code true} to recursively build sub modules referenced by the POM files, {@code false} to - * build only the specified POM files. - * @param request The project builder configuration that provides further parameters, must not be {@code null}. - * @return The results of the project builder where each result corresponds to one project that was built, never - * {@code null}. - * @throws ProjectBuildingException If an error was encountered during building of any project. - * {@link ProjectBuildingException#getResults()} provides access to the details of the problems. - */ - List build( List pomFiles, boolean recursive, ProjectBuildingRequest request ) - throws ProjectBuildingException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingException.java deleted file mode 100644 index 47c12315..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingException.java +++ /dev/null @@ -1,145 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.PrintWriter; -import java.io.StringWriter; -import java.util.List; - -import org.apache.maven.model.building.ModelProblem; -import org.apache.maven.model.building.ModelProblemUtils; - -/** - * @author Jason van Zyl - */ -public class ProjectBuildingException - extends Exception -{ - private final String projectId; - - private File pomFile; - - private List results; - - public ProjectBuildingException( String projectId, String message, Throwable cause ) - { - super( createMessage( message, projectId, null ), cause ); - this.projectId = projectId; - } - - /** - * @param projectId - * @param message - * @param pomFile pom file location - */ - public ProjectBuildingException( String projectId, String message, File pomFile ) - { - super( createMessage( message, projectId, pomFile ) ); - this.projectId = projectId; - this.pomFile = pomFile; - } - - /** - * @param projectId - * @param message - * @param pomFile pom file location - * @param cause - */ - protected ProjectBuildingException( String projectId, String message, File pomFile, Throwable cause ) - { - super( createMessage( message, projectId, pomFile ), cause ); - this.projectId = projectId; - this.pomFile = pomFile; - } - - public ProjectBuildingException( List results ) - { - super( createMessage( results ) ); - this.projectId = ""; - this.results = results; - } - - public File getPomFile() - { - return pomFile; - } - - /** - * @deprecated use {@link #getPomFile()} - */ - public String getPomLocation() - { - if ( getPomFile() != null ) - { - return getPomFile().getAbsolutePath(); - } - else - { - return "null"; - } - } - - public String getProjectId() - { - return projectId; - } - - public List getResults() - { - return results; - } - - private static String createMessage( String message, String projectId, File pomFile ) - { - StringBuilder buffer = new StringBuilder( 256 ); - buffer.append( message ); - buffer.append( " for project " ).append( projectId ); - if ( pomFile != null ) - { - buffer.append( " at " ).append( pomFile.getAbsolutePath() ); - } - return buffer.toString(); - } - - private static String createMessage( List results ) - { - StringWriter buffer = new StringWriter( 1024 ); - - PrintWriter writer = new PrintWriter( buffer ); - writer.println( "Some problems were encountered while processing the POMs:" ); - for ( ProjectBuildingResult result : results ) - { - for ( ModelProblem problem : result.getProblems() ) - { - writer.print( "[" ); - writer.print( problem.getSeverity() ); - writer.print( "] " ); - writer.print( problem.getMessage() ); - writer.print( " @ " ); - writer.println( ModelProblemUtils.formatLocation( problem, result.getProjectId() ) ); - } - } - writer.close(); - - return buffer.toString(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingHelper.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingHelper.java deleted file mode 100644 index 45fff6e6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingHelper.java +++ /dev/null @@ -1,81 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.artifact.InvalidRepositoryException; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.model.Model; -import org.apache.maven.model.Repository; -import org.apache.maven.plugin.PluginManagerException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.version.PluginVersionResolutionException; - -/** - * Assists the project builder. Warning: This is an internal utility interface that is only public for - * technical reasons, it is not part of the public API. In particular, this interface can be changed or deleted without - * prior notice. - * - * @author Benjamin Bentmann - */ -public interface ProjectBuildingHelper -{ - - /** - * Creates the effective artifact repositories from the specified POM repositories. - * - * @param pomRepositories The POM repositories to create the artifact repositories from, must not be {@code null}. - * @param externalRepositories The external (and already mirrored) repositories to merge into the result list, may - * be {@code null}. - * @param request The project building request holding further settings like repository settings, must not be - * {@code null}. - * @return The effective artifact repositories, never {@code null}. - * @throws InvalidRepositoryException - */ - List createArtifactRepositories( List pomRepositories, - List externalRepositories, - ProjectBuildingRequest request ) - throws InvalidRepositoryException; - - /** - * Creates the project realm that hosts the build extensions of the specified model. - * - * @param project The project to create the project realm for, must not be {@code null} - * @param model The model to create the project realm for, must not be {@code null} - * @param request The project building request holding further settings like repository settings, must not be - * {@code null}. - * @return The record with the project realm and extension artifact filter, never {@code null}. - * @throws PluginResolutionException If any build extension could not be resolved. - */ - ProjectRealmCache.CacheRecord createProjectRealm( MavenProject project, Model model, - ProjectBuildingRequest request ) - throws PluginResolutionException, PluginVersionResolutionException, PluginManagerException; - - /** - * Updates the context class loader such that the container will search the project realm when the model builder - * injects the lifecycle bindings from the packaging in the next step. The context class loader is to be reset by - * the project builder when the project is fully assembled. - * - * @param project The project whose class realm should be selected, must not be {@code null}. - */ - void selectProjectRealm( MavenProject project ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingRequest.java deleted file mode 100644 index 0380278b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingRequest.java +++ /dev/null @@ -1,194 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Date; -import java.util.List; -import java.util.Properties; - -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.model.Profile; -import org.eclipse.aether.RepositorySystemSession; - -public interface ProjectBuildingRequest -{ - - ProjectBuildingRequest setLocalRepository( ArtifactRepository localRepository ); - - ArtifactRepository getLocalRepository(); - - ProjectBuildingRequest setRemoteRepositories( List remoteRepositories ); - - List getRemoteRepositories(); - - ProjectBuildingRequest setPluginArtifactRepositories( List pluginArtifacgRepositories ); - - List getPluginArtifactRepositories(); - - /** - * Sets the system properties to use for interpolation and profile activation. The system properties are collected - * from the runtime environment like {@link System#getProperties()} and environment variables. - * - * @param systemProperties The system properties, may be {@code null}. - * @return This request, never {@code null}. - */ - ProjectBuildingRequest setSystemProperties( Properties systemProperties ); - - /** - * Gets the system properties to use for interpolation and profile activation. The system properties are collected - * from the runtime environment like {@link System#getProperties()} and environment variables. - * - * @return The system properties, never {@code null}. - */ - Properties getSystemProperties(); - - /** - * Sets the user properties to use for interpolation and profile activation. The user properties have been - * configured directly by the user on his discretion, e.g. via the {@code -Dkey=value} parameter on the command - * line. - * - * @param userProperties The user properties, may be {@code null}. - * @return This request, never {@code null}. - */ - ProjectBuildingRequest setUserProperties( Properties userProperties ); - - /** - * Gets the user properties to use for interpolation and profile activation. The user properties have been - * configured directly by the user on his discretion, e.g. via the {@code -Dkey=value} parameter on the command - * line. - * - * @return The user properties, never {@code null}. - */ - Properties getUserProperties(); - - void setProject( MavenProject mavenProject ); - - MavenProject getProject(); - - ProjectBuildingRequest setProcessPlugins( boolean processPlugins ); - - boolean isProcessPlugins(); - - ProjectBuildingRequest setResolveDependencies( boolean resolveDependencies ); - - boolean isResolveDependencies(); - - /** - * Controls the level of validation to perform on processed models. By default, models are validated in strict mode. - * - * @param validationLevel The level of validation to perform on processed models, e.g. - * {@link org.apache.maven.model.building.ModelBuildingRequest#VALIDATION_LEVEL_STRICT}. - * @return This configuration, never {@code null}. - */ - ProjectBuildingRequest setValidationLevel( int validationLevel ); - - /** - * Gets the level of validation to perform on processed models. - * - * @return The level of validation to perform on processed models. - */ - int getValidationLevel(); - - // Profiles - - /** - * Set any active profiles that the {@link ProjectBuilder} should consider while constructing - * a {@link MavenProject}. - */ - void setActiveProfileIds( List activeProfileIds ); - - List getActiveProfileIds(); - - void setInactiveProfileIds( List inactiveProfileIds ); - - List getInactiveProfileIds(); - - /** - * Add a {@link org.apache.maven.model.Profile} that has come from an external source. This may be from a custom - * configuration like the MavenCLI settings.xml file, or from a custom dialog in an IDE integration like M2Eclipse. - * - * @param profile - */ - void addProfile( Profile profile ); - - void setProfiles( List profiles ); - - List getProfiles(); - - /** - * Gets the start time of the build. - * - * @return The start time of the build or {@code null} if unknown. - */ - Date getBuildStartTime(); - - /** - * Sets the start time of the build. - * - * @param buildStartTime The start time of the build, may be {@code null}. - */ - void setBuildStartTime( Date buildStartTime ); - - RepositorySystemSession getRepositorySession(); - - ProjectBuildingRequest setRepositorySession( RepositorySystemSession repositorySession ); - - /** - * Sets the merge mode used to combine repositories declared in the POM with the repositories specified in this - * request. - * - * @param mode The repository merge mode, must not be {@code null}. - * @return This request for chaining, never {@code null}. - * @see #setRemoteRepositories(List) - */ - ProjectBuildingRequest setRepositoryMerging( RepositoryMerging mode ); - - /** - * Gets the merge mode used to combine repositories declared in the POM with the repositories specified in this - * request - * - * @return The merge mode, never {@code null}. - */ - RepositoryMerging getRepositoryMerging(); - - /** @since 3.2.2 */ - boolean isResolveVersionRanges(); - - /** @since 3.2.2 */ - ProjectBuildingRequest setResolveVersionRanges( boolean value ); - - /** - * The possible merge modes for combining remote repositories. - */ - enum RepositoryMerging - { - - /** - * The repositories declared in the POM have precedence over the repositories specified in the request. - */ - POM_DOMINANT, - - /** - * The repositories specified in the request have precedence over the repositories declared in the POM. - */ - REQUEST_DOMINANT, - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingResult.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingResult.java deleted file mode 100644 index 9a43154c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingResult.java +++ /dev/null @@ -1,74 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.List; - -import org.apache.maven.model.building.ModelProblem; - -/** - * Collects the output of the project builder. - * - * @author Benjamin Bentmann - */ -public interface ProjectBuildingResult -{ - - /** - * Gets the identifier of the project that could not be built. The general format of the identifier is {@code - * ::} but some of these coordinates may still be unknown at the point the exception - * is thrown so this information is merely meant to assist the user. - * - * @return The identifier of the project or an empty string if not known, never {@code null}. - */ - String getProjectId(); - - /** - * Gets the POM file from which the project was built. - * - * @return The POM file or {@code null} if unknown. - */ - File getPomFile(); - - /** - * Gets the project that was built. - * - * @return The project that was built or {@code null} if an error occurred and this result accompanies a - * {@link ProjectBuildingException}. - */ - MavenProject getProject(); - - /** - * Gets the problems that were encountered during the project building. - * - * @return The problems that were encountered during the project building, can be empty but never {@code null}. - */ - List getProblems(); - - /** - * Gets the result of the dependency resolution for the project. - * - * @return The result of the dependency resolution for the project or {@code null} if the project dependencies were - * not requested. - */ - DependencyResolutionResult getDependencyResolutionResult(); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectDependenciesResolver.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectDependenciesResolver.java deleted file mode 100644 index 539055ca..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectDependenciesResolver.java +++ /dev/null @@ -1,40 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Resolves the transitive dependencies of a project. - * - * @author Benjamin Bentmann - */ -public interface ProjectDependenciesResolver -{ - - /** - * Resolves the transitive dependencies of a project. - * - * @param request The resolution request holding the parameters, must not be {@code null}. - * @return The resolution result, never {@code null}. - * @throws DependencyResolutionException If any project dependency could not be resolved. - */ - DependencyResolutionResult resolve( DependencyResolutionRequest request ) - throws DependencyResolutionException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectModelResolver.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectModelResolver.java deleted file mode 100644 index 3e33eb57..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectModelResolver.java +++ /dev/null @@ -1,248 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -import com.google.common.base.Predicate; -import com.google.common.collect.Iterables; - -import org.apache.maven.model.Parent; -import org.apache.maven.model.Repository; -import org.apache.maven.model.building.FileModelSource; -import org.apache.maven.model.building.ModelSource; -import org.apache.maven.model.resolution.InvalidRepositoryException; -import org.apache.maven.model.resolution.ModelResolver; -import org.apache.maven.model.resolution.UnresolvableModelException; -import org.apache.maven.repository.internal.ArtifactDescriptorUtils; -import org.eclipse.aether.RepositorySystem; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.RequestTrace; -import org.eclipse.aether.artifact.Artifact; -import org.eclipse.aether.artifact.DefaultArtifact; -import org.eclipse.aether.impl.RemoteRepositoryManager; -import org.eclipse.aether.repository.RemoteRepository; -import org.eclipse.aether.resolution.ArtifactRequest; -import org.eclipse.aether.resolution.ArtifactResolutionException; -import org.eclipse.aether.resolution.VersionRangeRequest; -import org.eclipse.aether.resolution.VersionRangeResolutionException; -import org.eclipse.aether.resolution.VersionRangeResult; - -/** - * A model resolver to assist building of projects. This resolver gives priority to those repositories that have been - * declared in the POM. - * - * @author Benjamin Bentmann - */ -public class ProjectModelResolver - implements ModelResolver -{ - - private final RepositorySystemSession session; - - private final RequestTrace trace; - - private final String context = "project"; - - private List repositories; - - private List pomRepositories; - - private final List externalRepositories; - - private final RepositorySystem resolver; - - private final RemoteRepositoryManager remoteRepositoryManager; - - private final Set repositoryIds; - - private final ReactorModelPool modelPool; - - private final ProjectBuildingRequest.RepositoryMerging repositoryMerging; - - public ProjectModelResolver( RepositorySystemSession session, RequestTrace trace, RepositorySystem resolver, - RemoteRepositoryManager remoteRepositoryManager, List repositories, - ProjectBuildingRequest.RepositoryMerging repositoryMerging, - ReactorModelPool modelPool ) - { - this.session = session; - this.trace = trace; - this.resolver = resolver; - this.remoteRepositoryManager = remoteRepositoryManager; - this.pomRepositories = new ArrayList(); - List externalRepositories = new ArrayList(); - externalRepositories.addAll( repositories ); - this.externalRepositories = Collections.unmodifiableList( externalRepositories ); - this.repositories = new ArrayList(); - this.repositories.addAll( externalRepositories ); - this.repositoryMerging = repositoryMerging; - this.repositoryIds = new HashSet(); - this.modelPool = modelPool; - } - - private ProjectModelResolver( ProjectModelResolver original ) - { - this.session = original.session; - this.trace = original.trace; - this.resolver = original.resolver; - this.remoteRepositoryManager = original.remoteRepositoryManager; - this.pomRepositories = new ArrayList( original.pomRepositories ); - this.externalRepositories = original.externalRepositories; - this.repositories = new ArrayList( original.repositories ); - this.repositoryMerging = original.repositoryMerging; - this.repositoryIds = new HashSet( original.repositoryIds ); - this.modelPool = original.modelPool; - } - - public void addRepository( Repository repository ) - throws InvalidRepositoryException - { - addRepository( repository, false ); - } - - @Override - public void addRepository( final Repository repository, boolean replace ) - throws InvalidRepositoryException - { - if ( !repositoryIds.add( repository.getId() ) ) - { - if ( !replace ) - { - return; - } - - // Remove any previous repository with this Id - removeMatchingRepository( repositories, repository.getId() ); - removeMatchingRepository( pomRepositories, repository.getId() ); - } - - List newRepositories = - Collections.singletonList( ArtifactDescriptorUtils.toRemoteRepository( repository ) ); - - if ( ProjectBuildingRequest.RepositoryMerging.REQUEST_DOMINANT.equals( repositoryMerging ) ) - { - repositories = remoteRepositoryManager.aggregateRepositories( session, repositories, newRepositories, - true ); - } - else - { - pomRepositories = - remoteRepositoryManager.aggregateRepositories( session, pomRepositories, newRepositories, true ); - repositories = - remoteRepositoryManager.aggregateRepositories( session, pomRepositories, externalRepositories, false ); - } - } - - private static void removeMatchingRepository( Iterable repositories, final String id ) - { - Iterables.removeIf( repositories, new Predicate() - { - @Override - public boolean apply( RemoteRepository remoteRepository ) - { - return remoteRepository.getId().equals( id ); - } - } ); - } - - public ModelResolver newCopy() - { - return new ProjectModelResolver( this ); - } - - public ModelSource resolveModel( String groupId, String artifactId, String version ) - throws UnresolvableModelException - { - File pomFile = null; - - if ( modelPool != null ) - { - pomFile = modelPool.get( groupId, artifactId, version ); - } - - if ( pomFile == null ) - { - Artifact pomArtifact = new DefaultArtifact( groupId, artifactId, "", "pom", version ); - - try - { - ArtifactRequest request = new ArtifactRequest( pomArtifact, repositories, context ); - request.setTrace( trace ); - pomArtifact = resolver.resolveArtifact( session, request ).getArtifact(); - } - catch ( ArtifactResolutionException e ) - { - throw new UnresolvableModelException( e.getMessage(), groupId, artifactId, version, e ); - } - - pomFile = pomArtifact.getFile(); - } - - return new FileModelSource( pomFile ); - } - - public ModelSource resolveModel( Parent parent ) - throws UnresolvableModelException - { - Artifact artifact = new DefaultArtifact( parent.getGroupId(), parent.getArtifactId(), "", "pom", - parent.getVersion() ); - - VersionRangeRequest versionRangeRequest = new VersionRangeRequest( artifact, repositories, context ); - versionRangeRequest.setTrace( trace ); - - try - { - VersionRangeResult versionRangeResult = resolver.resolveVersionRange( session, versionRangeRequest ); - - if ( versionRangeResult.getHighestVersion() == null ) - { - throw new UnresolvableModelException( "No versions matched the requested range '" + parent.getVersion() - + "'", parent.getGroupId(), parent.getArtifactId(), - parent.getVersion() ); - - } - - if ( versionRangeResult.getVersionConstraint() != null - && versionRangeResult.getVersionConstraint().getRange() != null - && versionRangeResult.getVersionConstraint().getRange().getUpperBound() == null ) - { - throw new UnresolvableModelException( "The requested version range '" + parent.getVersion() - + "' does not specify an upper bound", parent.getGroupId(), - parent.getArtifactId(), parent.getVersion() ); - - } - - parent.setVersion( versionRangeResult.getHighestVersion().toString() ); - } - catch ( VersionRangeResolutionException e ) - { - throw new UnresolvableModelException( e.getMessage(), parent.getGroupId(), parent.getArtifactId(), - parent.getVersion(), e ); - - } - - return resolveModel( parent.getGroupId(), parent.getArtifactId(), parent.getVersion() ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectRealmCache.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectRealmCache.java deleted file mode 100644 index 9265b894..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectRealmCache.java +++ /dev/null @@ -1,79 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.codehaus.plexus.classworlds.realm.ClassRealm; -import org.eclipse.aether.graph.DependencyFilter; - -/** - * Caches project class realms. Warning: This is an internal utility interface that is only public for - * technical reasons, it is not part of the public API. In particular, this interface can be changed or deleted without - * prior notice. - * - * @author Igor Fedorenko - * @author Benjamin Bentmann - */ -public interface ProjectRealmCache -{ - - /** - * A cache key. - */ - interface Key - { - // marker interface for cache keys - } - - static class CacheRecord - { - - public final ClassRealm realm; - - public final DependencyFilter extensionArtifactFilter; - - public CacheRecord( ClassRealm realm, DependencyFilter extensionArtifactFilter ) - { - this.realm = realm; - this.extensionArtifactFilter = extensionArtifactFilter; - } - - } - - Key createKey( List extensionRealms ); - - CacheRecord get( Key key ); - - CacheRecord put( Key key, ClassRealm projectRealm, DependencyFilter extensionArtifactFilter ); - - void flush(); - - /** - * Registers the specified cache record for usage with the given project. Integrators can use the information - * collected from this method in combination with a custom cache implementation to dispose unused records from the - * cache. - * - * @param project The project that employs the plugin realm, must not be {@code null}. - * @param record The cache record being used for the project, must not be {@code null}. - */ - void register( MavenProject project, Key key, CacheRecord record ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectSorter.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectSorter.java deleted file mode 100644 index 16985e2a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ProjectSorter.java +++ /dev/null @@ -1,289 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import org.apache.maven.artifact.ArtifactUtils; -import org.apache.maven.model.Dependency; -import org.apache.maven.model.Extension; -import org.apache.maven.model.Parent; -import org.apache.maven.model.Plugin; -import org.codehaus.plexus.util.StringUtils; -import org.codehaus.plexus.util.dag.CycleDetectedException; -import org.codehaus.plexus.util.dag.DAG; -import org.codehaus.plexus.util.dag.TopologicalSorter; -import org.codehaus.plexus.util.dag.Vertex; - -public class ProjectSorter -{ - private DAG dag; - - private List sortedProjects; - - private Map projectMap; - - private MavenProject topLevelProject; - - /** - * Sort a list of projects. - *
    - *
  • collect all the vertices for the projects that we want to build.
  • - *
  • iterate through the deps of each project and if that dep is within - * the set of projects we want to build then add an edge, otherwise throw - * the edge away because that dependency is not within the set of projects - * we are trying to build. we assume a closed set.
  • - *
  • do a topo sort on the graph that remains.
  • - *
- * @throws DuplicateProjectException if any projects are duplicated by id - */ - // MAVENAPI FIXME: the DAG used is NOT only used to represent the dependency relation, - // but also for , , . We need multiple DAG's - // since a DAG can only handle 1 type of relationship properly. - // Usecase: This is detected as a cycle: - // org.apache.maven:maven-plugin-api -(PARENT)-> - // org.apache.maven:maven -(inherited REPORTING)-> - // org.apache.maven.plugins:maven-checkstyle-plugin -(DEPENDENCY)-> - // org.apache.maven:maven-plugin-api - // In this case, both the verify and the report goals are called - // in a different lifecycle. Though the compiler-plugin has a valid usecase, although - // that seems to work fine. We need to take versions and lifecycle into account. - public ProjectSorter( Collection projects ) - throws CycleDetectedException, DuplicateProjectException - { - dag = new DAG(); - - // groupId:artifactId:version -> project - projectMap = new HashMap( projects.size() * 2 ); - - // groupId:artifactId -> (version -> vertex) - Map> vertexMap = new HashMap>( projects.size() * 2 ); - - for ( MavenProject project : projects ) - { - String projectId = getId( project ); - - MavenProject conflictingProject = projectMap.put( projectId, project ); - - if ( conflictingProject != null ) - { - throw new DuplicateProjectException( projectId, conflictingProject.getFile(), project.getFile(), - "Project '" + projectId + "' is duplicated in the reactor" ); - } - - String projectKey = ArtifactUtils.versionlessKey( project.getGroupId(), project.getArtifactId() ); - - Map vertices = vertexMap.get( projectKey ); - if ( vertices == null ) - { - vertices = new HashMap( 2, 1 ); - vertexMap.put( projectKey, vertices ); - } - vertices.put( project.getVersion(), dag.addVertex( projectId ) ); - } - - for ( Vertex projectVertex : dag.getVerticies() ) - { - String projectId = projectVertex.getLabel(); - - MavenProject project = projectMap.get( projectId ); - - for ( Dependency dependency : project.getDependencies() ) - { - addEdge( projectMap, vertexMap, project, projectVertex, dependency.getGroupId(), - dependency.getArtifactId(), dependency.getVersion(), false, false ); - } - - Parent parent = project.getModel().getParent(); - - if ( parent != null ) - { - // Parent is added as an edge, but must not cause a cycle - so we remove any other edges it has - // in conflict - addEdge( projectMap, vertexMap, null, projectVertex, parent.getGroupId(), parent.getArtifactId(), - parent.getVersion(), true, false ); - } - - List buildPlugins = project.getBuildPlugins(); - if ( buildPlugins != null ) - { - for ( Plugin plugin : buildPlugins ) - { - addEdge( projectMap, vertexMap, project, projectVertex, plugin.getGroupId(), - plugin.getArtifactId(), plugin.getVersion(), false, true ); - - for ( Dependency dependency : plugin.getDependencies() ) - { - addEdge( projectMap, vertexMap, project, projectVertex, dependency.getGroupId(), - dependency.getArtifactId(), dependency.getVersion(), false, true ); - } - } - } - - List buildExtensions = project.getBuildExtensions(); - if ( buildExtensions != null ) - { - for ( Extension extension : buildExtensions ) - { - addEdge( projectMap, vertexMap, project, projectVertex, extension.getGroupId(), - extension.getArtifactId(), extension.getVersion(), false, true ); - } - } - } - - List sortedProjects = new ArrayList( projects.size() ); - - List sortedProjectLabels = TopologicalSorter.sort( dag ); - - for ( String id : sortedProjectLabels ) - { - sortedProjects.add( projectMap.get( id ) ); - } - - this.sortedProjects = Collections.unmodifiableList( sortedProjects ); - } - - private void addEdge( Map projectMap, Map> vertexMap, - MavenProject project, Vertex projectVertex, String groupId, String artifactId, - String version, boolean force, boolean safe ) - throws CycleDetectedException - { - String projectKey = ArtifactUtils.versionlessKey( groupId, artifactId ); - - Map vertices = vertexMap.get( projectKey ); - - if ( vertices != null ) - { - if ( isSpecificVersion( version ) ) - { - Vertex vertex = vertices.get( version ); - if ( vertex != null ) - { - addEdge( projectVertex, vertex, project, projectMap, force, safe ); - } - } - else - { - for ( Vertex vertex : vertices.values() ) - { - addEdge( projectVertex, vertex, project, projectMap, force, safe ); - } - } - } - } - - private void addEdge( Vertex fromVertex, Vertex toVertex, MavenProject fromProject, - Map projectMap, boolean force, boolean safe ) - throws CycleDetectedException - { - if ( fromVertex.equals( toVertex ) ) - { - return; - } - - if ( fromProject != null ) - { - MavenProject toProject = projectMap.get( toVertex.getLabel() ); - fromProject.addProjectReference( toProject ); - } - - if ( force && toVertex.getChildren().contains( fromVertex ) ) - { - dag.removeEdge( toVertex, fromVertex ); - } - - try - { - dag.addEdge( fromVertex, toVertex ); - } - catch ( CycleDetectedException e ) - { - if ( !safe ) - { - throw e; - } - } - } - - private boolean isSpecificVersion( String version ) - { - return !( StringUtils.isEmpty( version ) || version.startsWith( "[" ) || version.startsWith( "(" ) ); - } - - // TODO: !![jc; 28-jul-2005] check this; if we're using '-r' and there are aggregator tasks, this will result in weirdness. - public MavenProject getTopLevelProject() - { - if ( topLevelProject == null ) - { - for ( Iterator i = sortedProjects.iterator(); i.hasNext() && ( topLevelProject == null ); ) - { - MavenProject project = i.next(); - if ( project.isExecutionRoot() ) - { - topLevelProject = project; - } - } - } - - return topLevelProject; - } - - public List getSortedProjects() - { - return sortedProjects; - } - - public boolean hasMultipleProjects() - { - return sortedProjects.size() > 1; - } - - public List getDependents( String id ) - { - return dag.getParentLabels( id ); - } - - public List getDependencies( String id ) - { - return dag.getChildLabels( id ); - } - - public static String getId( MavenProject project ) - { - return ArtifactUtils.key( project.getGroupId(), project.getArtifactId(), project.getVersion() ); - } - - public DAG getDAG() - { - return dag; - } - - public Map getProjectMap() - { - return projectMap; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ReactorModelCache.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ReactorModelCache.java deleted file mode 100644 index 24425da1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ReactorModelCache.java +++ /dev/null @@ -1,103 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.HashMap; -import java.util.Map; - -import org.apache.maven.model.building.ModelCache; - -/** - * A simple model cache used to accelerate model building during a reactor build. - * - * @author Benjamin Bentmann - */ -class ReactorModelCache - implements ModelCache -{ - - private final Map models = new HashMap( 256 ); - - public Object get( String groupId, String artifactId, String version, String tag ) - { - return models.get( new CacheKey( groupId, artifactId, version, tag ) ); - } - - public void put( String groupId, String artifactId, String version, String tag, Object data ) - { - models.put( new CacheKey( groupId, artifactId, version, tag ), data ); - } - - private static final class CacheKey - { - - private final String groupId; - - private final String artifactId; - - private final String version; - - private final String tag; - - private final int hashCode; - - public CacheKey( String groupId, String artifactId, String version, String tag ) - { - this.groupId = ( groupId != null ) ? groupId : ""; - this.artifactId = ( artifactId != null ) ? artifactId : ""; - this.version = ( version != null ) ? version : ""; - this.tag = ( tag != null ) ? tag : ""; - - int hash = 17; - hash = hash * 31 + this.groupId.hashCode(); - hash = hash * 31 + this.artifactId.hashCode(); - hash = hash * 31 + this.version.hashCode(); - hash = hash * 31 + this.tag.hashCode(); - hashCode = hash; - } - - @Override - public boolean equals( Object obj ) - { - if ( this == obj ) - { - return true; - } - - if ( !( obj instanceof CacheKey ) ) - { - return false; - } - - CacheKey that = (CacheKey) obj; - - return artifactId.equals( that.artifactId ) && groupId.equals( that.groupId ) - && version.equals( that.version ) && tag.equals( that.tag ); - } - - @Override - public int hashCode() - { - return hashCode; - } - - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ReactorModelPool.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ReactorModelPool.java deleted file mode 100644 index 294fccdb..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/ReactorModelPool.java +++ /dev/null @@ -1,106 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.HashMap; -import java.util.Map; - -/** - * Holds all POM files that are known to the reactor. This allows the project builder to resolve imported POMs from the - * reactor when building another project's effective model. - * - * @author Benjamin Bentmann - */ -class ReactorModelPool -{ - - private final Map pomFiles = new HashMap(); - - public File get( String groupId, String artifactId, String version ) - { - return pomFiles.get( new CacheKey( groupId, artifactId, version ) ); - } - - public void put( String groupId, String artifactId, String version, File pomFile ) - { - pomFiles.put( new CacheKey( groupId, artifactId, version ), pomFile ); - } - - private static final class CacheKey - { - - private final String groupId; - - private final String artifactId; - - private final String version; - - private final int hashCode; - - public CacheKey( String groupId, String artifactId, String version ) - { - this.groupId = ( groupId != null ) ? groupId : ""; - this.artifactId = ( artifactId != null ) ? artifactId : ""; - this.version = ( version != null ) ? version : ""; - - int hash = 17; - hash = hash * 31 + this.groupId.hashCode(); - hash = hash * 31 + this.artifactId.hashCode(); - hash = hash * 31 + this.version.hashCode(); - hashCode = hash; - } - - @Override - public boolean equals( Object obj ) - { - if ( this == obj ) - { - return true; - } - - if ( !( obj instanceof CacheKey ) ) - { - return false; - } - - CacheKey that = (CacheKey) obj; - - return artifactId.equals( that.artifactId ) && groupId.equals( that.groupId ) - && version.equals( that.version ); - } - - @Override - public int hashCode() - { - return hashCode; - } - - @Override - public String toString() - { - StringBuilder buffer = new StringBuilder( 96 ); - buffer.append( groupId ).append( ':' ).append( artifactId ).append( ':' ).append( version ); - return buffer.toString(); - } - - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/RepositorySessionDecorator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/RepositorySessionDecorator.java deleted file mode 100644 index 679ee008..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/RepositorySessionDecorator.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.eclipse.aether.RepositorySystemSession; - -/** - * Component interface that allows per-project customization of Aether repository system sessions. - * - * @since 3.2.4 - * @provisional This interface is part of work in progress and can be changed or removed without notice. - */ -public interface RepositorySessionDecorator -{ - /** - * Returns possibly {@code null} Aether repository system session to be used to resolve project dependencies. - */ - RepositorySystemSession decorate( MavenProject project, RepositorySystemSession session ); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java deleted file mode 100644 index 6e13d332..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java +++ /dev/null @@ -1,403 +0,0 @@ -package org.apache.maven.project.artifact; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.handler.ArtifactHandler; -import org.apache.maven.artifact.metadata.ArtifactMetadata; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.resolver.filter.ArtifactFilter; -import org.apache.maven.artifact.versioning.ArtifactVersion; -import org.apache.maven.artifact.versioning.OverConstrainedVersionException; -import org.apache.maven.artifact.versioning.VersionRange; -import org.apache.maven.project.MavenProject; - -import java.io.File; -import java.util.Collection; -import java.util.List; - -/** - * Wraps an active project instance to be able to receive updates from its artifact without affecting the original - * attributes of this artifact. - * - * @author Brett Porter - * @todo I think this exposes a design flaw in that the immutable and mutable parts of an artifact are in one class and - * should be split. ie scope, file, etc depend on the context of use, whereas everything else is immutable. - */ -@Deprecated -public class ActiveProjectArtifact - implements Artifact -{ - private final Artifact artifact; - - private final MavenProject project; - - public ActiveProjectArtifact( MavenProject project, Artifact artifact ) - { - this.artifact = artifact; - this.project = project; - - artifact.setFile( project.getArtifact().getFile() ); - artifact.setResolved( true ); - } - - /** {@inheritDoc} */ - public File getFile() - { - // we need to get the latest file for the project, not the artifact that was created at one point in time - return project.getArtifact().getFile(); - } - - /** {@inheritDoc} */ - public String getGroupId() - { - return artifact.getGroupId(); - } - - /** {@inheritDoc} */ - public String getArtifactId() - { - return artifact.getArtifactId(); - } - - /** {@inheritDoc} */ - public String getVersion() - { - return artifact.getVersion(); - } - - /** {@inheritDoc} */ - public void setVersion( String version ) - { - artifact.setVersion( version ); - } - - /** {@inheritDoc} */ - public String getScope() - { - return artifact.getScope(); - } - - /** {@inheritDoc} */ - public String getType() - { - return artifact.getType(); - } - - /** {@inheritDoc} */ - public String getClassifier() - { - return artifact.getClassifier(); - } - - /** {@inheritDoc} */ - public boolean hasClassifier() - { - return artifact.hasClassifier(); - } - - /** {@inheritDoc} */ - public void setFile( File destination ) - { - artifact.setFile( destination ); - project.getArtifact().setFile( destination ); - } - - /** {@inheritDoc} */ - public String getBaseVersion() - { - return artifact.getBaseVersion(); - } - - /** {@inheritDoc} */ - public void setBaseVersion( String baseVersion ) - { - artifact.setBaseVersion( baseVersion ); - } - - /** {@inheritDoc} */ - public String getId() - { - return artifact.getId(); - } - - /** {@inheritDoc} */ - public String getDependencyConflictId() - { - return artifact.getDependencyConflictId(); - } - - /** {@inheritDoc} */ - public void addMetadata( ArtifactMetadata metadata ) - { - artifact.addMetadata( metadata ); - } - - /** {@inheritDoc} */ - public Collection getMetadataList() - { - return artifact.getMetadataList(); - } - - /** {@inheritDoc} */ - public void setRepository( ArtifactRepository remoteRepository ) - { - artifact.setRepository( remoteRepository ); - } - - /** {@inheritDoc} */ - public ArtifactRepository getRepository() - { - return artifact.getRepository(); - } - - /** {@inheritDoc} */ - public void updateVersion( String version, ArtifactRepository localRepository ) - { - artifact.updateVersion( version, localRepository ); - } - - /** {@inheritDoc} */ - public String getDownloadUrl() - { - return artifact.getDownloadUrl(); - } - - /** {@inheritDoc} */ - public void setDownloadUrl( String downloadUrl ) - { - artifact.setDownloadUrl( downloadUrl ); - } - - /** {@inheritDoc} */ - public ArtifactFilter getDependencyFilter() - { - return artifact.getDependencyFilter(); - } - - /** {@inheritDoc} */ - public void setDependencyFilter( ArtifactFilter artifactFilter ) - { - artifact.setDependencyFilter( artifactFilter ); - } - - /** {@inheritDoc} */ - public ArtifactHandler getArtifactHandler() - { - return artifact.getArtifactHandler(); - } - - /** {@inheritDoc} */ - public List getDependencyTrail() - { - return artifact.getDependencyTrail(); - } - - /** {@inheritDoc} */ - public void setDependencyTrail( List dependencyTrail ) - { - artifact.setDependencyTrail( dependencyTrail ); - } - - /** {@inheritDoc} */ - public void setScope( String scope ) - { - artifact.setScope( scope ); - } - - /** {@inheritDoc} */ - public VersionRange getVersionRange() - { - return artifact.getVersionRange(); - } - - /** {@inheritDoc} */ - public void setVersionRange( VersionRange newRange ) - { - artifact.setVersionRange( newRange ); - } - - /** {@inheritDoc} */ - public void selectVersion( String version ) - { - artifact.selectVersion( version ); - } - - /** {@inheritDoc} */ - public void setGroupId( String groupId ) - { - artifact.setGroupId( groupId ); - } - - /** {@inheritDoc} */ - public void setArtifactId( String artifactId ) - { - artifact.setArtifactId( artifactId ); - } - - /** {@inheritDoc} */ - public boolean isSnapshot() - { - return artifact.isSnapshot(); - } - - /** {@inheritDoc} */ - public int compareTo( Artifact a ) - { - return artifact.compareTo( a ); - } - - /** {@inheritDoc} */ - public void setResolved( boolean resolved ) - { - artifact.setResolved( resolved ); - } - - /** {@inheritDoc} */ - public boolean isResolved() - { - return artifact.isResolved(); - } - - /** {@inheritDoc} */ - public void setResolvedVersion( String version ) - { - artifact.setResolvedVersion( version ); - } - - /** {@inheritDoc} */ - public void setArtifactHandler( ArtifactHandler handler ) - { - artifact.setArtifactHandler( handler ); - } - - /** {@inheritDoc} */ - public String toString() - { - return "active project artifact:\n\tartifact = " + artifact + ";\n\tproject: " + project; - } - - /** {@inheritDoc} */ - public boolean isRelease() - { - return artifact.isRelease(); - } - - /** {@inheritDoc} */ - public void setRelease( boolean release ) - { - artifact.setRelease( release ); - } - - /** {@inheritDoc} */ - public List getAvailableVersions() - { - return artifact.getAvailableVersions(); - } - - /** {@inheritDoc} */ - public void setAvailableVersions( List versions ) - { - artifact.setAvailableVersions( versions ); - } - - /** {@inheritDoc} */ - public boolean isOptional() - { - return artifact.isOptional(); - } - - /** {@inheritDoc} */ - public ArtifactVersion getSelectedVersion() - throws OverConstrainedVersionException - { - return artifact.getSelectedVersion(); - } - - /** {@inheritDoc} */ - public boolean isSelectedVersionKnown() - throws OverConstrainedVersionException - { - return artifact.isSelectedVersionKnown(); - } - - /** {@inheritDoc} */ - public void setOptional( boolean optional ) - { - artifact.setOptional( optional ); - } - - /** {@inheritDoc} */ - public int hashCode() - { - int result = 17; - - result = 37 * result + getGroupId().hashCode(); - result = 37 * result + getArtifactId().hashCode(); - result = 37 * result + getType().hashCode(); - if ( getVersion() != null ) - { - result = 37 * result + getVersion().hashCode(); - } - result = 37 * result + ( getClassifier() != null ? getClassifier().hashCode() : 0 ); - - return result; - } - - /** {@inheritDoc} */ - public boolean equals( Object o ) - { - if ( o == this ) - { - return true; - } - - if ( !( o instanceof Artifact ) ) - { - return false; - } - - Artifact a = (Artifact) o; - - if ( !a.getGroupId().equals( getGroupId() ) ) - { - return false; - } - else if ( !a.getArtifactId().equals( getArtifactId() ) ) - { - return false; - } - else if ( !a.getVersion().equals( getVersion() ) ) - { - return false; - } - else if ( !a.getType().equals( getType() ) ) - { - return false; - } - else if ( a.getClassifier() == null ? getClassifier() != null : !a.getClassifier().equals( getClassifier() ) ) - { - return false; - } - - return true; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/ArtifactWithDependencies.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/ArtifactWithDependencies.java deleted file mode 100644 index cb06b70f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/ArtifactWithDependencies.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.apache.maven.project.artifact; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.model.Dependency; - -public interface ArtifactWithDependencies -{ - - List getDependencies(); - - List getManagedDependencies(); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/AttachedArtifact.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/AttachedArtifact.java deleted file mode 100644 index fd2b956c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/AttachedArtifact.java +++ /dev/null @@ -1,185 +0,0 @@ -package org.apache.maven.project.artifact; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.DefaultArtifact; -import org.apache.maven.artifact.InvalidArtifactRTException; -import org.apache.maven.artifact.handler.ArtifactHandler; -import org.apache.maven.artifact.metadata.ArtifactMetadata; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.versioning.ArtifactVersion; -import org.apache.maven.artifact.versioning.VersionRange; - -import java.util.Collection; -import java.util.Collections; -import java.util.List; - -/** - *Warning: This is an internal utility class that is only public for technical reasons, it is not part - * of the public API. In particular, this class can be changed or deleted without prior notice. Use - * {@link org.apache.maven.project.MavenProjectHelper#attachArtifact} instead. - */ -@Deprecated -public class AttachedArtifact - extends DefaultArtifact -{ - - private final Artifact parent; - - public AttachedArtifact( Artifact parent, String type, String classifier, ArtifactHandler artifactHandler ) - { - super( parent.getGroupId(), parent.getArtifactId(), parent.getVersionRange(), parent.getScope(), type, - classifier, artifactHandler, parent.isOptional() ); - - setDependencyTrail( Collections.singletonList( parent.getId() ) ); - - this.parent = parent; - - if ( getId().equals( parent.getId() ) ) - { - throw new InvalidArtifactRTException( parent.getGroupId(), parent.getArtifactId(), parent.getVersion(), - parent.getType(), "An attached artifact must have a different ID" - + " than its corresponding main artifact." ); - } - } - - public AttachedArtifact( Artifact parent, String type, ArtifactHandler artifactHandler ) - { - this( parent, type, null, artifactHandler ); - } - - public void setArtifactId( String artifactId ) - { - throw new UnsupportedOperationException( "Cannot change the artifactId for an attached artifact." - + " It is derived from the main artifact." ); - } - - public List getAvailableVersions() - { - return parent.getAvailableVersions(); - } - - public void setAvailableVersions( List availableVersions ) - { - throw new UnsupportedOperationException( "Cannot change the version information for an attached artifact." - + " It is derived from the main artifact." ); - } - - public String getBaseVersion() - { - return parent.getBaseVersion(); - } - - public void setBaseVersion( String baseVersion ) - { - throw new UnsupportedOperationException( "Cannot change the version information for an attached artifact." - + " It is derived from the main artifact." ); - } - - public String getDownloadUrl() - { - return parent.getDownloadUrl(); - } - - public void setDownloadUrl( String downloadUrl ) - { - throw new UnsupportedOperationException( "Cannot change the download information for an attached artifact." - + " It is derived from the main artifact." ); - } - - public void setGroupId( String groupId ) - { - throw new UnsupportedOperationException( "Cannot change the groupId for an attached artifact." - + " It is derived from the main artifact." ); - } - - public ArtifactRepository getRepository() - { - return parent.getRepository(); - } - - public void setRepository( ArtifactRepository repository ) - { - throw new UnsupportedOperationException( "Cannot change the repository information for an attached artifact." - + " It is derived from the main artifact." ); - } - - public String getScope() - { - return parent.getScope(); - } - - public void setScope( String scope ) - { - throw new UnsupportedOperationException( "Cannot change the scoping information for an attached artifact." - + " It is derived from the main artifact." ); - } - - public String getVersion() - { - return parent.getVersion(); - } - - public void setVersion( String version ) - { - throw new UnsupportedOperationException( "Cannot change the version information for an attached artifact." - + " It is derived from the main artifact." ); - } - - public VersionRange getVersionRange() - { - return parent.getVersionRange(); - } - - public void setVersionRange( VersionRange range ) - { - throw new UnsupportedOperationException( "Cannot change the version information for an attached artifact." - + " It is derived from the main artifact." ); - } - - public boolean isRelease() - { - return parent.isRelease(); - } - - public void setRelease( boolean release ) - { - throw new UnsupportedOperationException( "Cannot change the version information for an attached artifact." - + " It is derived from the main artifact." ); - } - - public boolean isSnapshot() - { - return parent.isSnapshot(); - } - - public void addMetadata( ArtifactMetadata metadata ) - { - // ignore. The parent artifact will handle metadata. - // we must fail silently here to avoid problems with the artifact transformers. - } - - public Collection getMetadataList() - { - return Collections.emptyList(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/DefaultMavenMetadataCache.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/DefaultMavenMetadataCache.java deleted file mode 100644 index 07fd11da..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/DefaultMavenMetadataCache.java +++ /dev/null @@ -1,347 +0,0 @@ -package org.apache.maven.project.artifact; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.concurrent.ConcurrentHashMap; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.ArtifactUtils; -import org.apache.maven.artifact.metadata.ResolutionGroup; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy; -import org.codehaus.plexus.component.annotations.Component; - -@Component( role = MavenMetadataCache.class ) -public class DefaultMavenMetadataCache - implements MavenMetadataCache -{ - - protected final Map cache = new ConcurrentHashMap(); - - public static class CacheKey - { - private final Artifact artifact; - private final long pomHash; - private final boolean resolveManagedVersions; - private final List repositories = new ArrayList(); - private final int hashCode; - - public CacheKey( Artifact artifact, boolean resolveManagedVersions, ArtifactRepository localRepository, - List remoteRepositories ) - { - File file = artifact.getFile(); - this.artifact = ArtifactUtils.copyArtifact( artifact ); - if ( "pom".equals( artifact.getType() ) && file != null ) - { - pomHash = file.getPath().hashCode() + file.lastModified(); - } - else - { - pomHash = 0; - } - this.resolveManagedVersions = resolveManagedVersions; - this.repositories.add( localRepository ); - this.repositories.addAll( remoteRepositories ); - - int hash = 17; - hash = hash * 31 + artifactHashCode( artifact ); - hash = hash * 31 + ( resolveManagedVersions ? 1 : 2 ); - hash = hash * 31 + repositoriesHashCode( repositories ); - this.hashCode = hash; - } - - @Override - public int hashCode() - { - return hashCode; - } - - @Override - public boolean equals( Object o ) - { - if ( o == this ) - { - return true; - } - - if ( !( o instanceof CacheKey ) ) - { - return false; - } - - CacheKey other = (CacheKey) o; - - return pomHash == other.pomHash && artifactEquals( artifact, other.artifact ) - && resolveManagedVersions == other.resolveManagedVersions - && repositoriesEquals( repositories, other.repositories ); - } - } - - private static int artifactHashCode( Artifact a ) - { - int result = 17; - result = 31 * result + a.getGroupId().hashCode(); - result = 31 * result + a.getArtifactId().hashCode(); - result = 31 * result + a.getType().hashCode(); - if ( a.getVersion() != null ) - { - result = 31 * result + a.getVersion().hashCode(); - } - result = 31 * result + ( a.getClassifier() != null ? a.getClassifier().hashCode() : 0 ); - result = 31 * result + ( a.getScope() != null ? a.getScope().hashCode() : 0 ); - result = 31 * result + ( a.getDependencyFilter() != null ? a.getDependencyFilter().hashCode() : 0 ); - result = 31 * result + ( a.isOptional() ? 1 : 0 ); - return result; - } - - private static boolean artifactEquals( Artifact a1, Artifact a2 ) - { - if ( a1 == a2 ) - { - return true; - } - - return eq( a1.getGroupId(), a2.getGroupId() ) - && eq( a1.getArtifactId(), a2.getArtifactId() ) - && eq( a1.getType(), a2.getType() ) - && eq( a1.getVersion(), a2.getVersion() ) - && eq( a1.getClassifier(), a2.getClassifier() ) - && eq( a1.getScope(), a2.getScope() ) - && eq( a1.getDependencyFilter(), a2.getDependencyFilter() ) - && a1.isOptional() == a2.isOptional(); - } - - private static int repositoryHashCode( ArtifactRepository repository ) - { - int result = 17; - result = 31 * result + ( repository.getId() != null ? repository.getId().hashCode() : 0 ); - return result; - } - - private static int repositoriesHashCode( List repositories ) - { - int result = 17; - for ( ArtifactRepository repository : repositories ) - { - result = 31 * result + repositoryHashCode( repository ); - } - return result; - } - - private static boolean repositoryEquals( ArtifactRepository r1, ArtifactRepository r2 ) - { - if ( r1 == r2 ) - { - return true; - } - - return eq( r1.getId(), r2.getId() ) && eq( r1.getUrl(), r2.getUrl() ) - && repositoryPolicyEquals( r1.getReleases(), r2.getReleases() ) - && repositoryPolicyEquals( r1.getSnapshots(), r2.getSnapshots() ); - } - - private static boolean repositoryPolicyEquals( ArtifactRepositoryPolicy p1, ArtifactRepositoryPolicy p2 ) - { - if ( p1 == p2 ) - { - return true; - } - - return p1.isEnabled() == p2.isEnabled() && eq( p1.getUpdatePolicy(), p2.getUpdatePolicy() ); - } - - private static boolean repositoriesEquals( List r1, List r2 ) - { - if ( r1.size() != r2.size() ) - { - return false; - } - - for ( Iterator it1 = r1.iterator(), it2 = r2.iterator(); it1.hasNext(); ) - { - if ( !repositoryEquals( it1.next(), it2.next() ) ) - { - return false; - } - } - - return true; - } - - private static boolean eq( T s1, T s2 ) - { - return s1 != null ? s1.equals( s2 ) : s2 == null; - } - - public class CacheRecord - { - private Artifact pomArtifact; - private Artifact relocatedArtifact; - private List artifacts; - private Map managedVersions; - private List remoteRepositories; - - private long length; - private long timestamp; - - CacheRecord( Artifact pomArtifact, Artifact relocatedArtifact, Set artifacts, - Map managedVersions, List remoteRepositories ) - { - this.pomArtifact = ArtifactUtils.copyArtifact( pomArtifact ); - this.relocatedArtifact = ArtifactUtils.copyArtifactSafe( relocatedArtifact ); - this.artifacts = ArtifactUtils.copyArtifacts( artifacts, new ArrayList() ); - this.remoteRepositories = new ArrayList( remoteRepositories ); - - this.managedVersions = managedVersions; - if ( managedVersions != null ) - { - this.managedVersions = - ArtifactUtils.copyArtifacts( managedVersions, new LinkedHashMap() ); - } - - File pomFile = pomArtifact.getFile(); - if ( pomFile != null && pomFile.canRead() ) - { - this.length = pomFile.length(); - this.timestamp = pomFile.lastModified(); - } - else - { - this.length = -1; - this.timestamp = -1; - } - } - - public Artifact getArtifact() - { - return pomArtifact; - } - - public Artifact getRelocatedArtifact() - { - return relocatedArtifact; - } - - public List getArtifacts() - { - return artifacts; - } - - public Map getManagedVersions() - { - return managedVersions; - } - - public List getRemoteRepositories() - { - return remoteRepositories; - } - - public boolean isStale() - { - File pomFile = pomArtifact.getFile(); - if ( pomFile != null ) - { - if ( pomFile.canRead() ) - { - return length != pomFile.length() || timestamp != pomFile.lastModified(); - } - else - { - // if the POM didn't exist, retry if any repo is configured to always update - boolean snapshot = pomArtifact.isSnapshot(); - for ( ArtifactRepository repository : remoteRepositories ) - { - ArtifactRepositoryPolicy policy = - snapshot ? repository.getSnapshots() : repository.getReleases(); - if ( ArtifactRepositoryPolicy.UPDATE_POLICY_ALWAYS.equals( policy.getUpdatePolicy() ) ) - { - return true; - } - } - } - } - - return length != -1 || timestamp != -1; - } - } - - - public ResolutionGroup get( Artifact artifact, boolean resolveManagedVersions, ArtifactRepository localRepository, - List remoteRepositories ) - { - CacheKey cacheKey = newCacheKey( artifact, resolveManagedVersions, localRepository, remoteRepositories ); - - CacheRecord cacheRecord = cache.get( cacheKey ); - - if ( cacheRecord != null && !cacheRecord.isStale() ) - { - Artifact pomArtifact = ArtifactUtils.copyArtifact( cacheRecord.getArtifact() ); - Artifact relocatedArtifact = ArtifactUtils.copyArtifactSafe( cacheRecord.getRelocatedArtifact() ); - Set artifacts = - ArtifactUtils.copyArtifacts( cacheRecord.getArtifacts(), new LinkedHashSet() ); - Map managedVersions = cacheRecord.getManagedVersions(); - if ( managedVersions != null ) - { - managedVersions = ArtifactUtils.copyArtifacts( managedVersions, new LinkedHashMap() ); - } - return new ResolutionGroup( pomArtifact, relocatedArtifact, artifacts, managedVersions, - cacheRecord.getRemoteRepositories() ); - } - - cache.remove( cacheKey ); - - return null; - } - - public void put( Artifact artifact, boolean resolveManagedVersions, ArtifactRepository localRepository, - List remoteRepositories, ResolutionGroup result ) - { - put( newCacheKey( artifact, resolveManagedVersions, localRepository, remoteRepositories ), result ); - } - - protected CacheKey newCacheKey( Artifact artifact, boolean resolveManagedVersions, - ArtifactRepository localRepository, List remoteRepositories ) - { - return new CacheKey( artifact, resolveManagedVersions, localRepository, remoteRepositories ); - } - - protected void put( CacheKey cacheKey, ResolutionGroup result ) - { - CacheRecord cacheRecord = - new CacheRecord( result.getPomArtifact(), result.getRelocatedArtifact(), result.getArtifacts(), - result.getManagedVersions(), result.getResolutionRepositories() ); - - cache.put( cacheKey, cacheRecord ); - } - - public void flush() - { - cache.clear(); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/DefaultMetadataSource.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/DefaultMetadataSource.java deleted file mode 100644 index 91f665b5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/DefaultMetadataSource.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.apache.maven.project.artifact; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.metadata.ArtifactMetadataSource; -import org.codehaus.plexus.component.annotations.Component; - -/** - * This realizes the metadata source via the default hint to provide backward-compat with Maven 2.x whose Plexus version - * registered component descriptors twice: once keyed by role+roleHint and once keyed by role only. This effectively - * made the metadata source available with its original role hint ("maven") as well as the default hint. - * - * @author Benjamin Bentmann - */ -@Component( role = ArtifactMetadataSource.class ) -public class DefaultMetadataSource - extends MavenMetadataSource -{ - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/InvalidDependencyVersionException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/InvalidDependencyVersionException.java deleted file mode 100644 index 8a1de685..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/InvalidDependencyVersionException.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.apache.maven.project.artifact; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; - -import org.apache.maven.artifact.ArtifactUtils; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.model.Dependency; -import org.apache.maven.project.InvalidProjectVersionException; - -/** - * Thrown if a dependency has an invalid version. - * - * @author Brett Porter - */ -public class InvalidDependencyVersionException - extends InvalidProjectVersionException -{ - private Dependency dependency; - - public InvalidDependencyVersionException( String projectId, Dependency dependency, File pomFile, - InvalidVersionSpecificationException cause ) - { - super( projectId, formatLocationInPom( dependency ), dependency.getVersion(), pomFile, cause ); - this.dependency = dependency; - } - - private static String formatLocationInPom( Dependency dependency ) - { - return "Dependency: " + ArtifactUtils.versionlessKey( dependency.getGroupId(), dependency.getArtifactId() ); - } - - public Dependency getDependency() - { - return dependency; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/MavenMetadataCache.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/MavenMetadataCache.java deleted file mode 100644 index 036ee86c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/MavenMetadataCache.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.apache.maven.project.artifact; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.metadata.ResolutionGroup; - -public interface MavenMetadataCache -{ - - ResolutionGroup get( Artifact artifact, boolean resolveManagedVersions, ArtifactRepository localRepository, - List remoteRepositories ); - - void put( Artifact artifact, boolean resolveManagedVersions, ArtifactRepository localRepository, - List remoteRepositories, ResolutionGroup result ); - - void flush(); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java deleted file mode 100644 index 1fb5c545..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java +++ /dev/null @@ -1,770 +0,0 @@ -package org.apache.maven.project.artifact; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Properties; -import java.util.Set; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.factory.ArtifactFactory; -import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; -import org.apache.maven.artifact.metadata.ArtifactMetadataSource; -import org.apache.maven.artifact.metadata.ResolutionGroup; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.metadata.ArtifactRepositoryMetadata; -import org.apache.maven.artifact.repository.metadata.Metadata; -import org.apache.maven.artifact.repository.metadata.RepositoryMetadata; -import org.apache.maven.artifact.repository.metadata.RepositoryMetadataManager; -import org.apache.maven.artifact.repository.metadata.RepositoryMetadataResolutionException; -import org.apache.maven.artifact.resolver.ArtifactResolutionException; -import org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException; -import org.apache.maven.artifact.resolver.filter.AndArtifactFilter; -import org.apache.maven.artifact.resolver.filter.ArtifactFilter; -import org.apache.maven.artifact.resolver.filter.ExcludesArtifactFilter; -import org.apache.maven.artifact.versioning.ArtifactVersion; -import org.apache.maven.artifact.versioning.DefaultArtifactVersion; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.artifact.versioning.VersionRange; -import org.apache.maven.model.Dependency; -import org.apache.maven.model.DependencyManagement; -import org.apache.maven.model.DistributionManagement; -import org.apache.maven.model.Exclusion; -import org.apache.maven.model.Relocation; -import org.apache.maven.model.building.ModelBuildingException; -import org.apache.maven.model.building.ModelBuildingRequest; -import org.apache.maven.model.building.ModelProblem; -import org.apache.maven.model.resolution.UnresolvableModelException; -import org.apache.maven.plugin.LegacySupport; -import org.apache.maven.project.DefaultProjectBuildingRequest; -import org.apache.maven.project.MavenProject; -import org.apache.maven.project.ProjectBuilder; -import org.apache.maven.project.ProjectBuildingException; -import org.apache.maven.project.ProjectBuildingRequest; -import org.apache.maven.properties.internal.EnvironmentUtils; -import org.apache.maven.properties.internal.SystemProperties; -import org.apache.maven.repository.legacy.metadata.DefaultMetadataResolutionRequest; -import org.apache.maven.repository.legacy.metadata.MetadataResolutionRequest; -import org.codehaus.plexus.PlexusContainer; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.component.repository.exception.ComponentLookupException; -import org.codehaus.plexus.logging.Logger; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.repository.RepositoryPolicy; -import org.eclipse.aether.transfer.ArtifactNotFoundException; - -/** - * @author Jason van Zyl - */ -@Component( role = ArtifactMetadataSource.class, hint = "maven" ) -public class MavenMetadataSource - implements ArtifactMetadataSource -{ - @Requirement - private RepositoryMetadataManager repositoryMetadataManager; - - @Requirement - private ArtifactFactory repositorySystem; - - //TODO: This prevents a cycle in the composition which shows us another problem we need to deal with. - //@Requirement - private ProjectBuilder projectBuilder; - - @Requirement - private PlexusContainer container; - - @Requirement - private Logger logger; - - @Requirement - private MavenMetadataCache cache; - - @Requirement - private LegacySupport legacySupport; - - private void injectSession( MetadataResolutionRequest request ) - { - RepositorySystemSession session = legacySupport.getRepositorySession(); - - if ( session != null ) - { - request.setOffline( session.isOffline() ); - request.setForceUpdate( RepositoryPolicy.UPDATE_POLICY_ALWAYS.equals( session.getUpdatePolicy() ) ); - } - } - - public ResolutionGroup retrieve( Artifact artifact, ArtifactRepository localRepository, - List remoteRepositories ) - throws ArtifactMetadataRetrievalException - { - return retrieve( artifact, localRepository, remoteRepositories, false ); - } - - public ResolutionGroup retrieve( Artifact artifact, ArtifactRepository localRepository, - List remoteRepositories, boolean resolveManagedVersions ) - throws ArtifactMetadataRetrievalException - { - MetadataResolutionRequest request = new DefaultMetadataResolutionRequest(); - injectSession( request ); - request.setArtifact( artifact ); - request.setLocalRepository( localRepository ); - request.setRemoteRepositories( remoteRepositories ); - request.setResolveManagedVersions( resolveManagedVersions ); - return retrieve( request ); - } - - public ResolutionGroup retrieve( MetadataResolutionRequest request ) - throws ArtifactMetadataRetrievalException - { - Artifact artifact = request.getArtifact(); - - // - // If we have a system scoped artifact then we do not want any searching in local or remote repositories - // and we want artifact resolution to only return the system scoped artifact itself. - // - if ( artifact.getScope() != null && artifact.getScope().equals( Artifact.SCOPE_SYSTEM ) ) - { - return new ResolutionGroup( null, null, null ); - } - - ResolutionGroup cached = - cache.get( artifact, request.isResolveManagedVersions(), request.getLocalRepository(), - request.getRemoteRepositories() ); - - if ( cached != null - // if the POM has no file, we cached a missing artifact, only return the cached data if no update forced - && ( !request.isForceUpdate() || hasFile( cached.getPomArtifact() ) ) ) - { - return cached; - } - - List dependencies; - - List managedDependencies = null; - - List pomRepositories = null; - - Artifact pomArtifact; - - Artifact relocatedArtifact = null; - - //TODO: Not even sure this is really required as the project will be cached in the builder, we'll see this - // is currently the biggest hotspot - if ( artifact instanceof ArtifactWithDependencies ) - { - pomArtifact = artifact; - - dependencies = ( (ArtifactWithDependencies) artifact ).getDependencies(); - - managedDependencies = ( (ArtifactWithDependencies) artifact ).getManagedDependencies(); - } - else - { - ProjectRelocation rel = retrieveRelocatedProject( artifact, request ); - - if ( rel == null ) - { - return null; - } - - pomArtifact = rel.pomArtifact; - - relocatedArtifact = rel.relocatedArtifact; - - if ( rel.project == null ) - { - // When this happens we have a Maven 1.x POM, or some invalid POM. - // It should have never found its way into Maven 2.x repository but it did. - dependencies = Collections.emptyList(); - } - else - { - dependencies = rel.project.getDependencies(); - - DependencyManagement depMngt = rel.project.getDependencyManagement(); - managedDependencies = ( depMngt != null ) ? depMngt.getDependencies() : null; - - pomRepositories = rel.project.getRemoteArtifactRepositories(); - } - } - - Set artifacts = Collections.emptySet(); - - if ( !artifact.getArtifactHandler().isIncludesDependencies() ) - { - artifacts = new LinkedHashSet(); - - for ( Dependency dependency : dependencies ) - { - Artifact dependencyArtifact = createDependencyArtifact( dependency, artifact, pomArtifact ); - - if ( dependencyArtifact != null ) - { - artifacts.add( dependencyArtifact ); - } - } - } - - Map managedVersions = null; - - if ( managedDependencies != null && request.isResolveManagedVersions() ) - { - managedVersions = new HashMap(); - - for ( Dependency managedDependency : managedDependencies ) - { - Artifact managedArtifact = createDependencyArtifact( managedDependency, null, pomArtifact ); - - managedVersions.put( managedDependency.getManagementKey(), managedArtifact ); - } - } - - List aggregatedRepositories = - aggregateRepositories( request.getRemoteRepositories(), pomRepositories ); - - ResolutionGroup result = - new ResolutionGroup( pomArtifact, relocatedArtifact, artifacts, managedVersions, aggregatedRepositories ); - - cache.put( artifact, request.isResolveManagedVersions(), request.getLocalRepository(), - request.getRemoteRepositories(), result ); - - return result; - } - - private boolean hasFile( Artifact artifact ) - { - return artifact != null && artifact.getFile() != null && artifact.getFile().exists(); - } - - private List aggregateRepositories( List requestRepositories, - List pomRepositories ) - { - List repositories = requestRepositories; - - if ( pomRepositories != null && !pomRepositories.isEmpty() ) - { - Map repos = new LinkedHashMap(); - - for ( ArtifactRepository repo : requestRepositories ) - { - if ( !repos.containsKey( repo.getId() ) ) - { - repos.put( repo.getId(), repo ); - } - } - - for ( ArtifactRepository repo : pomRepositories ) - { - if ( !repos.containsKey( repo.getId() ) ) - { - repos.put( repo.getId(), repo ); - } - } - - repositories = new ArrayList( repos.values() ); - } - - return repositories; - } - - private Artifact createDependencyArtifact( Dependency dependency, Artifact owner, Artifact pom ) - throws ArtifactMetadataRetrievalException - { - try - { - String inheritedScope = ( owner != null ) ? owner.getScope() : null; - - ArtifactFilter inheritedFilter = ( owner != null ) ? owner.getDependencyFilter() : null; - - return createDependencyArtifact( repositorySystem, dependency, inheritedScope, inheritedFilter ); - } - catch ( InvalidVersionSpecificationException e ) - { - throw new ArtifactMetadataRetrievalException( "Invalid version for dependency " - + dependency.getManagementKey() + ": " + e.getMessage(), e, pom ); - } - } - - private static Artifact createDependencyArtifact( ArtifactFactory factory, Dependency dependency, - String inheritedScope, ArtifactFilter inheritedFilter ) - throws InvalidVersionSpecificationException - { - String effectiveScope = getEffectiveScope( dependency.getScope(), inheritedScope ); - - if ( effectiveScope == null ) - { - return null; - } - - VersionRange versionRange = VersionRange.createFromVersionSpec( dependency.getVersion() ); - - Artifact dependencyArtifact = - factory.createDependencyArtifact( dependency.getGroupId(), dependency.getArtifactId(), versionRange, - dependency.getType(), dependency.getClassifier(), effectiveScope, - dependency.isOptional() ); - - ArtifactFilter dependencyFilter = inheritedFilter; - - if ( dependencyFilter != null && !dependencyFilter.include( dependencyArtifact ) ) - { - return null; - } - - if ( Artifact.SCOPE_SYSTEM.equals( effectiveScope ) ) - { - dependencyArtifact.setFile( new File( dependency.getSystemPath() ) ); - } - - dependencyArtifact.setDependencyFilter( createDependencyFilter( dependency, dependencyFilter ) ); - - return dependencyArtifact; - } - - private static String getEffectiveScope( String originalScope, String inheritedScope ) - { - String effectiveScope = Artifact.SCOPE_RUNTIME; - - if ( originalScope == null ) - { - originalScope = Artifact.SCOPE_COMPILE; - } - - if ( inheritedScope == null ) - { - // direct dependency retains its scope - effectiveScope = originalScope; - } - else if ( Artifact.SCOPE_TEST.equals( originalScope ) || Artifact.SCOPE_PROVIDED.equals( originalScope ) ) - { - // test and provided are not transitive, so exclude them - effectiveScope = null; - } - else if ( Artifact.SCOPE_SYSTEM.equals( originalScope ) ) - { - // system scope come through unchanged... - effectiveScope = Artifact.SCOPE_SYSTEM; - } - else if ( Artifact.SCOPE_COMPILE.equals( originalScope ) && Artifact.SCOPE_COMPILE.equals( inheritedScope ) ) - { - // added to retain compile scope. Remove if you want compile inherited as runtime - effectiveScope = Artifact.SCOPE_COMPILE; - } - else if ( Artifact.SCOPE_TEST.equals( inheritedScope ) ) - { - effectiveScope = Artifact.SCOPE_TEST; - } - else if ( Artifact.SCOPE_PROVIDED.equals( inheritedScope ) ) - { - effectiveScope = Artifact.SCOPE_PROVIDED; - } - - return effectiveScope; - } - - private static ArtifactFilter createDependencyFilter( Dependency dependency, ArtifactFilter inheritedFilter ) - { - ArtifactFilter effectiveFilter = inheritedFilter; - - if ( !dependency.getExclusions().isEmpty() ) - { - List exclusions = new ArrayList(); - - for ( Exclusion e : dependency.getExclusions() ) - { - exclusions.add( e.getGroupId() + ':' + e.getArtifactId() ); - } - - effectiveFilter = new ExcludesArtifactFilter( exclusions ); - - if ( inheritedFilter != null ) - { - effectiveFilter = new AndArtifactFilter( Arrays.asList( inheritedFilter, effectiveFilter ) ); - } - } - - return effectiveFilter; - } - - public List retrieveAvailableVersions( Artifact artifact, ArtifactRepository localRepository, - List remoteRepositories ) - throws ArtifactMetadataRetrievalException - { - MetadataResolutionRequest request = new DefaultMetadataResolutionRequest(); - injectSession( request ); - request.setArtifact( artifact ); - request.setLocalRepository( localRepository ); - request.setRemoteRepositories( remoteRepositories ); - return retrieveAvailableVersions( request ); - } - - public List retrieveAvailableVersions( MetadataResolutionRequest request ) - throws ArtifactMetadataRetrievalException - { - RepositoryMetadata metadata = new ArtifactRepositoryMetadata( request.getArtifact() ); - - try - { - repositoryMetadataManager.resolve( metadata, request ); - } - catch ( RepositoryMetadataResolutionException e ) - { - throw new ArtifactMetadataRetrievalException( e.getMessage(), e, request.getArtifact() ); - } - - List availableVersions = request.getLocalRepository().findVersions( request.getArtifact() ); - - return retrieveAvailableVersionsFromMetadata( metadata.getMetadata(), availableVersions ); - } - - public List retrieveAvailableVersionsFromDeploymentRepository( Artifact artifact, - ArtifactRepository localRepository, - ArtifactRepository deploymentRepository ) - throws ArtifactMetadataRetrievalException - { - RepositoryMetadata metadata = new ArtifactRepositoryMetadata( artifact ); - - try - { - repositoryMetadataManager.resolveAlways( metadata, localRepository, deploymentRepository ); - } - catch ( RepositoryMetadataResolutionException e ) - { - throw new ArtifactMetadataRetrievalException( e.getMessage(), e, artifact ); - } - - List availableVersions = localRepository.findVersions( artifact ); - - return retrieveAvailableVersionsFromMetadata( metadata.getMetadata(), availableVersions ); - } - - private List retrieveAvailableVersionsFromMetadata( Metadata repoMetadata, - List availableVersions ) - { - Collection versions = new LinkedHashSet(); - - if ( ( repoMetadata != null ) && ( repoMetadata.getVersioning() != null ) ) - { - versions.addAll( repoMetadata.getVersioning().getVersions() ); - } - - versions.addAll( availableVersions ); - - List artifactVersions = new ArrayList( versions.size() ); - - for ( String version : versions ) - { - artifactVersions.add( new DefaultArtifactVersion( version ) ); - } - - return artifactVersions; - } - - // USED BY MAVEN ASSEMBLY PLUGIN - @Deprecated - public static Set createArtifacts( ArtifactFactory artifactFactory, List dependencies, - String inheritedScope, ArtifactFilter dependencyFilter, - MavenProject project ) - throws InvalidDependencyVersionException - { - Set artifacts = new LinkedHashSet(); - - for ( Dependency d : dependencies ) - { - Artifact dependencyArtifact; - try - { - dependencyArtifact = createDependencyArtifact( artifactFactory, d, inheritedScope, dependencyFilter ); - } - catch ( InvalidVersionSpecificationException e ) - { - throw new InvalidDependencyVersionException( project.getId(), d, project.getFile(), e ); - } - - if ( dependencyArtifact != null ) - { - artifacts.add( dependencyArtifact ); - } - } - - return artifacts; - } - - private ProjectBuilder getProjectBuilder() - { - if ( projectBuilder != null ) - { - return projectBuilder; - } - - try - { - projectBuilder = container.lookup( ProjectBuilder.class ); - } - catch ( ComponentLookupException e ) - { - // Won't happen - } - - return projectBuilder; - } - - private ProjectRelocation retrieveRelocatedProject( Artifact artifact, MetadataResolutionRequest repositoryRequest ) - throws ArtifactMetadataRetrievalException - { - MavenProject project; - - Artifact pomArtifact; - Artifact relocatedArtifact = null; - boolean done = false; - do - { - project = null; - - pomArtifact = - repositorySystem.createProjectArtifact( artifact.getGroupId(), - artifact.getArtifactId(), - artifact.getVersion(), artifact.getScope() ); - - if ( "pom".equals( artifact.getType() ) ) - { - pomArtifact.setFile( artifact.getFile() ); - } - - if ( Artifact.SCOPE_SYSTEM.equals( artifact.getScope() ) ) - { - done = true; - } - else - { - try - { - ProjectBuildingRequest configuration = new DefaultProjectBuildingRequest(); - configuration.setLocalRepository( repositoryRequest.getLocalRepository() ); - configuration.setRemoteRepositories( repositoryRequest.getRemoteRepositories() ); - configuration.setValidationLevel( ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL ); - configuration.setProcessPlugins( false ); - configuration.setRepositoryMerging( ProjectBuildingRequest.RepositoryMerging.REQUEST_DOMINANT ); - configuration.setSystemProperties( getSystemProperties() ); - configuration.setRepositorySession( legacySupport.getRepositorySession() ); - - project = getProjectBuilder().build( pomArtifact, configuration ).getProject(); - } - catch ( ProjectBuildingException e ) - { - ModelProblem missingParentPom = hasMissingParentPom( e ); - if ( missingParentPom != null ) - { - throw new ArtifactMetadataRetrievalException( "Failed to process POM for " - + artifact.getId() + ": " + missingParentPom.getMessage(), - missingParentPom.getException(), - artifact ); - } - - String message; - - if ( isMissingPom( e ) ) - { - message = "Missing POM for " + artifact.getId(); - } - else if ( isNonTransferrablePom( e ) ) - { - throw new ArtifactMetadataRetrievalException( "Failed to retrieve POM for " - + artifact.getId() + ": " + e.getCause().getMessage(), e.getCause(), - artifact ); - } - else - { - message = - "Invalid POM for " + artifact.getId() - + ", transitive dependencies (if any) will not be available" - + ", enable debug logging for more details"; - } - - if ( logger.isDebugEnabled() ) - { - message += ": " + e.getMessage(); - } - - logger.warn( message ); - } - - if ( project != null ) - { - Relocation relocation = null; - - DistributionManagement distMgmt = project.getDistributionManagement(); - if ( distMgmt != null ) - { - relocation = distMgmt.getRelocation(); - - artifact.setDownloadUrl( distMgmt.getDownloadUrl() ); - pomArtifact.setDownloadUrl( distMgmt.getDownloadUrl() ); - } - - if ( relocation != null ) - { - if ( relocation.getGroupId() != null ) - { - artifact.setGroupId( relocation.getGroupId() ); - relocatedArtifact = artifact; - project.setGroupId( relocation.getGroupId() ); - } - if ( relocation.getArtifactId() != null ) - { - artifact.setArtifactId( relocation.getArtifactId() ); - relocatedArtifact = artifact; - project.setArtifactId( relocation.getArtifactId() ); - } - if ( relocation.getVersion() != null ) - { - // note: see MNG-3454. This causes a problem, but fixing it may break more. - artifact.setVersionRange( VersionRange.createFromVersion( relocation.getVersion() ) ); - relocatedArtifact = artifact; - project.setVersion( relocation.getVersion() ); - } - - if ( artifact.getDependencyFilter() != null - && !artifact.getDependencyFilter().include( artifact ) ) - { - return null; - } - - // MNG-2861: the artifact data has changed. If the available versions where previously - // retrieved, we need to update it. - // TODO: shouldn't the versions be merged across relocations? - List available = artifact.getAvailableVersions(); - if ( available != null && !available.isEmpty() ) - { - MetadataResolutionRequest metadataRequest = - new DefaultMetadataResolutionRequest( repositoryRequest ); - metadataRequest.setArtifact( artifact ); - available = retrieveAvailableVersions( metadataRequest ); - artifact.setAvailableVersions( available ); - } - - String message = - "\n This artifact has been relocated to " + artifact.getGroupId() + ":" - + artifact.getArtifactId() + ":" + artifact.getVersion() + ".\n"; - - if ( relocation.getMessage() != null ) - { - message += " " + relocation.getMessage() + "\n"; - } - - if ( artifact.getDependencyTrail() != null && artifact.getDependencyTrail().size() == 1 ) - { - logger.warn( "While downloading " + pomArtifact.getGroupId() + ":" - + pomArtifact.getArtifactId() + ":" + pomArtifact.getVersion() + message + "\n" ); - } - else - { - logger.debug( "While downloading " + pomArtifact.getGroupId() + ":" - + pomArtifact.getArtifactId() + ":" + pomArtifact.getVersion() + message + "\n" ); - } - } - else - { - done = true; - } - } - else - { - done = true; - } - } - } - while ( !done ); - - ProjectRelocation rel = new ProjectRelocation(); - rel.project = project; - rel.pomArtifact = pomArtifact; - rel.relocatedArtifact = relocatedArtifact; - - return rel; - } - - private ModelProblem hasMissingParentPom( ProjectBuildingException e ) - { - if ( e.getCause() instanceof ModelBuildingException ) - { - ModelBuildingException mbe = (ModelBuildingException) e.getCause(); - for ( ModelProblem problem : mbe.getProblems() ) - { - if ( problem.getException() instanceof UnresolvableModelException ) - { - return problem; - } - } - - } - return null; - } - - private boolean isMissingPom( Exception e ) - { - if ( e.getCause() instanceof MultipleArtifactsNotFoundException ) - { - return true; - } - return e.getCause() instanceof org.eclipse.aether.resolution.ArtifactResolutionException - && e.getCause().getCause() instanceof ArtifactNotFoundException; - } - - private boolean isNonTransferrablePom( Exception e ) - { - if ( e.getCause() instanceof ArtifactResolutionException ) - { - return true; - } - return e.getCause() instanceof org.eclipse.aether.resolution.ArtifactResolutionException - && !( e.getCause().getCause() instanceof ArtifactNotFoundException ); - } - - private Properties getSystemProperties() - { - Properties props = new Properties(); - - EnvironmentUtils.addEnvVars( props ); - - SystemProperties.addSystemProperties( props ); - - return props; - } - - private static final class ProjectRelocation - { - private MavenProject project; - - private Artifact pomArtifact; - - private Artifact relocatedArtifact; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/PluginArtifact.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/PluginArtifact.java deleted file mode 100644 index d348d59c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/PluginArtifact.java +++ /dev/null @@ -1,94 +0,0 @@ -package org.apache.maven.project.artifact; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collections; -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.DefaultArtifact; -import org.apache.maven.artifact.handler.ArtifactHandler; -import org.apache.maven.model.Dependency; -import org.apache.maven.model.Plugin; - -public class PluginArtifact - extends DefaultArtifact - implements ArtifactWithDependencies -{ - private Plugin plugin; - - public PluginArtifact( Plugin plugin, Artifact pluginArtifact ) - { - super( plugin.getGroupId(), plugin.getArtifactId(), plugin.getVersion(), null, "maven-plugin", null, - new PluginArtifactHandler() ); - this.plugin = plugin; - setFile( pluginArtifact.getFile() ); - setResolved( true ); - } - - public List getDependencies() - { - return plugin.getDependencies(); - } - - public List getManagedDependencies() - { - return Collections.emptyList(); - } - - static class PluginArtifactHandler - implements ArtifactHandler - { - public String getClassifier() - { - return null; - } - - public String getDirectory() - { - return null; - } - - public String getExtension() - { - return "jar"; - } - - public String getLanguage() - { - return "none"; - } - - public String getPackaging() - { - return "maven-plugin"; - } - - public boolean isAddedToClasspath() - { - return true; - } - - public boolean isIncludesDependencies() - { - return false; - } - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/ProjectArtifact.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/ProjectArtifact.java deleted file mode 100644 index 1d4a2a31..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/ProjectArtifact.java +++ /dev/null @@ -1,100 +0,0 @@ -package org.apache.maven.project.artifact; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collections; -import java.util.List; - -import org.apache.maven.artifact.DefaultArtifact; -import org.apache.maven.artifact.handler.ArtifactHandler; -import org.apache.maven.model.Dependency; -import org.apache.maven.model.DependencyManagement; -import org.apache.maven.project.MavenProject; - -public class ProjectArtifact - extends DefaultArtifact - implements ArtifactWithDependencies -{ - private MavenProject project; - - public ProjectArtifact( MavenProject project ) - { - super( project.getGroupId(), project.getArtifactId(), project.getVersion(), null, "pom", null, - new PomArtifactHandler() ); - this.project = project; - setFile( project.getFile() ); - setResolved( true ); - } - - public MavenProject getProject() - { - return project; - } - - public List getDependencies() - { - return project.getDependencies(); - } - - public List getManagedDependencies() - { - DependencyManagement depMngt = project.getDependencyManagement(); - return ( depMngt != null ) ? depMngt.getDependencies() : Collections.emptyList(); - } - - static class PomArtifactHandler - implements ArtifactHandler - { - public String getClassifier() - { - return null; - } - - public String getDirectory() - { - return null; - } - - public String getExtension() - { - return "pom"; - } - - public String getLanguage() - { - return "none"; - } - - public String getPackaging() - { - return "pom"; - } - - public boolean isAddedToClasspath() - { - return false; - } - - public boolean isIncludesDependencies() - { - return false; - } - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/ProjectArtifactMetadata.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/ProjectArtifactMetadata.java deleted file mode 100644 index 7ea99bf0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/artifact/ProjectArtifactMetadata.java +++ /dev/null @@ -1,130 +0,0 @@ -package org.apache.maven.project.artifact; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.IOException; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.metadata.AbstractArtifactMetadata; -import org.apache.maven.artifact.metadata.ArtifactMetadata; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.metadata.RepositoryMetadataStoreException; -import org.codehaus.plexus.util.FileUtils; - -/** - * Attach a POM to an artifact. - * - * @author Brett Porter - */ -public class ProjectArtifactMetadata - extends AbstractArtifactMetadata -{ - private final File file; - - public ProjectArtifactMetadata( Artifact artifact ) - { - this( artifact, null ); - } - - public ProjectArtifactMetadata( Artifact artifact, File file ) - { - super( artifact ); - this.file = file; - } - - public File getFile() - { - return file; - } - - public String getRemoteFilename() - { - return getFilename(); - } - - public String getLocalFilename( ArtifactRepository repository ) - { - return getFilename(); - } - - private String getFilename() - { - return getArtifactId() + "-" + artifact.getVersion() + ".pom"; - } - - public void storeInLocalRepository( ArtifactRepository localRepository, ArtifactRepository remoteRepository ) - throws RepositoryMetadataStoreException - { - File destination = - new File( localRepository.getBasedir(), localRepository.pathOfLocalRepositoryMetadata( this, - remoteRepository ) ); - - // ---------------------------------------------------------------------------- - // I'm fully aware that the file could just be moved using File.rename but - // there are bugs in various JVM that have problems doing this across - // different filesystem. So we'll incur the small hit to actually copy - // here and be safe. jvz. - // ---------------------------------------------------------------------------- - - try - { - FileUtils.copyFile( file, destination ); - } - catch ( IOException e ) - { - throw new RepositoryMetadataStoreException( "Error copying POM to the local repository.", e ); - } - } - - public String toString() - { - return "project information for " + artifact.getArtifactId() + " " + artifact.getVersion(); - } - - public boolean storedInArtifactVersionDirectory() - { - return true; - } - - public String getBaseVersion() - { - return artifact.getBaseVersion(); - } - - public Object getKey() - { - return "project " + artifact.getGroupId() + ":" + artifact.getArtifactId(); - } - - public void merge( ArtifactMetadata metadata ) - { - ProjectArtifactMetadata m = (ProjectArtifactMetadata) metadata; - if ( !m.file.equals( file ) ) - { - throw new IllegalStateException( "Cannot add two different pieces of metadata for: " + getKey() ); - } - } - - public void merge( org.apache.maven.repository.legacy.metadata.ArtifactMetadata metadata ) - { - this.merge( (ArtifactMetadata) metadata ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/path/PathTranslator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/path/PathTranslator.java deleted file mode 100644 index 18e349ac..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/project/path/PathTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.apache.maven.project.path; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; - -import org.apache.maven.model.Model; - -/** - * @author Jason van Zyl - */ -@Deprecated -public interface PathTranslator -{ - String ROLE = PathTranslator.class.getName(); - - void alignToBaseDirectory( Model model, File basedir ); - - String alignToBaseDirectory( String path, File basedir ); - - void unalignFromBaseDirectory( Model model, File basedir ); - - String unalignFromBaseDirectory( String directory, File basedir ); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/properties/internal/EnvironmentUtils.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/properties/internal/EnvironmentUtils.java deleted file mode 100644 index 2c3196fb..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/properties/internal/EnvironmentUtils.java +++ /dev/null @@ -1,70 +0,0 @@ -package org.apache.maven.properties.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Locale; -import java.util.Map; -import java.util.Properties; - -import org.codehaus.plexus.util.Os; - -/** - * Assists the project builder. Warning: This is an internal utility class that is only public for - * technical reasons, it is not part of the public API. In particular, this class can be changed or deleted without - * prior notice. - * - * @since 3.0 - * @author Benjamin Bentmann - */ -public class EnvironmentUtils -{ - - private static Properties envVars; - - /** - * Adds the environment variables in the form of properties whose keys are prefixed with {@code env.}, e.g. {@code - * env.PATH}. Unlike native environment variables, properties are always case-sensitive. For the sake of - * determinism, the environment variable names will be normalized to upper case on platforms with case-insensitive - * variable lookup. - * - * @param props The properties to add the environment variables to, may be {@code null}. - */ - public static void addEnvVars( Properties props ) - { - if ( props != null ) - { - if ( envVars == null ) - { - Properties tmp = new Properties(); - boolean caseSensitive = !Os.isFamily( Os.FAMILY_WINDOWS ); - for ( Map.Entry entry : System.getenv().entrySet() ) - { - String key = - "env." + ( caseSensitive ? entry.getKey() : entry.getKey().toUpperCase( Locale.ENGLISH ) ); - tmp.setProperty( key, entry.getValue() ); - } - envVars = tmp; - } - - props.putAll( envVars ); - } - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/properties/internal/SystemProperties.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/properties/internal/SystemProperties.java deleted file mode 100644 index 608df2dc..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/properties/internal/SystemProperties.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.apache.maven.properties.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Properties; - -/** - * @since 3.2.3 - */ -public class SystemProperties -{ - /** - * Thread-safe System.properties copy implementation. - * - * @see http://jira.codehaus.org/browse/MNG-5670 - */ - public static void addSystemProperties( Properties props ) - { - for ( String key : System.getProperties().stringPropertyNames() ) - { - props.put( key, System.getProperty( key ) ); - } - } - - /** - * Returns System.properties copy. - */ - public static Properties getSystemProperties() - { - Properties systemProperties = new Properties(); - addSystemProperties( systemProperties ); - return systemProperties; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactDoesNotExistException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactDoesNotExistException.java deleted file mode 100644 index 296f4ea5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactDoesNotExistException.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.apache.maven.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -public class ArtifactDoesNotExistException - extends Exception -{ - public ArtifactDoesNotExistException( final String message ) - { - super( message ); - } - - public ArtifactDoesNotExistException( final String message, final Throwable cause ) - { - super( message, cause ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactTransferEvent.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactTransferEvent.java deleted file mode 100644 index 80189e7b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactTransferEvent.java +++ /dev/null @@ -1,343 +0,0 @@ -package org.apache.maven.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - - -import java.io.File; -import java.util.EventObject; - -/** - * TransferEvent is used to notify TransferListeners about progress - * in transfer of resources form/to the repository - * - * @author Michal Maczka - */ -public class ArtifactTransferEvent - extends EventObject -{ - /** - * A transfer was attempted, but has not yet commenced. - */ - public static final int TRANSFER_INITIATED = 0; - - /** - * A transfer was started. - */ - public static final int TRANSFER_STARTED = 1; - - /** - * A transfer is completed. - */ - public static final int TRANSFER_COMPLETED = 2; - - /** - * A transfer is in progress. - */ - public static final int TRANSFER_PROGRESS = 3; - - /** - * An error occurred during transfer - */ - public static final int TRANSFER_ERROR = 4; - - /** - * Indicates GET transfer (from the repository) - */ - public static final int REQUEST_GET = 5; - - /** - * Indicates PUT transfer (to the repository) - */ - public static final int REQUEST_PUT = 6; - - private int eventType; - - private int requestType; - - private Exception exception; - - private File localFile; - - private ArtifactTransferResource artifact; - - private long transferredBytes; - - private byte[] dataBuffer; - - private int dataOffset; - - private int dataLength; - - public ArtifactTransferEvent( String wagon, final int eventType, final int requestType, - ArtifactTransferResource artifact ) - { - super( wagon ); - - setEventType( eventType ); - - setRequestType( requestType ); - - this.artifact = artifact; - } - - public ArtifactTransferEvent( String wagon, final Exception exception, final int requestType, - ArtifactTransferResource artifact ) - { - this( wagon, TRANSFER_ERROR, requestType, artifact ); - - this.exception = exception; - } - - public ArtifactTransferResource getResource() - { - return artifact; - } - - /** - * @return Returns the exception. - */ - public Exception getException() - { - return exception; - } - - /** - * Returns the request type. - * - * @return Returns the request type. The Request type is one of - * TransferEvent.REQUEST_GET or TransferEvent.REQUEST_PUT - */ - public int getRequestType() - { - return requestType; - } - - /** - * Sets the request type - * - * @param requestType The requestType to set. - * The Request type value should be either - * TransferEvent.REQUEST_GET or TransferEvent.REQUEST_PUT. - * @throws IllegalArgumentException when - */ - public void setRequestType( final int requestType ) - { - switch ( requestType ) - { - - case REQUEST_PUT: - break; - case REQUEST_GET: - break; - - default : - throw new IllegalArgumentException( "Illegal request type: " + requestType ); - } - - this.requestType = requestType; - } - - /** - * @return Returns the eventType. - */ - public int getEventType() - { - return eventType; - } - - /** - * @param eventType The eventType to set. - */ - public void setEventType( final int eventType ) - { - switch ( eventType ) - { - - case TRANSFER_INITIATED: - break; - case TRANSFER_STARTED: - break; - case TRANSFER_COMPLETED: - break; - case TRANSFER_PROGRESS: - break; - case TRANSFER_ERROR: - break; - default : - throw new IllegalArgumentException( "Illegal event type: " + eventType ); - } - - this.eventType = eventType; - } - - /** - * @return Returns the local file. - */ - public File getLocalFile() - { - return localFile; - } - - /** - * @param localFile The local file to set. - */ - public void setLocalFile( File localFile ) - { - this.localFile = localFile; - } - - public long getTransferredBytes() - { - return transferredBytes; - } - - public void setTransferredBytes( long transferredBytes ) - { - this.transferredBytes = transferredBytes; - } - - public byte[] getDataBuffer() - { - return dataBuffer; - } - - public void setDataBuffer( byte[] dataBuffer ) - { - this.dataBuffer = dataBuffer; - } - - public int getDataOffset() - { - return dataOffset; - } - - public void setDataOffset( int dataOffset ) - { - this.dataOffset = dataOffset; - } - - public int getDataLength() - { - return dataLength; - } - - public void setDataLength( int dataLength ) - { - this.dataLength = dataLength; - } - - public String toString() - { - StringBuilder sb = new StringBuilder(); - - sb.append( "TransferEvent[" ); - - switch ( this.getRequestType() ) - { - case REQUEST_GET: - sb.append( "GET" ); - break; - case REQUEST_PUT: - sb.append( "PUT" ); - break; - default: - sb.append( this.getRequestType() ); - break; - } - - sb.append( "|" ); - switch ( this.getEventType() ) - { - case TRANSFER_COMPLETED: - sb.append( "COMPLETED" ); - break; - case TRANSFER_ERROR: - sb.append( "ERROR" ); - break; - case TRANSFER_INITIATED: - sb.append( "INITIATED" ); - break; - case TRANSFER_PROGRESS: - sb.append( "PROGRESS" ); - break; - case TRANSFER_STARTED: - sb.append( "STARTED" ); - break; - default: - sb.append( this.getEventType() ); - break; - } - - sb.append( "|" ); - sb.append( this.getLocalFile() ).append( "|" ); - sb.append( "]" ); - - return sb.toString(); - } - - public int hashCode() - { - final int prime = 31; - int result = 1; - result = prime * result + eventType; - result = prime * result + ( ( exception == null ) ? 0 : exception.hashCode() ); - result = prime * result + ( ( localFile == null ) ? 0 : localFile.hashCode() ); - result = prime * result + requestType; - return result; - } - - public boolean equals( Object obj ) - { - if ( this == obj ) - { - return true; - } - if ( ( obj == null ) || ( getClass() != obj.getClass() ) ) - { - return false; - } - final ArtifactTransferEvent other = (ArtifactTransferEvent) obj; - if ( eventType != other.eventType ) - { - return false; - } - if ( exception == null ) - { - if ( other.exception != null ) - { - return false; - } - } - else if ( !exception.getClass().equals( other.exception.getClass() ) ) - { - return false; - } - if ( requestType != other.requestType ) - { - return false; - } - else if ( !source.equals( other.source ) ) - { - return false; - } - return true; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactTransferFailedException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactTransferFailedException.java deleted file mode 100644 index 9315f4c7..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactTransferFailedException.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.apache.maven.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -public class ArtifactTransferFailedException - extends Exception -{ - public ArtifactTransferFailedException( final String message ) - { - super( message ); - } - - public ArtifactTransferFailedException( final String message, final Throwable cause ) - { - super( message, cause ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactTransferListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactTransferListener.java deleted file mode 100644 index 72a56cf0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactTransferListener.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.apache.maven.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -public interface ArtifactTransferListener -{ - boolean isShowChecksumEvents(); - - void setShowChecksumEvents( boolean showChecksumEvents ); - - void transferInitiated( ArtifactTransferEvent transferEvent ); - - void transferStarted( ArtifactTransferEvent transferEvent ); - - void transferProgress( ArtifactTransferEvent transferEvent ); - - void transferCompleted( ArtifactTransferEvent transferEvent ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactTransferResource.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactTransferResource.java deleted file mode 100644 index 8ed081ff..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/ArtifactTransferResource.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.apache.maven.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Describes a resource being uploaded or downloaded by the repository system. - * - * @author Benjamin Bentmann - */ -public interface ArtifactTransferResource -{ - - /** - * The base URL of the repository, e.g. "http://repo1.maven.org/maven2/". Unless the URL is unknown, it will be - * terminated by a trailing slash. - * - * @return The base URL of the repository or an empty string if unknown, never {@code null}. - */ - String getRepositoryUrl(); - - /** - * The path of the artifact relative to the repository's base URL. - * - * @return The path of the artifact, never {@code null}. - */ - String getName(); - - /** - * Gets the full URL of the artifact. - * - * @return The full URL of the artifact, never {@code null}. - */ - String getUrl(); - - /** - * The size of the artifact in bytes. - * - * @return The of the artifact in bytes or a negative value if unknown. - */ - long getContentLength(); - - /** - * Gets the timestamp when the transfer of this artifact was started. - * - * @return The timestamp when the transfer of this artifact was started. - */ - long getTransferStartTime(); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/DelegatingLocalArtifactRepository.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/DelegatingLocalArtifactRepository.java deleted file mode 100644 index f47cb4b1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/DelegatingLocalArtifactRepository.java +++ /dev/null @@ -1,195 +0,0 @@ -package org.apache.maven.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.LinkedHashSet; -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.metadata.ArtifactMetadata; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy; -import org.apache.maven.artifact.repository.MavenArtifactRepository; -import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout; - -/** - * Delegating local artifact repository chains the reactor, IDE workspace - * and user local repository. - */ -@Deprecated -public class DelegatingLocalArtifactRepository - extends MavenArtifactRepository -{ - private LocalArtifactRepository buildReactor; - - private LocalArtifactRepository ideWorkspace; - - private ArtifactRepository userLocalArtifactRepository; - - public DelegatingLocalArtifactRepository( ArtifactRepository artifactRepository ) - { - this.userLocalArtifactRepository = artifactRepository; - } - - public void setBuildReactor( LocalArtifactRepository localRepository ) - { - this.buildReactor = localRepository; - } - - public void setIdeWorkspace( LocalArtifactRepository localRepository ) - { - this.ideWorkspace = localRepository; - } - - public LocalArtifactRepository getIdeWorspace() - { - return ideWorkspace; - } - - @Override - public Artifact find( Artifact artifact ) - { - if ( !artifact.isRelease() && buildReactor != null ) - { - artifact = buildReactor.find( artifact ); - } - - if ( !artifact.isResolved() && ideWorkspace != null ) - { - artifact = ideWorkspace.find( artifact ); - } - - if ( !artifact.isResolved() ) - { - artifact = userLocalArtifactRepository.find( artifact ); - } - - return artifact; - } - - @Override - public List findVersions( Artifact artifact ) - { - Collection versions = new LinkedHashSet(); - - if ( buildReactor != null ) - { - versions.addAll( buildReactor.findVersions( artifact ) ); - } - - if ( ideWorkspace != null ) - { - versions.addAll( ideWorkspace.findVersions( artifact ) ); - } - - versions.addAll( userLocalArtifactRepository.findVersions( artifact ) ); - - return Collections.unmodifiableList( new ArrayList( versions ) ); - } - - public String pathOfLocalRepositoryMetadata( ArtifactMetadata metadata, ArtifactRepository repository ) - { - return userLocalArtifactRepository.pathOfLocalRepositoryMetadata( metadata, repository ); - } - - public String getId() - { - return userLocalArtifactRepository.getId(); - } - - @Override - public String pathOf( Artifact artifact ) - { - return userLocalArtifactRepository.pathOf( artifact ); - } - - @Override - public String getBasedir() - { - return ( userLocalArtifactRepository != null ) ? userLocalArtifactRepository.getBasedir() : null; - } - - @Override - public ArtifactRepositoryLayout getLayout() - { - return userLocalArtifactRepository.getLayout(); - } - - @Override - public ArtifactRepositoryPolicy getReleases() - { - return userLocalArtifactRepository.getReleases(); - } - - @Override - public ArtifactRepositoryPolicy getSnapshots() - { - return userLocalArtifactRepository.getSnapshots(); - } - - @Override - public String getKey() - { - return userLocalArtifactRepository.getKey(); - } - - @Override - public String getUrl() - { - return userLocalArtifactRepository.getUrl(); - } - - @Override - public int hashCode() - { - int hash = 17; - hash = hash * 31 + ( buildReactor == null ? 0 : buildReactor.hashCode() ); - hash = hash * 31 + ( ideWorkspace == null ? 0 : ideWorkspace.hashCode() ); - hash = hash * 31 + ( userLocalArtifactRepository == null ? 0 : userLocalArtifactRepository.hashCode() ); - - return hash; - } - - @Override - public boolean equals( Object obj ) - { - if ( this == obj ) - { - return true; - } - if ( obj == null ) - { - return false; - } - if ( getClass() != obj.getClass() ) - { - return false; - } - - DelegatingLocalArtifactRepository other = (DelegatingLocalArtifactRepository) obj; - - return eq( buildReactor, other.buildReactor ) - && eq( ideWorkspace, other.ideWorkspace ) - && eq( userLocalArtifactRepository, other.userLocalArtifactRepository ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/LocalArtifactRepository.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/LocalArtifactRepository.java deleted file mode 100644 index e33789e3..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/LocalArtifactRepository.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.apache.maven.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.repository.MavenArtifactRepository; - -public abstract class LocalArtifactRepository - extends MavenArtifactRepository -{ - public static final String IDE_WORKSPACE = "ide-workspace"; - - public abstract Artifact find( Artifact artifact ); - - public abstract boolean hasLocalMetadata(); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/LocalRepositoryNotAccessibleException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/LocalRepositoryNotAccessibleException.java deleted file mode 100644 index 54e4ef4b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/LocalRepositoryNotAccessibleException.java +++ /dev/null @@ -1,44 +0,0 @@ -package org.apache.maven.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.IOException; - -/** - * Signals a failure to store files within the local repository. - * - * @author Benjamin Bentmann - */ -public class LocalRepositoryNotAccessibleException - extends IOException -{ - - public LocalRepositoryNotAccessibleException( String message, Throwable cause ) - { - super( message ); - initCause( cause ); - } - - public LocalRepositoryNotAccessibleException( String message ) - { - super( message ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/RepositorySystem.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/RepositorySystem.java deleted file mode 100644 index fcc0f777..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/RepositorySystem.java +++ /dev/null @@ -1,164 +0,0 @@ -package org.apache.maven.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.InvalidRepositoryException; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy; -import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout; -import org.apache.maven.artifact.resolver.ArtifactResolutionRequest; -import org.apache.maven.artifact.resolver.ArtifactResolutionResult; -import org.apache.maven.model.Dependency; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.Repository; -import org.apache.maven.settings.Mirror; -import org.apache.maven.settings.Server; -import org.eclipse.aether.RepositorySystemSession; - -/** - * @author Jason van Zyl - * @since 3.0-alpha - */ -public interface RepositorySystem -{ - String DEFAULT_LOCAL_REPO_ID = "local"; - - String userHome = System.getProperty( "user.home" ); - - File userMavenConfigurationHome = new File( userHome, ".m2" ); - - File defaultUserLocalRepository = new File( userMavenConfigurationHome, "repository" ); - - String DEFAULT_REMOTE_REPO_ID = "central"; - - String DEFAULT_REMOTE_REPO_URL = "https://repo.maven.apache.org/maven2"; - - Artifact createArtifact( String groupId, String artifactId, String version, String packaging ); - - Artifact createArtifact( String groupId, String artifactId, String version, String scope, String type ); - - Artifact createProjectArtifact( String groupId, String artifactId, String version ); - - Artifact createArtifactWithClassifier( String groupId, String artifactId, String version, String type, - String classifier ); - - Artifact createPluginArtifact( Plugin plugin ); - - Artifact createDependencyArtifact( Dependency dependency ); - - ArtifactRepository buildArtifactRepository( Repository repository ) - throws InvalidRepositoryException; - - ArtifactRepository createDefaultRemoteRepository() - throws InvalidRepositoryException; - - ArtifactRepository createDefaultLocalRepository() - throws InvalidRepositoryException; - - ArtifactRepository createLocalRepository( File localRepository ) - throws InvalidRepositoryException; - - ArtifactRepository createArtifactRepository( String id, String url, ArtifactRepositoryLayout repositoryLayout, - ArtifactRepositoryPolicy snapshots, - ArtifactRepositoryPolicy releases ); - - /** - * Calculates the effective repositories for the given input repositories which are assumed to be already mirrored - * (if applicable). This process will essentially remove duplicate repositories by merging them into one equivalent - * repository. It is worth to point out that merging does not simply choose one of the input repositories and - * discards the others but actually combines their possibly different policies. - * - * @param repositories The original repositories, may be {@code null}. - * @return The effective repositories or {@code null} if the input was {@code null}. - */ - List getEffectiveRepositories( List repositories ); - - /** - * Determines the mirror for the specified repository. - * - * @param repository The repository to determine the mirror for, must not be {@code null}. - * @param mirrors The available mirrors, may be {@code null}. - * @return The mirror specification for the repository or {@code null} if no mirror matched. - */ - Mirror getMirror( ArtifactRepository repository, List mirrors ); - - /** - * Injects the mirroring information into the specified repositories. For each repository that is matched by a - * mirror, its URL and ID will be updated to match the values from the mirror specification. Repositories without a - * matching mirror will pass through unchanged. Note: This method must be called before - * {@link #injectAuthentication(List, List)} or the repositories will end up with the wrong credentials. - * - * @param repositories The repositories into which to inject the mirror information, may be {@code null}. - * @param mirrors The available mirrors, may be {@code null}. - */ - void injectMirror( List repositories, List mirrors ); - - /** - * Injects the proxy information into the specified repositories. For each repository that is matched by a proxy, - * its proxy data will be set accordingly. Repositories without a matching proxy will have their proxy cleared. - * Note: This method must be called after {@link #injectMirror(List, List)} or the repositories will end up - * with the wrong proxies. - * - * @param repositories The repositories into which to inject the proxy information, may be {@code null}. - * @param proxies The available proxies, may be {@code null}. - */ - void injectProxy( List repositories, List proxies ); - - /** - * Injects the authentication information into the specified repositories. For each repository that is matched by a - * server, its credentials will be updated to match the values from the server specification. Repositories without a - * matching server will have their credentials cleared. Note: This method must be called after - * {@link #injectMirror(List, List)} or the repositories will end up with the wrong credentials. - * - * @param repositories The repositories into which to inject the authentication information, may be {@code null}. - * @param servers The available servers, may be {@code null}. - */ - void injectAuthentication( List repositories, List servers ); - - void injectMirror( RepositorySystemSession session, List repositories ); - - void injectProxy( RepositorySystemSession session, List repositories ); - - void injectAuthentication( RepositorySystemSession session, List repositories ); - - ArtifactResolutionResult resolve( ArtifactResolutionRequest request ); - - // Install - - // Deploy - - // Map types of artifacts - - // - // Raw file transfers - // - void publish( ArtifactRepository repository, File source, String remotePath, - ArtifactTransferListener transferListener ) - throws ArtifactTransferFailedException; - - void retrieve( ArtifactRepository repository, File destination, String remotePath, - ArtifactTransferListener transferListener ) - throws ArtifactTransferFailedException, ArtifactDoesNotExistException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/AbstractArtifactMetadata.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/AbstractArtifactMetadata.java deleted file mode 100644 index 352e5bbb..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/AbstractArtifactMetadata.java +++ /dev/null @@ -1,65 +0,0 @@ -package org.apache.maven.repository.legacy.metadata; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.Artifact; - -/** - * Common elements of artifact metadata. - * - * @author Brett Porter - */ -public abstract class AbstractArtifactMetadata - implements ArtifactMetadata -{ - protected Artifact artifact; - - protected AbstractArtifactMetadata( Artifact artifact ) - { - this.artifact = artifact; - } - - public boolean storedInGroupDirectory() - { - return false; - } - - public String getGroupId() - { - return artifact.getGroupId(); - } - - public String getArtifactId() - { - return artifact.getArtifactId(); - } - - public String extendedToString() - { - StringBuilder buffer = new StringBuilder(); - - buffer.append( "\nArtifact Metadata\n--------------------------" ); - buffer.append( "\nGroupId: " ).append( getGroupId() ); - buffer.append( "\nArtifactId: " ).append( getArtifactId() ); - buffer.append( "\nMetadata Type: " ).append( getClass().getName() ); - - return buffer.toString(); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/ArtifactMetadataRetrievalException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/ArtifactMetadataRetrievalException.java deleted file mode 100644 index 67b4080b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/ArtifactMetadataRetrievalException.java +++ /dev/null @@ -1,68 +0,0 @@ -package org.apache.maven.repository.legacy.metadata; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.Artifact; - -/** - * Error while retrieving repository metadata from the repository. - * - * @author Jason van Zyl - */ -public class ArtifactMetadataRetrievalException - extends Exception -{ - private Artifact artifact; - - /** @deprecated use {@link #ArtifactMetadataRetrievalException(String, Throwable, Artifact)} */ - @Deprecated - public ArtifactMetadataRetrievalException( String message ) - { - this( message, null, null ); - } - - /** @deprecated use {@link #ArtifactMetadataRetrievalException(String, Throwable, Artifact)} */ - @Deprecated - public ArtifactMetadataRetrievalException( Throwable cause ) - { - this( null, cause, null ); - } - - /** @deprecated use {@link #ArtifactMetadataRetrievalException(String, Throwable, Artifact)} */ - @Deprecated - public ArtifactMetadataRetrievalException( String message, - Throwable cause ) - { - this( message, cause, null ); - } - - public ArtifactMetadataRetrievalException( String message, - Throwable cause, - Artifact artifact ) - { - super( message, cause ); - this.artifact = artifact; - } - - public Artifact getArtifact() - { - return artifact; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/ArtifactMetadataSource.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/ArtifactMetadataSource.java deleted file mode 100644 index aaa0ee34..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/ArtifactMetadataSource.java +++ /dev/null @@ -1,78 +0,0 @@ -package org.apache.maven.repository.legacy.metadata; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.versioning.ArtifactVersion; - -/** - * Provides some metadata operations, like querying the remote repository for a list of versions available for an - * artifact. - * - * @author Jason van Zyl - */ -public interface ArtifactMetadataSource -{ - - ResolutionGroup retrieve( MetadataResolutionRequest request ) - throws ArtifactMetadataRetrievalException; - - ResolutionGroup retrieve( Artifact artifact, ArtifactRepository localRepository, - List remoteRepositories ) - throws ArtifactMetadataRetrievalException; - - /** - * Get a list of available versions for an artifact in the remote repository - * - * @param artifact artifact we are interested in. Only groupid and artifactId - * are needed, for instance the following code will work - * artifactFactory.createProjectArtifact( "org.apache.maven", "maven", "" ) - * @param localRepository local repository - * @param remoteRepositories remote repositories, {@link List} $lt; {@link ArtifactRepository} > - * @return {@link List} $lt; {@link ArtifactVersion} > - * @throws ArtifactMetadataRetrievalException - * in case of error while retrieving repository metadata from the repository. - */ - List retrieveAvailableVersions( Artifact artifact, ArtifactRepository localRepository, - List remoteRepositories ) - throws ArtifactMetadataRetrievalException; - - /** - * Get a list of available versions for an artifact in the remote deployment repository. This ignores any update - * policy checks and mirrors and always retrieves the latest information from the given repository. - * - * @param artifact artifact we are interested in. Only groupid and artifactId are - * needed, for instance the following code will work - * artifactFactory.createProjectArtifact( "org.apache.maven", "maven", "" ) - * @param localRepository local repository - * @param remoteRepository remote repository - * @return {@link List} $lt; {@link ArtifactVersion} > - * @throws ArtifactMetadataRetrievalException - * in case of error while retrieving repository metadata from the repository. - */ - List retrieveAvailableVersionsFromDeploymentRepository( Artifact artifact, - ArtifactRepository localRepository, - ArtifactRepository remoteRepository ) - throws ArtifactMetadataRetrievalException; - -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/DefaultMetadataResolutionRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/DefaultMetadataResolutionRequest.java deleted file mode 100644 index 93b9d5da..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/DefaultMetadataResolutionRequest.java +++ /dev/null @@ -1,132 +0,0 @@ -package org.apache.maven.repository.legacy.metadata; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.DefaultRepositoryRequest; -import org.apache.maven.artifact.repository.RepositoryRequest; -import org.apache.maven.artifact.resolver.ArtifactResolutionRequest; - -/** - * Forms a request to retrieve artifact metadata. - * - * @author Benjamin Bentmann - */ -public class DefaultMetadataResolutionRequest - implements MetadataResolutionRequest -{ - - private Artifact artifact; - - private boolean resolveManagedVersions; - - private RepositoryRequest repositoryRequest; - - public DefaultMetadataResolutionRequest() - { - repositoryRequest = new DefaultRepositoryRequest(); - } - - public DefaultMetadataResolutionRequest( RepositoryRequest repositoryRequest ) - { - this.repositoryRequest = new DefaultRepositoryRequest( repositoryRequest ); - } - - public DefaultMetadataResolutionRequest( ArtifactResolutionRequest resolutionRequest ) - { - this.repositoryRequest = new DefaultRepositoryRequest( resolutionRequest ); - } - - public Artifact getArtifact() - { - return artifact; - } - - public DefaultMetadataResolutionRequest setArtifact( Artifact artifact ) - { - this.artifact = artifact; - - return this; - } - - public ArtifactRepository getLocalRepository() - { - return repositoryRequest.getLocalRepository(); - } - - public DefaultMetadataResolutionRequest setLocalRepository( ArtifactRepository localRepository ) - { - repositoryRequest.setLocalRepository( localRepository ); - - return this; - } - - public List getRemoteRepositories() - { - return repositoryRequest.getRemoteRepositories(); - } - - public DefaultMetadataResolutionRequest setRemoteRepositories( List remoteRepositories ) - { - repositoryRequest.setRemoteRepositories( remoteRepositories ); - - return this; - } - - public boolean isResolveManagedVersions() - { - return resolveManagedVersions; - } - - public DefaultMetadataResolutionRequest setResolveManagedVersions( boolean resolveManagedVersions ) - { - this.resolveManagedVersions = resolveManagedVersions; - - return this; - } - - public boolean isOffline() - { - return repositoryRequest.isOffline(); - } - - public DefaultMetadataResolutionRequest setOffline( boolean offline ) - { - repositoryRequest.setOffline( offline ); - - return this; - } - - public boolean isForceUpdate() - { - return repositoryRequest.isForceUpdate(); - } - - public DefaultMetadataResolutionRequest setForceUpdate( boolean forceUpdate ) - { - repositoryRequest.setForceUpdate( forceUpdate ); - - return this; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/MetadataResolutionRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/MetadataResolutionRequest.java deleted file mode 100644 index a652c977..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/MetadataResolutionRequest.java +++ /dev/null @@ -1,113 +0,0 @@ -package org.apache.maven.repository.legacy.metadata; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.RepositoryRequest; - -/** - * Forms a request to retrieve artifact metadata. - * - * @author Benjamin Bentmann - */ -public interface MetadataResolutionRequest - extends RepositoryRequest -{ - - /** - * Indicates whether network access to remote repositories has been disabled. - * - * @return {@code true} if remote access has been disabled, {@code false} otherwise. - */ - boolean isOffline(); - - /** - * Enables/disables network access to remote repositories. - * - * @param offline {@code true} to disable remote access, {@code false} to allow network access. - * @return This request, never {@code null}. - */ - MetadataResolutionRequest setOffline( boolean offline ); - - /** - * Gets the artifact to resolve metadata for. - * - * @return The artifact to resolve metadata for or {@code null} if not set. - */ - Artifact getArtifact(); - - /** - * Sets the artifact for which to resolve metadata. - * - * @param artifact The artifact for which to resolve metadata. - * @return This request, never {@code null}. - */ - MetadataResolutionRequest setArtifact( Artifact artifact ); - - /** - * Gets the local repository to use for the resolution. - * - * @return The local repository to use for the resolution or {@code null} if not set. - */ - ArtifactRepository getLocalRepository(); - - /** - * Sets the local repository to use for the resolution. - * - * @param localRepository The local repository to use for the resolution. - * @return This request, never {@code null}. - */ - MetadataResolutionRequest setLocalRepository( ArtifactRepository localRepository ); - - /** - * Gets the remote repositories to use for the resolution. - * - * @return The remote repositories to use for the resolution, never {@code null}. - */ - List getRemoteRepositories(); - - /** - * Sets the remote repositories to use for the resolution. - * - * @param remoteRepositories The remote repositories to use for the resolution. - * @return This request, never {@code null}. - */ - MetadataResolutionRequest setRemoteRepositories( List remoteRepositories ); - - /** - * Determines whether the managed version information should be retrieved. - * - * @return {@code true} if the dependency management information should be retrieved, {@code false} otherwise. - */ - boolean isResolveManagedVersions(); - - /** - * Enables/disables resolution of the dependency manageemnt information. - * - * @param resolveManagedVersions {@code true} if the dependency management information should be retrieved, {@code - * false} otherwise. - * @return This request, never {@code null}. - */ - MetadataResolutionRequest setResolveManagedVersions( boolean resolveManagedVersions ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/ResolutionGroup.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/ResolutionGroup.java deleted file mode 100644 index e942f70a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/repository/legacy/metadata/ResolutionGroup.java +++ /dev/null @@ -1,83 +0,0 @@ -package org.apache.maven.repository.legacy.metadata; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; -import java.util.Map; -import java.util.Set; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.repository.ArtifactRepository; - -public class ResolutionGroup -{ - - private final Set artifacts; - - private final List resolutionRepositories; - - private final Artifact pomArtifact; - - private final Artifact relocatedArtifact; - - private final Map managedVersions; - - public ResolutionGroup( Artifact pomArtifact, Set artifacts, - List resolutionRepositories ) - { - this( pomArtifact, null, artifacts, null, resolutionRepositories ); - } - - public ResolutionGroup( Artifact pomArtifact, Artifact relocatedArtifact, Set artifacts, - Map managedVersions, List resolutionRepositories ) - { - this.pomArtifact = pomArtifact; - this.relocatedArtifact = relocatedArtifact; - this.artifacts = artifacts; - this.managedVersions = managedVersions; - this.resolutionRepositories = resolutionRepositories; - } - - public Artifact getPomArtifact() - { - return pomArtifact; - } - - public Artifact getRelocatedArtifact() - { - return relocatedArtifact; - } - - public Set getArtifacts() - { - return artifacts; - } - - public List getResolutionRepositories() - { - return resolutionRepositories; - } - - public Map getManagedVersions() - { - return managedVersions; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/rtinfo/RuntimeInformation.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/rtinfo/RuntimeInformation.java deleted file mode 100644 index 4e3520db..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/rtinfo/RuntimeInformation.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.apache.maven.rtinfo; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Provides information about the current Maven runtime. - * - * @since 3.0.2 - */ -public interface RuntimeInformation -{ - - /** - * Retrieves the current Maven version, for example "3.0.2". - * - * @return The current Maven version or an empty string if unknown, never {@code null}. - */ - String getMavenVersion(); - - /** - * Checks whether the current Maven runtime matches the specified version range. A version range can either use the - * usual mathematical syntax "[2.0.10,2.1.0),[3.0,)" or use a single version "2.2.1". The latter is a short form for - * "[2.2.1,)", i.e. denotes the minimum version required. - * - * @param versionRange The version range to match the current Maven runtime against, must not be {@code null}. - * @return {@code true} if the current Maven runtime matches the specified version range, {@code false} otherwise. - * @throws IllegalArgumentException If the specified version range is {@code null}, empty or otherwise not a valid - * version specification. - */ - boolean isMavenVersion( String versionRange ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformation.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformation.java deleted file mode 100644 index 6a733f9b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformation.java +++ /dev/null @@ -1,150 +0,0 @@ -package org.apache.maven.rtinfo.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.IOException; -import java.io.InputStream; -import java.util.Properties; - -import org.apache.maven.rtinfo.RuntimeInformation; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.util.IOUtil; -import org.codehaus.plexus.util.StringUtils; -import org.eclipse.aether.util.version.GenericVersionScheme; -import org.eclipse.aether.version.InvalidVersionSpecificationException; -import org.eclipse.aether.version.Version; -import org.eclipse.aether.version.VersionConstraint; -import org.eclipse.aether.version.VersionScheme; - -/** - * Provides information about the current Maven runtime. - */ -@Component( role = RuntimeInformation.class ) -public class DefaultRuntimeInformation - implements RuntimeInformation -{ - - @Requirement - private Logger logger; - - private String mavenVersion; - - public String getMavenVersion() - { - if ( mavenVersion == null ) - { - Properties props = new Properties(); - - String resource = "META-INF/maven/org.apache.maven/maven-core/pom.properties"; - - InputStream is = DefaultRuntimeInformation.class.getResourceAsStream( "/" + resource ); - if ( is != null ) - { - try - { - props.load( is ); - } - catch ( IOException e ) - { - String msg = "Could not parse " + resource + ", Maven runtime information not available"; - if ( logger.isDebugEnabled() ) - { - logger.warn( msg, e ); - } - else - { - logger.warn( msg ); - } - } - finally - { - IOUtil.close( is ); - } - } - else - { - logger.warn( "Could not locate " + resource - + " on classpath, Maven runtime information not available" ); - } - - String version = props.getProperty( "version", "" ).trim(); - - if ( !version.startsWith( "${" ) ) - { - mavenVersion = version; - } - else - { - mavenVersion = ""; - } - } - - return mavenVersion; - } - - public boolean isMavenVersion( String versionRange ) - { - VersionScheme versionScheme = new GenericVersionScheme(); - - if ( versionRange == null ) - { - throw new IllegalArgumentException( "Version range must not be null" ); - } - if ( StringUtils.isBlank( versionRange ) ) - { - throw new IllegalArgumentException( "Version range must not be empty" ); - } - - VersionConstraint constraint; - try - { - constraint = versionScheme.parseVersionConstraint( versionRange ); - } - catch ( InvalidVersionSpecificationException e ) - { - throw new IllegalArgumentException( e.getMessage(), e ); - } - - Version current; - try - { - String mavenVersion = getMavenVersion(); - if ( mavenVersion.length() <= 0 ) - { - throw new IllegalStateException( "Could not determine current Maven version" ); - } - - current = versionScheme.parseVersion( mavenVersion ); - } - catch ( InvalidVersionSpecificationException e ) - { - throw new IllegalStateException( "Could not parse current Maven version: " + e.getMessage(), e ); - } - - if ( constraint.getRange() == null ) - { - return constraint.getVersion().compareTo( current ) <= 0; - } - return constraint.containsVersion( current ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScope.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScope.java deleted file mode 100644 index 6d8913f5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScope.java +++ /dev/null @@ -1,169 +0,0 @@ -package org.apache.maven.session.scope.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collections; -import java.util.LinkedList; -import java.util.Map; - -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.Maps; -import com.google.inject.Key; -import com.google.inject.OutOfScopeException; -import com.google.inject.Provider; -import com.google.inject.Scope; -import com.google.inject.util.Providers; - -public class SessionScope - implements Scope -{ - /** - * @since 3.3.0 - */ - public static class Memento - { - final Map, Provider> seeded; - - Memento( final Map, Provider> seeded ) - { - this.seeded = ImmutableMap.copyOf( seeded ); - } - } - - private static final Provider SEEDED_KEY_PROVIDER = new Provider() - { - public Object get() - { - throw new IllegalStateException(); - } - }; - - private static final class ScopeState - { - public final Map, Provider> seeded = Maps.newHashMap(); - - public final Map, Object> provided = Maps.newHashMap(); - } - - private final ThreadLocal> values = new ThreadLocal>(); - - public void enter() - { - LinkedList stack = values.get(); - if ( stack == null ) - { - stack = new LinkedList(); - values.set( stack ); - } - stack.addFirst( new ScopeState() ); - } - - /** - * @since 3.3.0 - */ - public void enter( Memento memento ) - { - enter(); - getScopeState().seeded.putAll( memento.seeded ); - } - - private ScopeState getScopeState() - { - LinkedList stack = values.get(); - if ( stack == null || stack.isEmpty() ) - { - throw new IllegalStateException(); - } - return stack.getFirst(); - } - - public void exit() - { - final LinkedList stack = values.get(); - if ( stack == null || stack.isEmpty() ) - { - throw new IllegalStateException(); - } - stack.removeFirst(); - if ( stack.isEmpty() ) - { - values.remove(); - } - } - - /** - * @since 3.3.0 - */ - public Memento memento() - { - LinkedList stack = values.get(); - return new Memento( stack != null ? stack.getFirst().seeded : Collections., Provider>emptyMap() ); - } - - public void seed( Class clazz, Provider value ) - { - getScopeState().seeded.put( Key.get( clazz ), value ); - } - - public void seed( Class clazz, final T value ) - { - getScopeState().seeded.put( Key.get( clazz ), Providers.of( value ) ); - } - - public Provider scope( final Key key, final Provider unscoped ) - { - return new Provider() - { - @SuppressWarnings( "unchecked" ) - public T get() - { - LinkedList stack = values.get(); - if ( stack == null || stack.isEmpty() ) - { - throw new OutOfScopeException( "Cannot access " + key + " outside of a scoping block" ); - } - - ScopeState state = stack.getFirst(); - - Provider seeded = state.seeded.get( key ); - - if ( seeded != null ) - { - return (T) seeded.get(); - } - - T provided = (T) state.provided.get( key ); - if ( provided == null && unscoped != null ) - { - provided = unscoped.get(); - state.provided.put( key, provided ); - } - - return provided; - } - }; - } - - @SuppressWarnings( { "unchecked" } ) - public static Provider seededKeyProvider() - { - return (Provider) SEEDED_KEY_PROVIDER; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScopeModule.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScopeModule.java deleted file mode 100644 index 585d683a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScopeModule.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.apache.maven.session.scope.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import javax.inject.Inject; -import javax.inject.Named; - -import org.apache.maven.SessionScoped; -import org.apache.maven.execution.MavenSession; -import org.codehaus.plexus.PlexusContainer; -import org.codehaus.plexus.component.repository.exception.ComponentLookupException; - -import com.google.inject.AbstractModule; - -@Named -public class SessionScopeModule - extends AbstractModule -{ - private final SessionScope scope; - - @Inject - public SessionScopeModule() - { - this( new SessionScope() ); - } - - public SessionScopeModule( PlexusContainer container ) - throws ComponentLookupException - { - this( container.lookup( SessionScope.class ) ); - } - - private SessionScopeModule( SessionScope scope ) - { - this.scope = scope; - } - - @Override - protected void configure() - { - bindScope( SessionScoped.class, scope ); - bind( SessionScope.class ).toInstance( scope ); - - bind( MavenSession.class ).toProvider( SessionScope.seededKeyProvider() ).in( scope ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java deleted file mode 100644 index 820d886e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java +++ /dev/null @@ -1,158 +0,0 @@ -package org.apache.maven.settings; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.IOException; - -import org.apache.maven.execution.MavenExecutionRequest; -import org.apache.maven.properties.internal.SystemProperties; -import org.apache.maven.settings.building.DefaultSettingsBuildingRequest; -import org.apache.maven.settings.building.SettingsBuilder; -import org.apache.maven.settings.building.SettingsBuildingException; -import org.apache.maven.settings.building.SettingsBuildingRequest; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.AbstractLogEnabled; -import org.codehaus.plexus.util.StringUtils; -import org.codehaus.plexus.util.xml.pull.XmlPullParserException; - -/** - * @author jdcasey - */ -@Component( role = MavenSettingsBuilder.class ) -public class DefaultMavenSettingsBuilder - extends AbstractLogEnabled - implements MavenSettingsBuilder -{ - - @Requirement - private SettingsBuilder settingsBuilder; - - public Settings buildSettings() - throws IOException, XmlPullParserException - { - File userSettingsFile = - getFile( "${user.home}/.m2/settings.xml", "user.home", - MavenSettingsBuilder.ALT_USER_SETTINGS_XML_LOCATION ); - - return buildSettings( userSettingsFile ); - } - - public Settings buildSettings( boolean useCachedSettings ) - throws IOException, XmlPullParserException - { - return buildSettings(); - } - - public Settings buildSettings( File userSettingsFile ) - throws IOException, XmlPullParserException - { - File globalSettingsFile = - getFile( "${maven.home}/conf/settings.xml", "maven.home", - MavenSettingsBuilder.ALT_GLOBAL_SETTINGS_XML_LOCATION ); - - SettingsBuildingRequest request = new DefaultSettingsBuildingRequest(); - request.setUserSettingsFile( userSettingsFile ); - request.setGlobalSettingsFile( globalSettingsFile ); - request.setSystemProperties( SystemProperties.getSystemProperties() ); - return build( request ); - } - - public Settings buildSettings( File userSettingsFile, boolean useCachedSettings ) - throws IOException, XmlPullParserException - { - return buildSettings( userSettingsFile ); - } - - private Settings build( SettingsBuildingRequest request ) - throws IOException, XmlPullParserException - { - try - { - return settingsBuilder.build( request ).getEffectiveSettings(); - } - catch ( SettingsBuildingException e ) - { - throw (IOException) new IOException( e.getMessage() ).initCause( e ); - } - } - - /** @since 2.1 */ - public Settings buildSettings( MavenExecutionRequest request ) - throws IOException, XmlPullParserException - { - SettingsBuildingRequest settingsRequest = new DefaultSettingsBuildingRequest(); - settingsRequest.setUserSettingsFile( request.getUserSettingsFile() ); - settingsRequest.setGlobalSettingsFile( request.getGlobalSettingsFile() ); - settingsRequest.setUserProperties( request.getUserProperties() ); - settingsRequest.setSystemProperties( request.getSystemProperties() ); - - return build( settingsRequest ); - } - - private File getFile( String pathPattern, String basedirSysProp, String altLocationSysProp ) - { - // ------------------------------------------------------------------------------------- - // Alright, here's the justification for all the regexp wizardry below... - // - // Continuum and other server-like apps may need to locate the user-level and - // global-level settings somewhere other than ${user.home} and ${maven.home}, - // respectively. Using a simple replacement of these patterns will allow them - // to specify the absolute path to these files in a customized components.xml - // file. Ideally, we'd do full pattern-evaluation against the sysprops, but this - // is a first step. There are several replacements below, in order to normalize - // the path character before we operate on the string as a regex input, and - // in order to avoid surprises with the File construction... - // ------------------------------------------------------------------------------------- - - String path = System.getProperty( altLocationSysProp ); - - if ( StringUtils.isEmpty( path ) ) - { - // TODO: This replacing shouldn't be necessary as user.home should be in the - // context of the container and thus the value would be interpolated by Plexus - String basedir = System.getProperty( basedirSysProp ); - if ( basedir == null ) - { - basedir = System.getProperty( "user.dir" ); - } - - basedir = basedir.replaceAll( "\\\\", "/" ); - basedir = basedir.replaceAll( "\\$", "\\\\\\$" ); - - path = pathPattern.replaceAll( "\\$\\{" + basedirSysProp + "\\}", basedir ); - path = path.replaceAll( "\\\\", "/" ); - // --------------------------------------------------------------------------------- - // I'm not sure if this last regexp was really intended to disallow the usage of - // network paths as user.home directory. Unfortunately it did. I removed it and - // have not detected any problems yet. - // --------------------------------------------------------------------------------- - // path = path.replaceAll( "//", "/" ); - - return new File( path ).getAbsoluteFile(); - } - else - { - return new File( path ).getAbsoluteFile(); - } - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/settings/MavenSettingsBuilder.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/settings/MavenSettingsBuilder.java deleted file mode 100644 index c79a843d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/settings/MavenSettingsBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -package org.apache.maven.settings; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.IOException; - -import org.apache.maven.execution.MavenExecutionRequest; -import org.codehaus.plexus.util.xml.pull.XmlPullParserException; - -/** - * @author jdcasey - * @author Jason van Zyl - */ -@Deprecated -public interface MavenSettingsBuilder -{ - - String ROLE = MavenSettingsBuilder.class.getName(); - - String ALT_USER_SETTINGS_XML_LOCATION = "org.apache.maven.user-settings"; - String ALT_GLOBAL_SETTINGS_XML_LOCATION = "org.apache.maven.global-settings"; - String ALT_LOCAL_REPOSITORY_LOCATION = "maven.repo.local"; - - Settings buildSettings( MavenExecutionRequest request ) - throws IOException, XmlPullParserException; - - /** - * @return a Settings object from the user settings file. - * @throws IOException if any - * @throws XmlPullParserException if any - */ - Settings buildSettings() - throws IOException, XmlPullParserException; - - /** - * @param useCachedSettings if true, doesn't reload the user settings - * @return a Settings object from the user settings file. - * @throws IOException if any - * @throws XmlPullParserException if any - */ - Settings buildSettings( boolean useCachedSettings ) - throws IOException, XmlPullParserException; - - /** - * @param userSettingsFile a given user settings file - * @return a Settings object from the user settings file. - * @throws IOException if any - * @throws XmlPullParserException if any - */ - Settings buildSettings( File userSettingsFile ) - throws IOException, XmlPullParserException; - - /** - * @param userSettingsFile a given user settings file - * @param useCachedSettings if true, doesn't reload the user settings - * @return a Settings object from the user settings file. - * @throws IOException if any - * @throws XmlPullParserException if any - */ - Settings buildSettings( File userSettingsFile, boolean useCachedSettings ) - throws IOException, XmlPullParserException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/settings/SettingsConfigurationException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/settings/SettingsConfigurationException.java deleted file mode 100644 index 6fab6501..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/settings/SettingsConfigurationException.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.apache.maven.settings; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * If there was an error in the settings file. - * - * @author Brett Porter - */ -public class SettingsConfigurationException - extends Exception -{ - private int lineNumber; - - private int columnNumber; - - public SettingsConfigurationException( String message ) - { - super( message ); - } - - public SettingsConfigurationException( String message, Throwable cause ) - { - super( message, cause ); - } - - public SettingsConfigurationException( String message, Throwable cause, int lineNumber, int columnNumber ) - { - super( message + ( lineNumber > 0 ? "\n Line: " + lineNumber : "" ) - + ( columnNumber > 0 ? "\n Column: " + columnNumber : "" ), cause ); - this.lineNumber = lineNumber; - this.columnNumber = columnNumber; - } - - public int getColumnNumber() - { - return columnNumber; - } - - public int getLineNumber() - { - return lineNumber; - } - - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/settings/SettingsUtils.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/settings/SettingsUtils.java deleted file mode 100644 index 8da696e8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/settings/SettingsUtils.java +++ /dev/null @@ -1,321 +0,0 @@ -package org.apache.maven.settings; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.model.ActivationFile; -import org.apache.maven.settings.merge.MavenSettingsMerger; - -import java.util.List; - -/** - * Several convenience methods to handle settings - * - * @author Vincent Siveton - */ -public final class SettingsUtils -{ - - private SettingsUtils() - { - // don't allow construction. - } - - /** - * @param dominant - * @param recessive - * @param recessiveSourceLevel - */ - public static void merge( Settings dominant, Settings recessive, String recessiveSourceLevel ) - { - new MavenSettingsMerger().merge( dominant, recessive, recessiveSourceLevel ); - } - - /** - * @param modelProfile - * @return a profile - */ - public static Profile convertToSettingsProfile( org.apache.maven.model.Profile modelProfile ) - { - Profile profile = new Profile(); - - profile.setId( modelProfile.getId() ); - - org.apache.maven.model.Activation modelActivation = modelProfile.getActivation(); - - if ( modelActivation != null ) - { - Activation activation = new Activation(); - - activation.setActiveByDefault( modelActivation.isActiveByDefault() ); - - activation.setJdk( modelActivation.getJdk() ); - - org.apache.maven.model.ActivationProperty modelProp = modelActivation.getProperty(); - - if ( modelProp != null ) - { - ActivationProperty prop = new ActivationProperty(); - prop.setName( modelProp.getName() ); - prop.setValue( modelProp.getValue() ); - activation.setProperty( prop ); - } - - org.apache.maven.model.ActivationOS modelOs = modelActivation.getOs(); - - if ( modelOs != null ) - { - ActivationOS os = new ActivationOS(); - - os.setArch( modelOs.getArch() ); - os.setFamily( modelOs.getFamily() ); - os.setName( modelOs.getName() ); - os.setVersion( modelOs.getVersion() ); - - activation.setOs( os ); - } - - ActivationFile modelFile = modelActivation.getFile(); - - if ( modelFile != null ) - { - org.apache.maven.settings.ActivationFile file = new org.apache.maven.settings.ActivationFile(); - - file.setExists( modelFile.getExists() ); - file.setMissing( modelFile.getMissing() ); - - activation.setFile( file ); - } - - profile.setActivation( activation ); - } - - profile.setProperties( modelProfile.getProperties() ); - - List repos = modelProfile.getRepositories(); - if ( repos != null ) - { - for ( org.apache.maven.model.Repository repo : repos ) - { - profile.addRepository( convertToSettingsRepository( repo ) ); - } - } - - List pluginRepos = modelProfile.getPluginRepositories(); - if ( pluginRepos != null ) - { - for ( org.apache.maven.model.Repository pluginRepo : pluginRepos ) - { - profile.addPluginRepository( convertToSettingsRepository( pluginRepo ) ); - } - } - - return profile; - } - - /** - * @param settingsProfile - * @return a profile - */ - public static org.apache.maven.model.Profile convertFromSettingsProfile( Profile settingsProfile ) - { - org.apache.maven.model.Profile profile = new org.apache.maven.model.Profile(); - - profile.setId( settingsProfile.getId() ); - - profile.setSource( "settings.xml" ); - - Activation settingsActivation = settingsProfile.getActivation(); - - if ( settingsActivation != null ) - { - org.apache.maven.model.Activation activation = new org.apache.maven.model.Activation(); - - activation.setActiveByDefault( settingsActivation.isActiveByDefault() ); - - activation.setJdk( settingsActivation.getJdk() ); - - ActivationProperty settingsProp = settingsActivation.getProperty(); - - if ( settingsProp != null ) - { - org.apache.maven.model.ActivationProperty prop = new org.apache.maven.model.ActivationProperty(); - - prop.setName( settingsProp.getName() ); - prop.setValue( settingsProp.getValue() ); - - activation.setProperty( prop ); - } - - ActivationOS settingsOs = settingsActivation.getOs(); - - if ( settingsOs != null ) - { - org.apache.maven.model.ActivationOS os = new org.apache.maven.model.ActivationOS(); - - os.setArch( settingsOs.getArch() ); - os.setFamily( settingsOs.getFamily() ); - os.setName( settingsOs.getName() ); - os.setVersion( settingsOs.getVersion() ); - - activation.setOs( os ); - } - - org.apache.maven.settings.ActivationFile settingsFile = settingsActivation.getFile(); - - if ( settingsFile != null ) - { - ActivationFile file = new ActivationFile(); - - file.setExists( settingsFile.getExists() ); - file.setMissing( settingsFile.getMissing() ); - - activation.setFile( file ); - } - - profile.setActivation( activation ); - } - - profile.setProperties( settingsProfile.getProperties() ); - - List repos = settingsProfile.getRepositories(); - if ( repos != null ) - { - for ( Repository repo : repos ) - { - profile.addRepository( convertFromSettingsRepository( repo ) ); - } - } - - List pluginRepos = settingsProfile.getPluginRepositories(); - if ( pluginRepos != null ) - { - for ( Repository pluginRepo : pluginRepos ) - { - profile.addPluginRepository( convertFromSettingsRepository( pluginRepo ) ); - } - } - - return profile; - } - - /** - * @param settingsRepo - * @return a repository - */ - private static org.apache.maven.model.Repository convertFromSettingsRepository( Repository settingsRepo ) - { - org.apache.maven.model.Repository repo = new org.apache.maven.model.Repository(); - - repo.setId( settingsRepo.getId() ); - repo.setLayout( settingsRepo.getLayout() ); - repo.setName( settingsRepo.getName() ); - repo.setUrl( settingsRepo.getUrl() ); - - if ( settingsRepo.getSnapshots() != null ) - { - repo.setSnapshots( convertRepositoryPolicy( settingsRepo.getSnapshots() ) ); - } - if ( settingsRepo.getReleases() != null ) - { - repo.setReleases( convertRepositoryPolicy( settingsRepo.getReleases() ) ); - } - - return repo; - } - - /** - * @param settingsPolicy - * @return a RepositoryPolicy - */ - private static org.apache.maven.model.RepositoryPolicy convertRepositoryPolicy( RepositoryPolicy settingsPolicy ) - { - org.apache.maven.model.RepositoryPolicy policy = new org.apache.maven.model.RepositoryPolicy(); - policy.setEnabled( settingsPolicy.isEnabled() ); - policy.setUpdatePolicy( settingsPolicy.getUpdatePolicy() ); - policy.setChecksumPolicy( settingsPolicy.getChecksumPolicy() ); - return policy; - } - - /** - * @param modelRepo - * @return a repository - */ - private static Repository convertToSettingsRepository( org.apache.maven.model.Repository modelRepo ) - { - Repository repo = new Repository(); - - repo.setId( modelRepo.getId() ); - repo.setLayout( modelRepo.getLayout() ); - repo.setName( modelRepo.getName() ); - repo.setUrl( modelRepo.getUrl() ); - - if ( modelRepo.getSnapshots() != null ) - { - repo.setSnapshots( convertRepositoryPolicy( modelRepo.getSnapshots() ) ); - } - if ( modelRepo.getReleases() != null ) - { - repo.setReleases( convertRepositoryPolicy( modelRepo.getReleases() ) ); - } - - return repo; - } - - /** - * @param modelPolicy - * @return a RepositoryPolicy - */ - private static RepositoryPolicy convertRepositoryPolicy( org.apache.maven.model.RepositoryPolicy modelPolicy ) - { - RepositoryPolicy policy = new RepositoryPolicy(); - policy.setEnabled( modelPolicy.isEnabled() ); - policy.setUpdatePolicy( modelPolicy.getUpdatePolicy() ); - policy.setChecksumPolicy( modelPolicy.getChecksumPolicy() ); - return policy; - } - - /** - * @param settings could be null - * @return a new instance of settings or null if settings was null. - */ - public static Settings copySettings( Settings settings ) - { - if ( settings == null ) - { - return null; - } - - Settings clone = new Settings(); - clone.setActiveProfiles( settings.getActiveProfiles() ); - clone.setInteractiveMode( settings.isInteractiveMode() ); - clone.setLocalRepository( settings.getLocalRepository() ); - clone.setMirrors( settings.getMirrors() ); - clone.setModelEncoding( settings.getModelEncoding() ); - clone.setOffline( settings.isOffline() ); - clone.setPluginGroups( settings.getPluginGroups() ); - clone.setProfiles( settings.getProfiles() ); - clone.setProxies( settings.getProxies() ); - clone.setServers( settings.getServers() ); - clone.setSourceLevel( settings.getSourceLevel() ); - clone.setUsePluginRegistry( settings.isUsePluginRegistry() ); - - return clone; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchain.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchain.java deleted file mode 100644 index 043e5e68..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchain.java +++ /dev/null @@ -1,190 +0,0 @@ -package org.apache.maven.toolchain; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.HashMap; -import java.util.Iterator; -import java.util.Map; -import java.util.Properties; - -import org.apache.maven.toolchain.model.ToolchainModel; -import org.codehaus.plexus.logging.Logger; - -/** - * Default abstract toolchain implementation, to be used as base class for any toolchain implementation - * to avoid rewriting usual code. - * - * @author mkleint - * @since 2.0.9 - */ -public abstract class DefaultToolchain // should have been AbstractToolchain... - implements Toolchain, ToolchainPrivate -{ - - private String type; - - private Map provides = new HashMap(); - - public static final String KEY_TYPE = "type"; //NOI18N - - private ToolchainModel model; - - private Logger logger; - - /** - * - * @param model the model, must not be {@code null} - * @param logger the logger, must not be {@code null} - */ - protected DefaultToolchain( ToolchainModel model, Logger logger ) - { - this.model = model; - - this.logger = logger; - } - - /** - * - * @param model the model, must not be {@code null} - * @param type the type - * @param logger the logger, must not be {@code null} - */ - protected DefaultToolchain( ToolchainModel model, String type, Logger logger ) - { - this( model, logger ); - this.type = type; - } - - @Override - public final String getType() - { - return type != null ? type : model.getType(); - } - - @Override - public final ToolchainModel getModel() - { - return model; - } - - public final void addProvideToken( String type, RequirementMatcher matcher ) - { - provides.put( type, matcher ); - } - - @Override - public boolean matchesRequirements( Map requirements ) - { - for ( Map.Entry requirement : requirements.entrySet() ) - { - String key = requirement.getKey(); - - RequirementMatcher matcher = provides.get( key ); - - if ( matcher == null ) - { - getLog().debug( "Toolchain " + this + " is missing required property: " + key ); - return false; - } - if ( !matcher.matches( requirement.getValue() ) ) - { - getLog().debug( "Toolchain " + this + " doesn't match required property: " + key ); - return false; - } - } - return true; - } - - protected Logger getLog() - { - return logger; - } - - @Override - public boolean equals( Object obj ) - { - if ( obj == null ) - { - return false; - } - - if ( this == obj ) - { - return true; - } - - if ( !( obj instanceof DefaultToolchain ) ) - { - return false; - } - - DefaultToolchain other = (DefaultToolchain) obj; - - if ( type == null ? other.type != null : !type.equals( other.type ) ) - { - return false; - } - - Properties thisProvides = this.getModel().getProvides(); - Properties otherProvides = other.getModel().getProvides(); - - if ( thisProvides == null ? otherProvides != null : !thisProvides.equals( otherProvides ) ) - { - return false; - } - - return true; - } - - @Override - public int hashCode() - { - int hashCode = ( type == null ) ? 0 : type.hashCode(); - - if ( this.getModel().getProvides() != null ) - { - hashCode = 31 * hashCode + this.getModel().getProvides().hashCode(); - } - return hashCode; - } - - @Override - public String toString() - { - StringBuilder builder = new StringBuilder(); - builder.append( "type:" ).append( getType() ); - builder.append( '{' ); - - Iterator> providesIter = provides.entrySet().iterator(); - while ( providesIter.hasNext() ) - { - Map.Entry provideEntry = providesIter.next(); - builder.append( provideEntry.getKey() ).append( " = " ).append( provideEntry.getValue() ); - if ( providesIter.hasNext() ) - { - builder.append( ';' ); - } - } - - builder.append( '}' ); - - return builder.toString(); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchainManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchainManager.java deleted file mode 100644 index 8093bbd6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchainManager.java +++ /dev/null @@ -1,140 +0,0 @@ -package org.apache.maven.toolchain; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.apache.maven.project.MavenProject; -import org.apache.maven.toolchain.model.ToolchainModel; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; - -/** - * @author mkleint - */ -@Component( role = ToolchainManager.class ) -public class DefaultToolchainManager - implements ToolchainManager -{ - @Requirement - Logger logger; - - @Requirement( role = ToolchainFactory.class ) - Map factories; - - @Override - public Toolchain getToolchainFromBuildContext( String type, MavenSession session ) - { - Map context = retrieveContext( session ); - - ToolchainModel model = (ToolchainModel) context.get( getStorageKey( type ) ); - - if ( model != null ) - { - List toolchains = selectToolchains( Collections.singletonList( model ), type, null ); - - if ( !toolchains.isEmpty() ) - { - return toolchains.get( 0 ); - } - } - - return null; - } - - @Override - public List getToolchains( MavenSession session, String type, Map requirements ) - { - List models = session.getRequest().getToolchains().get( type ); - - return selectToolchains( models, type, requirements ); - } - - private List selectToolchains( List models, String type, - Map requirements ) - { - List toolchains = new ArrayList(); - - if ( models != null ) - { - ToolchainFactory fact = factories.get( type ); - - if ( fact == null ) - { - logger.error( "Missing toolchain factory for type: " + type - + ". Possibly caused by misconfigured project." ); - } - else - { - for ( ToolchainModel model : models ) - { - try - { - ToolchainPrivate toolchain = fact.createToolchain( model ); - if ( requirements == null || toolchain.matchesRequirements( requirements ) ) - { - toolchains.add( toolchain ); - } - } - catch ( MisconfiguredToolchainException ex ) - { - logger.error( "Misconfigured toolchain.", ex ); - } - } - } - } - return toolchains; - } - - Map retrieveContext( MavenSession session ) - { - Map context = null; - - if ( session != null ) - { - PluginDescriptor desc = new PluginDescriptor(); - desc.setGroupId( PluginDescriptor.getDefaultPluginGroupId() ); - desc.setArtifactId( PluginDescriptor.getDefaultPluginArtifactId( "toolchains" ) ); - - MavenProject current = session.getCurrentProject(); - - if ( current != null ) - { - //TODO: why is this using the context - context = session.getPluginContext( desc, current ); - } - } - - return ( context != null ) ? context : new HashMap(); - } - - public static final String getStorageKey( String type ) - { - return "toolchain-" + type; // NOI18N - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchainManagerPrivate.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchainManagerPrivate.java deleted file mode 100644 index cac8e297..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchainManagerPrivate.java +++ /dev/null @@ -1,82 +0,0 @@ -package org.apache.maven.toolchain; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.toolchain.model.ToolchainModel; -import org.codehaus.plexus.component.annotations.Component; - -/** - * @author mkleint - * @author Robert Scholte - */ -@Component( role = ToolchainManagerPrivate.class ) -public class DefaultToolchainManagerPrivate - extends DefaultToolchainManager - implements ToolchainManagerPrivate -{ - - @Override - public ToolchainPrivate[] getToolchainsForType( String type, MavenSession context ) - throws MisconfiguredToolchainException - { - List toRet = new ArrayList(); - - ToolchainFactory fact = factories.get( type ); - if ( fact == null ) - { - logger.error( "Missing toolchain factory for type: " + type - + ". Possibly caused by misconfigured project." ); - } - else - { - List availableToolchains = context.getRequest().getToolchains().get( type ); - - if ( availableToolchains != null ) - { - for ( ToolchainModel toolchainModel : availableToolchains ) - { - toRet.add( fact.createToolchain( toolchainModel ) ); - } - } - - // add default toolchain - ToolchainPrivate tool = fact.createDefaultToolchain(); - if ( tool != null ) - { - toRet.add( tool ); - } - } - - return toRet.toArray( new ToolchainPrivate[toRet.size()] ); - } - - @Override - public void storeToolchainToBuildContext( ToolchainPrivate toolchain, MavenSession session ) - { - Map context = retrieveContext( session ); - context.put( getStorageKey( toolchain.getType() ), toolchain.getModel() ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchainsBuilder.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchainsBuilder.java deleted file mode 100644 index 5bd3e82a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchainsBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -package org.apache.maven.toolchain; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.Reader; - -import org.apache.maven.toolchain.model.PersistedToolchains; -import org.apache.maven.toolchain.model.io.xpp3.MavenToolchainsXpp3Reader; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.util.IOUtil; -import org.codehaus.plexus.util.ReaderFactory; - -/** - * @author Benjamin Bentmann - * - * @deprecated instead use {@link org.apache.maven.toolchain.building.DefaultToolchainsBuilder} - */ -@Deprecated -@Component( role = ToolchainsBuilder.class, hint = "default" ) -public class DefaultToolchainsBuilder - implements ToolchainsBuilder -{ - - @Requirement - private Logger logger; - - public PersistedToolchains build( File userToolchainsFile ) - throws MisconfiguredToolchainException - { - PersistedToolchains toolchains = null; - - if ( userToolchainsFile != null && userToolchainsFile.isFile() ) - { - Reader in = null; - try - { - in = ReaderFactory.newXmlReader( userToolchainsFile ); - toolchains = new MavenToolchainsXpp3Reader().read( in ); - } - catch ( Exception e ) - { - throw new MisconfiguredToolchainException( "Cannot read toolchains file at " - + userToolchainsFile.getAbsolutePath(), e ); - } - finally - { - IOUtil.close( in ); - } - } - else if ( userToolchainsFile != null ) - { - logger.debug( "Toolchains configuration was not found at " + userToolchainsFile ); - } - - return toolchains; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/MisconfiguredToolchainException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/MisconfiguredToolchainException.java deleted file mode 100644 index 140bc804..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/MisconfiguredToolchainException.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.apache.maven.toolchain; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * - * @author mkleint - */ -public class MisconfiguredToolchainException - extends Exception -{ - - public MisconfiguredToolchainException( String message ) - { - super( message ); - } - - public MisconfiguredToolchainException( String message, Throwable orig ) - { - super( message, orig ); - } -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/RequirementMatcher.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/RequirementMatcher.java deleted file mode 100644 index 26390e40..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/RequirementMatcher.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.apache.maven.toolchain; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * - * @author mkleint - */ -public interface RequirementMatcher -{ - - boolean matches( String requirement ); -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/RequirementMatcherFactory.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/RequirementMatcherFactory.java deleted file mode 100644 index 3d6917bd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/RequirementMatcherFactory.java +++ /dev/null @@ -1,109 +0,0 @@ -package org.apache.maven.toolchain; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.versioning.DefaultArtifactVersion; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.artifact.versioning.VersionRange; - -/** - * - * @author mkleint - */ -public final class RequirementMatcherFactory -{ - private RequirementMatcherFactory() - { - } - - public static RequirementMatcher createExactMatcher( String provideValue ) - { - return new ExactMatcher( provideValue ); - } - - public static RequirementMatcher createVersionMatcher( String provideValue ) - { - return new VersionMatcher( provideValue ); - } - - private static final class ExactMatcher - implements RequirementMatcher - { - - private String provides; - - private ExactMatcher( String provides ) - { - this.provides = provides; - } - - @Override - public boolean matches( String requirement ) - { - return provides.equalsIgnoreCase( requirement ); - } - - @Override - public String toString() - { - return provides; - } - } - - private static final class VersionMatcher - implements RequirementMatcher - { - DefaultArtifactVersion version; - - private VersionMatcher( String version ) - { - this.version = new DefaultArtifactVersion( version ); - } - - @Override - public boolean matches( String requirement ) - { - try - { - VersionRange range = VersionRange.createFromVersionSpec( requirement ); - if ( range.hasRestrictions() ) - { - return range.containsVersion( version ); - } - else - { - return range.getRecommendedVersion().compareTo( version ) == 0; - } - } - catch ( InvalidVersionSpecificationException ex ) - { - //TODO error reporting - ex.printStackTrace(); - return false; - } - } - - @Override - public String toString() - { - return version.toString(); - } - } -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/Toolchain.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/Toolchain.java deleted file mode 100644 index 2a713465..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/Toolchain.java +++ /dev/null @@ -1,46 +0,0 @@ -package org.apache.maven.toolchain; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Toolchain interface. - * - * @author Milos Kleint - * @author Jason van Zyl - * @since 2.0.9 - */ -public interface Toolchain -{ - - /** - * get the type of toolchain. - * - * @return the toolchain type - */ - String getType(); - - /** - * Gets the platform tool executable. - * - * @param toolName the tool platform independent tool name. - * @return file representing the tool executable, or null if the tool can not be found - */ - String findTool( String toolName ); -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainFactory.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainFactory.java deleted file mode 100644 index 115eede3..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainFactory.java +++ /dev/null @@ -1,44 +0,0 @@ -package org.apache.maven.toolchain; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.toolchain.model.ToolchainModel; - -/** - * Internal toolchain factory, to prepare toolchains instances. - * - * @author mkleint - * @since 2.0.9 - */ -public interface ToolchainFactory -{ - /** - * Create instance of toolchain. - **/ - ToolchainPrivate createToolchain( ToolchainModel model ) - throws MisconfiguredToolchainException; - - /** - * Returns the default instance of the particular type of toolchain, can return null - * if not applicable. - * TODO keep around?? - **/ - ToolchainPrivate createDefaultToolchain(); -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainManager.java deleted file mode 100644 index 8eddac54..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainManager.java +++ /dev/null @@ -1,64 +0,0 @@ -package org.apache.maven.toolchain; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; -import java.util.Map; - -import org.apache.maven.execution.MavenSession; - - -/** - * Public API for a toolchain-aware plugin to get expected toolchain instance. - * - * @author mkleint - * @author Robert Scholte - * @since 2.0.9 - */ -public interface ToolchainManager -{ - - // NOTE: Some plugins like Surefire access this field directly! - @Deprecated - String ROLE = ToolchainManager.class.getName(); - - /** - * Retrieve toolchain of specified type from build context. It is expected that - * maven-toolchains-plugin contains the configuration to select the appropriate - * toolchain and is executed at the beginning of the build. - * - * @param session the Maven session, must not be {@code null} - * @param type the type, must not be {@code null} - * @return the toolchain selected by maven-toolchains-plugin - */ - Toolchain getToolchainFromBuildContext( String type, MavenSession context ); - - /** - * Select all toolchains available in user settings matching the type and requirements, - * independently from maven-toolchains-plugin. - * - * @param session the Maven session, must not be {@code null} - * @param type the type, must not be {@code null} - * @param requirements the requirements, may be {@code null} - * @return the matching toolchains, never {@code null} - * @since 3.3.0 - */ - List getToolchains( MavenSession session, String type, Map requirements ); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainManagerPrivate.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainManagerPrivate.java deleted file mode 100644 index 6836bf1c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainManagerPrivate.java +++ /dev/null @@ -1,58 +0,0 @@ -package org.apache.maven.toolchain; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.MavenSession; - -/** - * Component for use by the maven-toolchains-plugin only. - * It provides API:
    - *
  1. to retrieve every toolchains available in user settings,
  2. - *
  3. to store chosen toolchain into build context for later use by toolchain-aware plugins.
  4. - *
- * - * @author mkleint - * @since 2.0.9 - * @see ToolchainManager#getToolchainFromBuildContext(String, MavenSession) - */ -public interface ToolchainManagerPrivate -{ - - /** - * Retrieves every toolchains of given type available in user settings. - * - * @param type the type, must not be {@code null} - * @param context the Maven session, must not be {@code null} - * @since 3.0 (addition of the MavenSession parameter) - */ - ToolchainPrivate[] getToolchainsForType( String type, MavenSession context ) - throws MisconfiguredToolchainException; - - /** - * Stores the toolchain into build context for later use by toolchain-aware plugins. - * - * @param toolchain the toolchain to store, must not be {@code null} - * @param context the Maven session, must not be {@code null} - * @since 2.0.9 - * @see ToolchainManager#getToolchainFromBuildContext(String, MavenSession) - */ - void storeToolchainToBuildContext( ToolchainPrivate toolchain, MavenSession context ); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainPrivate.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainPrivate.java deleted file mode 100644 index 756cd957..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainPrivate.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.apache.maven.toolchain; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Map; - -import org.apache.maven.toolchain.model.ToolchainModel; - -/** - * a private contract between the toolchains plugin and the components. - * @author mkleint - */ -public interface ToolchainPrivate - extends Toolchain -{ - - /** - * Let the toolchain decide if it matches requirements defined - * in the toolchain plugin configuration. - * @param requirements Map key value pair, may not be {@code null} - * @return {@code true} if the requirements match, otherwise {@code false} - */ - boolean matchesRequirements( Map requirements ); - - /** - * - * @return the original model wrapped by this interface - */ - ToolchainModel getModel(); - -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainsBuilder.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainsBuilder.java deleted file mode 100644 index 4bb4052a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/ToolchainsBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -package org.apache.maven.toolchain; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; - -import org.apache.maven.toolchain.model.PersistedToolchains; - -/** - * Builds the toolchains model from a previously configured filesystem path to the toolchains file. - * Note: This is an internal component whose interface can change without prior notice. - * - * @author Benjamin Bentmann - */ -public interface ToolchainsBuilder -{ - - /** - * Builds the toolchains model from the configured toolchain files. - * - * @param userToolchainsFile The path to the toolchains file, may be null to disable parsing. - * @return The toolchains model or null if no toolchain file was configured or the configured file does - * not exist. - * @throws MisconfiguredToolchainException If the toolchain file exists but cannot be parsed. - */ - PersistedToolchains build( File userToolchainsFile ) - throws MisconfiguredToolchainException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilder.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilder.java deleted file mode 100644 index 7983388b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilder.java +++ /dev/null @@ -1,138 +0,0 @@ -package org.apache.maven.toolchain.building; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.IOException; -import java.util.Collections; -import java.util.List; -import java.util.Map; - -import javax.inject.Inject; -import javax.inject.Named; -import javax.inject.Singleton; - -import org.apache.maven.building.Problem; -import org.apache.maven.building.ProblemCollector; -import org.apache.maven.building.ProblemCollectorFactory; -import org.apache.maven.building.Source; -import org.apache.maven.toolchain.io.ToolchainsParseException; -import org.apache.maven.toolchain.io.ToolchainsReader; -import org.apache.maven.toolchain.merge.MavenToolchainMerger; -import org.apache.maven.toolchain.model.PersistedToolchains; -import org.apache.maven.toolchain.model.TrackableBase; - -/** - * - * @author Robert Scholte - * @since 3.3.0 - */ -@Named -@Singleton -public class DefaultToolchainsBuilder - implements ToolchainsBuilder -{ - private MavenToolchainMerger toolchainsMerger = new MavenToolchainMerger(); - - @Inject - private ToolchainsReader toolchainsReader; - - @Override - public ToolchainsBuildingResult build( ToolchainsBuildingRequest request ) - throws ToolchainsBuildingException - { - ProblemCollector problems = ProblemCollectorFactory.newInstance( null ); - - PersistedToolchains globalToolchains = readToolchains( request.getGlobalToolchainsSource(), request, problems ); - - PersistedToolchains userToolchains = readToolchains( request.getUserToolchainsSource(), request, problems ); - - toolchainsMerger.merge( userToolchains, globalToolchains, TrackableBase.GLOBAL_LEVEL ); - - problems.setSource( "" ); - - if ( hasErrors( problems.getProblems() ) ) - { - throw new ToolchainsBuildingException( problems.getProblems() ); - } - - - return new DefaultToolchainsBuildingResult( userToolchains, problems.getProblems() ); - } - - private PersistedToolchains readToolchains( Source toolchainsSource, ToolchainsBuildingRequest request, - ProblemCollector problems ) - { - if ( toolchainsSource == null ) - { - return new PersistedToolchains(); - } - - PersistedToolchains toolchains; - - try - { - Map options = Collections.singletonMap( ToolchainsReader.IS_STRICT, Boolean.TRUE ); - - try - { - toolchains = toolchainsReader.read( toolchainsSource.getInputStream(), options ); - } - catch ( ToolchainsParseException e ) - { - options = Collections.singletonMap( ToolchainsReader.IS_STRICT, Boolean.FALSE ); - - toolchains = toolchainsReader.read( toolchainsSource.getInputStream(), options ); - - problems.add( Problem.Severity.WARNING, e.getMessage(), e.getLineNumber(), e.getColumnNumber(), - e ); - } - } - catch ( ToolchainsParseException e ) - { - problems.add( Problem.Severity.FATAL, "Non-parseable toolchains " + toolchainsSource.getLocation() - + ": " + e.getMessage(), e.getLineNumber(), e.getColumnNumber(), e ); - return new PersistedToolchains(); - } - catch ( IOException e ) - { - problems.add( Problem.Severity.FATAL, "Non-readable toolchains " + toolchainsSource.getLocation() - + ": " + e.getMessage(), -1, -1, e ); - return new PersistedToolchains(); - } - - return toolchains; - } - - private boolean hasErrors( List problems ) - { - if ( problems != null ) - { - for ( Problem problem : problems ) - { - if ( Problem.Severity.ERROR.compareTo( problem.getSeverity() ) >= 0 ) - { - return true; - } - } - } - - return false; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuildingRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuildingRequest.java deleted file mode 100644 index 144d724c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuildingRequest.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.apache.maven.toolchain.building; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.building.Source; - -/** - * Collects toolchains that control building of effective toolchains. - * - * @author Robert Scholte - * @since 3.3.0 - */ -public class DefaultToolchainsBuildingRequest - implements ToolchainsBuildingRequest -{ - private Source globalToolchainsSource; - - private Source userToolchainsSource; - - @Override - public Source getGlobalToolchainsSource() - { - return globalToolchainsSource; - } - - @Override - public ToolchainsBuildingRequest setGlobalToolchainsSource( Source globalToolchainsSource ) - { - this.globalToolchainsSource = globalToolchainsSource; - return this; - } - - @Override - public Source getUserToolchainsSource() - { - return userToolchainsSource; - } - - @Override - public ToolchainsBuildingRequest setUserToolchainsSource( Source userToolchainsSource ) - { - this.userToolchainsSource = userToolchainsSource; - return this; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuildingResult.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuildingResult.java deleted file mode 100644 index 60ca2441..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuildingResult.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.apache.maven.toolchain.building; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.List; - -import org.apache.maven.building.Problem; -import org.apache.maven.toolchain.model.PersistedToolchains; - -/** - * Holds the result of the merged toolchains and holds the problems during this build, if any. - * - * @author Robert Scholte - * @since 3.3.0 - */ -public class DefaultToolchainsBuildingResult - implements ToolchainsBuildingResult -{ - - private PersistedToolchains effectiveToolchains; - - private List problems; - - /** - * Default constructor - * - * @param effectiveToolchains the merged toolchains, may not be {@code null} - * @param problems the problems while building the effectiveToolchains, if any. - */ - public DefaultToolchainsBuildingResult( PersistedToolchains effectiveToolchains, List problems ) - { - this.effectiveToolchains = effectiveToolchains; - this.problems = ( problems != null ) ? problems : new ArrayList(); - } - - @Override - public PersistedToolchains getEffectiveToolchains() - { - return effectiveToolchains; - } - - @Override - public List getProblems() - { - return problems; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuilder.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuilder.java deleted file mode 100644 index b2ef0d10..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.apache.maven.toolchain.building; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Builds the effective toolchains from a user toolchains file and/or a global toolchains file. - * - * @author Robert Scholte - * @since 3.3.0 - */ -public interface ToolchainsBuilder -{ - - /** - * Builds the effective toolchains of the specified toolchains files. - * - * @param request The toolchains building request that holds the parameters, must not be {@code null}. - * @return The result of the toolchains building, never {@code null}. - * @throws ToolchainsBuildingException If the effective toolchains could not be built. - */ - ToolchainsBuildingResult build( ToolchainsBuildingRequest request ) - throws ToolchainsBuildingException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuildingException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuildingException.java deleted file mode 100644 index 56ed1d3e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuildingException.java +++ /dev/null @@ -1,93 +0,0 @@ -package org.apache.maven.toolchain.building; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.PrintWriter; -import java.io.StringWriter; -import java.util.ArrayList; -import java.util.List; - -import org.apache.maven.building.Problem; - -/** - * @author Robert Scholte - * @since 3.3.0 - */ -public class ToolchainsBuildingException - extends Exception -{ - - private final List problems; - - /** - * Creates a new exception with the specified problems. - * - * @param problems The problems that causes this exception, must not be {@code null}. - */ - public ToolchainsBuildingException( List problems ) - { - super( toMessage( problems ) ); - - this.problems = new ArrayList(); - if ( problems != null ) - { - this.problems.addAll( problems ); - } - } - - /** - * Gets the problems that caused this exception. - * - * @return The problems that caused this exception, never {@code null}. - */ - public List getProblems() - { - return problems; - } - - private static String toMessage( List problems ) - { - StringWriter buffer = new StringWriter( 1024 ); - - PrintWriter writer = new PrintWriter( buffer ); - - writer.print( problems.size() ); - writer.print( ( problems.size() == 1 ) ? " problem was " : " problems were " ); - writer.print( "encountered while building the effective toolchains" ); - writer.println(); - - for ( Problem problem : problems ) - { - writer.print( "[" ); - writer.print( problem.getSeverity() ); - writer.print( "] " ); - writer.print( problem.getMessage() ); - String location = problem.getLocation(); - if ( !location.isEmpty() ) - { - writer.print( " @ " ); - writer.print( location ); - } - writer.println(); - } - - return buffer.toString(); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuildingRequest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuildingRequest.java deleted file mode 100644 index cf65d4cd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuildingRequest.java +++ /dev/null @@ -1,64 +0,0 @@ -package org.apache.maven.toolchain.building; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.building.Source; - -/** - * Collects toolchains that control the building of effective toolchains. - * - * @author Robert Scholte - * @since 3.3.0 - */ -public interface ToolchainsBuildingRequest -{ - - /** - * Gets the global toolchains source. - * - * @return The global toolchains source or {@code null} if none. - */ - Source getGlobalToolchainsSource(); - - /** - * Sets the global toolchains source. If both user toolchains and a global toolchains are given, the user toolchains - * take precedence. - * - * @param globalToolchainsSource The global toolchains source, may be {@code null} to disable global toolchains. - * @return This request, never {@code null}. - */ - ToolchainsBuildingRequest setGlobalToolchainsSource( Source globalToolchainsSource ); - - /** - * Gets the user toolchains source. - * - * @return The user toolchains source or {@code null} if none. - */ - Source getUserToolchainsSource(); - - /** - * Sets the user toolchains source. If both user toolchains and a global toolchains are given, the user toolchains - * take precedence. - * - * @param userToolchainsSource The user toolchains source, may be {@code null} to disable user toolchains. - * @return This request, never {@code null}. - */ - ToolchainsBuildingRequest setUserToolchainsSource( Source userToolchainsSource ); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuildingResult.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuildingResult.java deleted file mode 100644 index 592fb98c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuildingResult.java +++ /dev/null @@ -1,50 +0,0 @@ -package org.apache.maven.toolchain.building; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.building.Problem; -import org.apache.maven.toolchain.model.PersistedToolchains; - -/** - * Collects the output of the toolchains builder. - * - * @author Robert Scholte - * @since 3.3.0 - */ -public interface ToolchainsBuildingResult -{ - - /** - * Gets the assembled toolchains. - * - * @return The assembled toolchains, never {@code null}. - */ - PersistedToolchains getEffectiveToolchains(); - - /** - * Return a list of problems, if any. - * - * @return a list of problems, never {@code null}. - */ - List getProblems(); - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/io/DefaultToolchainsReader.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/io/DefaultToolchainsReader.java deleted file mode 100644 index 8aeefe8b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/io/DefaultToolchainsReader.java +++ /dev/null @@ -1,115 +0,0 @@ -package org.apache.maven.toolchain.io; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.IOException; -import java.io.InputStream; -import java.io.Reader; -import java.util.Map; - -import javax.inject.Named; -import javax.inject.Singleton; - -import org.apache.maven.toolchain.model.PersistedToolchains; -import org.apache.maven.toolchain.model.io.xpp3.MavenToolchainsXpp3Reader; -import org.codehaus.plexus.util.IOUtil; -import org.codehaus.plexus.util.ReaderFactory; -import org.codehaus.plexus.util.xml.pull.XmlPullParserException; - -/** - * Handles deserialization of toolchains from the default textual format. - * - * @author Robert Scholte - * @since 3.3.0 - */ -@Named -@Singleton -public class DefaultToolchainsReader - implements ToolchainsReader -{ - - @Override - public PersistedToolchains read( File input, Map options ) - throws IOException - { - if ( input == null ) - { - throw new IllegalArgumentException( "input file missing" ); - } - - return read( ReaderFactory.newXmlReader( input ), options ); - } - - @Override - public PersistedToolchains read( Reader input, Map options ) - throws IOException - { - if ( input == null ) - { - throw new IllegalArgumentException( "input reader missing" ); - } - - try - { - MavenToolchainsXpp3Reader r = new MavenToolchainsXpp3Reader(); - return r.read( input, isStrict( options ) ); - } - catch ( XmlPullParserException e ) - { - throw new ToolchainsParseException( e.getMessage(), e.getLineNumber(), e.getColumnNumber(), e ); - } - finally - { - IOUtil.close( input ); - } - } - - @Override - public PersistedToolchains read( InputStream input, Map options ) - throws IOException - { - if ( input == null ) - { - throw new IllegalArgumentException( "input stream missing" ); - } - - try - { - MavenToolchainsXpp3Reader r = new MavenToolchainsXpp3Reader(); - return r.read( input, isStrict( options ) ); - } - catch ( XmlPullParserException e ) - { - throw new ToolchainsParseException( e.getMessage(), e.getLineNumber(), e.getColumnNumber(), e ); - } - finally - { - IOUtil.close( input ); - } - } - - private boolean isStrict( Map options ) - { - Object value = ( options != null ) ? options.get( IS_STRICT ) : null; - return value == null || Boolean.parseBoolean( value.toString() ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/io/ToolchainsParseException.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/io/ToolchainsParseException.java deleted file mode 100644 index 95c2aed8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/io/ToolchainsParseException.java +++ /dev/null @@ -1,94 +0,0 @@ -package org.apache.maven.toolchain.io; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.IOException; - -/** - * Signals a failure to parse the toolchains due to invalid syntax (e.g. non-wellformed XML or unknown elements). - * - * @author Robert Scholte - * @since 3.3.0 - */ -public class ToolchainsParseException - extends IOException -{ - - /** - * The one-based index of the line containing the error. - */ - private final int lineNumber; - - /** - * The one-based index of the column containing the error. - */ - private final int columnNumber; - - /** - * Creates a new parser exception with the specified details. - * - * @param message The error message, may be {@code null}. - * @param lineNumber The one-based index of the line containing the error or {@code -1} if unknown. - * @param columnNumber The one-based index of the column containing the error or {@code -1} if unknown. - */ - public ToolchainsParseException( String message, int lineNumber, int columnNumber ) - { - super( message ); - this.lineNumber = lineNumber; - this.columnNumber = columnNumber; - } - - /** - * Creates a new parser exception with the specified details. - * - * @param message The error message, may be {@code null}. - * @param lineNumber The one-based index of the line containing the error or {@code -1} if unknown. - * @param columnNumber The one-based index of the column containing the error or {@code -1} if unknown. - * @param cause The nested cause of this error, may be {@code null}. - */ - public ToolchainsParseException( String message, int lineNumber, int columnNumber, Throwable cause ) - { - super( message ); - initCause( cause ); - this.lineNumber = lineNumber; - this.columnNumber = columnNumber; - } - - /** - * Gets the one-based index of the line containing the error. - * - * @return The one-based index of the line containing the error or a non-positive value if unknown. - */ - public int getLineNumber() - { - return lineNumber; - } - - /** - * Gets the one-based index of the column containing the error. - * - * @return The one-based index of the column containing the error or non-positive value if unknown. - */ - public int getColumnNumber() - { - return columnNumber; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/io/ToolchainsReader.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/io/ToolchainsReader.java deleted file mode 100644 index 44dc2bdc..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/io/ToolchainsReader.java +++ /dev/null @@ -1,83 +0,0 @@ -package org.apache.maven.toolchain.io; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.IOException; -import java.io.InputStream; -import java.io.Reader; -import java.util.Map; - -import org.apache.maven.toolchain.model.PersistedToolchains; - -/** - * Handles deserialization of toolchains from some kind of textual format like XML. - * - * @author Robert Scholte - * @since 3.3.0 - */ -public interface ToolchainsReader -{ - - /** - * The key for the option to enable strict parsing. This option is of type {@link Boolean} and defaults to {@code - * true}. If {@code false}, unknown elements will be ignored instead of causing a failure. - */ - String IS_STRICT = "org.apache.maven.toolchains.io.isStrict"; - - /** - * Reads the toolchains from the specified file. - * - * @param input The file to deserialize the toolchains from, must not be {@code null}. - * @param options The options to use for deserialization, may be {@code null} to use the default values. - * @return The deserialized toolchains, never {@code null}. - * @throws IOException If the toolchains could not be deserialized. - * @throws ToolchainsParseException If the input format could not be parsed. - */ - PersistedToolchains read( File input, Map options ) - throws IOException, ToolchainsParseException; - - /** - * Reads the toolchains from the specified character reader. The reader will be automatically closed before the - * method returns. - * - * @param input The reader to deserialize the toolchains from, must not be {@code null}. - * @param options The options to use for deserialization, may be {@code null} to use the default values. - * @return The deserialized toolchains, never {@code null}. - * @throws IOException If the toolchains could not be deserialized. - * @throws ToolchainsParseException If the input format could not be parsed. - */ - PersistedToolchains read( Reader input, Map options ) - throws IOException, ToolchainsParseException; - - /** - * Reads the toolchains from the specified byte stream. The stream will be automatically closed before the method - * returns. - * - * @param input The stream to deserialize the toolchains from, must not be {@code null}. - * @param options The options to use for deserialization, may be {@code null} to use the default values. - * @return The deserialized toolchains, never {@code null}. - * @throws IOException If the toolchains could not be deserialized. - * @throws ToolchainsParseException If the input format could not be parsed. - */ - PersistedToolchains read( InputStream input, Map options ) - throws IOException, ToolchainsParseException; - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/java/DefaultJavaToolChain.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/java/DefaultJavaToolChain.java deleted file mode 100644 index 9cfcff38..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/java/DefaultJavaToolChain.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.apache.maven.toolchain.java; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.toolchain.model.ToolchainModel; -import org.codehaus.plexus.logging.Logger; - -/** - * Provides backwards compatibility with Maven 3.2.3 and earlier. Clients that do not require compatibility with Maven - * 3.2.3 and earlier are encouraged to use {@link JavaToolchainImpl}. - * Note: This is an internal component whose interface can change without prior notice. - * - * @deprecated clients that do not require compatibility with Maven 3.2.3 and earlier should link to - * {@link JavaToolchainImpl} instead. - */ -public class DefaultJavaToolChain - extends JavaToolchainImpl -{ - public static final String KEY_JAVAHOME = JavaToolchainImpl.KEY_JAVAHOME; - - public DefaultJavaToolChain( ToolchainModel model, Logger logger ) - { - super( model, logger ); - } - - @Override - public String getJavaHome() - { - return super.getJavaHome(); - } - - @Override - public void setJavaHome( String javaHome ) - { - super.setJavaHome( javaHome ); - } - -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchain.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchain.java deleted file mode 100644 index cb14ada1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchain.java +++ /dev/null @@ -1,67 +0,0 @@ -package org.apache.maven.toolchain.java; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.toolchain.Toolchain; - -/** - * JDK toolchain interface. - * - * @author Jason van Zyl - * @author Milos Kleint - * @since 2.0.9, renamed from JavaToolChain in 3.2.4 - */ -public interface JavaToolchain - extends Toolchain -{ -// /** -// * Returns a list of {@link java.io.File}s which represents the bootstrap libraries for the -// * runtime environment. The Bootstrap libraries include libraries in JRE's -// * extension directory, if there are any. -// * -// * @return List -// */ -// List getBootstrapLibraries(); -// -// /** -// * Returns a list of {@link java.io.File}s which represent the libraries recognized by -// * default by the platform. Usually it corresponds to contents of CLASSPATH -// * environment variable. -// * -// * @return List -// */ -// List getStandardLibraries(); -// -// /** -// * Returns a {@link java.io.File}s which represent the locations of the source of the JDK, -// * or an empty collection when the location is not set or is invalid. -// * -// * @return List -// */ -// List getSourceDirectories(); -// -// /** -// * Returns a {@link java.io.File}s which represent the locations of the Javadoc for this platform, -// * or empty collection if the location is not set or invalid -// * -// * @return List -// */ -// List getJavadocFolders(); -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java deleted file mode 100644 index cd4aef01..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java +++ /dev/null @@ -1,127 +0,0 @@ -package org.apache.maven.toolchain.java; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.Map.Entry; -import java.util.Properties; - -import org.apache.maven.toolchain.MisconfiguredToolchainException; -import org.apache.maven.toolchain.RequirementMatcher; -import org.apache.maven.toolchain.RequirementMatcherFactory; -import org.apache.maven.toolchain.ToolchainFactory; -import org.apache.maven.toolchain.ToolchainPrivate; -import org.apache.maven.toolchain.model.ToolchainModel; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.util.FileUtils; -import org.codehaus.plexus.util.xml.Xpp3Dom; - -/** - * JDK toolchain factory. - * This is a ToolchainFactory Plexus component registered with - * jdk hint. - * - * @author mkleint - * @since 2.0.9, renamed from DefaultJavaToolchainFactory in 3.2.4 - */ -@Component( role = ToolchainFactory.class, hint = "jdk" ) -public class JavaToolchainFactory - implements ToolchainFactory -{ - - @Requirement - private Logger logger; - - public ToolchainPrivate createToolchain( ToolchainModel model ) - throws MisconfiguredToolchainException - { - if ( model == null ) - { - return null; - } - - // use DefaultJavaToolChain for compatibility with maven 3.2.3 and earlier - - @SuppressWarnings( "deprecation" ) - JavaToolchainImpl jtc = new DefaultJavaToolChain( model, logger ); - - // populate the provides section - Properties provides = model.getProvides(); - for ( Entry provide : provides.entrySet() ) - { - String key = (String) provide.getKey(); - String value = (String) provide.getValue(); - - if ( value == null ) - { - throw new MisconfiguredToolchainException( - "Provides token '" + key + "' doesn't have any value configured." ); - } - - RequirementMatcher matcher; - if ( "version".equals( key ) ) - { - matcher = RequirementMatcherFactory.createVersionMatcher( value ); - } - else - { - matcher = RequirementMatcherFactory.createExactMatcher( value ); - } - - jtc.addProvideToken( key, matcher ); - } - - // populate the configuration section - Xpp3Dom dom = (Xpp3Dom) model.getConfiguration(); - Xpp3Dom javahome = dom.getChild( JavaToolchainImpl.KEY_JAVAHOME ); - if ( javahome == null ) - { - throw new MisconfiguredToolchainException( "Java toolchain without the " - + JavaToolchainImpl.KEY_JAVAHOME + " configuration element." ); - } - File normal = new File( FileUtils.normalize( javahome.getValue() ) ); - if ( normal.exists() ) - { - jtc.setJavaHome( FileUtils.normalize( javahome.getValue() ) ); - } - else - { - throw new MisconfiguredToolchainException( "Non-existing JDK home configuration at " - + normal.getAbsolutePath() ); - } - - return jtc; - } - - public ToolchainPrivate createDefaultToolchain() - { - //not sure it's necessary to provide a default toolchain here. - //only version can be eventually supplied, and - return null; - } - - protected Logger getLogger() - { - return logger; - } - -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchainImpl.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchainImpl.java deleted file mode 100644 index 4a09ee06..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchainImpl.java +++ /dev/null @@ -1,87 +0,0 @@ -package org.apache.maven.toolchain.java; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; - -import org.apache.maven.toolchain.DefaultToolchain; -import org.apache.maven.toolchain.model.ToolchainModel; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.util.FileUtils; -import org.codehaus.plexus.util.Os; - -/** - * JDK toolchain implementation. - * - * @author Milos Kleint - * @since 2.0.9, renamed from DefaultJavaToolChain in 3.2.4 - */ -class JavaToolchainImpl - extends DefaultToolchain - implements JavaToolchain -{ - private String javaHome; - - public static final String KEY_JAVAHOME = "jdkHome"; //NOI18N - - public JavaToolchainImpl( ToolchainModel model, Logger logger ) - { - super( model, "jdk", logger ); - } - - public String getJavaHome() - { - return javaHome; - } - - public void setJavaHome( String javaHome ) - { - this.javaHome = javaHome; - } - - public String toString() - { - return "JDK[" + getJavaHome() + "]"; - } - - public String findTool( String toolName ) - { - File toRet = findTool( toolName, new File( FileUtils.normalize( getJavaHome() ) ) ); - if ( toRet != null ) - { - return toRet.getAbsolutePath(); - } - return null; - } - - private static File findTool( String toolName, File installFolder ) - { - File bin = new File( installFolder, "bin" ); //NOI18N - if ( bin.exists() ) - { - File tool = new File( bin, toolName + ( Os.isFamily( "windows" ) ? ".exe" : "" ) ); // NOI18N - if ( tool.exists() ) - { - return tool; - } - } - return null; - } -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/merge/MavenToolchainMerger.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/merge/MavenToolchainMerger.java deleted file mode 100644 index 538f79b3..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/java/org/apache/maven/toolchain/merge/MavenToolchainMerger.java +++ /dev/null @@ -1,103 +0,0 @@ -package org.apache.maven.toolchain.merge; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; - -import org.apache.maven.toolchain.model.PersistedToolchains; -import org.apache.maven.toolchain.model.ToolchainModel; -import org.codehaus.plexus.util.xml.Xpp3Dom; - -/** - * - * @author Robert Scholte - * @since 3.2.4 - */ -public class MavenToolchainMerger -{ - - public void merge( PersistedToolchains dominant, PersistedToolchains recessive, String recessiveSourceLevel ) - { - if ( dominant == null || recessive == null ) - { - return; - } - - recessive.setSourceLevel( recessiveSourceLevel ); - - shallowMerge( dominant.getToolchains(), recessive.getToolchains(), recessiveSourceLevel ); - } - - private void shallowMerge( List dominant, List recessive, - String recessiveSourceLevel ) - { - Map merged = new LinkedHashMap(); - - for ( ToolchainModel dominantModel : dominant ) - { - Object key = getToolchainModelKey( dominantModel ); - - merged.put( key, dominantModel ); - } - - for ( ToolchainModel recessiveModel : recessive ) - { - Object key = getToolchainModelKey( recessiveModel ); - - ToolchainModel dominantModel = merged.get( key ); - if ( dominantModel == null ) - { - recessiveModel.setSourceLevel( recessiveSourceLevel ); - dominant.add( recessiveModel ); - } - else - { - mergeToolchainModel_Configuration( dominantModel, recessiveModel ); - } - } - } - - protected void mergeToolchainModel_Configuration( ToolchainModel target, - ToolchainModel source ) - { - Xpp3Dom src = (Xpp3Dom) source.getConfiguration(); - if ( src != null ) - { - Xpp3Dom tgt = (Xpp3Dom) target.getConfiguration(); - if ( tgt == null ) - { - tgt = Xpp3Dom.mergeXpp3Dom( new Xpp3Dom( src ), tgt ); - } - else - { - tgt = Xpp3Dom.mergeXpp3Dom( tgt, src ); - } - target.setConfiguration( tgt ); - } - } - - protected Object getToolchainModelKey( ToolchainModel model ) - { - return model; - } - -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/mdo/extension.mdo b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/mdo/extension.mdo deleted file mode 100644 index 4b2e4604..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/mdo/extension.mdo +++ /dev/null @@ -1,65 +0,0 @@ - - - - extension - ExtensionDescriptor - META-INF/maven/extension.xml in an extension's jar artifact to - precisely control parts of the extension and dependencies to expose. -

Notice: this documentation is generated from a Modello model but the code executed is not generated - from this descriptor. Please report if you find anything wrong.

- ]]>
- - - package - extension descriptor XML documentation (no java generation) - - - - - ExtensionDescriptor - 1.0.0 - extension.xml file.]]> - - - exportedPackages - 1.0.0 - - String - * - - Packages from the artifact that are exposed. - - - - exportedArtifacts - 1.0.0 - - String - * - - groupId:artifactId file.]]> - - - - - -
diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/mdo/toolchains.mdo b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/mdo/toolchains.mdo deleted file mode 100644 index 830a5275..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/mdo/toolchains.mdo +++ /dev/null @@ -1,231 +0,0 @@ - - - - - toolchains - MavenToolchains - This is a reference for the Maven Toolchains descriptor.

-

The default location for the toolchains file is ~/.m2/toolchains.xml

-

A Toolchain is a preconfigured object that Maven plugins can use for tool configuration retrieval (location and other information).

-

The toolchains-plugin can read available toolchains on the user's computer - and match them against the toolchain requirements of the project (as configured in pom.xml): - if match is found, the toolchain instance is made available to other Maven plugins.

-

With jdk toolchain, for example, instead of being stuck with the JDK used to run Maven, all plugins can use - the same other JDK instance without hardcoding absolute paths into the pom.xml - and without configuring every plugin that require path to JDK tools.

-

See the Guide to Using Toolchains for - more information.

- ]]>
- - - - package - org.apache.maven.toolchain.model - - - - - - TrackableBase - 1.1.0+ - - common base class that contains code to track the source for - this instance (USER|GLOBAL) - - - - 1.1.0+ - - - - - - - - PersistedToolchains - TrackableBase - <toolchains> element is the root of the descriptor. - The following table lists all of the possible child elements. - ]]> - 1.0.0+ - - - toolchains - 1.0.0+ - - - ToolchainModel - * - - - - - - ToolchainModel - TrackableBase - 1.0.0+ - Definition of a toolchain instance. - - - type - 1.0.0+ - - - -
  • jdk for - JDK Standard Toolchain,
  • -
  • other value for - Custom Toolchain
  • - - ]]>
    - String -
    - - provides - 1.0.0/1.0.99 - DOM - - Toolchain identification information, which will be matched against project requirements.

    -

    Actual content structure is completely open: each toolchain type will define its own format and semantics.

    -

    In general, this is a properties format: <name>value</name> with - predefined properties names.

    - ]]>
    -
    - - provides - 1.1.0+ - Properties - - String - * - - - - Toolchain identification information, which will be matched against project requirements.

    -

    For Maven 2.0.9 to 3.2.3, the actual content structure was completely open: each toolchain type would define its own format and semantics. - In general, this was a properties format.

    -

    Since Maven 3.2.4, the type for this field has been changed to Properties to match the de-facto format.

    -

    Each toolchain defines its own properties names and semantics.

    - ]]>
    -
    - - configuration - 1.0.0+ - DOM - - Toolchain configuration information, like location or any information that is to be retrieved.

    -

    Actual content structure is completely open: each toochain type will define its own format and semantics.

    -

    In general, this is a properties format: <name>value</name> with - per-toolchain defined properties names.

    - ]]>
    -
    -
    - - - 1.1.0+ - Generated hashCode() and equals() based on identifier also calls its super, which breaks comparison - - - - - -
    -
    -
    - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/META-INF/maven/extension.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/META-INF/maven/extension.xml deleted file mode 100644 index 6abf2186..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/META-INF/maven/extension.xml +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - - org.apache.maven.* - org.apache.maven.artifact - org.apache.maven.classrealm - org.apache.maven.cli - org.apache.maven.configuration - org.apache.maven.exception - org.apache.maven.execution - org.apache.maven.execution.scope - org.apache.maven.lifecycle - org.apache.maven.model - org.apache.maven.monitor - org.apache.maven.plugin - org.apache.maven.profiles - org.apache.maven.project - org.apache.maven.reporting - org.apache.maven.repository - org.apache.maven.rtinfo - org.apache.maven.settings - org.apache.maven.toolchain - org.apache.maven.usability - - - - org.apache.maven.wagon.* - org.apache.maven.wagon.authentication - org.apache.maven.wagon.authorization - org.apache.maven.wagon.events - org.apache.maven.wagon.observers - org.apache.maven.wagon.proxy - org.apache.maven.wagon.repository - org.apache.maven.wagon.resource - - - org.eclipse.aether.* - org.eclipse.aether.artifact - org.eclipse.aether.collection - org.eclipse.aether.deployment - org.eclipse.aether.graph - org.eclipse.aether.impl - org.eclipse.aether.internal.impl - org.eclipse.aether.installation - org.eclipse.aether.metadata - org.eclipse.aether.repository - org.eclipse.aether.resolution - org.eclipse.aether.spi - org.eclipse.aether.transfer - org.eclipse.aether.version - - - org.codehaus.plexus.classworlds - - - org.codehaus.classworlds - - - org.codehaus.plexus.util.xml.Xpp3Dom - org.codehaus.plexus.util.xml.pull.XmlPullParser - org.codehaus.plexus.util.xml.pull.XmlPullParserException - org.codehaus.plexus.util.xml.pull.XmlSerializer - - - org.codehaus.plexus.* - org.codehaus.plexus.component - org.codehaus.plexus.configuration - org.codehaus.plexus.container - org.codehaus.plexus.context - org.codehaus.plexus.lifecycle - org.codehaus.plexus.logging - org.codehaus.plexus.personality - - - javax.inject.* - - javax.enterprise.util.* - javax.enterprise.inject.* - - - - - - org.slf4j.* - org.slf4j.spi.* - - - - - classworlds:classworlds - org.codehaus.plexus:plexus-classworlds - org.codehaus.plexus:plexus-component-api - org.codehaus.plexus:plexus-container-default - plexus:plexus-container-default - org.sonatype.spice:spice-inject-plexus - org.sonatype.sisu:sisu-inject-plexus - org.eclipse.sisu:org.eclipse.sisu.plexus - org.apache.maven:maven-artifact - org.apache.maven:maven-aether-provider - org.apache.maven:maven-artifact-manager - org.apache.maven:maven-compat - org.apache.maven:maven-core - org.apache.maven:maven-error-diagnostics - org.apache.maven:maven-lifecycle - org.apache.maven:maven-model - org.apache.maven:maven-model-builder - org.apache.maven:maven-monitor - org.apache.maven:maven-plugin-api - org.apache.maven:maven-plugin-descriptor - org.apache.maven:maven-plugin-parameter-documenter - org.apache.maven:maven-plugin-registry - org.apache.maven:maven-profile - org.apache.maven:maven-project - org.apache.maven:maven-repository-metadata - org.apache.maven:maven-settings - org.apache.maven:maven-settings-builder - org.apache.maven:maven-toolchain - org.apache.maven.wagon:wagon-provider-api - org.eclipse.aether:aether-api - org.eclipse.aether:aether-spi - org.eclipse.aether:aether-impl - - javax.inject:javax.inject - org.slf4j:slf4j-api - - - org.sonatype.aether:aether-api - org.sonatype.aether:aether-spi - org.sonatype.aether:aether-impl - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/META-INF/plexus/artifact-handlers.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/META-INF/plexus/artifact-handlers.xml deleted file mode 100644 index 05795beb..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/META-INF/plexus/artifact-handlers.xml +++ /dev/null @@ -1,219 +0,0 @@ - - - - - - - - - - - org.apache.maven.artifact.handler.ArtifactHandler - pom - org.apache.maven.artifact.handler.DefaultArtifactHandler - - pom - - - - - - org.apache.maven.artifact.handler.ArtifactHandler - jar - org.apache.maven.artifact.handler.DefaultArtifactHandler - - jar - java - true - - - - - - org.apache.maven.artifact.handler.ArtifactHandler - ejb - org.apache.maven.artifact.handler.DefaultArtifactHandler - - ejb - jar - java - true - - - - org.apache.maven.artifact.handler.ArtifactHandler - ejb-client - org.apache.maven.artifact.handler.DefaultArtifactHandler - - ejb-client - jar - ejb - client - java - true - - - - org.apache.maven.artifact.handler.ArtifactHandler - ejb3 - org.apache.maven.artifact.handler.DefaultArtifactHandler - - ejb3 - true - java - false - - - - - - org.apache.maven.artifact.handler.ArtifactHandler - test-jar - org.apache.maven.artifact.handler.DefaultArtifactHandler - - tests - jar - test-jar - jar - java - true - - - - - - org.apache.maven.artifact.handler.ArtifactHandler - maven-plugin - org.apache.maven.artifact.handler.DefaultArtifactHandler - - maven-plugin - jar - java - true - - - - - - org.apache.maven.artifact.handler.ArtifactHandler - java-source - org.apache.maven.artifact.handler.DefaultArtifactHandler - - sources - java-source - jar - java - false - - - - - - org.apache.maven.artifact.handler.ArtifactHandler - javadoc - org.apache.maven.artifact.handler.DefaultArtifactHandler - - javadoc - javadoc - jar - java - true - - - - - - org.apache.maven.artifact.handler.ArtifactHandler - war - org.apache.maven.artifact.handler.DefaultArtifactHandler - - war - true - java - false - - - - - - org.apache.maven.artifact.handler.ArtifactHandler - ear - org.apache.maven.artifact.handler.DefaultArtifactHandler - - ear - true - java - false - - - - - - org.apache.maven.artifact.handler.ArtifactHandler - rar - org.apache.maven.artifact.handler.DefaultArtifactHandler - - rar - true - java - false - - - - - - org.apache.maven.artifact.handler.ArtifactHandler - par - org.apache.maven.artifact.handler.DefaultArtifactHandler - - par - true - java - false - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/META-INF/plexus/components.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/META-INF/plexus/components.xml deleted file mode 100644 index 3f099cb1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/META-INF/plexus/components.xml +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - - - - - org.apache.maven.lifecycle.Lifecycle - org.apache.maven.lifecycle.Lifecycle - default - - default - - - validate - initialize - generate-sources - process-sources - generate-resources - process-resources - compile - process-classes - generate-test-sources - process-test-sources - generate-test-resources - process-test-resources - test-compile - process-test-classes - test - prepare-package - package - pre-integration-test - integration-test - post-integration-test - verify - install - deploy - - - - - - - - org.apache.maven.lifecycle.Lifecycle - org.apache.maven.lifecycle.Lifecycle - clean - - clean - - - pre-clean - clean - post-clean - - - - org.apache.maven.plugins:maven-clean-plugin:2.5:clean - - - - - - - - - org.apache.maven.lifecycle.Lifecycle - org.apache.maven.lifecycle.Lifecycle - site - - site - - - pre-site - site - post-site - site-deploy - - - - org.apache.maven.plugins:maven-site-plugin:3.3:site - - - org.apache.maven.plugins:maven-site-plugin:3.3:deploy - - - - - - - - org.sonatype.plexus.components.sec.dispatcher.SecDispatcher - maven - org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher - Maven Security dispatcher - - - org.sonatype.plexus.components.cipher.PlexusCipher - _cipher - - - org.sonatype.plexus.components.sec.dispatcher.PasswordDecryptor - _decryptors - - - - <_configuration-file>~/.m2/settings-security.xml - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/META-INF/plexus/default-bindings.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/META-INF/plexus/default-bindings.xml deleted file mode 100644 index 79d6c52e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/META-INF/plexus/default-bindings.xml +++ /dev/null @@ -1,399 +0,0 @@ - - - - - - - - - - - org.apache.maven.lifecycle.mapping.LifecycleMapping - pom - org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping - - - - default - - - - org.apache.maven.plugins:maven-install-plugin:2.4:install - - - org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy - - - - - - - - - - - org.apache.maven.lifecycle.mapping.LifecycleMapping - jar - org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping - - - - default - - - - org.apache.maven.plugins:maven-resources-plugin:2.6:resources - - - org.apache.maven.plugins:maven-compiler-plugin:3.1:compile - - - org.apache.maven.plugins:maven-resources-plugin:2.6:testResources - - - org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile - - - org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test - - - org.apache.maven.plugins:maven-jar-plugin:2.4:jar - - - org.apache.maven.plugins:maven-install-plugin:2.4:install - - - org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy - - - - - - - - - - - org.apache.maven.lifecycle.mapping.LifecycleMapping - ejb - org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping - - - - default - - - - org.apache.maven.plugins:maven-resources-plugin:2.6:resources - - - org.apache.maven.plugins:maven-compiler-plugin:3.1:compile - - - org.apache.maven.plugins:maven-resources-plugin:2.6:testResources - - - org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile - - - org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test - - - org.apache.maven.plugins:maven-ejb-plugin:2.3:ejb - - - org.apache.maven.plugins:maven-install-plugin:2.4:install - - - org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy - - - - - - - - - org.apache.maven.lifecycle.mapping.LifecycleMapping - ejb3 - org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping - - - - default - - - - org.apache.maven.plugins:maven-resources-plugin:2.6:resources - - - org.apache.maven.plugins:maven-compiler-plugin:3.1:compile - - - org.apache.maven.plugins:maven-resources-plugin:2.6:testResources - - - org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile - - - org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test - - - org.apache.maven.plugins:maven-ejb3-plugin:ejb3 - - - org.apache.maven.plugins:maven-install-plugin:2.4:install - - - org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy - - - - - - - - - - - org.apache.maven.lifecycle.mapping.LifecycleMapping - maven-plugin - org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping - - - - default - - - - org.apache.maven.plugins:maven-resources-plugin:2.6:resources - - - org.apache.maven.plugins:maven-compiler-plugin:3.1:compile - - - org.apache.maven.plugins:maven-plugin-plugin:3.2:descriptor - - - org.apache.maven.plugins:maven-resources-plugin:2.6:testResources - - - org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile - - - org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test - - - org.apache.maven.plugins:maven-jar-plugin:2.4:jar, - org.apache.maven.plugins:maven-plugin-plugin:3.2:addPluginArtifactMetadata - - - org.apache.maven.plugins:maven-install-plugin:2.4:install - - - org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy - - - - - - - - - - - org.apache.maven.lifecycle.mapping.LifecycleMapping - war - org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping - - - - default - - - - org.apache.maven.plugins:maven-resources-plugin:2.6:resources - - - org.apache.maven.plugins:maven-compiler-plugin:3.1:compile - - - org.apache.maven.plugins:maven-resources-plugin:2.6:testResources - - - org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile - - - org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test - - - org.apache.maven.plugins:maven-war-plugin:2.2:war - - - org.apache.maven.plugins:maven-install-plugin:2.4:install - - - org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy - - - - - - - - - - - org.apache.maven.lifecycle.mapping.LifecycleMapping - ear - org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping - - - - default - - - - org.apache.maven.plugins:maven-ear-plugin:2.8:generate-application-xml - - - org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources - - - org.apache.maven.plugins:maven-ear-plugin:2.8:ear - - - org.apache.maven.plugins:maven-install-plugin:2.4:install - - - org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy - - - - - - - - - - - org.apache.maven.lifecycle.mapping.LifecycleMapping - rar - org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping - - - - default - - - - org.apache.maven.plugins:maven-resources-plugin:2.6:resources - - - org.apache.maven.plugins:maven-compiler-plugin:3.1:compile - - - org.apache.maven.plugins:maven-resources-plugin:2.6:testResources - - - org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile - - - org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test - - - org.apache.maven.plugins:maven-rar-plugin:2.2:rar - - - org.apache.maven.plugins:maven-install-plugin:2.4:install - - - org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy - - - - - - - - - - - org.apache.maven.lifecycle.mapping.LifecycleMapping - par - org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping - - - - default - - - - org.apache.maven.plugins:maven-resources-plugin:2.6:resources - - - org.apache.maven.plugins:maven-compiler-plugin:3.1:compile - - - org.apache.maven.plugins:maven-resources-plugin:2.6:testResources - - - org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile - - - org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test - - - org.apache.maven.plugins:maven-par-plugin:par - - - org.apache.maven.plugins:maven-install-plugin:2.4:install - - - org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy - - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/build.properties b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/build.properties deleted file mode 100644 index d15784a7..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/build.properties +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -buildNumber=${buildNumber} -timestamp=${timestamp} -version=${project.version} -distributionId=${distributionId} -distributionShortName=${distributionShortName} -distributionName=${distributionName} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages.properties b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages.properties deleted file mode 100644 index d576d7aa..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages.properties +++ /dev/null @@ -1,34 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# -------------------------------------------------------------------------- -# Project Verifier -# -------------------------------------------------------------------------- -failed.download.warning=WARNING: Failed to download {0}. -remote.repository.disabled.warning=The use of the remote repository has been disabled. -directory.nonexistant.warning=Directory {0} does not exist. Attempting to create. -not.directory.warning={0} is not a directory. -not.writable.warning={0} is not writable. -cannot.create.directory.warning=Unable to create directory {0} -maven.repo.local.unset.warning=maven.repo.local is not set. -single.unsatisfied.dependency.error=The build cannot continue because of the following unsatisfied dependency: -multiple.unsatisfied.dependency.error=The build cannot continue because of the following unsatisfied dependencies: -offline.snapshot.warning=You are working offline so the build will continue, but {0} may be out of date! -download.message=Attempting to download {0}. -plugin.loading.error=The plugin {0} could not be loaded. -empty.descriptor.error=The file {0} you specified has zero length. -checksum.verification.error=The follow artifact is corrupt: {0}. diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_de.properties b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_de.properties deleted file mode 100644 index d5c7dad0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_de.properties +++ /dev/null @@ -1,34 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# -------------------------------------------------------------------------- -# Project Verifier -# -------------------------------------------------------------------------- -failed.download.warning=WARNUNG: Herunterladen von {0} fehlgeschlagen. -remote.repository.disabled.warning=Verwendung entfernter Repositories deaktiviert. -directory.nonexistant.warning=Verzeichnis {0} existiert nicht, es wird erstellt. -not.directory.warning={0} ist kein Verzeichnis. -not.writable.warning=Kann {0} nicht schreiben. -cannot.create.directory.warning=Kann Verzeichnis {0} nicht erstellen. -maven.repo.local.unset.warning=maven.repo.local ist nicht gesetzt. -single.unsatisfied.dependency.error=Der Vorgang wurde aufgrund der folgenden nicht erf\u00FCllten Abh\u00E4ngigkeit abgebrochen: -multiple.unsatisfied.dependency.error=Der Vorgang wurde aufgrund der folgenden nicht erf\u00FCllten Abh\u00E4ngigkeiten abgebrochen: -offline.snapshot.warning={0} ist unter Umst\u00E4nden veraltet. Da Sie offline arbeiten, wird der Vorgang fortgesetzt. -download.message=Versuche {0} herunterzuladen. -plugin.loading.error=Kann Plugin {0} nicht laden. -empty.descriptor.error=Datei {0} ist leer. -checksum.verification.error=Artefakt {0} ist defekt. diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_el.properties b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_el.properties deleted file mode 100644 index 40a239e9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_el.properties +++ /dev/null @@ -1,33 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# -------------------------------------------------------------------------- -# \u00c5\u00eb\u00e5\u00e3\u00ea\u00f4\u00de\u00f2 \u00d3\u00f7\u00e5\u00e4\u00df\u00ef\u00f5 -# -------------------------------------------------------------------------- -failed.download.warning=\u00d0\u00f1\u00ef\u00f3\u00f9\u00f7\u00de! \u00c1\u00e4\u00fd\u00ed\u00e1\u00f4\u00f9\u00ed \u00e7 \u00ec\u00e5\u00f4\u00e1\u00f6\u00ef\u00f1\u00dc \u00f4\u00ef\u00f5 {0}! -remote.repository.disabled.warning=\u00c7 \u00f7\u00f1\u00de\u00f3\u00e7 \u00e1\u00f0\u00ef\u00ec\u00e1\u00ea\u00f1\u00f5\u00f3\u00ec\u00dd\u00ed\u00f9\u00ed \u00e1\u00f0\u00ef\u00e8\u00e7\u00ea\u00fe\u00ed \u00dd\u00f7\u00e5\u00e9 \u00e1\u00f0\u00e5\u00ed\u00e5\u00f1\u00e3\u00ef\u00f0\u00ef\u00e9\u00e7\u00e8\u00e5\u00df.. -directory.nonexistant.warning=\u00cf \u00ea\u00e1\u00f4\u00dc\u00eb\u00ef\u00e3\u00ef\u00f2 {0} \u00e4\u00e5\u00ed \u00f5\u00f0\u00dc\u00f1\u00f7\u00e5\u00e9! \u00c4\u00ef\u00ea\u00e9\u00ec\u00dc\u00e6\u00f9 \u00e4\u00e7\u00ec\u00e9\u00ef\u00fd\u00f1\u00e3\u00e7\u00f3\u00e7... -not.directory.warning={0} \u00e4\u00e5\u00ed \u00e5\u00df\u00ed\u00e1\u00e9 \u00ea\u00e1\u00f4\u00dc\u00eb\u00ef\u00e3\u00ef\u00f2! -not.writable.warning=\u00c1\u00e4\u00fd\u00ed\u00e1\u00f4\u00f9\u00ed \u00e7 \u00e4\u00e9\u00e5\u00e3\u00e3\u00f1\u00e1\u00f6\u00de \u00f3\u00f4\u00ef {0}! -cannot.create.directory.warning=\u00c1\u00e4\u00fd\u00ed\u00e1\u00f4\u00f9\u00ed \u00e7 \u00e4\u00e7\u00ec\u00e9\u00ef\u00f5\u00f1\u00e3\u00e5\u00df\u00e1 \u00f4\u00ef\u00fd \u00ea\u00e1\u00f4\u00e1\u00eb\u00fc\u00e3\u00ef\u00f5 {0}! -maven.repo.local.unset.warning=maven.repo.local \u00e4\u00e5\u00ed \u00dd\u00f7\u00e5\u00e9 \u00ef\u00f1\u00e9\u00f3\u00f4\u00e5\u00df. -single.unsatisfied.dependency.error= \u00c7 \u00e4\u00e9\u00e1\u00e4\u00e9\u00ea\u00e1\u00f3\u00df\u00e1 \u00e4\u00e5\u00ed \u00ec\u00f0\u00ef\u00f1\u00e5\u00df \u00ed\u00e1 \u00f3\u00f5\u00ed\u00e5\u00f7\u00e9\u00f3\u00f4\u00e5\u00df! \u00cb\u00e5\u00df\u00f0\u00e5\u00e9 \u00e7 \u00e1\u00ea\u00fc\u00eb\u00ef\u00f5\u00e8\u00e7 \u00e5\u00ee\u00dc\u00f1\u00f4\u00e7\u00f3\u00e5\u00e9: -multiple.unsatisfied.dependency.error=\u00c7 \u00e4\u00e9\u00e1\u00e4\u00e9\u00ea\u00e1\u00f3\u00df\u00e1 \u00e4\u00e5\u00ed \u00ec\u00f0\u00ef\u00f1\u00e5\u00df \u00ed\u00e1 \u00f3\u00f5\u00ed\u00e5\u00f7\u00e9\u00f3\u00f4\u00e5\u00df! \u00cb\u00e5\u00df\u00f0\u00ef\u00f5\u00ed \u00e7 \u00e1\u00ea\u00fc\u00eb\u00ef\u00f5\u00e8\u00e5\u00f2 \u00e5\u00ee\u00e1\u00f1\u00f4\u00de\u00f3\u00e5\u00e9\u00f2: -offline.snapshot.warning=\u00c5\u00f1\u00e3\u00dc\u00e6\u00e5\u00f3\u00e1\u00e9 \u00e1\u00f0\u00ef\u00f3\u00f5\u00ed\u00e4\u00e5\u00e4\u00ef\u00ec\u00dd\u00ed\u00ef\u00f2! \u00c7 \u00e4\u00e9\u00e1\u00e4\u00e9\u00ea\u00e1\u00f3\u00df\u00e1 \u00e8\u00e1 \u00f3\u00f5\u00ed\u00e5\u00f7\u00df\u00f3\u00e5\u00e9 \u00e1\u00eb\u00eb\u00dc \u00e5\u00df\u00ed\u00e1\u00e9 \u00e4\u00f5\u00ed\u00e1\u00f4\u00fe\u00ed {0} \u00ed\u00e1 \u00ec\u00e7\u00ed \u00e5\u00df\u00ed\u00e1\u00e9 \u00e5\u00ed\u00e7\u00ec\u00e5\u00f1\u00f9\u00ec\u00dd\u00ed\u00ef! -download.message=\u00d0\u00f1\u00f9\u00f3\u00f0\u00e1\u00e8\u00fe \u00ed\u00e1 \u00ec\u00e5\u00f4\u00e1\u00f6\u00dd\u00f1\u00f9 {0}. -plugin.loading.error=\u00c1\u00e4\u00fd\u00ed\u00e1\u00f4\u00f9\u00ed \u00ed\u00e1 \u00f6\u00ef\u00f1\u00f4\u00f9\u00e8\u00e5\u00df \u00f4\u00ef plugin {0}! -empty.descriptor.error=\u00d4\u00ef \u00e1\u00f1\u00f7\u00e5\u00df\u00ef {0} \u00f0\u00ef\u00fd \u00ea\u00e1\u00e8\u00ef\u00f1\u00df\u00f3\u00e1\u00f4\u00e5 \u00dd\u00f7\u00e5\u00e9 \u00ec\u00dd\u00e3\u00e5\u00e8\u00ef\u00f2 \u00ec\u00e7\u00e4\u00dd\u00ed. diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_en.properties b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_en.properties deleted file mode 100644 index aaf95bfd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_en.properties +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE: -# This bundle is intentionally empty because English strings are provided by the base bundle via the parent chain. It -# must be provided nevertheless such that a request for locale "en" will not erroneously pick up the bundle for the -# JVM's default locale (which need not be "en"). See the method javadoc about -# ResourceBundle.getBundle(String, Locale, ClassLoader) -# for a full description of the lookup strategy. diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_es.properties b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_es.properties deleted file mode 100644 index d54395e3..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_es.properties +++ /dev/null @@ -1,33 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# -------------------------------------------------------------------------- -# Verificador de Proyecto -# -------------------------------------------------------------------------- -failed.download.warning=\u00a1ATENCION!: \u00a1Imposible descargar {0}! -remote.repository.disabled.warning=El uso de repositorios remotos est\u00e1 desactivado.. -directory.nonexistant.warning=\u00a1El directorio {0} no existe! Intentando crear... -not.directory.warning=\u00a1{0} no es un directorio! -not.writable.warning=\u00a1Imposible escribir en {0}! -cannot.create.directory.warning=\u00a1Imposible crear el directorio {0}! -maven.repo.local.unset.warning=\u00a1maven.repo.local no est\u00e1 definido! -single.unsatisfied.dependency.error=\u00a1El proceso no puede seguir! Falta la siguiente dependencia: -multiple.unsatisfied.dependency.error=\u00a1El proceso no puede seguir! Faltan las siguientes dependencias: -offline.snapshot.warning=\u00a1Est\u00e1s trabajando fuera de linea! \u00a1El proceso seguir\u00e1, pero es posible que {0} no est\u00e9 actualizado! -download.message=Intentando descargar {0}. -plugin.loading.error=\u00a1No se ha podido cargar el plugin {0}! -empty.descriptor.error=El fichero especificado, {0} , tiene longitud cero. diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_fr.properties b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_fr.properties deleted file mode 100644 index 06eb48f5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_fr.properties +++ /dev/null @@ -1,33 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# -------------------------------------------------------------------------- -# Project Verifier -# -------------------------------------------------------------------------- -failed.download.warning=ATTENTION: Impossible de t\u00e9l\u00e9charger {0}. -remote.repository.disabled.warning=L'utilisation du d\u00e9p\u00f4t distant est d\u00e9sactiv\u00e9e. -directory.nonexistant.warning=Le r\u00e9pertoire {0} n'existe pas. Tentative de cr\u00e9ation. -not.directory.warning={0} n'est pas un r\u00e9pertoire. -not.writable.warning=Impossible d'\u00e9crire sur {0}. -cannot.create.directory.warning=Impossible de cr\u00e9er le r\u00e9pertoire {0}. -maven.repo.local.unset.warning=maven.repo.local n'est pas d\u00e9fini. -single.unsatisfied.dependency.error=Le processus ne peut continuer \u00e0 cause de la d\u00e9pendance manquante suivante: -multiple.unsatisfied.dependency.error=Le processus ne peut continuer \u00e0 cause des d\u00e9pendances manquantes suivantes: -offline.snapshot.warning=Vous travaillez hors-connexion, alors le processus va continuer, mais {0} peut ne pas \u00eatre \u00e0 jour! -download.message=Tentative de t\u00e9l\u00e9chargement de {0}. -plugin.loading.error=Impossible de charger le plugin {0}. -empty.descriptor.error=Le fichier {0} que vous avez sp\u00e9cifi\u00e9 est vide. diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_ja.properties b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_ja.properties deleted file mode 100644 index e1b65666..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_ja.properties +++ /dev/null @@ -1,34 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# -------------------------------------------------------------------------- -# Project Verifier -# -------------------------------------------------------------------------- -failed.download.warning=WARNING: {0} \u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306b\u5931\u6557\u3057\u307e\u3057\u305f. -remote.repository.disabled.warning=\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u7121\u52b9\u3067\u3059. -directory.nonexistant.warning=\u30c7\u30a3\u30ec\u30af\u30c8\u30ea {0} \u304c\u5b58\u5728\u3057\u307e\u305b\u3093. \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059. -not.directory.warning={0} \u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u306f\u3042\u308a\u307e\u305b\u3093. -not.writable.warning={0} \u306f\u66f8\u304d\u8fbc\u307f\u53ef\u80fd\u3067\u306f\u3042\u308a\u307e\u305b\u3093. -cannot.create.directory.warning=\u30c7\u30a3\u30ec\u30af\u30c8\u30ea {0} \u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093. -maven.repo.local.unset.warning=maven.repo.local \u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093. -single.unsatisfied.dependency.error=\u4ee5\u4e0b\u306e\u4f9d\u5b58\u95a2\u4fc2\u304c\u6e80\u305f\u3055\u308c\u306a\u304b\u3063\u305f\u305f\u3081\u3001\u30d3\u30eb\u30c9\u3092\u7d9a\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093: -multiple.unsatisfied.dependency.error=\u4ee5\u4e0b\u306e\u3044\u304f\u3064\u304b\u306e\u4f9d\u5b58\u95a2\u4fc2\u304c\u6e80\u305f\u3055\u308c\u306a\u304b\u3063\u305f\u305f\u3081\u3001\u30d3\u30eb\u30c9\u3092\u7d9a\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093: -offline.snapshot.warning=\u30aa\u30d5\u30e9\u30a4\u30f3\u30e2\u30fc\u30c9\u3067\u30d3\u30eb\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059. {0} \u306f\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5229\u7528\u3055\u308c\u307e\u3059. -download.message={0} \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059. -plugin.loading.error=\u30d7\u30e9\u30b0\u30a4\u30f3 {0} \u3092\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093. -empty.descriptor.error=\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb {0} \u306f\u7a7a\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u3059. -checksum.verification.error=\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 {0} \u304c\u4e0d\u6b63\u3067\u3059. diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_ko.properties b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_ko.properties deleted file mode 100644 index b3f1efac..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_ko.properties +++ /dev/null @@ -1,34 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# -------------------------------------------------------------------------- -# Project Verifier -# -------------------------------------------------------------------------- -cannot.create.directory.warning = \uB514\uB809\uD130\uB9AC {0} \uC744/\uB97C \uC0DD\uC131\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. -checksum.verification.error = \uB2E4\uC74C\uC758 \uC544\uB9AC\uD329\uD2B8(artifact)\uC5D0\uC11C \uC5D0\uB7EC\uAC00 \uBC1C\uC0DD\uD569\uB2C8\uB2E4: {0} -directory.nonexistant.warning = \uB514\uB809\uD130\uB9AC {0} \uC774/\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4. \uC0DD\uC131\uC744 \uC2DC\uB3C4\uD569\uB2C8\uB2E4. -download.message = {0} \uC744/\uB97C \uB2E4\uC6B4\uB85C\uB4DC \uD569\uB2C8\uB2E4. -empty.descriptor.error = \uD30C\uC77C {0} \uC758 \uAE38\uC774\uAC00 0\uC785\uB2C8\uB2E4. -failed.download.warning = \uACBD\uACE0: {0} \uC744/\uB97C \uB2E4\uC6B4\uB85C\uB4DC \uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. -maven.repo.local.unset.warning = maven.repo.local \uC774 \uC124\uC815\uB418\uC5B4\uC788\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. -multiple.unsatisfied.dependency.error = \uB2E4\uC74C\uC758 \uC758\uC874\uC131\uB4E4\uC744 \uB9CC\uC871\uC2DC\uD0A4\uC9C0 \uBABB\uD588\uAE30 \uB54C\uBB38\uC5D0, \uBE4C\uB4DC\uB97C \uACC4\uC18D \uC9C4\uD589\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. -not.directory.warning = {0} \uC740/\uB294 \uB514\uB809\uD130\uB9AC\uAC00 \uC544\uB2D9\uB2C8\uB2E4. -not.writable.warning = {0} \uC740/\uB294 \uC4F0\uAE30\uB97C \uD5C8\uC6A9\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. -offline.snapshot.warning = \uC624\uD504\uB77C\uC778\uC73C\uB85C \uC791\uC5C5\uD558\uACE0 \uC788\uAE30 \uB54C\uBB38\uC5D0 \uBE4C\uB4DC\uB294 \uACC4\uC18D \uC9C4\uD589\uD558\uC9C0\uB9CC, {0} \uC740/\uB294 \uCD5C\uC2E0 \uBC84\uC804\uC774 \uC544\uB2D0 \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4! -plugin.loading.error = \uD50C\uB7EC\uADF8\uC778 {0} \uC744/\uB97C \uC77D\uC5B4\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. -remote.repository.disabled.warning = \uC6D0\uACA9 \uC800\uC7A5\uC18C \uC0AC\uC6A9\uC744 \uD5C8\uAC00\uD558\uC9C0 \uC54A\uC740(disabled) \uC0C1\uD0DC\uC785\uB2C8\uB2E4. -single.unsatisfied.dependency.error = \uB2E4\uC74C\uC758 \uC758\uC874\uC131\uB4E4\uC744 \uB9CC\uC871\uC2DC\uD0A4\uC9C0 \uBABB\uD588\uAE30 \uB54C\uBB38\uC5D0, \uBE4C\uB4DC\uB97C \uACC4\uC18D \uC9C4\uD589\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_nl.properties b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_nl.properties deleted file mode 100644 index 0e22d6ce..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_nl.properties +++ /dev/null @@ -1,33 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# -------------------------------------------------------------------------- -# Project Verifier -# -------------------------------------------------------------------------- -failed.download.warning=WAARSCHUWING: Kan {0} niet downloaden. -remote.repository.disabled.warning=Het gebruik van de remote repository is uitgezet. -directory.nonexistant.warning=Directory {0} bestaat niet. Probeer hem aan te maken. -not.directory.warning={0} is geen directory. -not.writable.warning={0} is niet schrijfbaar. -cannot.create.directory.warning=Kan {0} directory niet aanmaken -maven.repo.local.unset.warning=maven.repo.local is niet ingesteld. -single.unsatisfied.dependency.error=Het bouwen kan niet doorgaan, omdat de volgende afhankelijkheid niet achterhaald kan worden: -multiple.unsatisfied.dependency.error=Het bouwen kan niet doorgaan, omdat de volgende afhankelijkheden niet achterhaald kunnen worden: -offline.snapshot.warning=Je werkt offline, dus het bouwen gaat verder, maar {0} kan eventueel niet up-to-date zijn! -download.message=Probeer {0} te downloaden. -plugin.loading.error=De {0} plugin kan niet worden geladen. -empty.descriptor.error=The {0} file you specified has zero length. diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_no.properties b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_no.properties deleted file mode 100644 index af320f6b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_no.properties +++ /dev/null @@ -1,33 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# -------------------------------------------------------------------------- -# Project Verifier -# -------------------------------------------------------------------------- -failed.download.warning=ADVARSEL: Mislykket nedlasting av {0}. -remote.repository.disabled.warning=Bruk av fjernlager er deaktivert. -directory.nonexistant.warning=Mappen {0} finnes ikke. Fors\u00f8ker \u00e5 opprette. -not.directory.warning={0} er ikke en mappe. -not.writable.warning=Kan ikke skirve til {0}. -cannot.create.directory.warning=Kan ikke opprette mappen {0}. -maven.repo.local.unset.warning=maven.repo.local er ikke definert. -single.unsatisfied.dependency.error=Byggeprosessen kan ikke fortsette p\u00e5 grunn av f\u00f8lgende mislykkede avhengighet: -multiple.unsatisfied.dependency.error=The build cannot continue because of the following unsatisfied dependencies: -offline.snapshot.warning=Du arbeider frakoblet. Byggeprosessen vil fortsette, men {0} kan bli utdatert! -download.message=Fors\u00f8ker \u00e5 laste ned {0}. -plugin.loading.error=Plugin {0} kunne ikke lastes. -empty.descriptor.error=The {0} file you specified has zero length. diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_pl.properties b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_pl.properties deleted file mode 100644 index 36a292bd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_pl.properties +++ /dev/null @@ -1,33 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# -------------------------------------------------------------------------- -# Project Verifier -# -------------------------------------------------------------------------- -failed.download.warning=UWAGA: Nie uda\u0142o si\u0119 sci\u0105gn\u0105\u0107 {0}. -remote.repository.disabled.warning=Korzystanie ze zdalnego repozytorium jest wy\u0142\u0105czone. -directory.nonexistant.warning=Katalog {0} nie istnieje. Pr\u00f3buj\u0119 utworzy\u0107. -not.directory.warning={0} nie jest katalogiem. -not.writable.warning=Nie mo\u017cesz zapisa\u0107 {0}. -cannot.create.directory.warning=Nie mo\u017cesz utworzy\u0107 katalogu {0}. -maven.repo.local.unset.warning=maven.repo.local nie jest zdefiniowane. -single.unsatisfied.dependency.error=Budownaie przerwane z powodu nast\u0119puj\u0105cej niespe\u0142nionej zale\u017cno\u015bci: -multiple.unsatisfied.dependency.error=Budownaie przerwane z powodu nast\u0119puj\u0105cych niespe\u0142nionych zale\u017cno\u015bci: -offline.snapshot.warning=Pracujesz w trybie offline, wi\u0119c budowanie b\u0119dzie kontunuowane, cho\u0107 {0} mo\u017ce by\u0107 nieaktualny! -download.message=Pr\u00f3buj\u0119 \u015bci\u0105gn\u0105\u0107 {0}. -plugin.loading.error=Nie uda\u0142o si\u0119 za\u0142adowa\u0107 pluginu {0}. -empty.descriptor.error=The {0} file you specified has zero length. diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_zh_CN.properties b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_zh_CN.properties deleted file mode 100644 index 93695186..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/messages/messages_zh_CN.properties +++ /dev/null @@ -1,34 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# -------------------------------------------------------------------------- -# \u9879\u76ee\u9a8c\u8bc1 -# -------------------------------------------------------------------------- -failed.download.warning=\u8b66\u544a\uff1a {0} \u4e0b\u8f7d\u5931\u8d25\u3002 -remote.repository.disabled.warning=\u7981\u6b62\u4f7f\u7528\u8fdc\u7a0b\u8d44\u6e90\u4ed3\u5e93\u3002 -directory.nonexistant.warning=\u76ee\u5f55 {0} \u4e0d\u5b58\u5728\u3002 \u5c1d\u8bd5\u65b0\u5efa\u4e2d\u2026\u2026 -not.directory.warning={0} \u4e0d\u662f\u76ee\u5f55\u3002 -not.writable.warning={0} \u53ea\u8bfb\u3002 -cannot.create.directory.warning=\u521b\u5efa\u76ee\u5f55 {0} \u5931\u8d25\u3002 -maven.repo.local.unset.warning=\u6ca1\u6709\u8bbe\u7f6e maven.repo.local \u5c5e\u6027\u3002 -single.unsatisfied.dependency.error=\u7531\u4e8e\u4ee5\u4e0b\u7684\u4f9d\u8d56\u7f3a\u5c11\uff0c\u521b\u5efa\u4e0d\u80fd\u8fdb\u884c\uff1a -multiple.unsatisfied.dependency.error=\u7531\u4e8e\u4ee5\u4e0b\u7684\u4f9d\u8d56\u7f3a\u5c11\uff0c\u521b\u5efa\u4e0d\u80fd\u8fdb\u884c\uff1a -offline.snapshot.warning=\u79bb\u7ebf\u65f6\u521b\u5efa\uff0c\u53ef\u80fd {0} \u8fc7\u671f\uff01 -download.message=\u5c1d\u8bd5\u4e0b\u8f7d {0}\u2026\u2026 -plugin.loading.error=\u88c5\u5165 plugin {0} \u5931\u8d25\u3002 -empty.descriptor.error=\u6587\u4ef6 {0} \u7684\u957f\u5ea6\u4e3a0\u3002 -checksum.verification.error=\u4ee5\u4e0b\u8d44\u6e90\u5df2\u88ab\u7834\u574f\uff1a{0}\u3002 diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/project/standalone.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/project/standalone.xml deleted file mode 100644 index acb5be2d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/main/resources/org/apache/maven/project/standalone.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven - standalone-pom - 1 - pom - Maven Stub Project (No POM) - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/artifact-handlers.apt b/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/artifact-handlers.apt deleted file mode 100644 index 916161bf..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/artifact-handlers.apt +++ /dev/null @@ -1,59 +0,0 @@ -~~ Licensed to the Apache Software Foundation (ASF) under one -~~ or more contributor license agreements. See the NOTICE file -~~ distributed with this work for additional information -~~ regarding copyright ownership. The ASF licenses this file -~~ to you under the Apache License, Version 2.0 (the -~~ "License"); you may not use this file except in compliance -~~ with the License. You may obtain a copy of the License at -~~ -~~ http://www.apache.org/licenses/LICENSE-2.0 -~~ -~~ Unless required by applicable law or agreed to in writing, -~~ software distributed under the License is distributed on an -~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -~~ KIND, either express or implied. See the License for the -~~ specific language governing permissions and limitations -~~ under the License. - - --- - Default Artifact Handlers Reference - --- - Hervé Boutemy - --- - 2013-08-02 - --- - -Default Artifact Handlers Reference - - Some artifact handlers (see {{{../maven-artifact/apidocs/org/apache/maven/artifact/handler/ArtifactHandler.html} API}}) - are configured by default in <<>>: - -*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+ -|| type || extension || packaging || classifier || language || added to classpath || includesDependencies || -*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+ -| <<>> | <= type> | <= type> | | none | | | -*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+ -| <<>> | <= type> | <= type> | | java | <<>> | | -*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+ -| <<>> | <<>> | <= type> | | java | <<>> | | -*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+ -| <<>> | <<>> | <= type> | | java | <<>> | | -*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+ -| <<>> | <= type> | <= type> | | java | | <<>> | -*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+ -| <<>> | <= type> | <= type> | | java | | <<>> | -*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+ -| <<>> | <= type> | <= type> | | java | | <<>> | -*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+ -| <<>> | <= type> | <= type> | | java | | <<>> | -*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+ -| <<>> | <= type> | <= type> | | java | | <<>> | -*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+ -| <<>> | <<>> | <= type> | <<>> | java | | | -*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+ -| <<>> | <<>> | <= type> | <<>> | java | <<>> | | -*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+ -| <<>> | <<>> | <<>> | <<>> | java | <<>> | | -*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+ -| <<>> | <<>> | <<>> | <<>> | java | <<>> | | -*--------------------+------------+------------+---------------+-----------+---------------------+-----------------------+ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/configuration-management.apt b/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/configuration-management.apt deleted file mode 100644 index 4af0f0b1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/configuration-management.apt +++ /dev/null @@ -1,139 +0,0 @@ -~~ Licensed to the Apache Software Foundation (ASF) under one -~~ or more contributor license agreements. See the NOTICE file -~~ distributed with this work for additional information -~~ regarding copyright ownership. The ASF licenses this file -~~ to you under the Apache License, Version 2.0 (the -~~ "License"); you may not use this file except in compliance -~~ with the License. You may obtain a copy of the License at -~~ -~~ http://www.apache.org/licenses/LICENSE-2.0 -~~ -~~ Unless required by applicable law or agreed to in writing, -~~ software distributed under the License is distributed on an -~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -~~ KIND, either express or implied. See the License for the -~~ specific language governing permissions and limitations -~~ under the License. - - ----- - Maven configuration management - ----- - The Maven Team - ----- - -Configuration levels in maven - - In maven configuration control happens on four differ levels: the site level, the group level, - the project level, and the user level. On the site level you can configure maven for all users - utilizing the local installation, the group level allows configuration management for all the projects - that belong to the same group, the project level allows configuration management at - the project level, and the user level allows users to override settings on - the site level, group level and project level. - -* Site configuration - - At the site level all configuration is achieved by tweaking the the various files that - are available in the ${maven.home}/site-configuration directory - -+-----+ -${maven.home} - | - +--- maven.properties -+-----+ - -* Group configuration - - As far as properties go for an entire build the maven.properties could be placed at - the top of the group but I'm not really sure how this might work. There could probably - also be a directory for plugins.xml and maven.properties. - -* Project configuration - - At the project level all configuration is achieved by tweaking the POM. One of the differences between - maven 1.x and 2.x is that all project parameterization occurs in the POM and not from properties - files. - - For many of the more advanced features in Maven2 it is critical that POMs be available in the local repository. - Features like transitive dependencies and the new parent specification mechanism. The problem we run into is - that currently we have information about a project scattered across the project.xml and the - various properties files. What needs to be done is to encapsulate all of this in the POM. - - Typically users parameterize the use of plugins, or have custom values like ${user.name} - for use in elements like the . It would be idea if we - could encapsulate everything we need about the project in the POM including - plugin parameters and anything else. - - We once had a document that Vincent and I agreed upon and I was about to - implement it and then I disappeared for 8 months so it never came to pass. - - So I guess it's important to figure out what people are using propeties - files for and see if we can't incorporate it all into the POM. Or if we do - have properties file (something I would like to avoid) say they don't - contribute in any meaningful way to information in the POM. For example a - properties file could be used the specify $ so it can be interpolated in - but you couldn't use a properties file to specify the - version of your project say. Anyway, food for thought to begin with. - - - elements that are critical for pom dissemination - - those that are used locally by the user like - -* User configuration - - User configuration which is utilized site wide are controlled with the ${user.home}/.m2/maven.properties. - - User configuration which is utilized at the project level are controlled with the - ${project.home}/maven.properties file. - -Plugin configuration - - The configuration of plugins is of the same form as the maven {{{plugin-descriptors}plugin descriptors}} - themselves: - -+-----+ - - - xdoc - 1.0 - - - theme - classic - - - - -+-----+ - -Unified source directory - - Unified source directory structure that is analagous to the repository - itself. This way locations of intermediary artifacts of a build would be - in a known location. This would also help with developer setup i.e. getting - new developers up and running. They could run a maven command and have all - their source trees set up in the same way as their collegues. - - here's what I do currently in the netbeans part of the mevenide project to - find the relevant subprojects/sibling projects. I check if the user has - defined the maven.multiproject.includes property in any of his properties - files for the current project. if yes. then I'm able to find projects that - can be offered to be opened together with the current project. - problems with the current solution are: - 1. information is duplicate. once in POM's dependencies and once in the - maven.multiproject.includes property. - 2. it works without problems only for projects with relative paths, eg. from - one CVS repository.. for projects from multiple SCM repositories it's harder - to maintain the same relative links on all developer computers. - not sure the unified source directory structure addresses this issue. - - Properties - - maven.user.config.dir (system,default=${user.home}/.m2) - maven.home (system,user,default=${user.home}/m2) - maven.repo.local (system,user,default=${maven.user.config.dir}/repository) - - We need to define what happens in the when things are not setup correctly - - o ~/.m2 directory does not exist - o ~/.m2/maven.properties does not exist - o if they once existed but now to do not exist - o what the installer will take care of of what we can recover from diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/default-bindings.apt.vm b/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/default-bindings.apt.vm deleted file mode 100644 index 02d6c4a9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/default-bindings.apt.vm +++ /dev/null @@ -1,67 +0,0 @@ -~~ Licensed to the Apache Software Foundation (ASF) under one -~~ or more contributor license agreements. See the NOTICE file -~~ distributed with this work for additional information -~~ regarding copyright ownership. The ASF licenses this file -~~ to you under the Apache License, Version 2.0 (the -~~ "License"); you may not use this file except in compliance -~~ with the License. You may obtain a copy of the License at -~~ -~~ http://www.apache.org/licenses/LICENSE-2.0 -~~ -~~ Unless required by applicable law or agreed to in writing, -~~ software distributed under the License is distributed on an -~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -~~ KIND, either express or implied. See the License for the -~~ specific language governing permissions and limitations -~~ under the License. - - --- - Plugin Bindings for Default Lifecycle Reference - --- - Hervé Boutemy - --- - 2013-08-02 - --- - -Plugin Bindings for <<>> Lifecycle Reference - - The {{{./lifecycles.html}<<>> lifecycle}} is defined without any plugin binding; plugin bindings are defined separately - in <<>> because they are specific for each packaging: - -%{toc|fromDepth=2} - -* Plugin bindings for <<>> packaging - -%{snippet|id=pom-lifecycle|file=${project.basedir}/src/main/resources/META-INF/plexus/default-bindings.xml} - -* Plugin bindings for <<>> packaging - -%{snippet|id=jar-lifecycle|file=${project.basedir}/src/main/resources/META-INF/plexus/default-bindings.xml} - -* Plugin bindings for <<>> packaging - -%{snippet|id=ejb-lifecycle|file=${project.basedir}/src/main/resources/META-INF/plexus/default-bindings.xml} - -* Plugin bindings for <<>> packaging - -%{snippet|id=ejb3-lifecycle|file=${project.basedir}/src/main/resources/META-INF/plexus/default-bindings.xml} - -* Plugin bindings for <<>> packaging - -%{snippet|id=maven-plugin-lifecycle|file=${project.basedir}/src/main/resources/META-INF/plexus/default-bindings.xml} - -* Plugin bindings for <<>> packaging - -%{snippet|id=war-lifecycle|file=${project.basedir}/src/main/resources/META-INF/plexus/default-bindings.xml} - -* Plugin bindings for <<>> packaging - -%{snippet|id=ear-lifecycle|file=${project.basedir}/src/main/resources/META-INF/plexus/default-bindings.xml} - -* Plugin bindings for <<>> packaging - -%{snippet|id=rar-lifecycle|file=${project.basedir}/src/main/resources/META-INF/plexus/default-bindings.xml} - -* Plugin bindings for <<>> packaging - -%{snippet|id=par-lifecycle|file=${project.basedir}/src/main/resources/META-INF/plexus/default-bindings.xml} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/getting-to-container-configured-mojos.apt b/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/getting-to-container-configured-mojos.apt deleted file mode 100644 index 1c4a487d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/getting-to-container-configured-mojos.apt +++ /dev/null @@ -1,102 +0,0 @@ -~~ Licensed to the Apache Software Foundation (ASF) under one -~~ or more contributor license agreements. See the NOTICE file -~~ distributed with this work for additional information -~~ regarding copyright ownership. The ASF licenses this file -~~ to you under the Apache License, Version 2.0 (the -~~ "License"); you may not use this file except in compliance -~~ with the License. You may obtain a copy of the License at -~~ -~~ http://www.apache.org/licenses/LICENSE-2.0 -~~ -~~ Unless required by applicable law or agreed to in writing, -~~ software distributed under the License is distributed on an -~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -~~ KIND, either express or implied. See the License for the -~~ specific language governing permissions and limitations -~~ under the License. - - --- - Getting to Plexus-configured Mojos - --- - John Casey - --- - 29-April-2005 - -Abstract - - We're moving toward integrating mojos as first-class plexus components, while - at the same time avoiding introducing required plexus dependencies into the - mojo development model. - - In order to really achieve this, we need mojo configurations (which are - provided both in terms of static expressions that are just looked up, and - in terms of user-provided configuration from system properties or the POM). - If these mojos are to be first-class components, the configuration from these - various sources must be consolidated and injected using the container. - - Currently, mojo configuration is done externally to the container, in the - DefaultPluginManager in the maven-core API. In order to get from here to - there, we need to do several things to add capability to the default - configuration of plexus. This document will detail those changes. - -Container Enhancements - -* ExpressionEvaluator - - Currently, the expression evaluator used to resolve configuration values - is the DefaultExpressionEvaluator, which is a local variable within the - implementation of the BasicComponentConfigurator. This ExpressionEvaluator - simply returns the expression itself as the resolved value, which adds - very little value to the container. Things like ${project.build.resources} - are not resolved, and result in a type mismatch for the member injection. - - We need a replacement for DefaultExpressionEvaluator that is capable of - traversing an object graph and extracting Object values, not just Strings. - -* ComponentConfigurator - - Currently, the container uses BasicComponentConfigurator, to configure - components. This wouldn't be a problem, except for the local instance of - DefaultExpressionEvaluator used within. See the above discussion for more - on why this evaluator is bad. We need to provide either an alternative - implementation under a different roleHint, or else replace the - BasicComponentConfigurator. - -* Other - - We may need to define a new lifecycle/phase to contextualize a mojo right - before it's used, and reset it's state afterward. Up to now, the approach - of most plexus components has been to avoid instance state like the plague. - With the current parameter passing model of mojos, this will not be possible, - particularly when we move mojos to a singleton instantiation model, and then - run a reactorized project...the successive calls may leave behind configuration - artifacts from invocation to invocation. - -Maven Modifications - -* DefaultPluginManager - - s/getMojoConfiguration()/getConfiguration()/g - - That should re-enable usage of mojo configuration. Ideally, we won't need any - of the code that references this method, since the container should provide - some way of recontextualizing the mojo, and all we would need to do is inject - POM configuration via the lookup method or something. - -* PluginDescriptorBuilder - - s/getMojoConfiguration()/getConfiguration()/g - - That should be all there is to it. - -* MojoDescriptor - - Remove set/getMojoConfiguration(..), as it will become obsolete. - -* MavenSession - - We may need to enable the context injection here, since this will be - instantiated per-project. If we always inject the same context parameters, - and are careful to inject nulls where things are missing, we should be - able to minimize reconfiguration artifacts injected from basic parameters. - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/index.apt b/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/index.apt deleted file mode 100644 index f6c26fde..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/index.apt +++ /dev/null @@ -1,77 +0,0 @@ -~~ Licensed to the Apache Software Foundation (ASF) under one -~~ or more contributor license agreements. See the NOTICE file -~~ distributed with this work for additional information -~~ regarding copyright ownership. The ASF licenses this file -~~ to you under the Apache License, Version 2.0 (the -~~ "License"); you may not use this file except in compliance -~~ with the License. You may obtain a copy of the License at -~~ -~~ http://www.apache.org/licenses/LICENSE-2.0 -~~ -~~ Unless required by applicable law or agreed to in writing, -~~ software distributed under the License is distributed on an -~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -~~ KIND, either express or implied. See the License for the -~~ specific language governing permissions and limitations -~~ under the License. - - ----- - Introduction - ----- - Hervé Boutemy - ----- - 2013-07-27 - ----- - -Maven Core - - Maven Core classes managing the whole build process. - -* Useful entry points - - * {{{./lifecycles.html}lifecycles}} and {{{./default-bindings.html}plugin bindings to <<>> lifecycle}}, - - * {{{./artifact-handlers.html}default artifact handlers}}, - - * <<>> component ({{{./apidocs/org/apache/maven/Maven.html}javadoc}}), - with its <<>> implementation ({{{./xref/org/apache/maven/DefaultMaven.html}source}}), - - * <<>> component ({{{./apidocs/org/apache/maven/project/ProjectBuilder.html}javadoc}}), - with its <<>> implementation - ({{{./xref/org/apache/maven/project/DefaultProjectBuilder.html}source}}), - - * <<>> component ({{{./apidocs/org/apache/maven/plugin/MavenPluginManager.html}javadoc}}), - with its <<>> implementation - ({{{./xref/org/apache/maven/plugin/internal/DefaultMavenPluginManager.html}source}}), - - * {{{./apidocs/org/apache/maven/plugin/PluginParameterExpressionEvaluator.html}PluginParameterExpressionEvaluator}}, used to - evaluate plugin parameters values during Mojo configuration, - - * {{{/guides/mini/guide-maven-classloading.html}classloader hierarchy}} done by <<>> component - ({{{./apidocs/org/apache/maven/classrealm/ClassRealmManager.html}javadoc}}), - with its <<>> implementation - ({{{./xref/org/apache/maven/classrealm/DefaultClassRealmManager.html}source}}), using - {{{http://plexus.codehaus.org/plexus-classworlds/}Plexus Classworlds}}, - - * {{{./extension.html}extension descriptor}}, - - * <<>> component ({{{./apidocs/org/apache/maven/exception/ExceptionHandler.html}javadoc}}), - with its <<>> implementation - ({{{./xref/org/apache/maven/exception/DefaultExceptionHandler.html}source}}), use to transform exception into useful end-user messages. - -* Toolchains - - * {{{./toolchains.html}Toolchains descriptor reference}}, - - * public API for toolchains-aware plugins: <<>> component ({{{./apidocs/org/apache/maven/toolchain/ToolchainManager.html}javadoc}}) - with its <<>> implementation ({{{./xref/org/apache/maven/toolchain/DefaultToolchainManager.html}source}}), - to get selected <<>> ({{{./apidocs/org/apache/maven/toolchain/Toolchain.html}javadoc}}) instance, - - * internal <<>> component ({{{./apidocs/org/apache/maven/toolchain/ToolchainManagerPrivate.html}javadoc}}) - with its <<>> implementation ({{{./xref/org/apache/maven/toolchain/DefaultToolchainManagerPrivate.html}source}}), - to manage toolchain selection, - - * internal JDK toolchain implementation: <<>> interface ({{{./apidocs/org/apache/maven/toolchain/java/JavaToolchain.html}javadoc}}), - with its <<>> implementation - ({{{./xref/org/apache/maven/toolchain/java/JavaToolchainImpl.html}source}}) and <<>> - factory ({{{./xref/org/apache/maven/toolchain/java/JavaToolchainFactory.html}source}}). diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/inheritance.apt b/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/inheritance.apt deleted file mode 100644 index dbf0e2c2..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/inheritance.apt +++ /dev/null @@ -1,100 +0,0 @@ -~~ Licensed to the Apache Software Foundation (ASF) under one -~~ or more contributor license agreements. See the NOTICE file -~~ distributed with this work for additional information -~~ regarding copyright ownership. The ASF licenses this file -~~ to you under the Apache License, Version 2.0 (the -~~ "License"); you may not use this file except in compliance -~~ with the License. You may obtain a copy of the License at -~~ -~~ http://www.apache.org/licenses/LICENSE-2.0 -~~ -~~ Unless required by applicable law or agreed to in writing, -~~ software distributed under the License is distributed on an -~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -~~ KIND, either express or implied. See the License for the -~~ specific language governing permissions and limitations -~~ under the License. - - ----- - Inheritance in Maven - ----- - The Maven Team - ----- - -Inheritance in Maven - - In order the understand how inheritance works in Maven there are a few notions that you must be familiar with: - - * The maven super model - - * how parent poms are processed - - * the order in which elements in the POM are overridden - - * minimum element-set for a valid project pom - - -Maven super model - - Inheritance is recursive in Maven but there is a special model which is the implicit super parent in the lineage - of models you may specify: - - all of the models that you specify are collected to produce a lineage and then the super model is place at - the top of that lineage to provide default values. - - The super model is where we place all the values which we believe to be standard, values that can be shared and - utilized across all your maven projects. - -+-----+ - m0 <- m1 <- m2 -+-----+ - - which is transformed into - -+-----+ - super model <- m0 <- m1 <- m2 -+-----+ - -+-----+ - - 4.0.0 - - - - - - -+-----+ - -Extending the POM in the future - - In order to anticipate changes in the structure of the POM as new releases of - maven occur, the maven inheritance model must be pinned against a particular - modelVersion. This is required so that a change from modelVersion 4.0.0 to - 4.1.0 doesn't cause compatibility problems with users who have not upgraded - their projects. It also allows for a certain amount of legacy support into the - future. Therefore, we should rename this file from pom.xml in the maven-core - jarfile to pom-4.0.0.xml (and successive revisions to the base pom made to - accommodate changes in the model will be named accordingly - 4.0.1, 4.0.2, ...). - -Minimum Element-Set for a Project POM - - In order to furnish a basic set of information which we need to distinguish one - project from another, maven requires a minimum set of elements to be specified - in each project's pom.xml. - - - [modelVersion] tells maven which version of the object model this project - is compliant with (to support future legacy concerns) - - - [artifactId] tells maven what the artifact name is for this particular - project. Each project should have a distinct artifactId. - - - [version] tells maven what release of this artifact we're trying to produce. - The fact that a project has a distinct pom.xml should indicate a separate - release cycle that is also distinct to that project, so a concrete version - declaration is required. - - - [name] tells maven what the user-friendly name of this project is. The name - element is similar to artifactId in that it is a unique descriptor for - this and only this project, and therefore should be concretely defined. - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/lifecycles.apt.vm b/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/lifecycles.apt.vm deleted file mode 100644 index 3e47bc90..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/lifecycles.apt.vm +++ /dev/null @@ -1,49 +0,0 @@ -~~ Licensed to the Apache Software Foundation (ASF) under one -~~ or more contributor license agreements. See the NOTICE file -~~ distributed with this work for additional information -~~ regarding copyright ownership. The ASF licenses this file -~~ to you under the Apache License, Version 2.0 (the -~~ "License"); you may not use this file except in compliance -~~ with the License. You may obtain a copy of the License at -~~ -~~ http://www.apache.org/licenses/LICENSE-2.0 -~~ -~~ Unless required by applicable law or agreed to in writing, -~~ software distributed under the License is distributed on an -~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -~~ KIND, either express or implied. See the License for the -~~ specific language governing permissions and limitations -~~ under the License. - - ----- - Lifecycles Reference - ----- - Hervé Boutemy - ----- - 2013-08-02 - ----- - -Lifecycles Reference - - Maven defines 3 lifecycles in <<>>: - -%{toc|fromDepth=2} - -* <<>> Lifecycle - - <<>> lifecycle is defined <> any associated plugin. - Plugin bindings for this lifecycle are {{{./default-bindings.html}defined separately for every packaging}}: - -%{snippet|id=lifecycle|file=${project.basedir}/src/main/resources/META-INF/plexus/components.xml} - -* <<>> Lifecycle - - <<>> lifecycle is defined directly with its plugin bindings. - -%{snippet|id=clean|file=${project.basedir}/src/main/resources/META-INF/plexus/components.xml} - -* <<>> Lifecycle - - <<>> lifecycle is defined directly with its plugin bindings. - -%{snippet|id=site|file=${project.basedir}/src/main/resources/META-INF/plexus/components.xml} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/offline-mode.apt b/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/offline-mode.apt deleted file mode 100644 index faec70fa..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/offline-mode.apt +++ /dev/null @@ -1,269 +0,0 @@ -~~ Licensed to the Apache Software Foundation (ASF) under one -~~ or more contributor license agreements. See the NOTICE file -~~ distributed with this work for additional information -~~ regarding copyright ownership. The ASF licenses this file -~~ to you under the Apache License, Version 2.0 (the -~~ "License"); you may not use this file except in compliance -~~ with the License. You may obtain a copy of the License at -~~ -~~ http://www.apache.org/licenses/LICENSE-2.0 -~~ -~~ Unless required by applicable law or agreed to in writing, -~~ software distributed under the License is distributed on an -~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -~~ KIND, either express or implied. See the License for the -~~ specific language governing permissions and limitations -~~ under the License. - - --- - Offline Mode Design - --- - John Casey - --- - 08-April-2005 - --- - -Offline Mode Design - -* UPDATE: 18-April-2005 - - We cannot take the approach outlined below of detecting which remote - repositories are "really" offline, since offline mode is more of a behavior, - and this will lead to counter-intuitive results. A different feature may exist - unimplemented, which is to detect when the network is down and provide better - feedback for that case. However, when offline mode is declared, nothing - earmarked as remote should be accessed, regardless of whether it is actually - a physically local resource. - - NOTE: One side-effect of this design change is that all offline-mode code can - be isolated to maven-core, maven-plugin-descriptor, and [possibly] - maven-artifact. Usage of maven-wagon will be determined by an offline-aware - manager. - -* Assumptions: What is Offline? - - For the purposes of determining the areas sensitive to offline status, - it is definitely useful to define what the offline state really means. - - [[1]] This is obvious, but the network/internet is unavailable. - - [[2]] Localhost (127.0.0.1) may also be unavailable if the whole - network stack is offline. - - [[3]] "Remote" repositories referenced using the file:// protocol may - be available. However, if that file:// url references a - file-share, as in the case of an NFS or SMB mount, that will - be unavailable. - - So, offline mode has several implications, some of which may not be - altogether obvious: - - * Localhost may be unavailable. Therefore, even locally installed - server processes which work by conversing over a port may fail. - - * Not all "remote" repositories will fail. Specifically, if the remote - repo uses the file:// protocol, and it doesn't refer to a shared - filesystem, it will continue to be available. - - The question remaining is: Which level of offline mode will we support? It - seems reasonable to assume that users will be able to tell when localhost is - not active (in most cases, localhost should be available, even if the rest of - the network is not). Therefore, let's concentrate on the state where no - network exists, and leave the more extreme state to users - to diagnose and correct as necessary. - -* Why is Offline Mode Important? - - Offline mode is essential for breaking the requirement that m2 operate in a - network-connected environment. It means legitimizing a development environment - in which there is no network connection, and providing a robust m2 service - offering in such circumstances. Introduction of offline mode allows m2 to - anticipate the inevitable network failures that accompany being physically - disconnected from the network, and adjust it's behavior accordingly. - - It is more than simply understanding that m2 cannot go and check for the - latest version of some snapshot artifact. If m2 is offline, SCM operations - cannot succeed; no artifact downloads can take place, regardless of whether - they are snapshot versions; artifact deployment cannot take place; certain - types of tests cannot be setup, since the container used to run them cannot be - reached or started. - - All of these operations will produce their own unique errors in the absence of - a coordinated offline strategy. In addition, efforts to unite these failing - behaviors behind a consistent user interface is much, much more difficult if - the system can't tell whether it has access to the network required by these - operations. - - Offline mode really means anticipating a lack of network connectivity, and as - a result turning off certain services provided by m2 and providing a coherent - way of predicting and reporting when network-related failures will take place. - It means warning users that since the network is missing, certain features and - operations will be unavailable, rather than simply waiting for those - operations to fail, then trying to help users decipher the error messages they - get as a result. - -* Implications for Resolution - -** Dependency Resolution - - This one is obvious...we only have access to the repositories using - the file:// protocol and living on a truly local filesystem when - offline. - -** Plugin Resolution - - This is similar to dependency resolution. Plugin repositories not - using file:// or not residing on a local (not shared) filesystem will - be unavailable. - - -* Implications for Mojo Execution - -** Deployment mojos - - The concept of deployment is dependent on the availability of a some - remote repository. Just as above, if that repository is not using - file:// (which is highly likely to be the case), or the repository is - not on a local filesystem, deployment will fail when offline. - -** Testing mojos - - This can be a problem if the tests are more than simple unit tests; - that is, if they require configuration of a server process, and - subsequent testing in-container. - - Since we're only going to concern ourselves with states where localhost is - still active, we only need to worry about this case when the server container - is <> installed on localhost. This allows the popular pattern of starting - a server container in-JVM, running tests against it, and shutting it down. - -** SCM mojos - - See below for discussion on SCM-related operations. Any mojo which - carries out some analysis or other interaction with a SCM system - will likely be unavailable when in offline mode. - - -* Implications for Subsystems - -** Maven-Wagon - - Parts of Wagon will continue to function normally. These include: - - * The file wagon, provided the referenced location is on a local - filesystem. - - It is not possible to determine whether a file-based location will - be available except on a case-by-case basis (or a root-url by - root-url basis). We may want to move the offline sensitivity entirely to - Maven-Artifact, below, so we can be smarter about testing filesystem-based - repositories, etc. - - * If not otherwise specified, all other wagons are assumed to be - remote-only, and are therefore sensitive to offline mode. - -** Maven-Artifact - - This is wholly dependent on Maven-Wagon, above. - - We could possibly use a flag on a particular Wagon to see whether it supports - offline mode, and then test to see if the file-based basedir for an aritfact - repository works...if it doesn't work, we can mark that repository offline... - - OTOH, all offline-mode checks can probably be run from Wagon-based APIs. - -** Maven-SCM - - In all but trivial examples, SCM operations cannot complete without - having access to the versioning server. Therefore, it is assumed that - any SCM-related activity will be unavailable when m2 is in offline - mode. - -** Maven-Core - - We'll examine the different parts of maven-core on a case-by-case - basis, below: - -*** DefaultLifecycleExecutor - - When binding goals to the project's configured lifecycle, each mojo - descriptor should declare whether it requires online/offline status. - This value should be a java.lang.Boolean, so it can implement 3VL - (three value logic: yes, no, don't-care). The requiresOnline - field in the mojo descriptor has the following semantics: - - [true] Online status is required for this mojo to function - correctly. - - [false] <<(Default)>> Either status is acceptable for the mojo to - execute. It doesn't care. - - The majority of mojos will leave the requiresOnline == false, - since online/offline status will be irrelevant, provided they have - access to their required artifacts and other classpath elements. In the case - of required artifacts and other classpath elemtents, this is assumed by the - mojo API to be in a correct state, and will be handled by the Wagon - modifications. - - -* Implementation Notes - -** Accessibility of offline status - - Offline status should be indicated in the MavenSettings instance, since it - can conceivably be set from either the settings.xml or the command-line. - - In the event the '-o' switch is the impetus for setting offline mode, this - should result in modification of the active profile in the MavenSettings - instance, just as definition of the active profile from the command-line - should result in similar modification. This object is not meant to be - static within the build process, but rather to be setup as an aggregation of - all settings-related information passed into the system. - -** Control over downloads - - Find the control point for m2 using maven-wagon. At this point, inject - a offline status parameter which is used when retrieving the specific Wagon. - - If <<>>: - - * If the wagon is not bound to "file://", then ignore the request and print - a debug message. - - * If the wagon is bound to "file://" then: - - Retrieve the file or base-url file to be "downloaded". - - * If the file (or more usefully, the base-url file) exists, proceed. - - * If the file (or base-url file) doesn't exist, assume that this location - is part of a file-share. Ignore the request and print a debug message - as above. - -** Control over mojos in the lifecycle - - When binding a mojo to the project's lifecycle instance, check the mojo - descriptor's requiredConnectivity field. - - * If <<<(offline == true) && (requiresOnline != true)>>>, bind - the mojo to the lifecycle. - - In this case, the client is <>, and the mojo does not require - online status. - - * If <<<(offline == false) && (requiresOnline == true)>>>, bind - the mojo to the lifecycle. - - In this case, the client is <>, and the mojo either requires - <> status, or else doesn't care. - - * Otherwise, don't bind the mojo. Log a debug message to indicate that it is - sensitive the the online state of the application, and that this state is - currently wrong for execution. - - <> Do we want to fail when we cannot bind a mojo to the lifecycle - because of offline/online status? That would probably indicate that the user - was trying to do something they cannot succeed at for now...so we probably - should throw an exception in this case. - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/plugin-execution-isolation.apt b/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/plugin-execution-isolation.apt deleted file mode 100644 index 983a9fde..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/plugin-execution-isolation.apt +++ /dev/null @@ -1,57 +0,0 @@ -~~ Licensed to the Apache Software Foundation (ASF) under one -~~ or more contributor license agreements. See the NOTICE file -~~ distributed with this work for additional information -~~ regarding copyright ownership. The ASF licenses this file -~~ to you under the Apache License, Version 2.0 (the -~~ "License"); you may not use this file except in compliance -~~ with the License. You may obtain a copy of the License at -~~ -~~ http://www.apache.org/licenses/LICENSE-2.0 -~~ -~~ Unless required by applicable law or agreed to in writing, -~~ software distributed under the License is distributed on an -~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -~~ KIND, either express or implied. See the License for the -~~ specific language governing permissions and limitations -~~ under the License. - - ----- - Maven plugins - ----- - The Maven Team - ----- - -Maven plugin execution isolation - - Maven2 takes advantage of Plexus' ability to execute a component using a - ClassWorlds ClassRealm that is populated with the JAR containing the - component in question and all of its dependencies. Using ClassWorlds - notation for realms we have the following: - -+-----+ - [plexus.core] - ^ - | - [plexus.core.maven] - ^ ^ - | | -[plugin0] [plugin1] -+-----+ - - The <<>> realm contains the resources required to run any - plexus application; The <<>> realm contains all of the - resources required to run Maven. Each subseqent plugin realm contains the - JAR plugin as well as its dependencies. The realms noted above are setup - in a hierachical structure where the resources in the parent realms are - available but the <>. - - Plugins are guaranteed to be provided the resources found in - <<>> and <<>> realms at run-time if required. - Plugins can state compile-time dependencies on any of the resources found in - the core realms listed above and these dependencies will be included in the - plugin descriptor that is generated but when running within Maven these - resources will be filtered out. In other words these resources will not - be added the realm created for the plugins execution as they are provided - in the parent realms. - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/scripting-support/marmalade-support.apt b/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/scripting-support/marmalade-support.apt deleted file mode 100644 index 7a809662..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/apt/scripting-support/marmalade-support.apt +++ /dev/null @@ -1,196 +0,0 @@ -~~ Licensed to the Apache Software Foundation (ASF) under one -~~ or more contributor license agreements. See the NOTICE file -~~ distributed with this work for additional information -~~ regarding copyright ownership. The ASF licenses this file -~~ to you under the Apache License, Version 2.0 (the -~~ "License"); you may not use this file except in compliance -~~ with the License. You may obtain a copy of the License at -~~ -~~ http://www.apache.org/licenses/LICENSE-2.0 -~~ -~~ Unless required by applicable law or agreed to in writing, -~~ software distributed under the License is distributed on an -~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -~~ KIND, either express or implied. See the License for the -~~ specific language governing permissions and limitations -~~ under the License. - - --- - Marmalade Mojo Support - Notes - --- - John Casey - --- - 07-Feb-2005 - --- - -Marmalade Support - -*Abstract - - This document will track the design and implementation issues involved in - adding support to m2 for marmalade-based mojos. - -*Design Notes - - [[1]] <> - - As in all mojo specifications, it is ideal that the descriptor for - a marmalade-based mojo be inline with the source code. This centralizes - all maintenance related to a single mojo to a single point of maintenance. - - The following is what I'm thinking as of now: - - - a marmalade-based mojo should look something like: - -+---+ - - - - mmld - mmldCompile - compile - Used to compile marmalade scripts into java beans. - - - - - - - - - classpath - The compilation classpath - java.util.List - #pom.artifacts - - - - - - - - - - - - - - - - -+---+ -[NOTE] All empty elements above signify optional elements, usage specification. - - [[2]] <> - - The marmalade mojo packager will: - - [[a]] Locate all *.mmld files within the scripts directory of the project. - - The scripts directory should be tied to the script language within - the POM. Until we have multiple language support in the POM, we'll - use something like: <<>>. - - [[b]] For each script found: - - [[i]] Execute the script with "gatherMetadata=true" in the context. - - [[ii]] Retrieve the mojo descriptor from the resulting "metadata" - variable in the context. - - [[iii]] Cache the mojo descriptor in aggregator for subsequent - output to plugin descriptor file. - - [[c]] Copy all scripts to the target directory. Preserve relative paths. - - [[d]] <> - - [[e]] Use the project's dependencies and other info to form the plugin - descriptor's header (non-mojo-specific info). - - [[f]] Use the PluginGenerator from maven-plugin-tools to generate a - META-INF/plexus/plugin.xml to the target directory. - - [[g]] Continue with lifecycle. - - This may include compilation of java helper classes, etc. and - plugin-artifact packaging, presumably via 'jar:jar' or similar. - - [[3]] <> - - The marmalade mojo loader will: - - [[a]] Retrieve the implementation spec (this is the path of the script, - relative to the root of the plugin filesystem...jar, etc.) to - $path. - - [[b]] Use the context classloader to retrieve a reader to $path. - - [[c]] Build the ScriptBuilder corresponding to the script. - - [[d]] Create a new MarmaladeMojo instance which adapts the mojo calling - semantics to the creation/execution of a marmalade script. - - Execution involves: - - [[i]] Creating a new MarmaladeScript instance. - - [[ii]] Creating an execution context which references all I/O - from the main Maven execution thread, and embeds: - - - #request == MavenExecutionRequest - - - #response == MavenExecutionResponse - - - Any globally configured environmental constraints, such - as a global preserve-whitespace setting - - [[iii]] Execution of the script using the execution context. - - [[iv]] Export of the resulting context, minus any surviving input - variables, to the MavenExecutionResponse's out-params. - -*Implementation Issues - - [[1]] How do we make Maven smart enough to switch loader implementations based - on some sub-type of maven-plugin? - - This is important, since the default mojo loader will not be smart - enough to do the job, and embedding this behavior in that loader is not - scalable or extensible enough to accommodate future expansion into the - realms of jython, groovy, etc... - - <> - - We'll plan on using some sort of language specification in the mojo - descriptor to determine which mojo loader to use, then we'll populate - the PluginLoader/PluginManager with a map of known languages->loaders. - - [[2]] How do we make the plugin:install process smart enough to switch - generator implementations based on some sub-type of maven-plugin? - - This is closely related to [1] above. - - <> - - See update in [3]. - - [[3]] Do we want to allow mixed-bag plugin implementations? - - These might include a mix of standard-java and marmalade mojos. It - strikes me that many marmalade-based mojos may use beans/tags that are - actually adapter classes for other third-party APIs (why they wouldn't - implement everything as java mojos in this cases is beyond me). If they - have java source inside the plugin source directory, we should probably - compile it and bundle it with the plugin scripts; but what if this source - also has mojo annotations? This will have implications for [1] and [2] - above. - - <> - - We will plan on allowing this sort of implementation, and simply start - by applying all known generators which have a source directory set in - the POM (or later, have a section, maybe). At any rate, - helper classes will be allowed for script-based mojos. diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/resources/design/2.1-lifecycle-refactor-class-diagram.png b/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/resources/design/2.1-lifecycle-refactor-class-diagram.png deleted file mode 100755 index 37d666c3..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/resources/design/2.1-lifecycle-refactor-class-diagram.png and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/resources/design/2.1-lifecycle-refactor-sequence-diagram.png b/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/resources/design/2.1-lifecycle-refactor-sequence-diagram.png deleted file mode 100755 index 30f19553..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/resources/design/2.1-lifecycle-refactor-sequence-diagram.png and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/resources/design/2.1-lifecycle-refactor.graffle b/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/resources/design/2.1-lifecycle-refactor.graffle deleted file mode 100755 index 722bc031..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/resources/design/2.1-lifecycle-refactor.graffle +++ /dev/null @@ -1,4024 +0,0 @@ - - - - - CreationDate - 2007-03-15 15:23:17 -0400 - Creator - John.alt - GraphDocumentVersion - 5 - GuidesLocked - NO - GuidesVisible - YES - ImageCounter - 1 - LinksVisible - NO - MagnetsVisible - NO - MasterSheets - - - ActiveLayerIndex - 0 - AutoAdjust - - CanvasColor - - w - 1 - - CanvasOrigin - {0, 0} - CanvasScale - 1 - ColumnAlign - 1 - ColumnSpacing - 36 - DisplayScale - 1 in = 1 in - GraphicsList - - GridInfo - - HPages - 1 - IsPalette - NO - KeepToScale - - Layers - - - Lock - NO - Name - Layer 1 - Print - YES - View - YES - - - LayoutInfo - - Orientation - 2 - OutlineStyle - Basic - RowAlign - 1 - RowSpacing - 36 - SheetTitle - Master 1 - UniqueID - 1 - VPages - 1 - - - ModificationDate - 2007-03-15 16:57:24 -0400 - Modifier - John.alt - NotesVisible - NO - OriginVisible - NO - PageBreaks - YES - PrintInfo - - NSBottomMargin - - float - 0 - - NSLeftMargin - - float - 0 - - NSOrientation - - int - 1 - - NSPaperSize - - size - {792, 612} - - NSRightMargin - - float - 0 - - NSTopMargin - - float - 0 - - - ReadOnly - NO - Sheets - - - ActiveLayerIndex - 0 - AutoAdjust - - CanvasColor - - w - 1 - - CanvasOrigin - {0, 0} - CanvasScale - 1 - ColumnAlign - 1 - ColumnSpacing - 36 - DisplayScale - 1 in = 1 in - GraphicsList - - - Bounds - {{607.473, 151.036}, {112, 28}} - Class - ShapedGraphic - FitText - YES - FontInfo - - Color - - w - 0 - - Font - Helvetica - Size - 12 - - ID - 86 - Line - - ID - 72 - Position - 0.31921392679214478 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica-Oblique;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural - -\f0\i\fs24 \cf0 deprecated,\ -marked for refactor} - - - - Bounds - {{584.742, 252.673}, {104, 28}} - Class - ShapedGraphic - FitText - YES - FontInfo - - Color - - w - 0 - - Font - Helvetica - Size - 12 - - ID - 85 - Line - - ID - 84 - Position - 0.45520344376564026 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica-Oblique;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural - -\f0\i\fs24 \cf0 if binding spec \ -uses plugin prefix} - - - - Class - LineGraphic - Head - - ID - 39 - - ID - 84 - Points - - {623.954, 304} - {652.046, 222} - - Style - - stroke - - HeadArrow - FilledArrow - HopLines - - HopType - 1 - Pattern - 1 - TailArrow - 0 - - - Tail - - ID - 51 - - - - Class - LineGraphic - Head - - ID - 51 - - ID - 83 - Points - - {488, 317} - {555, 317} - - Style - - stroke - - HeadArrow - FilledArrow - HopLines - - HopType - 1 - TailArrow - 0 - - - Tail - - ID - 48 - - - - Class - LineGraphic - Head - - ID - 54 - - ID - 82 - Points - - {453.532, 330} - {575.468, 366} - - Style - - stroke - - HeadArrow - FilledArrow - HopLines - - HopType - 1 - TailArrow - 0 - - - Tail - - ID - 48 - - - - Class - LineGraphic - Head - - ID - 42 - - ID - 81 - Points - - {83.5916, 196} - {84, 138} - {256, 138} - {466, 138} - {656, 138} - {671.008, 99} - - Style - - stroke - - HeadArrow - FilledArrow - HopLines - - HopType - 1 - TailArrow - 0 - - - Tail - - ID - 33 - - - - Class - LineGraphic - Head - - ID - 39 - - ID - 80 - Points - - {83.6857, 196} - {84, 174} - {256, 174} - {466, 174} - {598, 198.252} - - Style - - stroke - - HeadArrow - FilledArrow - HopLines - - HopType - 1 - TailArrow - 0 - - - Tail - - ID - 33 - - - - Class - LineGraphic - Head - - ID - 45 - - ID - 66 - Points - - {142, 221.044} - {195, 231.956} - - Style - - stroke - - HeadArrow - FilledArrow - HopLines - - HopType - 1 - TailArrow - 0 - - - Tail - - ID - 33 - - - - Class - LineGraphic - Head - - ID - 48 - - ID - 79 - Points - - {106.976, 222} - {237, 294} - {331, 306.533} - - Style - - stroke - - HeadArrow - FilledArrow - HopLines - - HopType - 1 - TailArrow - 0 - - - Tail - - ID - 33 - - - - Class - LineGraphic - Head - - ID - 39 - - ID - 78 - Points - - {419.845, 304} - {466, 246} - {598, 220.362} - - Style - - stroke - - HeadArrow - FilledArrow - HopLines - - HopType - 1 - TailArrow - 0 - - - Tail - - ID - 48 - - - - Class - LineGraphic - Head - - ID - 39 - - ID - 77 - Points - - {254.456, 231} - {256, 210} - {466, 210} - {598, 209.307} - - Style - - stroke - - HeadArrow - FilledArrow - HopLines - - HopType - 1 - TailArrow - 0 - - - Tail - - ID - 45 - - - - Class - LineGraphic - Head - - ID - 42 - - ID - 72 - Points - - {658.562, 196} - {673.948, 99} - - Style - - stroke - - HeadArrow - FilledArrow - LineType - 1 - Pattern - 1 - TailArrow - 0 - - - Tail - - ID - 39 - - - - Class - LineGraphic - Head - - ID - 48 - - ID - 71 - Points - - {281.281, 257} - {381.719, 304} - - Style - - stroke - - HeadArrow - FilledArrow - LineType - 1 - TailArrow - 0 - - - Tail - - ID - 45 - - - - Class - TableGroup - Graphics - - - Bounds - {{524, 366}, {191, 14}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 55 - Shape - Rectangle - Style - - fill - - GradientAngle - 304 - GradientCenter - {-0.294118, -0.264706} - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc - -\f0\b\fs24 \cf0 LegacyLifecycleMappingParser} - - TextPlacement - 0 - - - Bounds - {{524, 380}, {191, 12}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 56 - Shape - Rectangle - Style - - fill - - GradientAngle - 304 - GradientCenter - {-0.294118, -0.264706} - - - Text - - Align - 0 - - TextPlacement - 0 - - - GridH - - 55 - 56 - - - GroupConnect - YES - ID - 54 - - - Class - TableGroup - Graphics - - - Bounds - {{555, 304}, {129, 14}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 52 - Shape - Rectangle - Style - - fill - - GradientAngle - 304 - GradientCenter - {-0.294118, -0.264706} - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc - -\f0\b\fs24 \cf0 MojoBindingFactory} - - TextPlacement - 0 - - - Bounds - {{555, 318}, {129, 12}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 53 - Shape - Rectangle - Style - - fill - - GradientAngle - 304 - GradientCenter - {-0.294118, -0.264706} - - - Text - - Align - 0 - - TextPlacement - 0 - - - GridH - - 52 - 53 - - - GroupConnect - YES - ID - 51 - - - Class - TableGroup - Graphics - - - Bounds - {{331, 304}, {157, 14}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 49 - Shape - Rectangle - Style - - fill - - GradientAngle - 304 - GradientCenter - {-0.294118, -0.264706} - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc - -\f0\b\fs24 \cf0 LifecycleBindingManager} - - TextPlacement - 0 - - - Bounds - {{331, 318}, {157, 12}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 50 - Shape - Rectangle - Style - - fill - - GradientAngle - 304 - GradientCenter - {-0.294118, -0.264706} - - - Text - - Align - 0 - - TextPlacement - 0 - - - GridH - - 49 - 50 - - - GroupConnect - YES - ID - 48 - - - Class - TableGroup - Graphics - - - Bounds - {{195, 231}, {117, 14}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 46 - Shape - Rectangle - Style - - fill - - GradientAngle - 304 - GradientCenter - {-0.294118, -0.264706} - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc - -\f0\b\fs24 \cf0 BuildPlanner} - - TextPlacement - 0 - - - Bounds - {{195, 245}, {117, 12}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 47 - Shape - Rectangle - Style - - fill - - GradientAngle - 304 - GradientCenter - {-0.294118, -0.264706} - - - Text - - Align - 0 - - TextPlacement - 0 - - - GridH - - 46 - 47 - - - GroupConnect - YES - ID - 45 - - - Class - TableGroup - Graphics - - - Bounds - {{617.51, 73}, {117, 14}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 43 - Shape - Rectangle - Style - - fill - - GradientAngle - 304 - GradientCenter - {-0.294118, -0.264706} - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc - -\f0\b\fs24 \cf0 PluginManager} - - TextPlacement - 0 - - - Bounds - {{617.51, 87}, {117, 12}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 44 - Shape - Rectangle - Style - - fill - - GradientAngle - 304 - GradientCenter - {-0.294118, -0.264706} - - - Text - - Align - 0 - - TextPlacement - 0 - - - GridH - - 43 - 44 - - - GroupConnect - YES - ID - 42 - - - Class - TableGroup - Graphics - - - Bounds - {{598, 196}, {117, 14}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 40 - Shape - Rectangle - Style - - fill - - GradientAngle - 304 - GradientCenter - {-0.294118, -0.264706} - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc - -\f0\b\fs24 \cf0 PluginLoader} - - TextPlacement - 0 - - - Bounds - {{598, 210}, {117, 12}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 41 - Shape - Rectangle - Style - - fill - - GradientAngle - 304 - GradientCenter - {-0.294118, -0.264706} - - - Text - - Align - 0 - - TextPlacement - 0 - - - GridH - - 40 - 41 - - - GroupConnect - YES - ID - 39 - - - Class - TableGroup - Graphics - - - Bounds - {{25, 196}, {117, 14}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 34 - Shape - Rectangle - Style - - fill - - GradientAngle - 304 - GradientCenter - {-0.294118, -0.264706} - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc - -\f0\b\fs24 \cf0 LifecycleExecutor} - - TextPlacement - 0 - - - Bounds - {{25, 210}, {117, 12}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 38 - Shape - Rectangle - Style - - fill - - GradientAngle - 304 - GradientCenter - {-0.294118, -0.264706} - - - Text - - Align - 0 - - TextPlacement - 0 - - - GridH - - 34 - 38 - - - GroupConnect - YES - ID - 33 - - - GridInfo - - HPages - 1 - IsPalette - NO - KeepToScale - - Layers - - - Lock - NO - Name - Layer 1 - Print - YES - View - YES - - - LayoutInfo - - ChildOrdering - 0 - HierarchicalOrientation - 0 - - MasterSheet - Master 1 - Orientation - 2 - OutlineStyle - Basic - RowAlign - 1 - RowSpacing - 36 - SheetTitle - Canvas 1 - UniqueID - 1 - VPages - 1 - - - ActiveLayerIndex - 0 - AutoAdjust - - CanvasColor - - w - 1 - - CanvasOrigin - {0, 0} - CanvasScale - 1 - ColumnAlign - 1 - ColumnSpacing - 36 - DisplayScale - 1 in = 1 in - GraphicsList - - - Bounds - {{521.5, 182.853}, {75, 14}} - Class - ShapedGraphic - FitText - YES - Flow - Resize - FontInfo - - Color - - w - 0 - - Font - Helvetica - Size - 12 - - ID - 126 - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural - -\f0\fs24 \cf0 loadPlugin()} - - Wrap - NO - - - Bounds - {{437, 221.123}, {92, 14}} - Class - ShapedGraphic - FitText - YES - ID - 125 - Line - - ID - 124 - Offset - 18.181819915771484 - Position - 0.55852556228637695 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Align - 0 - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural - -\f0\fs24 \cf0 binding, project} - - - - AllowLabelDrop - - Class - LineGraphic - Head - - ID - 123 - - ID - 124 - Points - - {398, 209.12} - {550.5, 210.592} - - Style - - stroke - - HeadArrow - FilledArrow - HeadScale - 1.4285709857940674 - TailArrow - StickArrow - TailScale - 1.5 - - - Tail - - ID - 79 - - - - Bounds - {{550.5, 203.842}, {17, 27}} - Class - ShapedGraphic - HFlip - YES - ID - 123 - Magnets - - {1, 0.5} - {1, -0.5} - {-1, 0.5} - {-1, -0.5} - {0.5, 1} - {-0.5, 1} - {0.5, -1} - {-0.5, -1} - - Shape - Rectangle - Text - - Align - 0 - - - - Bounds - {{521.5, 114.705}, {75, 14}} - Class - ShapedGraphic - FitText - YES - Flow - Resize - FontInfo - - Color - - w - 0 - - Font - Helvetica - Size - 12 - - ID - 122 - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural - -\f0\fs24 \cf0 loadPlugin()} - - Wrap - NO - - - Bounds - {{436.814, 155.115}, {92, 14}} - Class - ShapedGraphic - FitText - YES - ID - 121 - Line - - ID - 120 - Offset - 18.181819915771484 - Position - 0.55852556228637695 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Align - 0 - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural - -\f0\fs24 \cf0 binding, project} - - - - AllowLabelDrop - - Class - LineGraphic - Head - - ID - 119 - - ID - 120 - Points - - {397.5, 143.273} - {550.5, 144.455} - - Style - - stroke - - HeadArrow - FilledArrow - HeadScale - 1.4285709857940674 - TailArrow - StickArrow - TailScale - 1.5 - - - Tail - - ID - 73 - Info - 4 - - - - Bounds - {{550.5, 137.705}, {17, 27}} - Class - ShapedGraphic - HFlip - YES - ID - 119 - Magnets - - {1, 0.5} - {1, -0.5} - {-1, 0.5} - {-1, -0.5} - {0.5, 1} - {-0.5, 1} - {0.5, -1} - {-0.5, -1} - - Shape - Rectangle - Text - - Align - 0 - - - - Bounds - {{26, 636}, {131, 14}} - Class - ShapedGraphic - FitText - YES - Flow - Resize - ID - 118 - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Align - 0 - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural - -\f0\fs24 \cf0 foreach binding in plan} - - Wrap - NO - - - AllowLabelDrop - - Class - LineGraphic - Head - - ID - 4 - Info - 5 - - ID - 117 - OrthogonalBarAutomatic - - OrthogonalBarPosition - 19.371429443359375 - Points - - {75.5, 478} - {26, 482} - {26, 575} - {79.125, 616} - - Style - - stroke - - HeadArrow - 0 - HeadScale - 0.86000001430511475 - LineType - 2 - TailArrow - FilledArrow - TailScale - 0.85714292526245117 - - - Tail - - ID - 4 - Info - 1 - - - - Bounds - {{310.653, 581.444}, {179, 14}} - Class - ShapedGraphic - FitText - YES - ID - 116 - Line - - ID - 115 - Offset - 18.181819915771484 - Position - 0.52437615394592285 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Align - 0 - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural - -\f0\fs24 \cf0 mojoExecution, project, session} - - - - AllowLabelDrop - - Class - LineGraphic - Head - - ID - 113 - Info - 2 - - ID - 115 - Points - - {90, 570} - {681.5, 570.5} - - Style - - stroke - - HeadArrow - FilledArrow - HeadScale - 1.4285709857940674 - TailArrow - StickArrow - TailScale - 1.5 - - - Tail - - ID - 4 - Info - 12 - - - - Bounds - {{646.5, 539}, {87, 14}} - Class - ShapedGraphic - FitText - YES - FontInfo - - Color - - w - 0 - - Font - Helvetica - Size - 12 - - ID - 114 - Line - - ID - 111 - Position - 0.8310316801071167 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural - -\f0\fs24 \cf0 executeMojo()} - - - - Bounds - {{681.5, 559}, {17, 46}} - Class - ShapedGraphic - HFlip - YES - ID - 113 - Magnets - - {1, 0.5} - {1, -0.5} - {-1, 0.5} - {-1, -0.5} - {0.5, 1} - {-0.5, 1} - {0.5, -1} - {-0.5, -1} - - Shape - Rectangle - Text - - Align - 0 - - - - Class - Group - Graphics - - - AllowLabelDrop - - Class - LineGraphic - ID - 111 - Points - - {690, 34.5} - {690, 650} - - Style - - stroke - - HeadArrow - 0 - HeadScale - 1.4285709857940674 - Pattern - 1 - TailArrow - 0 - TailScale - 0.5 - - - Tail - - ID - 112 - - - - Bounds - {{636, 20}, {108, 14}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 112 - Shape - Rectangle - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc - -\f0\b\fs24 \cf0 \ul \ulc0 PluginManager} - - - - ID - 110 - - - Bounds - {{287.086, 525.522}, {92, 14}} - Class - ShapedGraphic - FitText - YES - ID - 109 - Line - - ID - 108 - Offset - 18.181819915771484 - Position - 0.52776741981506348 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Align - 0 - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural - -\f0\fs24 \cf0 binding, project} - - - - AllowLabelDrop - - Class - LineGraphic - Head - - ID - 106 - Info - 2 - - ID - 108 - Points - - {90, 515} - {550.5, 513.75} - - Style - - stroke - - HeadArrow - FilledArrow - HeadScale - 1.4285709857940674 - TailArrow - StickArrow - TailScale - 1.5 - - - Tail - - ID - 4 - Info - 3 - - - - Bounds - {{521.5, 485}, {75, 14}} - Class - ShapedGraphic - FitText - YES - Flow - Resize - FontInfo - - Color - - w - 0 - - Font - Helvetica - Size - 12 - - ID - 107 - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural - -\f0\fs24 \cf0 loadPlugin()} - - Wrap - NO - - - Bounds - {{550.5, 507}, {17, 27}} - Class - ShapedGraphic - HFlip - YES - ID - 106 - Magnets - - {1, 0.5} - {0.5, -0.25} - {-1, 0.5} - {-1, -0.5} - {0.5, 1} - {-0.5, 1} - {0.5, -1} - {-0.5, -1} - - Shape - Rectangle - Text - - Align - 0 - - - - Bounds - {{130.5, 275}, {33, 14}} - Class - ShapedGraphic - FitText - YES - Flow - Resize - ID - 105 - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Align - 0 - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural - -\f0\fs24 \cf0 plan} - - Wrap - NO - - - Class - LineGraphic - Head - - ID - 4 - - ID - 66 - Points - - {205.5, 270} - {86.375, 270} - - Style - - stroke - - HeadArrow - FilledArrow - HopLines - - HopType - 1 - TailArrow - 0 - - - Tail - - ID - 19 - Info - 16 - - - - Bounds - {{521.5, 302}, {75, 14}} - Class - ShapedGraphic - FitText - YES - Flow - Resize - FontInfo - - Color - - w - 0 - - Font - Helvetica - Size - 12 - - ID - 104 - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural - -\f0\fs24 \cf0 loadPlugin()} - - Wrap - NO - - - Bounds - {{349.413, 453.786}, {92, 14}} - Class - ShapedGraphic - FitText - YES - ID - 103 - Line - - ID - 102 - Offset - 18.181819915771484 - Position - 0.52776741981506348 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Align - 0 - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural - -\f0\fs24 \cf0 binding, project} - - - - AllowLabelDrop - - Class - LineGraphic - Head - - ID - 101 - - ID - 102 - Points - - {222, 443} - {550.5, 442.25} - - Style - - stroke - - HeadArrow - FilledArrow - HeadScale - 1.4285709857940674 - TailArrow - StickArrow - TailScale - 1.5 - - - Tail - - ID - 86 - - - - Bounds - {{550.5, 422}, {17, 27}} - Class - ShapedGraphic - HFlip - YES - ID - 101 - Magnets - - {1, 0.5} - {0.5, -0.25} - {-1, 0.5} - {-1, -0.5} - {0.5, 1} - {-0.5, 1} - {0.5, -1} - {-0.5, -1} - - Shape - Rectangle - Text - - Align - 0 - - - - Bounds - {{521.5, 396.749}, {75, 14}} - Class - ShapedGraphic - FitText - YES - FontInfo - - Color - - w - 0 - - Font - Helvetica - Size - 12 - - ID - 100 - Line - - ID - 93 - Position - 0.59991699457168579 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural - -\f0\fs24 \cf0 loadPlugin()} - - - - Bounds - {{349.564, 356.057}, {92, 14}} - Class - ShapedGraphic - FitText - YES - ID - 99 - Line - - ID - 98 - Offset - 18.181819915771484 - Position - 0.52776741981506348 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Align - 0 - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural - -\f0\fs24 \cf0 binding, project} - - - - AllowLabelDrop - - Class - LineGraphic - Head - - ID - 95 - - ID - 98 - Points - - {222.5, 344.456} - {550.5, 345.25} - - Style - - stroke - - HeadArrow - FilledArrow - HeadScale - 1.4285709857940674 - TailArrow - StickArrow - TailScale - 1.5 - - - Tail - - ID - 83 - Info - 9 - - - - AllowLabelDrop - - Class - LineGraphic - Head - - ID - 86 - Info - 3 - - ID - 97 - OrthogonalBarAutomatic - - OrthogonalBarPosition - -1 - Points - - {222.5, 254.5} - {309.5, 254} - {327, 344} - {222.5, 454.079} - - Style - - stroke - - HeadArrow - 0 - HeadScale - 0.86000001430511475 - LineType - 2 - TailArrow - StickArrow - TailScale - 0.85714292526245117 - - - Tail - - ID - 19 - Info - 15 - - - - AllowLabelDrop - - Class - LineGraphic - Head - - ID - 83 - Info - 3 - - ID - 96 - OrthogonalBarAutomatic - - OrthogonalBarPosition - -1 - Points - - {222, 237} - {295.5, 237} - {295.5, 337} - {222.5, 356.792} - - Style - - stroke - - HeadArrow - 0 - HeadScale - 0.86000001430511475 - LineType - 2 - TailArrow - StickArrow - TailScale - 0.85714292526245117 - - - Tail - - ID - 19 - Info - 14 - - - - Bounds - {{550.5, 325}, {17, 27}} - Class - ShapedGraphic - HFlip - YES - ID - 95 - Magnets - - {1, 0.5} - {1, -0.5} - {-1, 0.5} - {-1, -0.5} - {0.5, 1} - {-0.5, 1} - {0.5, -1} - {-0.5, -1} - - Shape - Rectangle - Text - - Align - 0 - - - - Class - Group - Graphics - - - AllowLabelDrop - - Class - LineGraphic - ID - 93 - Points - - {559, 34.5} - {559, 650} - - Style - - stroke - - HeadArrow - 0 - HeadScale - 1.4285709857940674 - Pattern - 1 - TailArrow - 0 - TailScale - 0.5 - - - Tail - - ID - 94 - - - - Bounds - {{505, 20}, {108, 14}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 94 - Shape - Rectangle - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc - -\f0\b\fs24 \cf0 \ul \ulc0 PluginLoader} - - - - ID - 92 - - - AllowLabelDrop - - Class - LineGraphic - Head - - ID - 19 - Info - 13 - - ID - 91 - OrthogonalBarAutomatic - - OrthogonalBarPosition - -1 - Points - - {222.5, 426.798} - {321, 420} - {301, 249} - {222.5, 248.833} - - Style - - stroke - - HeadArrow - 0 - HeadScale - 0.86000001430511475 - LineType - 2 - TailArrow - FilledArrow - TailScale - 0.85714292526245117 - - - Tail - - ID - 86 - Info - 4 - - - - AllowLabelDrop - - Class - LineGraphic - Head - - ID - 19 - Info - 12 - - ID - 10 - OrthogonalBarAutomatic - - OrthogonalBarPosition - -1 - Points - - {222.5, 330.264} - {288.5, 330} - {288.5, 230} - {222.5, 230} - - Style - - stroke - - HeadArrow - 0 - HeadScale - 0.86000001430511475 - LineType - 2 - TailArrow - FilledArrow - TailScale - 0.85714292526245117 - - - Tail - - ID - 83 - Info - 4 - - - - Bounds - {{132.5, 396.158}, {163, 14}} - Class - ShapedGraphic - FitText - YES - Flow - Resize - FontInfo - - Color - - w - 0 - - Font - Helvetica - Size - 12 - - ID - 87 - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural - -\f0\fs24 \cf0 addReportingPlanModifiers()} - - Wrap - NO - - - Bounds - {{205.5, 413.158}, {17, 54.5618}} - Class - ShapedGraphic - HFlip - YES - ID - 86 - Magnets - - {1, 0.5} - {1, -0.5} - {-1, 0.5} - {-1, -0.5} - {0.5, 1} - {-0.5, 1} - {0.5, -1} - {-0.5, -1} - {-0.529412, 0.0497093} - - Shape - Rectangle - Text - - Align - 0 - - - - Bounds - {{139.5, 297.124}, {149, 14}} - Class - ShapedGraphic - FitText - YES - FontInfo - - Color - - w - 0 - - Font - Helvetica - Size - 12 - - ID - 84 - Line - - ID - 17 - Position - 0.43805667757987976 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural - -\f0\fs24 \cf0 addForkedPlanModifiers()} - - - - Bounds - {{205.5, 317}, {17, 53.056}} - Class - ShapedGraphic - HFlip - YES - ID - 83 - Magnets - - {1, 0.5} - {1, -0.5} - {-1, 0.5} - {-1, -0.5} - {0.5, 1} - {-0.5, 1} - {0.5, -1} - {-0.5, -1} - {-0.529412, 0.0185184} - - Shape - Rectangle - Text - - Align - 0 - - - - Bounds - {{305.436, 220.259}, {47, 14}} - Class - ShapedGraphic - FitText - YES - ID - 82 - Line - - ID - 81 - Offset - 18.181819915771484 - Position - 0.67475664615631104 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Align - 0 - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural - -\f0\fs24 \cf0 project} - - - - AllowLabelDrop - - Class - LineGraphic - Head - - ID - 79 - Info - 2 - - ID - 81 - Points - - {222, 209} - {380.5, 209.115} - - Style - - stroke - - HeadArrow - FilledArrow - HeadScale - 1.4285709857940674 - TailArrow - StickArrow - TailScale - 1.5 - - - Tail - - ID - 19 - Info - 3 - - - - Bounds - {{311.5, 120.556}, {155, 14}} - Class - ShapedGraphic - FitText - YES - Flow - Resize - FontInfo - - Color - - w - 0 - - Font - Helvetica - Size - 12 - - ID - 80 - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural - -\f0\fs24 \cf0 getBindingsForPackaging()} - - Wrap - NO - - - Bounds - {{380.5, 203.842}, {17, 21.0909}} - Class - ShapedGraphic - HFlip - YES - ID - 79 - Magnets - - {1, 0.5} - {1, -0.5} - {-1, 0.5} - {-1, -0.5} - {0.5, 1} - {-0.5, 1} - {0.5, -1} - {-0.5, -1} - - Shape - Rectangle - Text - - Align - 0 - - - - Bounds - {{260.247, 156.369}, {47, 14}} - Class - ShapedGraphic - FitText - YES - ID - 76 - Line - - ID - 75 - Offset - 18.181819915771484 - Position - 0.38291174173355103 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Align - 0 - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural - -\f0\fs24 \cf0 project} - - - - AllowLabelDrop - - Class - LineGraphic - ID - 75 - Points - - {222.5, 145.7} - {382.054, 144.364} - - Style - - stroke - - HeadArrow - FilledArrow - HeadScale - 1.4285709857940674 - TailArrow - StickArrow - TailScale - 1.5 - - - Tail - - ID - 19 - - - - Bounds - {{309, 182.853}, {160, 14}} - Class - ShapedGraphic - FitText - YES - FontInfo - - Color - - w - 0 - - Font - Helvetica - Size - 12 - - ID - 74 - Line - - ID - 69 - Position - 0.25240078568458557 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural - -\f0\fs24 \cf0 getProjectCustomBindings()} - - - - Bounds - {{380.5, 138}, {17, 21.0909}} - Class - ShapedGraphic - HFlip - YES - ID - 73 - Magnets - - {1, 0.5} - {1, -0.5} - {-1, 0.5} - {-1, -0.5} - {0.5, 1} - {-0.5, 1} - {0.5, -1} - {-0.5, -1} - - Shape - Rectangle - Text - - Align - 0 - - - - Bounds - {{259.56, 110.107}, {47, 14}} - Class - ShapedGraphic - FitText - YES - ID - 29 - Line - - ID - 7 - Offset - 18.181819915771484 - Position - 0.38198670744895935 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Align - 0 - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural - -\f0\fs24 \cf0 project} - - - - AllowLabelDrop - - Class - LineGraphic - Head - - ID - 71 - - ID - 7 - Points - - {222.5, 99.6111} - {380.5, 97.8182} - - Style - - stroke - - HeadArrow - FilledArrow - HeadScale - 1.4285709857940674 - TailArrow - StickArrow - TailScale - 1.5 - - - Tail - - ID - 19 - Info - 10 - - - - Bounds - {{329.5, 75.973}, {119, 14}} - Class - ShapedGraphic - FitText - YES - FontInfo - - Color - - w - 0 - - Font - Helvetica - Size - 12 - - ID - 72 - Line - - ID - 69 - Position - 0.078753873705863953 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural - -\f0\fs24 \cf0 getDefaultBindings()} - - - - Bounds - {{380.5, 92.5454}, {17, 21.0909}} - Class - ShapedGraphic - HFlip - YES - ID - 71 - Magnets - - {1, 0.5} - {1, -0.5} - {-1, 0.5} - {-1, -0.5} - {0.5, 1} - {-0.5, 1} - {0.5, -1} - {-0.5, -1} - - Shape - Rectangle - Text - - Align - 0 - - - - Class - Group - Graphics - - - AllowLabelDrop - - Class - LineGraphic - ID - 69 - Points - - {389, 34.5} - {389, 650} - - Style - - stroke - - HeadArrow - 0 - HeadScale - 1.4285709857940674 - Pattern - 1 - TailArrow - 0 - TailScale - 0.5 - - - Tail - - ID - 70 - - - - Bounds - {{313.5, 20}, {151, 14}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 70 - Shape - Rectangle - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc - -\f0\b\fs24 \cf0 \ul \ulc0 LifecyleBindingManager} - - - - ID - 68 - - - Bounds - {{108.828, 81.9091}, {81, 14}} - Class - ShapedGraphic - FitText - YES - ID - 30 - Line - - ID - 6 - Offset - 10.909090042114258 - Position - 0.52006888389587402 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Align - 0 - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural - -\f0\fs24 \cf0 tasks, project} - - - - AllowLabelDrop - - Class - LineGraphic - ID - 6 - Points - - {89, 78} - {205, 78} - - Style - - stroke - - HeadArrow - StickArrow - HeadScale - 1.4285709857940674 - TailArrow - 0 - TailScale - 0.5 - - - - - Bounds - {{155, 53.596}, {118, 14}} - Class - ShapedGraphic - FitText - YES - FontInfo - - Color - - w - 0 - - Font - Helvetica - Size - 12 - - ID - 20 - Line - - ID - 17 - Position - 0.042397733777761459 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural - -\f0\fs24 \cf0 constructBuildPlan()} - - - - Bounds - {{205.5, 74}, {17, 208}} - Class - ShapedGraphic - HFlip - YES - ID - 19 - Magnets - - {1, 0.5} - {1, -0.5} - {-0.470589, 0.149038} - {-0.5, -0.197115} - {0.5, 1} - {-0.5, 1} - {0.5, -1} - {-0.5, -1} - {-0.5, -0.155288} - {-0.5, -0.37687} - {-0.5, -0.155288} - {-0.5, 0.25} - {-0.529412, 0.360577} - {-0.470589, 0.283654} - {-0.529412, 0.389423} - {0.5, 0.442308} - - Shape - Rectangle - Text - - Align - 0 - - - - Class - Group - Graphics - - - AllowLabelDrop - - Class - LineGraphic - ID - 17 - Points - - {214, 34.5002} - {214, 650} - - Style - - stroke - - HeadArrow - 0 - HeadScale - 1.4285709857940674 - Pattern - 1 - TailArrow - 0 - TailScale - 0.5 - - - Tail - - ID - 18 - - - - Bounds - {{160, 20.0002}, {108, 14}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 18 - Shape - Rectangle - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc - -\f0\b\fs24 \cf0 \ul \ulc0 BuildPlanner} - - - - ID - 16 - - - Bounds - {{53.5, 46.7192}, {61, 14}} - Class - ShapedGraphic - FitText - YES - FontInfo - - Color - - w - 0 - - Font - Helvetica - Size - 12 - - ID - 5 - Line - - ID - 2 - Position - 0.031224979087710381 - RotationType - 0 - - Shape - Rectangle - Style - - shadow - - Draws - NO - - stroke - - Draws - NO - - - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural - -\f0\fs24 \cf0 execute()} - - - - Bounds - {{75.5, 64}, {14.5, 552}} - Class - ShapedGraphic - HFlip - YES - ID - 4 - Magnets - - {1, 0.5} - {1, -0.5} - {-0.5, 0.317029} - {-1, -0.5} - {0.5, 1} - {-0.5, 1} - {0.5, -1} - {-0.5, -1} - {-0.25, -0.126812} - {-0.568965, 0.302536} - {-0.637931, 0.400362} - {-0.5, 0.416667} - - Shape - Rectangle - Text - - Align - 0 - - - - Class - Group - Graphics - - - AllowLabelDrop - - Class - LineGraphic - ID - 2 - Points - - {84, 34.5003} - {84, 650} - - Style - - stroke - - HeadArrow - 0 - HeadScale - 1.4285709857940674 - Pattern - 1 - TailArrow - 0 - TailScale - 0.5 - - - Tail - - ID - 3 - - - - Bounds - {{26, 20.0002}, {116, 14}} - Class - ShapedGraphic - FitText - Vertical - Flow - Resize - ID - 3 - Shape - Rectangle - Text - - Text - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 -{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;} -{\colortbl;\red255\green255\blue255;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc - -\f0\b\fs24 \cf0 \ul \ulc0 LifecycleExecutor} - - - - ID - 1 - - - GridInfo - - HPages - 2 - IsPalette - NO - KeepToScale - - Layers - - - Lock - NO - Name - Layer 1 - Print - YES - View - YES - - - LayoutInfo - - ChildOrdering - 0 - HierarchicalOrientation - 0 - - MasterSheet - Master 1 - Orientation - 2 - OutlineStyle - Basic - RowAlign - 1 - RowSpacing - 36 - SheetTitle - Canvas 2 - UniqueID - 2 - VPages - 2 - - - SmartAlignmentGuidesActive - YES - SmartDistanceGuidesActive - YES - UseEntirePage - - WindowInfo - - CurrentSheet - 0 - DrawerOpen - - DrawerTab - Outline - DrawerWidth - 209 - FitInWindow - - Frame - {{6, 123}, {956, 590}} - ShowRuler - - ShowStatusBar - - VisibleRegion - {{-94, 0}, {941, 476}} - Zoom - 1 - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/site.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/site.xml deleted file mode 100644 index 2c38d2a0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/site/site.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java deleted file mode 100644 index 57d374fd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java +++ /dev/null @@ -1,360 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.Arrays; -import java.util.List; -import java.util.Properties; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.InvalidRepositoryException; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.execution.DefaultMavenExecutionRequest; -import org.apache.maven.execution.DefaultMavenExecutionResult; -import org.apache.maven.execution.MavenExecutionRequest; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.model.Build; -import org.apache.maven.model.Dependency; -import org.apache.maven.model.Exclusion; -import org.apache.maven.model.Model; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.Repository; -import org.apache.maven.model.RepositoryPolicy; -import org.apache.maven.project.DefaultProjectBuildingRequest; -import org.apache.maven.project.MavenProject; -import org.apache.maven.project.ProjectBuildingRequest; -import org.apache.maven.repository.RepositorySystem; -import org.apache.maven.repository.internal.MavenRepositorySystemUtils; -import org.codehaus.plexus.ContainerConfiguration; -import org.codehaus.plexus.PlexusConstants; -import org.codehaus.plexus.PlexusTestCase; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.util.FileUtils; -import org.eclipse.aether.DefaultRepositorySystemSession; -import org.eclipse.aether.internal.impl.SimpleLocalRepositoryManagerFactory; -import org.eclipse.aether.repository.LocalRepository; - -public abstract class AbstractCoreMavenComponentTestCase - extends PlexusTestCase -{ - @Requirement - protected RepositorySystem repositorySystem; - - @Requirement - protected org.apache.maven.project.ProjectBuilder projectBuilder; - - protected void setUp() - throws Exception - { - repositorySystem = lookup( RepositorySystem.class ); - projectBuilder = lookup( org.apache.maven.project.ProjectBuilder.class ); - } - - @Override - protected void tearDown() - throws Exception - { - repositorySystem = null; - projectBuilder = null; - super.tearDown(); - } - - abstract protected String getProjectsDirectory(); - - protected File getProject( String name ) - throws Exception - { - File source = new File( new File( getBasedir(), getProjectsDirectory() ), name ); - File target = new File( new File( getBasedir(), "target" ), name ); - FileUtils.copyDirectoryStructureIfModified( source, target ); - return new File( target, "pom.xml" ); - } - - /** - * We need to customize the standard Plexus container with the plugin discovery listener which - * is what looks for the META-INF/maven/plugin.xml resources that enter the system when a Maven - * plugin is loaded. - * - * We also need to customize the Plexus container with a standard plugin discovery listener - * which is the MavenPluginCollector. When a Maven plugin is discovered the MavenPluginCollector - * collects the plugin descriptors which are found. - */ - protected void customizeContainerConfiguration( ContainerConfiguration containerConfiguration ) - { - containerConfiguration.setAutoWiring( true ).setClassPathScanning( PlexusConstants.SCANNING_INDEX ); - } - - protected MavenExecutionRequest createMavenExecutionRequest( File pom ) - throws Exception - { - MavenExecutionRequest request = new DefaultMavenExecutionRequest() - .setPom( pom ) - .setProjectPresent( true ) - .setShowErrors( true ) - .setPluginGroups( Arrays.asList( "org.apache.maven.plugins" ) ) - .setLocalRepository( getLocalRepository() ) - .setRemoteRepositories( getRemoteRepositories() ) - .setPluginArtifactRepositories( getPluginArtifactRepositories() ) - .setGoals( Arrays.asList( "package" ) ); - - return request; - } - - // layer the creation of a project builder configuration with a request, but this will need to be - // a Maven subclass because we don't want to couple maven to the project builder which we need to - // separate. - protected MavenSession createMavenSession( File pom ) - throws Exception - { - return createMavenSession( pom, new Properties() ); - } - - protected MavenSession createMavenSession( File pom, Properties executionProperties ) - throws Exception - { - MavenExecutionRequest request = createMavenExecutionRequest( pom ); - - ProjectBuildingRequest configuration = new DefaultProjectBuildingRequest() - .setLocalRepository( request.getLocalRepository() ) - .setRemoteRepositories( request.getRemoteRepositories() ) - .setPluginArtifactRepositories( request.getPluginArtifactRepositories() ) - .setSystemProperties( executionProperties ); - - MavenProject project = null; - - if ( pom != null ) - { - project = projectBuilder.build( pom, configuration ).getProject(); - } - else - { - project = createStubMavenProject(); - project.setRemoteArtifactRepositories( request.getRemoteRepositories() ); - project.setPluginArtifactRepositories( request.getPluginArtifactRepositories() ); - } - - initRepoSession( configuration ); - - MavenSession session = - new MavenSession( getContainer(), configuration.getRepositorySession(), request, - new DefaultMavenExecutionResult() ); - session.setProjects( Arrays.asList( project ) ); - - return session; - } - - protected void initRepoSession( ProjectBuildingRequest request ) - throws Exception - { - File localRepoDir = new File( request.getLocalRepository().getBasedir() ); - LocalRepository localRepo = new LocalRepository( localRepoDir ); - DefaultRepositorySystemSession session = MavenRepositorySystemUtils.newSession(); - session.setLocalRepositoryManager( new SimpleLocalRepositoryManagerFactory().newInstance( session, localRepo ) ); - request.setRepositorySession( session ); - } - - protected MavenProject createStubMavenProject() - { - Model model = new Model(); - model.setGroupId( "org.apache.maven.test" ); - model.setArtifactId( "maven-test" ); - model.setVersion( "1.0" ); - return new MavenProject( model ); - } - - protected List getRemoteRepositories() - throws InvalidRepositoryException - { - File repoDir = new File( getBasedir(), "src/test/remote-repo" ).getAbsoluteFile(); - - RepositoryPolicy policy = new RepositoryPolicy(); - policy.setEnabled( true ); - policy.setChecksumPolicy( "ignore" ); - policy.setUpdatePolicy( "always" ); - - Repository repository = new Repository(); - repository.setId( RepositorySystem.DEFAULT_REMOTE_REPO_ID ); - repository.setUrl( "file://" + repoDir.toURI().getPath() ); - repository.setReleases( policy ); - repository.setSnapshots( policy ); - - return Arrays.asList( repositorySystem.buildArtifactRepository( repository ) ); - } - - protected List getPluginArtifactRepositories() - throws InvalidRepositoryException - { - return getRemoteRepositories(); - } - - protected ArtifactRepository getLocalRepository() - throws InvalidRepositoryException - { - File repoDir = new File( getBasedir(), "target/local-repo" ).getAbsoluteFile(); - - return repositorySystem.createLocalRepository( repoDir ); - } - - protected class ProjectBuilder - { - private MavenProject project; - - public ProjectBuilder( MavenProject project ) - { - this.project = project; - } - - public ProjectBuilder( String groupId, String artifactId, String version ) - { - Model model = new Model(); - model.setModelVersion( "4.0.0" ); - model.setGroupId( groupId ); - model.setArtifactId( artifactId ); - model.setVersion( version ); - model.setBuild( new Build() ); - project = new MavenProject( model ); - } - - public ProjectBuilder setGroupId( String groupId ) - { - project.setGroupId( groupId ); - return this; - } - - public ProjectBuilder setArtifactId( String artifactId ) - { - project.setArtifactId( artifactId ); - return this; - } - - public ProjectBuilder setVersion( String version ) - { - project.setVersion( version ); - return this; - } - - // Dependencies - // - public ProjectBuilder addDependency( String groupId, String artifactId, String version, String scope ) - { - return addDependency( groupId, artifactId, version, scope, (Exclusion)null ); - } - - public ProjectBuilder addDependency( String groupId, String artifactId, String version, String scope, Exclusion exclusion ) - { - return addDependency( groupId, artifactId, version, scope, null, exclusion ); - } - - public ProjectBuilder addDependency( String groupId, String artifactId, String version, String scope, String systemPath ) - { - return addDependency( groupId, artifactId, version, scope, systemPath, null ); - } - - public ProjectBuilder addDependency( String groupId, String artifactId, String version, String scope, String systemPath, Exclusion exclusion ) - { - Dependency d = new Dependency(); - d.setGroupId( groupId ); - d.setArtifactId( artifactId ); - d.setVersion( version ); - d.setScope( scope ); - - if ( systemPath != null && scope.equals( Artifact.SCOPE_SYSTEM ) ) - { - d.setSystemPath( systemPath ); - } - - if ( exclusion != null ) - { - d.addExclusion( exclusion ); - } - - project.getDependencies().add( d ); - - return this; - } - - // Plugins - // - public ProjectBuilder addPlugin( Plugin plugin ) - { - project.getBuildPlugins().add( plugin ); - return this; - } - - public MavenProject get() - { - return project; - } - } - - protected class PluginBuilder - { - private Plugin plugin; - - public PluginBuilder( String groupId, String artifactId, String version ) - { - plugin = new Plugin(); - plugin.setGroupId( groupId ); - plugin.setArtifactId( artifactId ); - plugin.setVersion( version ); - } - - // Dependencies - // - public PluginBuilder addDependency( String groupId, String artifactId, String version, String scope, Exclusion exclusion ) - { - return addDependency( groupId, artifactId, version, scope, exclusion ); - } - - public PluginBuilder addDependency( String groupId, String artifactId, String version, String scope, String systemPath ) - { - return addDependency( groupId, artifactId, version, scope, systemPath, null ); - } - - public PluginBuilder addDependency( String groupId, String artifactId, String version, String scope, String systemPath, Exclusion exclusion ) - { - Dependency d = new Dependency(); - d.setGroupId( groupId ); - d.setArtifactId( artifactId ); - d.setVersion( version ); - d.setScope( scope ); - - if ( systemPath != null && scope.equals( Artifact.SCOPE_SYSTEM ) ) - { - d.setSystemPath( systemPath ); - } - - if ( exclusion != null ) - { - d.addExclusion( exclusion ); - } - - plugin.getDependencies().add( d ); - - return this; - } - - public Plugin get() - { - return plugin; - } - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/DefaultMavenTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/DefaultMavenTest.java deleted file mode 100644 index ab073a63..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/DefaultMavenTest.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.apache.maven; - -import org.apache.maven.execution.MavenExecutionRequest; -import org.apache.maven.execution.MavenExecutionResult; - -import static java.util.Arrays.asList; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -public class DefaultMavenTest extends AbstractCoreMavenComponentTestCase{ - - public void testThatErrorDuringProjectDependencyGraphCreationAreStored() - throws Exception - { - Maven maven = getContainer().lookup( Maven.class ); - MavenExecutionRequest request = createMavenExecutionRequest( getProject( "cyclic-reference" ) ).setGoals( asList("validate") ); - - MavenExecutionResult result = maven.execute( request ); - - assertEquals( ProjectCycleException.class, result.getExceptions().get( 0 ).getClass() ); - } - - @Override - protected String getProjectsDirectory() - { - return "src/test/projects/default-maven"; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/MavenLifecycleParticipantTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/MavenLifecycleParticipantTest.java deleted file mode 100644 index 17aeab31..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/MavenLifecycleParticipantTest.java +++ /dev/null @@ -1,173 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -import java.io.File; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.execution.MavenExecutionRequest; -import org.apache.maven.execution.MavenExecutionResult; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.model.Dependency; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.PlexusContainer; -import org.codehaus.plexus.component.repository.ComponentDescriptor; - -public class MavenLifecycleParticipantTest - extends AbstractCoreMavenComponentTestCase -{ - - private static final String INJECTED_ARTIFACT_ID = "injected"; - - public static class InjectDependencyLifecycleListener - extends AbstractMavenLifecycleParticipant - { - - @Override - public void afterProjectsRead( MavenSession session ) - { - MavenProject project = session.getProjects().get( 0 ); - - Dependency dependency = new Dependency(); - dependency.setArtifactId( INJECTED_ARTIFACT_ID ); - dependency.setGroupId( "foo" ); - dependency.setVersion( "1.2.3" ); - dependency.setScope( "system" ); - try - { - dependency.setSystemPath( new File( - "src/test/projects/lifecycle-executor/project-with-additional-lifecycle-elements/pom.xml" ).getCanonicalPath() ); - } - catch ( IOException e ) - { - throw new RuntimeException( e ); - } - - project.getModel().addDependency( dependency ); - } - - @Override - public void afterSessionStart( MavenSession session ) - { - session.getUserProperties().setProperty( "injected", "bar" ); - } - - } - - public static class InjectReactorDependency - extends AbstractMavenLifecycleParticipant - { - @Override - public void afterProjectsRead( MavenSession session ) - { - injectReactorDependency( session.getProjects(), "module-a", "module-b" ); - } - - private void injectReactorDependency( List projects, String moduleFrom, String moduleTo ) - { - for ( MavenProject project : projects ) - { - if ( moduleFrom.equals( project.getArtifactId() ) ) - { - Dependency dependency = new Dependency(); - dependency.setArtifactId( moduleTo ); - dependency.setGroupId( project.getGroupId() ); - dependency.setVersion( project.getVersion() ); - - project.getModel().addDependency( dependency ); - } - } - } - } - - @Override - protected void setupContainer() - { - super.setupContainer(); - } - - @Override - protected String getProjectsDirectory() - { - return "src/test/projects/lifecycle-listener"; - } - - public void testDependencyInjection() - throws Exception - { - PlexusContainer container = getContainer(); - - ComponentDescriptor cd = - new ComponentDescriptor( InjectDependencyLifecycleListener.class, - container.getContainerRealm() ); - cd.setRoleClass( AbstractMavenLifecycleParticipant.class ); - container.addComponentDescriptor( cd ); - - Maven maven = container.lookup( Maven.class ); - File pom = getProject( "lifecycle-listener-dependency-injection" ); - MavenExecutionRequest request = createMavenExecutionRequest( pom ); - request.setGoals( Arrays.asList( "validate" ) ); - MavenExecutionResult result = maven.execute( request ); - - assertFalse( result.getExceptions().toString(), result.hasExceptions() ); - - MavenProject project = result.getProject(); - - assertEquals( "bar", project.getProperties().getProperty( "foo" ) ); - - ArrayList artifacts = new ArrayList( project.getArtifacts() ); - - assertEquals( 1, artifacts.size() ); - assertEquals( INJECTED_ARTIFACT_ID, artifacts.get( 0 ).getArtifactId() ); - } - - public void testReactorDependencyInjection() - throws Exception - { - List reactorOrder = - getReactorOrder( "lifecycle-participant-reactor-dependency-injection", InjectReactorDependency.class ); - assertEquals( Arrays.asList( "parent", "module-b", "module-a" ), reactorOrder ); - } - - private List getReactorOrder( String testProject, Class participant ) - throws Exception - { - PlexusContainer container = getContainer(); - - ComponentDescriptor cd = new ComponentDescriptor( participant, container.getContainerRealm() ); - cd.setRoleClass( AbstractMavenLifecycleParticipant.class ); - container.addComponentDescriptor( cd ); - - Maven maven = container.lookup( Maven.class ); - File pom = getProject( testProject ); - MavenExecutionRequest request = createMavenExecutionRequest( pom ); - request.setGoals( Arrays.asList( "validate" ) ); - MavenExecutionResult result = maven.execute( request ); - - assertFalse( result.getExceptions().toString(), result.hasExceptions() ); - - List order = new ArrayList(); - for ( MavenProject project : result.getTopologicallySortedProjects() ) - { - order.add( project.getArtifactId() ); - } - return order; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/MavenTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/MavenTest.java deleted file mode 100644 index 3e248604..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/MavenTest.java +++ /dev/null @@ -1,69 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - - -import org.apache.maven.exception.ExceptionHandler; -import org.codehaus.plexus.component.annotations.Requirement; - -public class MavenTest - extends AbstractCoreMavenComponentTestCase -{ - @Requirement - private Maven maven; - - @Requirement - private ExceptionHandler exceptionHandler; - - protected void setUp() - throws Exception - { - super.setUp(); - maven = lookup( Maven.class ); - exceptionHandler = lookup( ExceptionHandler.class ); - } - - @Override - protected void tearDown() - throws Exception - { - maven = null; - exceptionHandler = null; - super.tearDown(); - } - - protected String getProjectsDirectory() - { - return "src/test/projects/lifecycle-executor"; - } - - public void testLifecycleExecutionUsingADefaultLifecyclePhase() - throws Exception - { - /* - File pom = getProject( "project-with-additional-lifecycle-elements" ); - MavenExecutionRequest request = createMavenExecutionRequest( pom ); - MavenExecutionResult result = maven.execute( request ); - if ( result.hasExceptions() ) - { - ExceptionSummary es = exceptionHandler.handleException( result.getExceptions().get( 0 ) ); - System.out.println( es.getMessage() ); - es.getException().printStackTrace(); - fail( "Maven did not execute correctly." ); - } - */ - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/ProjectDependenciesResolverTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/ProjectDependenciesResolverTest.java deleted file mode 100644 index ca75c3f1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/ProjectDependenciesResolverTest.java +++ /dev/null @@ -1,114 +0,0 @@ -package org.apache.maven; - -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -import java.io.File; -import java.util.Collections; -import java.util.List; -import java.util.Properties; -import java.util.Set; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.component.annotations.Requirement; - -public class ProjectDependenciesResolverTest - extends AbstractCoreMavenComponentTestCase -{ - @Requirement - private ProjectDependenciesResolver resolver; - - protected void setUp() - throws Exception - { - super.setUp(); - resolver = lookup( ProjectDependenciesResolver.class ); - } - - @Override - protected void tearDown() - throws Exception - { - resolver = null; - super.tearDown(); - } - - protected String getProjectsDirectory() - { - return "src/test/projects/project-dependencies-resolver"; - } - - /* - public void testExclusionsInDependencies() - throws Exception - { - MavenSession session = createMavenSession( null ); - MavenProject project = session.getCurrentProject(); - - Exclusion exclusion = new Exclusion(); - exclusion.setGroupId( "org.apache.maven.its" ); - exclusion.setArtifactId( "a" ); - - new ProjectBuilder( project ).addDependency( "org.apache.maven.its", "b", "0.1", Artifact.SCOPE_RUNTIME, - exclusion ); - - Set artifactDependencies = - resolver.resolve( project, Collections.singleton( Artifact.SCOPE_COMPILE ), session ); - assertEquals( 0, artifactDependencies.size() ); - - artifactDependencies = resolver.resolve( project, Collections.singleton( Artifact.SCOPE_RUNTIME ), session ); - assertEquals( 1, artifactDependencies.size() ); - assertEquals( "b", artifactDependencies.iterator().next().getArtifactId() ); - } - */ - - public void testSystemScopeDependencies() - throws Exception - { - MavenSession session = createMavenSession( null ); - MavenProject project = session.getCurrentProject(); - - new ProjectBuilder( project ) - .addDependency( "com.mycompany", "system-dependency", "1.0", Artifact.SCOPE_SYSTEM, new File( getBasedir(), "pom.xml" ).getAbsolutePath() ); - - Set artifactDependencies = - resolver.resolve( project, Collections.singleton( Artifact.SCOPE_COMPILE ), session ); - assertEquals( 1, artifactDependencies.size() ); - } - - public void testSystemScopeDependencyIsPresentInTheCompileClasspathElements() - throws Exception - { - File pom = getProject( "it0063" ); - - Properties eps = new Properties(); - eps.setProperty( "jre.home", new File( pom.getParentFile(), "jdk/jre" ).getPath() ); - - MavenSession session = createMavenSession( pom, eps ); - MavenProject project = session.getCurrentProject(); - - project.setArtifacts( resolver.resolve( project, Collections.singleton( Artifact.SCOPE_COMPILE ), session ) ); - - List elements = project.getCompileClasspathElements(); - assertEquals( 2, elements.size() ); - - @SuppressWarnings( "deprecation" ) - List artifacts = project.getCompileArtifacts(); - assertEquals( 1, artifacts.size() ); - assertTrue( artifacts.get( 0 ).getFile().getName().endsWith( "tools.jar" ) ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/artifact/handler/ArtifactHandlerTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/artifact/handler/ArtifactHandlerTest.java deleted file mode 100644 index ac02e106..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/artifact/handler/ArtifactHandlerTest.java +++ /dev/null @@ -1,89 +0,0 @@ -package org.apache.maven.artifact.handler; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.List; - -import org.codehaus.plexus.PlexusTestCase; -import org.codehaus.plexus.util.FileUtils; - -public class ArtifactHandlerTest - extends PlexusTestCase -{ - public void testAptConsistency() - throws Exception - { - File apt = getTestFile( "src/site/apt/artifact-handlers.apt" ); - - @SuppressWarnings( "unchecked" ) - List lines = FileUtils.loadFile( apt ); - - for ( String line : lines ) - { - if ( line.startsWith( "||" ) ) - { - String[] cols = line.split( "\\|\\|" ); - String[] expected = - new String[] { "", "type", "extension", "packaging", "classifier", "language", "added to classpath", - "includesDependencies", "" }; - - int i = 0; - for ( String col : cols ) - { - assertEquals( "Wrong column header", expected[i++], col.trim() ); - } - } - else if ( line.startsWith( "|" ) ) - { - String[] cols = line.split( "\\|" ); - - String type = trimApt( cols[1] ); - String extension = trimApt( cols[2], type ); - String packaging = trimApt( cols[3], type ); - String classifier = trimApt( cols[4] ); - String language = trimApt( cols[5] ); - String addedToClasspath = trimApt( cols[6] ); - String includesDependencies = trimApt( cols[7] ); - - ArtifactHandler handler = lookup( ArtifactHandler.class, type ); - assertEquals( type + " extension", handler.getExtension(), extension ); - assertEquals( type + " packaging", handler.getPackaging(), packaging ); - assertEquals( type + " classifier", handler.getClassifier(), classifier ); - assertEquals( type + " language", handler.getLanguage(), language ); - assertEquals( type + " addedToClasspath", handler.isAddedToClasspath() ? "true" : null, addedToClasspath ); - assertEquals( type + " includesDependencies", handler.isIncludesDependencies() ? "true" : null, includesDependencies ); - } - } - } - - private String trimApt( String content, String type ) - { - String value = trimApt( content ); - return "= type".equals( value ) ? type : value; - } - - private String trimApt( String content ) - { - content = content.replace( '<', ' ' ).replace( '>', ' ' ).trim(); - - return ( content.length() == 0 ) ? null : content; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/configuration/DefaultBeanConfiguratorTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/configuration/DefaultBeanConfiguratorTest.java deleted file mode 100644 index 33673e3b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/configuration/DefaultBeanConfiguratorTest.java +++ /dev/null @@ -1,148 +0,0 @@ -package org.apache.maven.configuration; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.IOException; -import java.io.StringReader; - -import org.codehaus.plexus.PlexusTestCase; -import org.codehaus.plexus.util.xml.Xpp3Dom; -import org.codehaus.plexus.util.xml.Xpp3DomBuilder; -import org.codehaus.plexus.util.xml.pull.XmlPullParserException; - -/** - * @author Benjamin Bentmann - */ -public class DefaultBeanConfiguratorTest - extends PlexusTestCase -{ - - private BeanConfigurator configurator; - - @Override - protected void setUp() - throws Exception - { - super.setUp(); - - configurator = lookup( BeanConfigurator.class ); - } - - @Override - protected void tearDown() - throws Exception - { - configurator = null; - - super.tearDown(); - } - - private Xpp3Dom toConfig( String xml ) - { - try - { - return Xpp3DomBuilder.build( new StringReader( "" + xml + "" ) ); - } - catch ( XmlPullParserException e ) - { - throw new IllegalArgumentException( e ); - } - catch ( IOException e ) - { - throw new IllegalArgumentException( e ); - } - } - - public void testMinimal() - throws BeanConfigurationException - { - SomeBean bean = new SomeBean(); - - Xpp3Dom config = toConfig( "test" ); - - DefaultBeanConfigurationRequest request = new DefaultBeanConfigurationRequest(); - request.setBean( bean ).setConfiguration( config ); - - configurator.configureBean( request ); - - assertEquals( new File( "test" ), bean.file ); - } - - public void testPreAndPostProcessing() - throws BeanConfigurationException - { - SomeBean bean = new SomeBean(); - - Xpp3Dom config = toConfig( "${test}" ); - - BeanConfigurationValuePreprocessor preprocessor = new BeanConfigurationValuePreprocessor() - { - public Object preprocessValue( String value, Class type ) - throws BeanConfigurationException - { - if ( value != null && value.startsWith( "${" ) && value.endsWith( "}" ) ) - { - return value.substring( 2, value.length() - 1 ); - } - return value; - } - }; - - BeanConfigurationPathTranslator translator = new BeanConfigurationPathTranslator() - { - public File translatePath( File path ) - { - return new File( "base", path.getPath() ).getAbsoluteFile(); - } - }; - - DefaultBeanConfigurationRequest request = new DefaultBeanConfigurationRequest(); - request.setBean( bean ).setConfiguration( config ); - request.setValuePreprocessor( preprocessor ).setPathTranslator( translator ); - - configurator.configureBean( request ); - - assertEquals( new File( "base/test" ).getAbsoluteFile(), bean.file ); - } - - public void testChildConfigurationElement() - throws BeanConfigurationException - { - SomeBean bean = new SomeBean(); - - Xpp3Dom config = toConfig( "test" ); - - DefaultBeanConfigurationRequest request = new DefaultBeanConfigurationRequest(); - request.setBean( bean ).setConfiguration( config, "wrapper" ); - - configurator.configureBean( request ); - - assertEquals( new File( "test" ), bean.file ); - } - - static class SomeBean - { - - File file; - - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/exception/DefaultExceptionHandlerTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/exception/DefaultExceptionHandlerTest.java deleted file mode 100644 index 9727bdf8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/exception/DefaultExceptionHandlerTest.java +++ /dev/null @@ -1,60 +0,0 @@ -package org.apache.maven.exception; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.IOException; -import java.net.ConnectException; - -import org.apache.maven.plugin.MojoExecutionException; - -import junit.framework.TestCase; - -/** - * @author Barrie Treloar - */ -public class DefaultExceptionHandlerTest - extends TestCase -{ - /** - * Running Maven under JDK7 may cause connection issues because IPv6 is used by default. - *

    - * e.g running mvn site:run will cause Jetty to fail. - *

    - *

    - * The resolution is to add -Djava.net.preferIPv4Stack=true to the command line as documented in - * http://cwiki.apache.org/confluence/display/MAVEN/ConnectException - *

    - */ - public void testJdk7ipv6() - { - ConnectException connEx = new ConnectException( "Connection refused: connect" ); - IOException ioEx = new IOException( "Unable to establish loopback connection" ); - ioEx.initCause( connEx ); - MojoExecutionException mojoEx = - new MojoExecutionException( "Error executing Jetty: Unable to establish loopback connection", ioEx ); - - ExceptionHandler exceptionHandler = new DefaultExceptionHandler(); - ExceptionSummary exceptionSummary = exceptionHandler.handleException( mojoEx ); - - String expectedReference = "http://cwiki.apache.org/confluence/display/MAVEN/ConnectException"; - assertEquals( expectedReference, exceptionSummary.getReference() ); - - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulatorTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulatorTest.java deleted file mode 100644 index 15a7a7b3..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulatorTest.java +++ /dev/null @@ -1,62 +0,0 @@ -package org.apache.maven.execution; - -import java.util.List; - -import javax.inject.Inject; - -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.settings.Profile; -import org.apache.maven.settings.Repository; -import org.apache.maven.settings.Settings; -import org.eclipse.sisu.launch.InjectedTestCase; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -public class DefaultMavenExecutionRequestPopulatorTest - extends InjectedTestCase -{ - @Inject - MavenExecutionRequestPopulator testee; - - public void testPluginRepositoryInjection() - throws Exception - { - MavenExecutionRequest request = new DefaultMavenExecutionRequest(); - - Repository r = new Repository(); - r.setId( "test" ); - r.setUrl( "file:///test" ); - - Profile p = new Profile(); - p.setId( "test" ); - p.addPluginRepository( r ); - - Settings settings = new Settings(); - settings.addProfile( p ); - settings.addActiveProfile( p.getId() ); - - testee.populateFromSettings( request, settings ); - - List repositories = request.getPluginArtifactRepositories(); - assertEquals( 1, repositories.size() ); - assertEquals( r.getId(), repositories.get( 0 ).getId() ); - assertEquals( r.getUrl(), repositories.get( 0 ).getUrl() ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenExecutionTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenExecutionTest.java deleted file mode 100644 index fbb8b900..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/execution/DefaultMavenExecutionTest.java +++ /dev/null @@ -1,52 +0,0 @@ -package org.apache.maven.execution; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.project.MavenProject; - -import java.util.List; - -import junit.framework.TestCase; - -/** - * @author Benjamin Bentmann - */ -public class DefaultMavenExecutionTest - extends TestCase -{ - - public void testCopyDefault() - { - MavenExecutionRequest original = new DefaultMavenExecutionRequest(); - MavenExecutionRequest copy = DefaultMavenExecutionRequest.copy( original ); - assertNotNull( copy ); - assertNotSame( copy, original ); - } - - public void testResultWithNullTopologicallySortedProjectsIsEmptyList() - { - MavenExecutionResult result = new DefaultMavenExecutionResult(); - result.setTopologicallySortedProjects( null ); - List projects = result.getTopologicallySortedProjects(); - assertNotNull( projects ); - assertTrue( projects.isEmpty() ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeTest.java deleted file mode 100644 index a4eb354c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeTest.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ -package org.apache.maven.execution.scope.internal; - -import java.util.concurrent.atomic.AtomicInteger; - -import org.apache.maven.execution.MojoExecutionEvent; -import org.apache.maven.execution.scope.WeakMojoExecutionListener; -import org.apache.maven.plugin.MojoExecutionException; - -import junit.framework.TestCase; - -import com.google.inject.Key; -import com.google.inject.Provider; - -public class MojoExecutionScopeTest - extends TestCase -{ - public void testNestedEnter() - throws Exception - { - MojoExecutionScope scope = new MojoExecutionScope(); - - scope.enter(); - - Object o1 = new Object(); - scope.seed( Object.class, o1 ); - assertSame( o1, scope.scope( Key.get( Object.class ), null ).get() ); - - scope.enter(); - Object o2 = new Object(); - scope.seed( Object.class, o2 ); - assertSame( o2, scope.scope( Key.get( Object.class ), null ).get() ); - - scope.exit(); - assertSame( o1, scope.scope( Key.get( Object.class ), null ).get() ); - - scope.exit(); - - try - { - scope.exit(); - fail(); - } - catch ( IllegalStateException expected ) - { - } - } - - public void testMultiKeyInstance() - throws Exception - { - MojoExecutionScope scope = new MojoExecutionScope(); - scope.enter(); - - final AtomicInteger beforeExecution = new AtomicInteger(); - final AtomicInteger afterExecutionSuccess = new AtomicInteger(); - final AtomicInteger afterExecutionFailure = new AtomicInteger(); - final WeakMojoExecutionListener instance = new WeakMojoExecutionListener() - { - @Override - public void beforeMojoExecution( MojoExecutionEvent event ) - throws MojoExecutionException - { - beforeExecution.incrementAndGet(); - } - - @Override - public void afterMojoExecutionSuccess( MojoExecutionEvent event ) - throws MojoExecutionException - { - afterExecutionSuccess.incrementAndGet(); - } - - @Override - public void afterExecutionFailure( MojoExecutionEvent event ) - { - afterExecutionFailure.incrementAndGet(); - } - }; - assertSame( instance, scope.scope( Key.get( Object.class ), new Provider() - { - @Override - public Object get() - { - return instance; - } - } ).get() ); - assertSame( instance, - scope.scope( Key.get( WeakMojoExecutionListener.class ), new Provider() - { - @Override - public WeakMojoExecutionListener get() - { - return instance; - } - } ).get() ); - - final MojoExecutionEvent event = new MojoExecutionEvent( null, null, null, null ); - scope.beforeMojoExecution( event ); - scope.afterMojoExecutionSuccess( event ); - scope.afterExecutionFailure( event ); - - assertEquals( 1, beforeExecution.get() ); - assertEquals( 1, afterExecutionSuccess.get() ); - assertEquals( 1, afterExecutionFailure.get() ); - - scope.exit(); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/graph/DefaultProjectDependencyGraphTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/graph/DefaultProjectDependencyGraphTest.java deleted file mode 100644 index e2caaeb1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/graph/DefaultProjectDependencyGraphTest.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ -package org.apache.maven.graph; - -import junit.framework.TestCase; -import org.apache.maven.execution.ProjectDependencyGraph; -import org.apache.maven.model.Dependency; -import org.apache.maven.project.DuplicateProjectException; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.util.dag.CycleDetectedException; - -import java.util.Arrays; -import java.util.List; - -/** - * @author Kristian Rosenvold - */ -public class DefaultProjectDependencyGraphTest - extends TestCase -{ - - private final MavenProject aProject = createA(); - - private final MavenProject depender1 = createProject( Arrays.asList( toDependency( aProject ) ), "depender1" ); - - private final MavenProject depender2 = createProject( Arrays.asList( toDependency( aProject ) ), "depender2" ); - - private final MavenProject depender3 = createProject( Arrays.asList( toDependency( aProject ) ), "depender3" ); - - private final MavenProject depender4 = - createProject( Arrays.asList( toDependency( aProject ), toDependency( depender3 ) ), "depender4" ); - - private final MavenProject transitiveOnly = - createProject( Arrays.asList( toDependency( depender3 ) ), "depender5" ); - - public void testGetSortedProjects() - throws DuplicateProjectException, CycleDetectedException - { - ProjectDependencyGraph graph = new DefaultProjectDependencyGraph( Arrays.asList( depender1, aProject ) ); - final List sortedProjects = graph.getSortedProjects(); - assertEquals( aProject, sortedProjects.get( 0 ) ); - assertEquals( depender1, sortedProjects.get( 1 ) ); - } - - public void testVerifyExpectedParentStructure() - throws CycleDetectedException, DuplicateProjectException - { - // This test verifies the baseline structure used in susequent tests. If this fails, the rest will fail. - ProjectDependencyGraph graph = threeProjectsDependingOnASingle(); - final List sortedProjects = graph.getSortedProjects(); - assertEquals( aProject, sortedProjects.get( 0 ) ); - assertEquals( depender1, sortedProjects.get( 1 ) ); - assertEquals( depender2, sortedProjects.get( 2 ) ); - assertEquals( depender3, sortedProjects.get( 3 ) ); - } - - public void testVerifyThatDownsteamProjectsComeInSortedOrder() - throws CycleDetectedException, DuplicateProjectException - { - final List downstreamProjects = - threeProjectsDependingOnASingle().getDownstreamProjects( aProject, true ); - assertEquals( depender1, downstreamProjects.get( 0 ) ); - assertEquals( depender2, downstreamProjects.get( 1 ) ); - assertEquals( depender3, downstreamProjects.get( 2 ) ); - } - - public void testTransitivesInOrder() - throws CycleDetectedException, DuplicateProjectException - { - final ProjectDependencyGraph graph = - new DefaultProjectDependencyGraph( Arrays.asList( depender1, depender4, depender2, depender3, aProject ) ); - - final List downstreamProjects = graph.getDownstreamProjects( aProject, true ); - assertEquals( depender1, downstreamProjects.get( 0 ) ); - assertEquals( depender3, downstreamProjects.get( 1 ) ); - assertEquals( depender4, downstreamProjects.get( 2 ) ); - assertEquals( depender2, downstreamProjects.get( 3 ) ); - } - - public void testNonTransitivesInOrder() - throws CycleDetectedException, DuplicateProjectException - { - final ProjectDependencyGraph graph = - new DefaultProjectDependencyGraph( Arrays.asList( depender1, depender4, depender2, depender3, aProject ) ); - - final List downstreamProjects = graph.getDownstreamProjects( aProject, false ); - assertEquals( depender1, downstreamProjects.get( 0 ) ); - assertEquals( depender3, downstreamProjects.get( 1 ) ); - assertEquals( depender4, downstreamProjects.get( 2 ) ); - assertEquals( depender2, downstreamProjects.get( 3 ) ); - } - - public void testWithTranistiveOnly() - throws CycleDetectedException, DuplicateProjectException - { - final ProjectDependencyGraph graph = new DefaultProjectDependencyGraph( - Arrays.asList( depender1, transitiveOnly, depender2, depender3, aProject ) ); - - final List downstreamProjects = graph.getDownstreamProjects( aProject, true ); - assertEquals( depender1, downstreamProjects.get( 0 ) ); - assertEquals( depender3, downstreamProjects.get( 1 ) ); - assertEquals( transitiveOnly, downstreamProjects.get( 2 ) ); - assertEquals( depender2, downstreamProjects.get( 3 ) ); - } - - public void testWithMissingTranistiveOnly() - throws CycleDetectedException, DuplicateProjectException - { - final ProjectDependencyGraph graph = new DefaultProjectDependencyGraph( - Arrays.asList( depender1, transitiveOnly, depender2, depender3, aProject ) ); - - final List downstreamProjects = graph.getDownstreamProjects( aProject, false ); - assertEquals( depender1, downstreamProjects.get( 0 ) ); - assertEquals( depender3, downstreamProjects.get( 1 ) ); - assertEquals( depender2, downstreamProjects.get( 2 ) ); - } - - public void testGetUpstreamProjects() - throws CycleDetectedException, DuplicateProjectException - { - ProjectDependencyGraph graph = threeProjectsDependingOnASingle(); - final List downstreamProjects = graph.getUpstreamProjects( depender1, true ); - assertEquals( aProject, downstreamProjects.get( 0 ) ); - } - - private ProjectDependencyGraph threeProjectsDependingOnASingle() - throws CycleDetectedException, DuplicateProjectException - { - return new DefaultProjectDependencyGraph( Arrays.asList( depender1, depender2, depender3, aProject ) ); - } - - private static MavenProject createA() - { - MavenProject result = new MavenProject(); - result.setGroupId( "org.apache" ); - result.setArtifactId( "A" ); - result.setVersion( "1.2" ); - return result; - } - - static Dependency toDependency( MavenProject mavenProject ) - { - final Dependency dependency = new Dependency(); - dependency.setArtifactId( mavenProject.getArtifactId() ); - dependency.setGroupId( mavenProject.getGroupId() ); - dependency.setVersion( mavenProject.getVersion() ); - return dependency; - } - - private static MavenProject createProject( List dependencies, String artifactId ) - { - MavenProject result = new MavenProject(); - result.setGroupId( "org.apache" ); - result.setArtifactId( artifactId ); - result.setVersion( "1.2" ); - result.setDependencies( dependencies ); - return result; - } - -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java deleted file mode 100644 index 690532c7..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ -package org.apache.maven.lifecycle; - -import org.codehaus.plexus.PlexusTestCase; -import org.codehaus.plexus.component.annotations.Requirement; - -import java.util.List; - -/** - * @author Kristian Rosenvold - */ - -public class DefaultLifecyclesTest - extends PlexusTestCase -{ - @Requirement - private DefaultLifecycles defaultLifeCycles; - - - protected void setUp() - throws Exception - { - super.setUp(); - defaultLifeCycles = lookup( DefaultLifecycles.class ); - } - - @Override - protected void tearDown() - throws Exception - { - defaultLifeCycles = null; - super.tearDown(); - } - - public void testLifecycle() - throws Exception - { - final List cycles = defaultLifeCycles.getLifeCycles(); - assertNotNull( cycles ); - final Lifecycle lifecycle = cycles.get( 0 ); - assertEquals( "default", lifecycle.getId() ); - assertEquals( 23, lifecycle.getPhases().size() ); - - } - -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/DelegatingMojoExecutionListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/DelegatingMojoExecutionListener.java deleted file mode 100644 index 873cc7da..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/DelegatingMojoExecutionListener.java +++ /dev/null @@ -1,75 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; -import java.util.concurrent.CopyOnWriteArrayList; - -import javax.inject.Named; -import javax.inject.Singleton; - -import org.apache.maven.execution.MojoExecutionEvent; -import org.apache.maven.execution.MojoExecutionListener; -import org.apache.maven.plugin.MojoExecutionException; - -@Named -@Singleton -public class DelegatingMojoExecutionListener - implements MojoExecutionListener -{ - private final List listeners = new CopyOnWriteArrayList(); - - public void beforeMojoExecution( MojoExecutionEvent event ) - throws MojoExecutionException - { - for ( MojoExecutionListener listener : listeners ) - { - listener.beforeMojoExecution( event ); - } - } - - public void afterMojoExecutionSuccess( MojoExecutionEvent event ) - throws MojoExecutionException - { - for ( MojoExecutionListener listener : listeners ) - { - listener.afterMojoExecutionSuccess( event ); - } - } - - public void afterExecutionFailure( MojoExecutionEvent event ) - { - for ( MojoExecutionListener listener : listeners ) - { - listener.afterExecutionFailure( event ); - } - } - - public void addMojoExecutionListener( MojoExecutionListener listener ) - { - this.listeners.add( listener ); - } - - public void removeMojoExecutionListener( MojoExecutionListener listener ) - { - this.listeners.remove( listener ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/DelegatingProjectExecutionListener.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/DelegatingProjectExecutionListener.java deleted file mode 100644 index 233ae256..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/DelegatingProjectExecutionListener.java +++ /dev/null @@ -1,82 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; -import java.util.concurrent.CopyOnWriteArrayList; - -import javax.inject.Named; -import javax.inject.Singleton; - -import org.apache.maven.execution.ProjectExecutionEvent; -import org.apache.maven.execution.ProjectExecutionListener; - -@Named -@Singleton -public class DelegatingProjectExecutionListener - implements ProjectExecutionListener -{ - private final List listeners = new CopyOnWriteArrayList(); - - public void beforeProjectExecution( ProjectExecutionEvent event ) - throws LifecycleExecutionException - { - for ( ProjectExecutionListener listener : listeners ) - { - listener.beforeProjectExecution( event ); - } - } - - public void beforeProjectLifecycleExecution( ProjectExecutionEvent event ) - throws LifecycleExecutionException - { - for ( ProjectExecutionListener listener : listeners ) - { - listener.beforeProjectLifecycleExecution( event ); - } - } - - public void afterProjectExecutionSuccess( ProjectExecutionEvent event ) - throws LifecycleExecutionException - { - for ( ProjectExecutionListener listener : listeners ) - { - listener.afterProjectExecutionSuccess( event ); - } - } - - public void afterProjectExecutionFailure( ProjectExecutionEvent event ) - { - for ( ProjectExecutionListener listener : listeners ) - { - listener.afterProjectExecutionFailure( event ); - } - } - - public void addProjectExecutionListener( ProjectExecutionListener listener ) - { - this.listeners.add( listener ); - } - - public void removeProjectExecutionListener( ProjectExecutionListener listener ) - { - this.listeners.remove( listener ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/EmptyLifecyclePluginAnalyzer.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/EmptyLifecyclePluginAnalyzer.java deleted file mode 100644 index f9bbb2ba..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/EmptyLifecyclePluginAnalyzer.java +++ /dev/null @@ -1,77 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collections; -import java.util.LinkedHashSet; -import java.util.Set; - -import org.apache.maven.model.Plugin; -import org.apache.maven.model.PluginExecution; - -/** - * @author Benjamin Bentmann - */ -public class EmptyLifecyclePluginAnalyzer - implements LifeCyclePluginAnalyzer -{ - public Set getPluginsBoundByDefaultToAllLifecycles( String packaging ) - { - Set plugins; - - // NOTE: The upper-case packaging name is intentional, that's a special hinting mode used for certain tests - if ( "JAR".equals( packaging ) ) - { - plugins = new LinkedHashSet(); - - plugins.add( newPlugin( "maven-compiler-plugin", "compile", "testCompile" ) ); - plugins.add( newPlugin( "maven-resources-plugin", "resources", "testResources" ) ); - plugins.add( newPlugin( "maven-surefire-plugin", "test" ) ); - plugins.add( newPlugin( "maven-jar-plugin", "jar" ) ); - plugins.add( newPlugin( "maven-install-plugin", "install" ) ); - plugins.add( newPlugin( "maven-deploy-plugin", "deploy" ) ); - } - else - { - plugins = Collections.emptySet(); - } - - return plugins; - } - - private Plugin newPlugin( String artifactId, String... goals ) - { - Plugin plugin = new Plugin(); - - plugin.setGroupId( "org.apache.maven.plugins" ); - plugin.setArtifactId( artifactId ); - - for ( String goal : goals ) - { - PluginExecution pluginExecution = new PluginExecution(); - pluginExecution.setId( "default-" + goal ); - pluginExecution.addGoal( goal ); - plugin.addExecution( pluginExecution ); - } - - return plugin; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/LifecycleExecutorSubModulesTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/LifecycleExecutorSubModulesTest.java deleted file mode 100644 index 01ebeac0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/LifecycleExecutorSubModulesTest.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - - -package org.apache.maven.lifecycle; - -import org.apache.maven.AbstractCoreMavenComponentTestCase; -import org.apache.maven.exception.ExceptionHandler; -import org.apache.maven.lifecycle.internal.LifecycleDependencyResolver; -import org.apache.maven.lifecycle.internal.LifecycleExecutionPlanCalculator; -import org.apache.maven.lifecycle.internal.LifecycleModuleBuilder; -import org.apache.maven.lifecycle.internal.LifecycleTaskSegmentCalculator; -import org.apache.maven.lifecycle.internal.MojoExecutor; -import org.codehaus.plexus.component.annotations.Requirement; - -/** - * Just asserts that it's able to create those components. Handy when plexus gets a nervous breakdown. - * - * @author Kristian Rosenvold - */ - -public class LifecycleExecutorSubModulesTest - extends AbstractCoreMavenComponentTestCase -{ - @Requirement - private DefaultLifecycles defaultLifeCycles; - - @Requirement - private MojoExecutor mojoExecutor; - - @Requirement - private LifecycleModuleBuilder lifeCycleBuilder; - - @Requirement - private LifecycleDependencyResolver lifeCycleDependencyResolver; - - @Requirement - private LifecycleExecutionPlanCalculator lifeCycleExecutionPlanCalculator; - - @Requirement - private LifeCyclePluginAnalyzer lifeCyclePluginAnalyzer; - - @Requirement - private LifecycleTaskSegmentCalculator lifeCycleTaskSegmentCalculator; - - - protected void setUp() - throws Exception - { - super.setUp(); - defaultLifeCycles = lookup( DefaultLifecycles.class ); - mojoExecutor = lookup( MojoExecutor.class ); - lifeCycleBuilder = lookup( LifecycleModuleBuilder.class ); - lifeCycleDependencyResolver = lookup( LifecycleDependencyResolver.class ); - lifeCycleExecutionPlanCalculator = lookup( LifecycleExecutionPlanCalculator.class ); - lifeCyclePluginAnalyzer = lookup( LifeCyclePluginAnalyzer.class ); - lifeCycleTaskSegmentCalculator = lookup( LifecycleTaskSegmentCalculator.class ); - lookup( ExceptionHandler.class ); - } - - @Override - protected void tearDown() - throws Exception - { - defaultLifeCycles = null; - super.tearDown(); - } - - protected String getProjectsDirectory() - { - return "src/test/projects/lifecycle-executor"; - } - - public void testCrweation() - throws Exception - { - assertNotNull( defaultLifeCycles ); - assertNotNull( mojoExecutor ); - assertNotNull( lifeCycleBuilder ); - assertNotNull( lifeCycleDependencyResolver ); - assertNotNull( lifeCycleExecutionPlanCalculator ); - assertNotNull( lifeCyclePluginAnalyzer ); - assertNotNull( lifeCycleTaskSegmentCalculator ); - } - -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/LifecycleExecutorTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/LifecycleExecutorTest.java deleted file mode 100644 index 99b07e34..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/LifecycleExecutorTest.java +++ /dev/null @@ -1,553 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -import java.io.File; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.apache.maven.AbstractCoreMavenComponentTestCase; -import org.apache.maven.exception.ExceptionHandler; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.execution.MojoExecutionEvent; -import org.apache.maven.execution.MojoExecutionListener; -import org.apache.maven.execution.ProjectDependencyGraph; -import org.apache.maven.execution.ProjectExecutionEvent; -import org.apache.maven.execution.ProjectExecutionListener; -import org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator; -import org.apache.maven.lifecycle.internal.ExecutionPlanItem; -import org.apache.maven.lifecycle.internal.LifecycleExecutionPlanCalculator; -import org.apache.maven.lifecycle.internal.LifecycleTask; -import org.apache.maven.lifecycle.internal.LifecycleTaskSegmentCalculator; -import org.apache.maven.lifecycle.internal.MojoDescriptorCreator; -import org.apache.maven.lifecycle.internal.TaskSegment; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.plugin.MojoExecutionException; -import org.apache.maven.plugin.MojoNotFoundException; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.util.xml.Xpp3Dom; - -public class LifecycleExecutorTest - extends AbstractCoreMavenComponentTestCase -{ - @Requirement - private DefaultLifecycleExecutor lifecycleExecutor; - - @Requirement - private DefaultLifecycleTaskSegmentCalculator lifeCycleTaskSegmentCalculator; - - @Requirement - private LifecycleExecutionPlanCalculator lifeCycleExecutionPlanCalculator; - - @Requirement - private MojoDescriptorCreator mojoDescriptorCreator; - - - protected void setUp() - throws Exception - { - super.setUp(); - lifecycleExecutor = (DefaultLifecycleExecutor) lookup( LifecycleExecutor.class ); - lifeCycleTaskSegmentCalculator = - (DefaultLifecycleTaskSegmentCalculator) lookup( LifecycleTaskSegmentCalculator.class ); - lifeCycleExecutionPlanCalculator = lookup( LifecycleExecutionPlanCalculator.class ); - mojoDescriptorCreator = lookup( MojoDescriptorCreator.class ); - lookup( ExceptionHandler.class ); - } - - @Override - protected void tearDown() - throws Exception - { - lifecycleExecutor = null; - super.tearDown(); - } - - protected String getProjectsDirectory() - { - return "src/test/projects/lifecycle-executor"; - } - - // ----------------------------------------------------------------------------------------------- - // Tests which exercise the lifecycle executor when it is dealing with default lifecycle phases. - // ----------------------------------------------------------------------------------------------- - - public void testCalculationOfBuildPlanWithIndividualTaskWherePluginIsSpecifiedInThePom() - throws Exception - { - // We are doing something like "mvn resources:resources" where no version is specified but this - // project we are working on has the version specified in the POM so the version should come from there. - File pom = getProject( "project-basic" ); - MavenSession session = createMavenSession( pom ); - assertEquals( "project-basic", session.getCurrentProject().getArtifactId() ); - assertEquals( "1.0", session.getCurrentProject().getVersion() ); - List executionPlan = getExecutions( calculateExecutionPlan( session, "resources:resources" ) ); - assertEquals( 1, executionPlan.size() ); - MojoExecution mojoExecution = executionPlan.get( 0 ); - assertNotNull( mojoExecution ); - assertEquals( "org.apache.maven.plugins", - mojoExecution.getMojoDescriptor().getPluginDescriptor().getGroupId() ); - assertEquals( "maven-resources-plugin", - mojoExecution.getMojoDescriptor().getPluginDescriptor().getArtifactId() ); - assertEquals( "0.1", mojoExecution.getMojoDescriptor().getPluginDescriptor().getVersion() ); - } - - public void testCalculationOfBuildPlanWithIndividualTaskOfTheCleanLifecycle() - throws Exception - { - // We are doing something like "mvn clean:clean" where no version is specified but this - // project we are working on has the version specified in the POM so the version should come from there. - File pom = getProject( "project-basic" ); - MavenSession session = createMavenSession( pom ); - assertEquals( "project-basic", session.getCurrentProject().getArtifactId() ); - assertEquals( "1.0", session.getCurrentProject().getVersion() ); - List executionPlan = getExecutions( calculateExecutionPlan( session, "clean" ) ); - assertEquals( 1, executionPlan.size() ); - MojoExecution mojoExecution = executionPlan.get( 0 ); - assertNotNull( mojoExecution ); - assertEquals( "org.apache.maven.plugins", - mojoExecution.getMojoDescriptor().getPluginDescriptor().getGroupId() ); - assertEquals( "maven-clean-plugin", mojoExecution.getMojoDescriptor().getPluginDescriptor().getArtifactId() ); - assertEquals( "0.1", mojoExecution.getMojoDescriptor().getPluginDescriptor().getVersion() ); - } - - public void testCalculationOfBuildPlanWithIndividualTaskOfTheCleanCleanGoal() - throws Exception - { - // We are doing something like "mvn clean:clean" where no version is specified but this - // project we are working on has the version specified in the POM so the version should come from there. - File pom = getProject( "project-basic" ); - MavenSession session = createMavenSession( pom ); - assertEquals( "project-basic", session.getCurrentProject().getArtifactId() ); - assertEquals( "1.0", session.getCurrentProject().getVersion() ); - List executionPlan = getExecutions( calculateExecutionPlan( session, "clean:clean" ) ); - assertEquals( 1, executionPlan.size() ); - MojoExecution mojoExecution = executionPlan.get( 0 ); - assertNotNull( mojoExecution ); - assertEquals( "org.apache.maven.plugins", - mojoExecution.getMojoDescriptor().getPluginDescriptor().getGroupId() ); - assertEquals( "maven-clean-plugin", mojoExecution.getMojoDescriptor().getPluginDescriptor().getArtifactId() ); - assertEquals( "0.1", mojoExecution.getMojoDescriptor().getPluginDescriptor().getVersion() ); - } - - List getExecutions( MavenExecutionPlan mavenExecutionPlan ) - { - List result = new ArrayList(); - for ( ExecutionPlanItem executionPlanItem : mavenExecutionPlan ) - { - result.add( executionPlanItem.getMojoExecution() ); - } - return result; - } - - // We need to take in multiple lifecycles - public void testCalculationOfBuildPlanTasksOfTheCleanLifecycleAndTheInstallLifecycle() - throws Exception - { - File pom = getProject( "project-with-additional-lifecycle-elements" ); - MavenSession session = createMavenSession( pom ); - assertEquals( "project-with-additional-lifecycle-elements", session.getCurrentProject().getArtifactId() ); - assertEquals( "1.0", session.getCurrentProject().getVersion() ); - List executionPlan = getExecutions( calculateExecutionPlan( session, "clean", "install" ) ); - - //[01] clean:clean - //[02] resources:resources - //[03] compiler:compile - //[04] it:generate-metadata - //[05] resources:testResources - //[06] compiler:testCompile - //[07] it:generate-test-metadata - //[08] surefire:test - //[09] jar:jar - //[10] install:install - // - assertEquals( 10, executionPlan.size() ); - - assertEquals( "clean:clean", executionPlan.get( 0 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "resources:resources", executionPlan.get( 1 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "compiler:compile", executionPlan.get( 2 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "it:generate-metadata", executionPlan.get( 3 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "resources:testResources", executionPlan.get( 4 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "compiler:testCompile", executionPlan.get( 5 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "it:generate-test-metadata", executionPlan.get( 6 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "surefire:test", executionPlan.get( 7 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "jar:jar", executionPlan.get( 8 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "install:install", executionPlan.get( 9 ).getMojoDescriptor().getFullGoalName() ); - } - - // We need to take in multiple lifecycles - public void testCalculationOfBuildPlanWithMultipleExecutionsOfModello() - throws Exception - { - File pom = getProject( "project-with-multiple-executions" ); - MavenSession session = createMavenSession( pom ); - assertEquals( "project-with-multiple-executions", session.getCurrentProject().getArtifactId() ); - assertEquals( "1.0.1", session.getCurrentProject().getVersion() ); - - MavenExecutionPlan plan = calculateExecutionPlan( session, "clean", "install" ); - - List executions = getExecutions( plan ); - - //[01] clean:clean - //[02] modello:xpp3-writer - //[03] modello:java - //[04] modello:xpp3-reader - //[05] modello:xpp3-writer - //[06] modello:java - //[07] modello:xpp3-reader - //[08] plugin:descriptor - //[09] resources:resources - //[10] compiler:compile - //[11] resources:testResources - //[12] compiler:testCompile - //[13] surefire:test - //[14] jar:jar - //[15] plugin:addPluginArtifactMetadata - //[16] install:install - // - - assertEquals( 16, executions.size() ); - - assertEquals( "clean:clean", executions.get( 0 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "it:xpp3-writer", executions.get( 1 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "it:java", executions.get( 2 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "it:xpp3-reader", executions.get( 3 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "it:xpp3-writer", executions.get( 4 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "it:java", executions.get( 5 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "it:xpp3-reader", executions.get( 6 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "resources:resources", executions.get( 7 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "compiler:compile", executions.get( 8 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "plugin:descriptor", executions.get( 9 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "resources:testResources", executions.get( 10 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "compiler:testCompile", executions.get( 11 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "surefire:test", executions.get( 12 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "jar:jar", executions.get( 13 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "plugin:addPluginArtifactMetadata", executions.get( 14 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "install:install", executions.get( 15 ).getMojoDescriptor().getFullGoalName() ); - - assertEquals( "src/main/mdo/remote-resources.mdo", - new MojoExecutionXPathContainer( executions.get( 1 ) ).getValue( - "configuration/models[1]/model" ) ); - assertEquals( "src/main/mdo/supplemental-model.mdo", - new MojoExecutionXPathContainer( executions.get( 4 ) ).getValue( - "configuration/models[1]/model" ) ); - } - - public void testLifecycleQueryingUsingADefaultLifecyclePhase() - throws Exception - { - File pom = getProject( "project-with-additional-lifecycle-elements" ); - MavenSession session = createMavenSession( pom ); - assertEquals( "project-with-additional-lifecycle-elements", session.getCurrentProject().getArtifactId() ); - assertEquals( "1.0", session.getCurrentProject().getVersion() ); - List executionPlan = getExecutions( calculateExecutionPlan( session, "package" ) ); - - //[01] resources:resources - //[02] compiler:compile - //[03] it:generate-metadata - //[04] resources:testResources - //[05] compiler:testCompile - //[06] plexus-component-metadata:generate-test-metadata - //[07] surefire:test - //[08] jar:jar - // - assertEquals( 8, executionPlan.size() ); - - assertEquals( "resources:resources", executionPlan.get( 0 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "compiler:compile", executionPlan.get( 1 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "it:generate-metadata", executionPlan.get( 2 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "resources:testResources", executionPlan.get( 3 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "compiler:testCompile", executionPlan.get( 4 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "it:generate-test-metadata", executionPlan.get( 5 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "surefire:test", executionPlan.get( 6 ).getMojoDescriptor().getFullGoalName() ); - assertEquals( "jar:jar", executionPlan.get( 7 ).getMojoDescriptor().getFullGoalName() ); - } - - public void testLifecyclePluginsRetrievalForDefaultLifecycle() - throws Exception - { - List plugins = - new ArrayList( lifecycleExecutor.getPluginsBoundByDefaultToAllLifecycles( "jar" ) ); - - assertEquals( 8, plugins.size() ); - } - - public void testPluginConfigurationCreation() - throws Exception - { - File pom = getProject( "project-with-additional-lifecycle-elements" ); - MavenSession session = createMavenSession( pom ); - MojoDescriptor mojoDescriptor = - mojoDescriptorCreator.getMojoDescriptor( "org.apache.maven.its.plugins:maven-it-plugin:0.1:java", session, - session.getCurrentProject() ); - Xpp3Dom dom = MojoDescriptorCreator.convert( mojoDescriptor ); - System.out.println( dom ); - } - - MavenExecutionPlan calculateExecutionPlan( MavenSession session, String... tasks ) - throws Exception - { - List taskSegments = - lifeCycleTaskSegmentCalculator.calculateTaskSegments( session, Arrays.asList( tasks ) ); - - TaskSegment mergedSegment = new TaskSegment( false ); - - for ( TaskSegment taskSegment : taskSegments ) - { - mergedSegment.getTasks().addAll( taskSegment.getTasks() ); - } - - return lifeCycleExecutionPlanCalculator.calculateExecutionPlan( session, session.getCurrentProject(), - mergedSegment.getTasks() ); - } - - public void testInvalidGoalName() - throws Exception - { - File pom = getProject( "project-basic" ); - MavenSession session = createMavenSession( pom ); - try - { - getExecutions( calculateExecutionPlan( session, "resources:" ) ); - fail( "expected a MojoNotFoundException" ); - } - catch ( MojoNotFoundException e ) - { - assertEquals( "", e.getGoal() ); - } - - try - { - getExecutions( calculateExecutionPlan( session, "org.apache.maven.plugins:maven-resources-plugin:0.1:resources:toomany" ) ); - fail( "expected a MojoNotFoundException" ); - } - catch ( MojoNotFoundException e ) - { - assertEquals( "resources:toomany", e.getGoal() ); - } - } - - - public void testPluginPrefixRetrieval() - throws Exception - { - File pom = getProject( "project-basic" ); - MavenSession session = createMavenSession( pom ); - Plugin plugin = mojoDescriptorCreator.findPluginForPrefix( "resources", session ); - assertEquals( "org.apache.maven.plugins", plugin.getGroupId() ); - assertEquals( "maven-resources-plugin", plugin.getArtifactId() ); - } - - // Prefixes - - public void testFindingPluginPrefixforCleanClean() - throws Exception - { - File pom = getProject( "project-basic" ); - MavenSession session = createMavenSession( pom ); - Plugin plugin = mojoDescriptorCreator.findPluginForPrefix( "clean", session ); - assertNotNull( plugin ); - } - - public void testSetupMojoExecution() - throws Exception - { - File pom = getProject( "mojo-configuration" ); - - MavenSession session = createMavenSession( pom ); - - LifecycleTask task = new LifecycleTask( "generate-sources" ); - MavenExecutionPlan executionPlan = - lifeCycleExecutionPlanCalculator.calculateExecutionPlan( session, session.getCurrentProject(), - Arrays.asList( (Object) task ), false ); - - MojoExecution execution = executionPlan.getMojoExecutions().get(0); - assertEquals(execution.toString(), "maven-it-plugin", execution.getArtifactId()); - assertNull(execution.getConfiguration()); - - lifeCycleExecutionPlanCalculator.setupMojoExecution( session, session.getCurrentProject(), execution ); - assertNotNull(execution.getConfiguration()); - assertEquals("1.0", execution.getConfiguration().getChild( "version" ).getAttribute( "default-value" )); - } - - public void testExecutionListeners() - throws Exception - { - final File pom = getProject( "project-basic" ); - final MavenSession session = createMavenSession( pom ); - session.setProjectDependencyGraph( new ProjectDependencyGraph() - { - public List getUpstreamProjects( MavenProject project, boolean transitive ) - { - return Collections.emptyList(); - } - - public List getSortedProjects() - { - return Collections.singletonList( session.getCurrentProject() ); - } - - public List getDownstreamProjects( MavenProject project, boolean transitive ) - { - return Collections.emptyList(); - } - - public java.util.List getAllSortedProjects() - { - return Collections.emptyList(); - } - } ); - - final List log = new ArrayList(); - - MojoExecutionListener mojoListener = new MojoExecutionListener() - { - public void beforeMojoExecution( MojoExecutionEvent event ) - throws MojoExecutionException - { - assertNotNull( event.getSession() ); - assertNotNull( event.getProject() ); - assertNotNull( event.getExecution() ); - assertNotNull( event.getMojo() ); - assertNull( event.getCause() ); - - log.add( "beforeMojoExecution " + event.getProject().getArtifactId() + ":" - + event.getExecution().getExecutionId() ); - } - - public void afterMojoExecutionSuccess( MojoExecutionEvent event ) - throws MojoExecutionException - { - assertNotNull( event.getSession() ); - assertNotNull( event.getProject() ); - assertNotNull( event.getExecution() ); - assertNotNull( event.getMojo() ); - assertNull( event.getCause() ); - - log.add( "afterMojoExecutionSuccess " + event.getProject().getArtifactId() + ":" - + event.getExecution().getExecutionId() ); - } - - public void afterExecutionFailure( MojoExecutionEvent event ) - { - assertNotNull( event.getSession() ); - assertNotNull( event.getProject() ); - assertNotNull( event.getExecution() ); - assertNotNull( event.getMojo() ); - assertNotNull( event.getCause() ); - - log.add( "afterExecutionFailure " + event.getProject().getArtifactId() + ":" - + event.getExecution().getExecutionId() ); - } - }; - ProjectExecutionListener projectListener = new ProjectExecutionListener() - { - public void beforeProjectExecution( ProjectExecutionEvent event ) - throws LifecycleExecutionException - { - assertNotNull( event.getSession() ); - assertNotNull( event.getProject() ); - assertNull( event.getExecutionPlan() ); - assertNull( event.getCause() ); - - log.add( "beforeProjectExecution " + event.getProject().getArtifactId() ); - } - - public void beforeProjectLifecycleExecution( ProjectExecutionEvent event ) - throws LifecycleExecutionException - { - assertNotNull( event.getSession() ); - assertNotNull( event.getProject() ); - assertNotNull( event.getExecutionPlan() ); - assertNull( event.getCause() ); - - log.add( "beforeProjectLifecycleExecution " + event.getProject().getArtifactId() ); - } - - public void afterProjectExecutionSuccess( ProjectExecutionEvent event ) - throws LifecycleExecutionException - { - assertNotNull( event.getSession() ); - assertNotNull( event.getProject() ); - assertNotNull( event.getExecutionPlan() ); - assertNull( event.getCause() ); - - log.add( "afterProjectExecutionSuccess " + event.getProject().getArtifactId() ); - } - - public void afterProjectExecutionFailure( ProjectExecutionEvent event ) - { - assertNotNull( event.getSession() ); - assertNotNull( event.getProject() ); - assertNull( event.getExecutionPlan() ); - assertNotNull( event.getCause() ); - - log.add( "afterProjectExecutionFailure " + event.getProject().getArtifactId() ); - } - }; - lookup( DelegatingProjectExecutionListener.class ).addProjectExecutionListener( projectListener ); - lookup( DelegatingMojoExecutionListener.class ).addMojoExecutionListener( mojoListener ); - - try - { - lifecycleExecutor.execute( session ); - } - finally - { - lookup( DelegatingProjectExecutionListener.class ).removeProjectExecutionListener( projectListener ); - lookup( DelegatingMojoExecutionListener.class ).removeMojoExecutionListener( mojoListener ); - } - - List expectedLog = Arrays.asList( "beforeProjectExecution project-basic", // - "beforeProjectLifecycleExecution project-basic", // - "beforeMojoExecution project-basic:default-resources", // - "afterMojoExecutionSuccess project-basic:default-resources", // - "beforeMojoExecution project-basic:default-compile", // - "afterMojoExecutionSuccess project-basic:default-compile", // - "beforeMojoExecution project-basic:default-testResources", // - "afterMojoExecutionSuccess project-basic:default-testResources", // - "beforeMojoExecution project-basic:default-testCompile", // - "afterMojoExecutionSuccess project-basic:default-testCompile", // - "beforeMojoExecution project-basic:default-test", // - "afterMojoExecutionSuccess project-basic:default-test", // - "beforeMojoExecution project-basic:default-jar", // - "afterMojoExecutionSuccess project-basic:default-jar", // - "afterProjectExecutionSuccess project-basic" // - ); - - assertEventLog( expectedLog, log ); - } - - private static void assertEventLog( List expectedList, List actualList ) - { - assertEquals( toString( expectedList ), toString( actualList ) ); - } - - private static String toString( List lines ) - { - StringBuilder sb = new StringBuilder(); - for ( String line : lines ) - { - sb.append( line ).append( '\n' ); - } - return sb.toString(); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/MavenExecutionPlanTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/MavenExecutionPlanTest.java deleted file mode 100644 index 4901a65d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/MavenExecutionPlanTest.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.apache.maven.lifecycle; - -import junit.framework.TestCase; - -import org.apache.maven.lifecycle.internal.ExecutionPlanItem; -import org.apache.maven.lifecycle.internal.stub.DefaultLifecyclesStub; -import org.apache.maven.lifecycle.internal.stub.LifecycleExecutionPlanCalculatorStub; -import org.apache.maven.model.Plugin; - -import java.util.Iterator; -import java.util.List; -import java.util.Set; - -/** - * @author Kristian Rosenvold - */ -public class MavenExecutionPlanTest - extends TestCase -{ - - public void testFindLastInPhase() - throws Exception - { - MavenExecutionPlan plan = LifecycleExecutionPlanCalculatorStub.getProjectAExceutionPlan(); - - ExecutionPlanItem expected = plan.findLastInPhase( "package" ); - ExecutionPlanItem beerPhase = plan.findLastInPhase( "BEER" ); // Beer comes straight after package in stub - assertEquals( expected, beerPhase ); - assertNotNull( expected ); - } - - public void testThreadSafeMojos() - throws Exception - { - MavenExecutionPlan plan = LifecycleExecutionPlanCalculatorStub.getProjectAExceutionPlan(); - final Set unSafePlugins = plan.getNonThreadSafePlugins(); - // There is only a single threadsafe plugin here... - assertEquals( plan.size() - 1, unSafePlugins.size() ); - - } - - - public void testFindLastWhenFirst() - throws Exception - { - MavenExecutionPlan plan = LifecycleExecutionPlanCalculatorStub.getProjectAExceutionPlan(); - - ExecutionPlanItem beerPhase = plan.findLastInPhase( - LifecycleExecutionPlanCalculatorStub.VALIDATE.getPhase() ); // Beer comes straight after package in stub - assertNull( beerPhase ); - } - - public void testFindLastInPhaseMisc() - throws Exception - { - MavenExecutionPlan plan = LifecycleExecutionPlanCalculatorStub.getProjectAExceutionPlan(); - - assertNull( plan.findLastInPhase( "pacXkage" ) ); - // Beer comes straight after package in stub, much like real life. - assertNotNull( plan.findLastInPhase( LifecycleExecutionPlanCalculatorStub.INITIALIZE.getPhase() ) ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/MojoExecutionXPathContainer.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/MojoExecutionXPathContainer.java deleted file mode 100644 index 6244cc91..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/MojoExecutionXPathContainer.java +++ /dev/null @@ -1,72 +0,0 @@ -package org.apache.maven.lifecycle; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.IOException; -import java.util.Iterator; - -import org.apache.commons.jxpath.JXPathContext; -import org.apache.commons.jxpath.JXPathNotFoundException; -import org.apache.commons.jxpath.ri.JXPathContextReferenceImpl; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.project.harness.Xpp3DomPointerFactory; - -public class MojoExecutionXPathContainer -{ - private JXPathContext context; - - static - { - JXPathContextReferenceImpl.addNodePointerFactory( new Xpp3DomPointerFactory() ); - } - - public MojoExecutionXPathContainer( MojoExecution mojoExecution ) - throws IOException - { - context = JXPathContext.newContext( mojoExecution ); - } - - public Iterator getIteratorForXPathExpression( String expression ) - { - return context.iterate( expression ); - } - - public boolean containsXPathExpression( String expression ) - { - return context.getValue( expression ) != null; - } - - public Object getValue( String expression ) - { - try - { - return context.getValue( expression ); - } - catch ( JXPathNotFoundException e ) - { - return null; - } - } - - public boolean xPathExpressionEqualsValue( String expression, String value ) - { - return context.getValue( expression ) != null && context.getValue( expression ).equals( value ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/BuildListCalculatorTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/BuildListCalculatorTest.java deleted file mode 100644 index a0039832..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/BuildListCalculatorTest.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -import junit.framework.TestCase; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.internal.stub.LifecycleTaskSegmentCalculatorStub; -import org.apache.maven.lifecycle.internal.stub.ProjectDependencyGraphStub; - -import java.util.List; - -public class BuildListCalculatorTest - extends TestCase -{ - - public void testCalculateProjectBuilds() - throws Exception - { - LifecycleTaskSegmentCalculator lifecycleTaskSegmentCalculator = getTaskSegmentCalculator(); - BuildListCalculator buildListCalculator = new BuildListCalculator(); - final MavenSession session = ProjectDependencyGraphStub.getMavenSession(); - List taskSegments = lifecycleTaskSegmentCalculator.calculateTaskSegments( session ); - final ProjectBuildList buildList = buildListCalculator.calculateProjectBuilds( session, taskSegments ); - final ProjectBuildList segments = buildList.getByTaskSegment( taskSegments.get( 0 ) ); - assertEquals( "Stub data contains 3 segments", 3, taskSegments.size() ); - assertEquals( "Stub data contains 6 items", 6, segments.size() ); - final ProjectSegment build = segments.get( 0 ); - assertNotNull( build ); - } - - private static LifecycleTaskSegmentCalculator getTaskSegmentCalculator() - { - return new LifecycleTaskSegmentCalculatorStub(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/BuilderCommonTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/BuilderCommonTest.java deleted file mode 100644 index 6f896d85..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/BuilderCommonTest.java +++ /dev/null @@ -1,76 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -import junit.framework.TestCase; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.MavenExecutionPlan; -import org.apache.maven.lifecycle.internal.builder.BuilderCommon; -import org.apache.maven.lifecycle.internal.stub.LifecycleExecutionPlanCalculatorStub; -import org.apache.maven.lifecycle.internal.stub.LoggerStub; -import org.apache.maven.lifecycle.internal.stub.ProjectDependencyGraphStub; - -import java.util.HashSet; - -/** - * @author Kristian Rosenvold - */ -public class BuilderCommonTest - extends TestCase -{ - public void testResolveBuildPlan() - throws Exception - { - MavenSession original = ProjectDependencyGraphStub.getMavenSession(); - - final TaskSegment taskSegment1 = new TaskSegment( false ); - final MavenSession session1 = original.clone(); - session1.setCurrentProject( ProjectDependencyGraphStub.A ); - - final BuilderCommon builderCommon = getBuilderCommon(); - final MavenExecutionPlan plan = - builderCommon.resolveBuildPlan( session1, ProjectDependencyGraphStub.A, taskSegment1, - new HashSet() ); - assertEquals( LifecycleExecutionPlanCalculatorStub.getProjectAExceutionPlan().size(), plan.size() ); - - } - - - public void testHandleBuildError() - throws Exception - { - } - - public void testAttachToThread() - throws Exception - { - } - - public void testGetKey() - throws Exception - { - } - - public static BuilderCommon getBuilderCommon() - { - final LifecycleDebugLogger logger = new LifecycleDebugLogger( new LoggerStub() ); - return new BuilderCommon( logger, new LifecycleExecutionPlanCalculatorStub(), - new LoggerStub() ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/ConcurrencyDependencyGraphTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/ConcurrencyDependencyGraphTest.java deleted file mode 100644 index 9ab06011..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/ConcurrencyDependencyGraphTest.java +++ /dev/null @@ -1,94 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.execution.ProjectDependencyGraph; -import org.apache.maven.lifecycle.LifecycleNotFoundException; -import org.apache.maven.lifecycle.LifecyclePhaseNotFoundException; -import org.apache.maven.lifecycle.internal.builder.multithreaded.ConcurrencyDependencyGraph; -import org.apache.maven.lifecycle.internal.stub.ProjectDependencyGraphStub; -import org.apache.maven.plugin.InvalidPluginDescriptorException; -import org.apache.maven.plugin.MojoNotFoundException; -import org.apache.maven.plugin.PluginDescriptorParsingException; -import org.apache.maven.plugin.PluginNotFoundException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException; -import org.apache.maven.plugin.version.PluginVersionResolutionException; -import org.apache.maven.project.MavenProject; - -import java.util.List; - -import static org.apache.maven.lifecycle.internal.stub.ProjectDependencyGraphStub.*; - -/** - * @author Kristian Rosenvold - */ -public class ConcurrencyDependencyGraphTest - extends junit.framework.TestCase -{ - public void testConcurrencyGraphPrimaryVersion() - throws InvalidPluginDescriptorException, PluginVersionResolutionException, PluginDescriptorParsingException, - NoPluginFoundForPrefixException, MojoNotFoundException, PluginNotFoundException, PluginResolutionException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException - { - ProjectDependencyGraph dependencyGraph = new ProjectDependencyGraphStub(); - final MavenSession session = ProjectDependencyGraphStub.getMavenSession(); - - ConcurrencyDependencyGraph graph = - new ConcurrencyDependencyGraph( getProjectBuildList( session ), dependencyGraph ); - - final List projectBuilds = graph.getRootSchedulableBuilds(); - assertEquals( 1, projectBuilds.size() ); - assertEquals( A, projectBuilds.get( 0 ) ); - - final List subsequent = graph.markAsFinished( A ); - assertEquals( 2, subsequent.size() ); - assertEquals( ProjectDependencyGraphStub.B, subsequent.get( 0 ) ); - assertEquals( C, subsequent.get( 1 ) ); - - final List bDescendants = graph.markAsFinished( B ); - assertEquals( 1, bDescendants.size() ); - assertEquals( Y, bDescendants.get( 0 ) ); - - final List cDescendants = graph.markAsFinished( C ); - assertEquals( 2, cDescendants.size() ); - assertEquals( X, cDescendants.get( 0 ) ); - assertEquals( Z, cDescendants.get( 1 ) ); - } - - public void testConcurrencyGraphDifferentCompletionOrder() - throws InvalidPluginDescriptorException, PluginVersionResolutionException, PluginDescriptorParsingException, - NoPluginFoundForPrefixException, MojoNotFoundException, PluginNotFoundException, PluginResolutionException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException - { - ProjectDependencyGraph dependencyGraph = new ProjectDependencyGraphStub(); - final MavenSession session = ProjectDependencyGraphStub.getMavenSession(); - ConcurrencyDependencyGraph graph = - new ConcurrencyDependencyGraph( getProjectBuildList( session ), dependencyGraph ); - - graph.markAsFinished( A ); - final List cDescendants = graph.markAsFinished( C ); - assertEquals( 1, cDescendants.size() ); - assertEquals( Z, cDescendants.get( 0 ) ); - - final List bDescendants = graph.markAsFinished( B ); - assertEquals( 2, bDescendants.size() ); - assertEquals( X, bDescendants.get( 0 ) ); - assertEquals( Y, bDescendants.get( 1 ) ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/LifecycleExecutionPlanCalculatorTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/LifecycleExecutionPlanCalculatorTest.java deleted file mode 100644 index a9af5668..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/LifecycleExecutionPlanCalculatorTest.java +++ /dev/null @@ -1,82 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -import org.apache.maven.AbstractCoreMavenComponentTestCase; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.MavenExecutionPlan; -import org.apache.maven.lifecycle.internal.stub.BuildPluginManagerStub; -import org.apache.maven.lifecycle.internal.stub.DefaultLifecyclesStub; -import org.apache.maven.lifecycle.internal.stub.PluginPrefixResolverStub; -import org.apache.maven.lifecycle.internal.stub.PluginVersionResolverStub; -import org.apache.maven.lifecycle.internal.stub.ProjectDependencyGraphStub; - -/** - * @author Kristian Rosenvold> - */ -public class LifecycleExecutionPlanCalculatorTest - extends AbstractCoreMavenComponentTestCase -{ - - public void testCalculateExecutionPlanWithGoalTasks() - throws Exception - { - MojoDescriptorCreator mojoDescriptorCreator = createMojoDescriptorCreator(); - LifecycleExecutionPlanCalculator lifecycleExecutionPlanCalculator = - createExecutionPlaceCalculator( mojoDescriptorCreator ); - - final GoalTask goalTask1 = new GoalTask( "compiler:compile" ); - final GoalTask goalTask2 = new GoalTask( "surefire:test" ); - final TaskSegment taskSegment1 = new TaskSegment( false, goalTask1, goalTask2 ); - final MavenSession session1 = ProjectDependencyGraphStub.getMavenSession( ProjectDependencyGraphStub.A ); - - MavenExecutionPlan executionPlan = - lifecycleExecutionPlanCalculator.calculateExecutionPlan( session1, ProjectDependencyGraphStub.A, - taskSegment1.getTasks() ); - assertEquals( 2, executionPlan.size() ); - - final GoalTask goalTask3 = new GoalTask( "surefire:test" ); - final TaskSegment taskSegment2 = new TaskSegment( false, goalTask1, goalTask2, goalTask3 ); - MavenExecutionPlan executionPlan2 = - lifecycleExecutionPlanCalculator.calculateExecutionPlan( session1, ProjectDependencyGraphStub.A, - taskSegment2.getTasks() ); - assertEquals( 3, executionPlan2.size() ); - } - - // Maybe also make one with LifeCycleTasks - - public static LifecycleExecutionPlanCalculator createExecutionPlaceCalculator( MojoDescriptorCreator mojoDescriptorCreator ) - { - LifecyclePluginResolver lifecyclePluginResolver = new LifecyclePluginResolver( new PluginVersionResolverStub() ); - return new DefaultLifecycleExecutionPlanCalculator( new BuildPluginManagerStub(), - DefaultLifecyclesStub.createDefaultLifecycles(), - mojoDescriptorCreator, lifecyclePluginResolver ); - } - - public static MojoDescriptorCreator createMojoDescriptorCreator() - { - return new MojoDescriptorCreator( new PluginVersionResolverStub(), new BuildPluginManagerStub(), - new PluginPrefixResolverStub(), - new LifecyclePluginResolver( new PluginVersionResolverStub() ) ); - } - - @Override - protected String getProjectsDirectory() - { - return "src/test/projects/lifecycle-executor"; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/LifecycleTaskSegmentCalculatorImplTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/LifecycleTaskSegmentCalculatorImplTest.java deleted file mode 100644 index 5db316f8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/LifecycleTaskSegmentCalculatorImplTest.java +++ /dev/null @@ -1,57 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import junit.framework.TestCase; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.internal.stub.LifecycleTaskSegmentCalculatorStub; -import org.apache.maven.lifecycle.internal.stub.ProjectDependencyGraphStub; - -import java.util.List; - -/** - * @author Kristian Rosenvold - */ -public class LifecycleTaskSegmentCalculatorImplTest - extends TestCase -{ - public void testCalculateProjectBuilds() - throws Exception - { - LifecycleTaskSegmentCalculator lifecycleTaskSegmentCalculator = getTaskSegmentCalculator(); - BuildListCalculator buildListCalculator = new BuildListCalculator(); - final MavenSession session = ProjectDependencyGraphStub.getMavenSession(); - List taskSegments = lifecycleTaskSegmentCalculator.calculateTaskSegments( session ); - - final ProjectBuildList buildList = buildListCalculator.calculateProjectBuilds( session, taskSegments ); - final ProjectBuildList segments = buildList.getByTaskSegment( taskSegments.get( 0 ) ); - assertEquals( "Stub data contains 3 segments", 3, taskSegments.size() ); - assertEquals( "Stub data contains 6 items", 6, segments.size() ); - final ProjectSegment build = segments.get( 0 ); - assertNotNull( build ); - } - - private static LifecycleTaskSegmentCalculator getTaskSegmentCalculator() - { - return new LifecycleTaskSegmentCalculatorStub(); - } - - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/PhaseRecorderTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/PhaseRecorderTest.java deleted file mode 100644 index f3d6422c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/PhaseRecorderTest.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -import junit.framework.TestCase; - -import org.apache.maven.lifecycle.MavenExecutionPlan; -import org.apache.maven.lifecycle.internal.stub.LifecycleExecutionPlanCalculatorStub; -import org.apache.maven.lifecycle.internal.stub.ProjectDependencyGraphStub; -import org.apache.maven.plugin.MojoExecution; - -import java.util.List; - -/** - * @author Kristian Rosenvold - */ -public class PhaseRecorderTest extends TestCase -{ - public void testObserveExecution() throws Exception { - PhaseRecorder phaseRecorder = new PhaseRecorder( ProjectDependencyGraphStub.A); - MavenExecutionPlan plan = LifecycleExecutionPlanCalculatorStub.getProjectAExceutionPlan(); - final List executions = plan.getMojoExecutions(); - - final MojoExecution mojoExecution1 = executions.get( 0 ); - final MojoExecution mojoExecution2 = executions.get( 1 ); - phaseRecorder.observeExecution( mojoExecution1 ); - - assertTrue( ProjectDependencyGraphStub.A.hasLifecyclePhase( mojoExecution1.getLifecyclePhase() )); - assertFalse( ProjectDependencyGraphStub.A.hasLifecyclePhase( mojoExecution2.getLifecyclePhase() )); - - assertFalse( phaseRecorder.isDifferentPhase( mojoExecution1)); - assertTrue( phaseRecorder.isDifferentPhase( mojoExecution2)); - - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/ProjectBuildListTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/ProjectBuildListTest.java deleted file mode 100644 index 047ef9fe..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/ProjectBuildListTest.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.apache.maven.lifecycle.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -import junit.framework.TestCase; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.internal.stub.ProjectDependencyGraphStub; - -/** - * @author Kristian Rosenvold - */ -public class ProjectBuildListTest - extends TestCase -{ - - public void testGetByTaskSegment() - throws Exception - { - final MavenSession session = ProjectDependencyGraphStub.getMavenSession(); - ProjectBuildList projectBuildList = ProjectDependencyGraphStub.getProjectBuildList( session ); - TaskSegment taskSegment = projectBuildList.get( 0 ).getTaskSegment(); - assertTrue( "This test assumes there are at least 6 elements in projectBuilds", projectBuildList.size() >= 6 ); - - final ProjectBuildList byTaskSegment = projectBuildList.getByTaskSegment( taskSegment ); - assertEquals( projectBuildList.size(), - byTaskSegment.size() ); // Todo: Make multiple segments on projectBuildList - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ThreadOutputMuxerTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ThreadOutputMuxerTest.java deleted file mode 100644 index dc75a947..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ThreadOutputMuxerTest.java +++ /dev/null @@ -1,167 +0,0 @@ -package org.apache.maven.lifecycle.internal.builder.multithreaded; - -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -import junit.framework.TestCase; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.LifecycleNotFoundException; -import org.apache.maven.lifecycle.LifecyclePhaseNotFoundException; -import org.apache.maven.lifecycle.internal.ProjectBuildList; -import org.apache.maven.lifecycle.internal.ProjectSegment; -import org.apache.maven.lifecycle.internal.builder.multithreaded.ThreadOutputMuxer; -import org.apache.maven.lifecycle.internal.stub.ProjectDependencyGraphStub; -import org.apache.maven.plugin.InvalidPluginDescriptorException; -import org.apache.maven.plugin.MojoNotFoundException; -import org.apache.maven.plugin.PluginDescriptorParsingException; -import org.apache.maven.plugin.PluginNotFoundException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException; -import org.apache.maven.plugin.version.PluginVersionResolutionException; - -import java.io.ByteArrayOutputStream; -import java.io.PrintStream; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Iterator; -import java.util.List; -import java.util.concurrent.Callable; -import java.util.concurrent.CompletionService; -import java.util.concurrent.ExecutorCompletionService; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.Future; - -/** - * @author Kristian Rosenvold - */ -public class ThreadOutputMuxerTest - extends TestCase -{ - - final String paid = "Paid"; - - final String in = "In"; - - final String full = "Full"; - - public void testSingleThreaded() - throws Exception - { - ProjectBuildList src = getProjectBuildList(); - ProjectBuildList projectBuildList = - new ProjectBuildList( Arrays.asList( src.get( 0 ), src.get( 1 ), src.get( 2 ) ) ); - - ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); - PrintStream systemOut = new PrintStream( byteArrayOutputStream ); - ThreadOutputMuxer threadOutputMuxer = new ThreadOutputMuxer( projectBuildList, systemOut ); - - threadOutputMuxer.associateThreadWithProjectSegment( projectBuildList.get( 0 ) ); - System.out.print( paid ); // No, this does not print to system.out. It's part of the test - assertEquals( paid.length(), byteArrayOutputStream.size() ); - threadOutputMuxer.associateThreadWithProjectSegment( projectBuildList.get( 1 ) ); - System.out.print( in ); // No, this does not print to system.out. It's part of the test - assertEquals( paid.length(), byteArrayOutputStream.size() ); - threadOutputMuxer.associateThreadWithProjectSegment( projectBuildList.get( 2 ) ); - System.out.print( full ); // No, this does not print to system.out. It's part of the test - assertEquals( paid.length(), byteArrayOutputStream.size() ); - - threadOutputMuxer.setThisModuleComplete( projectBuildList.get( 0 ) ); - threadOutputMuxer.setThisModuleComplete( projectBuildList.get( 1 ) ); - threadOutputMuxer.setThisModuleComplete( projectBuildList.get( 2 ) ); - threadOutputMuxer.close(); - assertEquals( ( paid + in + full ).length(), byteArrayOutputStream.size() ); - } - - public void testMultiThreaded() - throws Exception - { - ProjectBuildList projectBuildList = getProjectBuildList(); - - ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); - PrintStream systemOut = new PrintStream( byteArrayOutputStream ); - final ThreadOutputMuxer threadOutputMuxer = new ThreadOutputMuxer( projectBuildList, systemOut ); - - final List stringList = - Arrays.asList( "Thinkin", "of", "a", "master", "plan", "Cuz", "ain’t", "nuthin", "but", "sweat", "inside", - "my", "hand" ); - Iterator lyrics = stringList.iterator(); - - ExecutorService executor = Executors.newFixedThreadPool( 10 ); - CompletionService service = new ExecutorCompletionService( executor ); - - List> futures = new ArrayList>(); - for ( ProjectSegment projectBuild : projectBuildList ) - { - final Future buildFuture = - service.submit( new Outputter( threadOutputMuxer, projectBuild, lyrics.next() ) ); - futures.add( buildFuture ); - } - - for ( Future future : futures ) - { - future.get(); - } - int expectedLength = 0; - for ( int i = 0; i < projectBuildList.size(); i++ ) - { - expectedLength += stringList.get( i ).length(); - } - - threadOutputMuxer.close(); - final byte[] bytes = byteArrayOutputStream.toByteArray(); - String result = new String( bytes ); - assertEquals( result, expectedLength, bytes.length ); - - - } - - class Outputter - implements Callable - { - private final ThreadOutputMuxer threadOutputMuxer; - - private final ProjectSegment item; - - private final String response; - - Outputter( ThreadOutputMuxer threadOutputMuxer, ProjectSegment item, String response ) - { - this.threadOutputMuxer = threadOutputMuxer; - this.item = item; - this.response = response; - } - - public ProjectSegment call() - throws Exception - { - threadOutputMuxer.associateThreadWithProjectSegment( item ); - System.out.print( response ); - threadOutputMuxer.setThisModuleComplete( item ); - return item; - } - } - - - private ProjectBuildList getProjectBuildList() - throws InvalidPluginDescriptorException, PluginVersionResolutionException, PluginDescriptorParsingException, - NoPluginFoundForPrefixException, MojoNotFoundException, PluginNotFoundException, PluginResolutionException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException - { - final MavenSession session = ProjectDependencyGraphStub.getMavenSession(); - return ProjectDependencyGraphStub.getProjectBuildList( session ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/AboutTheStubs.html b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/AboutTheStubs.html deleted file mode 100644 index 8ad74b96..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/AboutTheStubs.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - About these stubs - - -

    Design

    -These stubs can be thought of as hand-coded mock obects. They allow unit tests to test only specific -aspects of a component while ignoring others. - -These stubs form an internally consistent data-set that is not expected to change. They are -used to test the individual components in the lifecycle with data that has expected characteristics -and can be asserted as desired. - -You can change/extend these stubs, and tests should not be breaking too much, since most tests -assert using expected values from the stubs. Normally, when you try to use data from the stubs that -have not been properly populated, you'll get a nullpointer in your test and you then have to -identify which stub creates that specific piece of data. - -The most important stubs are: -LifecycleExecutionPlanCalculatorStub -ProjectDependencyGraphStub - -Since they define the primary structure of the project/build. - -The stubs define three top-level targets that are defined in LifecycleTaskSegmentCalculatorStub; -clean, aggr and install. "aggr" is an aggregating task while clean and install are lifecyclephases. -There will be three items in the task list for this dataset. - -The stubs also exist at different "levels", where one test might wire stubs into a specific live implementation. -In the next test that same "live implementation" will be used in a stub version instead. - -Not all live services have stubs, but can be added as needed. - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/BuildPluginManagerStub.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/BuildPluginManagerStub.java deleted file mode 100644 index 133bcb3a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/BuildPluginManagerStub.java +++ /dev/null @@ -1,56 +0,0 @@ -package org.apache.maven.lifecycle.internal.stub; - -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -import java.util.List; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.BuildPluginManager; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.codehaus.plexus.classworlds.realm.ClassRealm; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.repository.RemoteRepository; - -/** - * @author Kristian Rosenvold - */ -public class BuildPluginManagerStub - implements BuildPluginManager -{ - - public PluginDescriptor loadPlugin( Plugin plugin, List repositories, RepositorySystemSession session ) - { - return null; - } - - public MojoDescriptor getMojoDescriptor( Plugin plugin, String goal, List repositories, - RepositorySystemSession session ) - { - return MojoExecutorStub.createMojoDescriptor( plugin.getKey() ); - } - - public ClassRealm getPluginRealm( MavenSession session, PluginDescriptor pluginDescriptor ) - { - return null; - } - - public void executeMojo( MavenSession session, MojoExecution execution ) - { - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/CompletionServiceStub.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/CompletionServiceStub.java deleted file mode 100644 index 10a113e9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/CompletionServiceStub.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.apache.maven.lifecycle.internal.stub; - -import org.apache.maven.lifecycle.internal.ProjectSegment; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.concurrent.Callable; -import java.util.concurrent.CompletionService; -import java.util.concurrent.Future; -import java.util.concurrent.FutureTask; -import java.util.concurrent.TimeUnit; - -/** - * @author Kristian Rosenvold - */ -public class CompletionServiceStub - implements CompletionService -{ - List> projectBuildFutureTasks = - Collections.synchronizedList( new ArrayList>() ); - - final boolean finishImmediately; - - - public int size() - { - return projectBuildFutureTasks.size(); - } - - public CompletionServiceStub( boolean finishImmediately ) - { - this.finishImmediately = finishImmediately; - } - - public Future submit( Callable task ) - { - FutureTask projectBuildFutureTask = new FutureTask( task ); - projectBuildFutureTasks.add( projectBuildFutureTask ); - if ( finishImmediately ) - { - projectBuildFutureTask.run(); - } - return projectBuildFutureTask; - } - - public Future submit( Runnable task, ProjectSegment result ) - { - FutureTask projectBuildFutureTask = new FutureTask( task, result ); - projectBuildFutureTasks.add( projectBuildFutureTask ); - if ( finishImmediately ) - { - projectBuildFutureTask.run(); - } - return projectBuildFutureTask; - } - - public Future take() - throws InterruptedException - { - return null; - } - - public Future poll() - { - return null; - } - - public Future poll( long timeout, TimeUnit unit ) - throws InterruptedException - { - return null; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/DefaultLifecyclesStub.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/DefaultLifecyclesStub.java deleted file mode 100644 index b366953a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/DefaultLifecyclesStub.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.apache.maven.lifecycle.internal.stub; - -import org.apache.maven.lifecycle.DefaultLifecycles; -import org.apache.maven.lifecycle.Lifecycle; - -import java.util.Arrays; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import static org.apache.maven.lifecycle.internal.stub.LifecycleExecutionPlanCalculatorStub.*; - -/** - * @author Kristian Rosenvold - */ - -public class DefaultLifecyclesStub -{ - public static DefaultLifecycles createDefaultLifecycles() - { - - List stubDefaultCycle = - Arrays.asList( VALIDATE.getPhase(), INITIALIZE.getPhase(), PROCESS_RESOURCES.getPhase(), COMPILE.getPhase(), - TEST.getPhase(), PROCESS_TEST_RESOURCES.getPhase(), PACKAGE.getPhase(), "BEER", - INSTALL.getPhase() ); - - // The two phases below are really for future expansion, some would say they lack a drink - // The point being that they do not really have to match the "real" stuff, - List stubCleanCycle = Arrays.asList( PRE_CLEAN.getPhase(), CLEAN.getPhase(), POST_CLEAN.getPhase() ); - - List stubSiteCycle = - Arrays.asList( PRE_SITE.getPhase(), SITE.getPhase(), POST_SITE.getPhase(), SITE_DEPLOY.getPhase() ); - - @SuppressWarnings( "unchecked" ) - Iterator> lcs = Arrays.asList( stubDefaultCycle, stubCleanCycle, stubSiteCycle ).iterator(); - - Map lifeCycles = new HashMap(); - for ( String s : DefaultLifecycles.STANDARD_LIFECYCLES ) - { - final Lifecycle lifecycle = new Lifecycle( s, lcs.next(), null ); - lifeCycles.put( s, lifecycle ); - - } - return new DefaultLifecycles( lifeCycles, new LoggerStub() ); - } - -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/ExecutionEventCatapultStub.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/ExecutionEventCatapultStub.java deleted file mode 100644 index e47ec611..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/ExecutionEventCatapultStub.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.apache.maven.lifecycle.internal.stub; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.execution.ExecutionEvent.Type; -import org.apache.maven.lifecycle.internal.ExecutionEventCatapult; -import org.apache.maven.plugin.MojoExecution; - -/** - * @author Benjamin Bentmann - */ -public class ExecutionEventCatapultStub - implements ExecutionEventCatapult -{ - - public void fire( Type eventType, MavenSession session, MojoExecution mojoExecution ) - { - } - - public void fire( Type eventType, MavenSession session, MojoExecution mojoExecution, Exception exception ) - { - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifeCyclePluginAnalyzerStub.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifeCyclePluginAnalyzerStub.java deleted file mode 100644 index 930f5e93..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifeCyclePluginAnalyzerStub.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.apache.maven.lifecycle.internal.stub; - -import org.apache.maven.lifecycle.LifeCyclePluginAnalyzer; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.PluginExecution; - -import java.util.Collections; -import java.util.LinkedHashSet; -import java.util.Set; - -/** - * @author Kristian Rosenvold - */ -public class LifeCyclePluginAnalyzerStub - implements LifeCyclePluginAnalyzer -{ - public Set getPluginsBoundByDefaultToAllLifecycles( String packaging ) - { - Set plugins; - - // NOTE: The upper-case packaging name is intentional, that's a special hinting mode used for certain tests - if ( "JAR".equals( packaging ) ) - { - plugins = new LinkedHashSet(); - - plugins.add( newPlugin( "maven-compiler-plugin", "compile", "testCompile" ) ); - plugins.add( newPlugin( "maven-resources-plugin", "resources", "testResources" ) ); - plugins.add( newPlugin( "maven-surefire-plugin", "test" ) ); - plugins.add( newPlugin( "maven-jar-plugin", "jar" ) ); - plugins.add( newPlugin( "maven-install-plugin", "install" ) ); - plugins.add( newPlugin( "maven-deploy-plugin", "deploy" ) ); - } - else - { - plugins = Collections.emptySet(); - } - - return plugins; - } - - private Plugin newPlugin( String artifactId, String... goals ) - { - Plugin plugin = new Plugin(); - - plugin.setGroupId( "org.apache.maven.plugins" ); - plugin.setArtifactId( artifactId ); - - for ( String goal : goals ) - { - PluginExecution pluginExecution = new PluginExecution(); - pluginExecution.setId( "default-" + goal ); - pluginExecution.addGoal( goal ); - plugin.addExecution( pluginExecution ); - } - - return plugin; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifecycleExecutionPlanCalculatorStub.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifecycleExecutionPlanCalculatorStub.java deleted file mode 100644 index cd33a353..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifecycleExecutionPlanCalculatorStub.java +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.apache.maven.lifecycle.internal.stub; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.LifecycleNotFoundException; -import org.apache.maven.lifecycle.LifecyclePhaseNotFoundException; -import org.apache.maven.lifecycle.MavenExecutionPlan; -import org.apache.maven.lifecycle.internal.ExecutionPlanItem; -import org.apache.maven.lifecycle.internal.LifecycleExecutionPlanCalculator; -import org.apache.maven.lifecycle.internal.ProjectBuildList; -import org.apache.maven.lifecycle.internal.ProjectSegment; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.InvalidPluginDescriptorException; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.plugin.MojoNotFoundException; -import org.apache.maven.plugin.PluginDescriptorParsingException; -import org.apache.maven.plugin.PluginNotFoundException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException; -import org.apache.maven.plugin.version.PluginVersionResolutionException; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.util.xml.Xpp3Dom; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -/** - * @author Kristian Rosenvold - */ -public class LifecycleExecutionPlanCalculatorStub - implements LifecycleExecutionPlanCalculator -{ - // clean - - public final static MojoDescriptor PRE_CLEAN = createMojoDescriptor( "pre-clean" ); - - public final static MojoDescriptor CLEAN = createMojoDescriptor( "clean" ); - - public final static MojoDescriptor POST_CLEAN = createMojoDescriptor( "post-clean" ); - - // default (or at least some of them) - - public final static MojoDescriptor VALIDATE = createMojoDescriptor( "validate" ); - - public final static MojoDescriptor INITIALIZE = createMojoDescriptor( "initialize" ); - - public final static MojoDescriptor TEST_COMPILE = createMojoDescriptor( "test-compile" ); - - public final static MojoDescriptor PROCESS_TEST_RESOURCES = createMojoDescriptor( "process-test-resources" ); - - public final static MojoDescriptor PROCESS_RESOURCES = createMojoDescriptor( "process-resources" ); - - public final static MojoDescriptor COMPILE = createMojoDescriptor( "compile", true ); - - public final static MojoDescriptor TEST = createMojoDescriptor( "test" ); - - public final static MojoDescriptor PACKAGE = createMojoDescriptor( "package" ); - - public final static MojoDescriptor INSTALL = createMojoDescriptor( "install" ); - - // site - - public final static MojoDescriptor PRE_SITE = createMojoDescriptor( "pre-site" ); - - public final static MojoDescriptor SITE = createMojoDescriptor( "site" ); - - public final static MojoDescriptor POST_SITE = createMojoDescriptor( "post-site" ); - - public final static MojoDescriptor SITE_DEPLOY = createMojoDescriptor( "site-deploy" ); - - - public int getNumberOfExceutions( ProjectBuildList projectBuildList ) - throws InvalidPluginDescriptorException, PluginVersionResolutionException, PluginDescriptorParsingException, - NoPluginFoundForPrefixException, MojoNotFoundException, PluginNotFoundException, PluginResolutionException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException - { - int result = 0; - for ( ProjectSegment projectBuild : projectBuildList ) - { - MavenExecutionPlan plan = calculateExecutionPlan( projectBuild.getSession(), projectBuild.getProject(), - projectBuild.getTaskSegment().getTasks() ); - result += plan.size(); - } - return result; - } - - public void calculateForkedExecutions( MojoExecution mojoExecution, MavenSession session ) - throws MojoNotFoundException, PluginNotFoundException, PluginResolutionException, - PluginDescriptorParsingException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException - { - // Maybe do something ? - } - - public MavenExecutionPlan calculateExecutionPlan( MavenSession session, MavenProject project, List tasks, - boolean setup ) - throws PluginNotFoundException, PluginResolutionException, LifecyclePhaseNotFoundException, - PluginDescriptorParsingException, MojoNotFoundException, InvalidPluginDescriptorException, - NoPluginFoundForPrefixException, LifecycleNotFoundException, PluginVersionResolutionException - { - if ( project.equals( ProjectDependencyGraphStub.A ) ) - { - return getProjectAExceutionPlan(); - } - if ( project.equals( ProjectDependencyGraphStub.B ) ) - { - return getProjectBExecutionPlan(); - } - // The remaining are basically "for future expansion" - List me = new ArrayList(); - me.add( createMojoExecution( "resources", "default-resources", PROCESS_RESOURCES ) ); - me.add( createMojoExecution( "compile", "default-compile", COMPILE ) ); - return createExecutionPlan( project, me ); - } - - public MavenExecutionPlan calculateExecutionPlan( MavenSession session, MavenProject project, List tasks ) - throws PluginNotFoundException, PluginResolutionException, LifecyclePhaseNotFoundException, - PluginDescriptorParsingException, MojoNotFoundException, InvalidPluginDescriptorException, - NoPluginFoundForPrefixException, LifecycleNotFoundException, PluginVersionResolutionException - { - return calculateExecutionPlan( session, project, tasks, true ); - } - - public void setupMojoExecution( MavenSession session, MavenProject project, MojoExecution mojoExecution ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, InvalidPluginDescriptorException, NoPluginFoundForPrefixException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException - { - } - - public static MavenExecutionPlan getProjectAExceutionPlan() - throws PluginNotFoundException, PluginResolutionException, LifecyclePhaseNotFoundException, - PluginDescriptorParsingException, MojoNotFoundException, InvalidPluginDescriptorException, - NoPluginFoundForPrefixException, LifecycleNotFoundException, PluginVersionResolutionException - { - List me = new ArrayList(); - me.add( createMojoExecution( "initialize", "default-initialize", INITIALIZE ) ); - me.add( createMojoExecution( "resources", "default-resources", PROCESS_RESOURCES ) ); - me.add( createMojoExecution( "compile", "default-compile", COMPILE ) ); - me.add( createMojoExecution( "testResources", "default-testResources", PROCESS_TEST_RESOURCES ) ); - me.add( createMojoExecution( "testCompile", "default-testCompile", TEST_COMPILE ) ); - me.add( createMojoExecution( "test", "default-test", TEST ) ); - me.add( createMojoExecution( "war", "default-war", PACKAGE ) ); - me.add( createMojoExecution( "install", "default-install", INSTALL ) ); - return createExecutionPlan( ProjectDependencyGraphStub.A.getExecutionProject(), me ); - } - - public static MavenExecutionPlan getProjectBExecutionPlan() - throws PluginNotFoundException, PluginResolutionException, LifecyclePhaseNotFoundException, - PluginDescriptorParsingException, MojoNotFoundException, InvalidPluginDescriptorException, - NoPluginFoundForPrefixException, LifecycleNotFoundException, PluginVersionResolutionException - { - List me = new ArrayList(); - me.add( createMojoExecution( "enforce", "enforce-versions", VALIDATE ) ); - me.add( createMojoExecution( "resources", "default-resources", PROCESS_RESOURCES ) ); - me.add( createMojoExecution( "compile", "default-compile", COMPILE ) ); - me.add( createMojoExecution( "testResources", "default-testResources", PROCESS_TEST_RESOURCES ) ); - me.add( createMojoExecution( "testCompile", "default-testCompile", TEST_COMPILE ) ); - me.add( createMojoExecution( "test", "default-test", TEST ) ); - return createExecutionPlan( ProjectDependencyGraphStub.B.getExecutionProject(), me ); - } - - - private static MavenExecutionPlan createExecutionPlan( MavenProject project, List mojoExecutions ) - throws InvalidPluginDescriptorException, PluginVersionResolutionException, PluginDescriptorParsingException, - NoPluginFoundForPrefixException, MojoNotFoundException, PluginNotFoundException, PluginResolutionException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException - { - final List planItemList = - ExecutionPlanItem.createExecutionPlanItems( project, mojoExecutions ); - return new MavenExecutionPlan( planItemList, DefaultLifecyclesStub.createDefaultLifecycles() ); - } - - private static MojoExecution createMojoExecution( String goal, String executionId, MojoDescriptor mojoDescriptor ) - { - final Plugin plugin = mojoDescriptor.getPluginDescriptor().getPlugin(); - MojoExecution result = new MojoExecution( plugin, goal, executionId ); - result.setConfiguration( new Xpp3Dom( executionId + "-" + goal ) ); - result.setMojoDescriptor( mojoDescriptor ); - result.setLifecyclePhase( mojoDescriptor.getPhase() ); - - return result; - - } - - public static MojoDescriptor createMojoDescriptor( String phaseName ) - { - return createMojoDescriptor( phaseName, false ); - } - - public static MojoDescriptor createMojoDescriptor( String phaseName, boolean threadSafe ) - { - final MojoDescriptor mojoDescriptor = new MojoDescriptor(); - mojoDescriptor.setPhase( phaseName ); - final PluginDescriptor descriptor = new PluginDescriptor(); - Plugin plugin = new Plugin(); - plugin.setArtifactId( "org.apache.maven.test.MavenExecutionPlan" ); - plugin.setGroupId( "stub-plugin-" + phaseName ); - descriptor.setPlugin( plugin ); - descriptor.setArtifactId( "artifact." + phaseName ); - mojoDescriptor.setPluginDescriptor( descriptor ); - mojoDescriptor.setThreadSafe( threadSafe ); - return mojoDescriptor; - } - - - public static Set getScopes() - { - return new HashSet( Arrays.asList( "compile" ) ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifecycleTaskSegmentCalculatorStub.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifecycleTaskSegmentCalculatorStub.java deleted file mode 100644 index 695d66dd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifecycleTaskSegmentCalculatorStub.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.apache.maven.lifecycle.internal.stub; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.internal.GoalTask; -import org.apache.maven.lifecycle.internal.LifecycleTask; -import org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator; -import org.apache.maven.lifecycle.internal.TaskSegment; -import org.apache.maven.plugin.InvalidPluginDescriptorException; -import org.apache.maven.plugin.MojoNotFoundException; -import org.apache.maven.plugin.PluginDescriptorParsingException; -import org.apache.maven.plugin.PluginNotFoundException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException; -import org.apache.maven.plugin.version.PluginVersionResolutionException; - -import java.util.ArrayList; -import java.util.List; - -/** - * @author Kristian Rosenvold - */ -public class LifecycleTaskSegmentCalculatorStub - extends DefaultLifecycleTaskSegmentCalculator -{ - public static final String clean = "clean"; - - public static final String aggr = "aggr"; - - public static final String install = "install"; - - - public List calculateTaskSegments( MavenSession session, List tasks ) - throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, - MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, - PluginVersionResolutionException - { - List taskSegments = new ArrayList( tasks.size() ); - - TaskSegment currentSegment = null; - - for ( String task : tasks ) - { - if ( aggr.equals( task ) ) - { - boolean aggregating = true; - - if ( currentSegment == null || currentSegment.isAggregating() != aggregating ) - { - currentSegment = new TaskSegment( aggregating ); - taskSegments.add( currentSegment ); - } - - currentSegment.getTasks().add( new GoalTask( task ) ); - } - else - { - // lifecycle phase - if ( currentSegment == null || currentSegment.isAggregating() ) - { - currentSegment = new TaskSegment( false ); - taskSegments.add( currentSegment ); - } - currentSegment.getTasks().add( new LifecycleTask( task ) ); - } - } - - return taskSegments; - } - - public boolean requiresProject( MavenSession session ) - { - return true; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LoggerStub.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LoggerStub.java deleted file mode 100644 index 00bb3cfa..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LoggerStub.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.apache.maven.lifecycle.internal.stub; - -import org.codehaus.plexus.logging.Logger; - -/** - * @author Kristian Rosenvold - */ -public class LoggerStub - implements Logger -{ - public void debug( String s ) - { - } - - public void debug( String s, Throwable throwable ) - { - } - - public boolean isDebugEnabled() - { - return true; - } - - public void info( String s ) - { - } - - public void info( String s, Throwable throwable ) - { - } - - public boolean isInfoEnabled() - { - return true; - } - - public void warn( String s ) - { - } - - public void warn( String s, Throwable throwable ) - { - } - - public boolean isWarnEnabled() - { - return true; - } - - public void error( String s ) - { - } - - public void error( String s, Throwable throwable ) - { - } - - public boolean isErrorEnabled() - { - return true; - } - - public void fatalError( String s ) - { - } - - public void fatalError( String s, Throwable throwable ) - { - } - - public boolean isFatalErrorEnabled() - { - return true; - } - - public Logger getChildLogger( String s ) - { - return null; - } - - public int getThreshold() - { - return 0; - } - - public void setThreshold( int i ) - { - - } - - public String getName() - { - return "StubLogger"; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/MojoExecutorStub.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/MojoExecutorStub.java deleted file mode 100644 index a8572ffc..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/MojoExecutorStub.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.apache.maven.lifecycle.internal.stub; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.LifecycleExecutionException; -import org.apache.maven.lifecycle.internal.DependencyContext; -import org.apache.maven.lifecycle.internal.MojoExecutor; -import org.apache.maven.lifecycle.internal.PhaseRecorder; -import org.apache.maven.lifecycle.internal.ProjectIndex; -import org.apache.maven.plugin.MojoExecution; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.descriptor.PluginDescriptor; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - -/** - * @author Kristian Rosenvold - */ -public class MojoExecutorStub - extends MojoExecutor -{ // This is being lazy instead of making interface - - public List executions = Collections.synchronizedList( new ArrayList() ); - - @Override - public void execute( MavenSession session, MojoExecution mojoExecution, ProjectIndex projectIndex, - DependencyContext dependencyContext, PhaseRecorder phaseRecorder ) - throws LifecycleExecutionException - { - executions.add( mojoExecution ); - } - - @Override - public void execute( MavenSession session, List mojoExecutions, ProjectIndex projectIndex ) - throws LifecycleExecutionException - { - for ( MojoExecution mojoExecution : mojoExecutions ) - { - executions.add( mojoExecution ); - } - } - - - public static MojoDescriptor createMojoDescriptor( String mojoDescription ) - { - final PluginDescriptor descriptor = new PluginDescriptor(); - descriptor.setArtifactId( mojoDescription ); - final MojoDescriptor mojoDescriptor = new MojoDescriptor(); - mojoDescriptor.setDescription( mojoDescription ); - mojoDescriptor.setPluginDescriptor( descriptor ); - return mojoDescriptor; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/PluginPrefixResolverStub.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/PluginPrefixResolverStub.java deleted file mode 100644 index a4b54e98..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/PluginPrefixResolverStub.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.apache.maven.lifecycle.internal.stub; - -import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException; -import org.apache.maven.plugin.prefix.PluginPrefixRequest; -import org.apache.maven.plugin.prefix.PluginPrefixResolver; -import org.apache.maven.plugin.prefix.PluginPrefixResult; -import org.eclipse.aether.repository.ArtifactRepository; - -/** - * @author Kristian Rosenvold - */ - -public class PluginPrefixResolverStub - implements PluginPrefixResolver -{ - public PluginPrefixResult resolve( PluginPrefixRequest request ) - throws NoPluginFoundForPrefixException - { - return new PluginPrefixResult() - { - public String getGroupId() - { - return "com.foobar"; - } - - public String getArtifactId() - { - return "bazbaz"; - } - - public ArtifactRepository getRepository() - { - return null; - } - }; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/PluginVersionResolverStub.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/PluginVersionResolverStub.java deleted file mode 100644 index c79658e8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/PluginVersionResolverStub.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.apache.maven.lifecycle.internal.stub; - -import org.apache.maven.plugin.version.PluginVersionRequest; -import org.apache.maven.plugin.version.PluginVersionResolutionException; -import org.apache.maven.plugin.version.PluginVersionResolver; -import org.apache.maven.plugin.version.PluginVersionResult; -import org.eclipse.aether.repository.ArtifactRepository; - -/** - * @author Kristian Rosenvold - */ - -public class PluginVersionResolverStub - implements PluginVersionResolver -{ - - public PluginVersionResult resolve( PluginVersionRequest request ) - throws PluginVersionResolutionException - { - return new PluginVersionResult() - { - public String getVersion() - { - return "0.42"; - } - - public ArtifactRepository getRepository() - { - return null; - } - }; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/ProjectDependenciesResolverStub.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/ProjectDependenciesResolverStub.java deleted file mode 100644 index 4147b36c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/ProjectDependenciesResolverStub.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.apache.maven.lifecycle.internal.stub; - -import org.apache.maven.ProjectDependenciesResolver; -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.resolver.ArtifactNotFoundException; -import org.apache.maven.artifact.resolver.ArtifactResolutionException; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.project.DependencyResolutionException; -import org.apache.maven.project.DependencyResolutionRequest; -import org.apache.maven.project.DependencyResolutionResult; -import org.apache.maven.project.MavenProject; -import org.eclipse.aether.graph.DefaultDependencyNode; -import org.eclipse.aether.graph.Dependency; -import org.eclipse.aether.graph.DependencyNode; - -import java.util.Collection; -import java.util.Collections; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -/** - * @author Kristian Rosenvold - */ -public class ProjectDependenciesResolverStub - implements ProjectDependenciesResolver, org.apache.maven.project.ProjectDependenciesResolver -{ - public Set resolve( MavenProject project, Collection scopesToResolve, MavenSession session ) - throws ArtifactResolutionException, ArtifactNotFoundException - { - return new HashSet(); - } - - public Set resolve( MavenProject project, Collection scopesToCollect, - Collection scopesToResolve, MavenSession session ) - throws ArtifactResolutionException, ArtifactNotFoundException - { - return new HashSet(); - } - - public Set resolve( Collection projects, Collection scopes, - MavenSession session ) - throws ArtifactResolutionException, ArtifactNotFoundException - { - return new HashSet(); - } - - public Set resolve( MavenProject project, Collection scopesToCollect, - Collection scopesToResolve, MavenSession session, - Set ignoreableArtifacts ) - throws ArtifactResolutionException, ArtifactNotFoundException - { - return new HashSet(); - } - - public DependencyResolutionResult resolve( DependencyResolutionRequest request ) - throws DependencyResolutionException - { - return new DependencyResolutionResult() - { - - public List getUnresolvedDependencies() - { - return Collections.emptyList(); - } - - public List getResolvedDependencies() - { - return Collections.emptyList(); - } - - public List getResolutionErrors( Dependency dependency ) - { - return Collections.emptyList(); - } - - public DependencyNode getDependencyGraph() - { - return new DefaultDependencyNode( (Dependency) null ); - } - - public List getDependencies() - { - return Collections.emptyList(); - } - - public List getCollectionErrors() - { - return Collections.emptyList(); - } - }; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/ProjectDependencyGraphStub.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/ProjectDependencyGraphStub.java deleted file mode 100644 index 38e9fcad..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/ProjectDependencyGraphStub.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.apache.maven.lifecycle.internal.stub; - -import org.apache.maven.execution.AbstractExecutionListener; -import org.apache.maven.execution.DefaultMavenExecutionRequest; -import org.apache.maven.execution.DefaultMavenExecutionResult; -import org.apache.maven.execution.MavenExecutionRequest; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.execution.ProjectDependencyGraph; -import org.apache.maven.lifecycle.LifecycleNotFoundException; -import org.apache.maven.lifecycle.LifecyclePhaseNotFoundException; -import org.apache.maven.lifecycle.internal.GoalTask; -import org.apache.maven.lifecycle.internal.ProjectBuildList; -import org.apache.maven.lifecycle.internal.ProjectSegment; -import org.apache.maven.lifecycle.internal.TaskSegment; -import org.apache.maven.plugin.InvalidPluginDescriptorException; -import org.apache.maven.plugin.MojoNotFoundException; -import org.apache.maven.plugin.PluginDescriptorParsingException; -import org.apache.maven.plugin.PluginNotFoundException; -import org.apache.maven.plugin.PluginResolutionException; -import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException; -import org.apache.maven.plugin.version.PluginVersionResolutionException; -import org.apache.maven.project.MavenProject; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -/** - * A stub dependency graph that is custom made for testing concurrent build graph evaluations. - *

    - * Implements a graph as follows: - * A has no dependencies - * B depends on A - * C depends on A - * X depends on B & C - * Y depends on B - * Z depends on C - * - * @author Kristian Rosenvold - */ -public class ProjectDependencyGraphStub - implements ProjectDependencyGraph -{ - public static final MavenProject A = new MavenProject(); - - public static final MavenProject B = new MavenProject(); - - public static final MavenProject C = new MavenProject(); - - public static final MavenProject X = new MavenProject(); - - public static final MavenProject Y = new MavenProject(); - - public static final MavenProject Z = new MavenProject(); - - public static final MavenProject UNKNOWN = new MavenProject(); - - static - { - A.setArtifactId( "A" ); - B.setArtifactId( "B" ); - C.setArtifactId( "C" ); - X.setArtifactId( "X" ); - Y.setArtifactId( "Y" ); - Z.setArtifactId( "Z" ); - } - - // This should probably be moved to a separate stub - - public static ProjectBuildList getProjectBuildList( MavenSession session ) - throws InvalidPluginDescriptorException, PluginVersionResolutionException, PluginDescriptorParsingException, - NoPluginFoundForPrefixException, MojoNotFoundException, PluginNotFoundException, PluginResolutionException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException - { - final List list = getProjectBuilds( session ); - return new ProjectBuildList( list ); - - } - - public static List getProjectBuilds( MavenSession session ) - throws InvalidPluginDescriptorException, PluginVersionResolutionException, PluginDescriptorParsingException, - NoPluginFoundForPrefixException, PluginNotFoundException, MojoNotFoundException, PluginResolutionException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException - { - List projectBuilds = new ArrayList(); - - TaskSegment segment = createTaskSegment(); - projectBuilds.add( createProjectBuild( A, session, segment ) ); - projectBuilds.add( createProjectBuild( B, session, segment ) ); - projectBuilds.add( createProjectBuild( C, session, segment ) ); - projectBuilds.add( createProjectBuild( X, session, segment ) ); - projectBuilds.add( createProjectBuild( Y, session, segment ) ); - projectBuilds.add( createProjectBuild( Z, session, segment ) ); - return projectBuilds; - } - - private static ProjectSegment createProjectBuild( MavenProject project, MavenSession session, - TaskSegment taskSegment ) - throws InvalidPluginDescriptorException, PluginVersionResolutionException, PluginDescriptorParsingException, - NoPluginFoundForPrefixException, MojoNotFoundException, PluginNotFoundException, PluginResolutionException, - LifecyclePhaseNotFoundException, LifecycleNotFoundException - { - final MavenSession session1 = session.clone(); - return new ProjectSegment( project, taskSegment, session1 ); - } - - - private static TaskSegment createTaskSegment() - { - TaskSegment result = new TaskSegment( false ); - result.getTasks().add( new GoalTask( "t1" ) ); - result.getTasks().add( new GoalTask( "t2" ) ); - return result; - } - - class Dependency - { - MavenProject dependant; - - MavenProject dependency; - - Dependency( MavenProject dependant, MavenProject dependency ) - { - this.dependant = dependant; - this.dependency = dependency; - } - - void addIfDownstream( MavenProject mavenProject, List result ) - { - if ( dependency == mavenProject ) - { - result.add( dependant ); - } - } - - void addIfUpstreamOf( MavenProject mavenProject, List result ) - { - if ( dependant == mavenProject ) - { - result.add( dependency ); // All projects are the statics from this class - } - } - } - - private List getDependencies() - { - List dependencies = new ArrayList(); - dependencies.add( new Dependency( B, A ) ); - dependencies.add( new Dependency( C, A ) ); - dependencies.add( new Dependency( X, B ) ); - dependencies.add( new Dependency( X, C ) ); - dependencies.add( new Dependency( Y, B ) ); - dependencies.add( new Dependency( Z, C ) ); - return dependencies; - } - - public List getSortedProjects() - { - return Arrays.asList( A, B, C, X, Y, Z ); // I'm not entirely sure about the order but this shold do... - } - - public List getDownstreamProjects( MavenProject project, boolean transitive ) - { - if ( transitive ) - { - throw new RuntimeException( "Not implemented yet" ); - } - List result = new ArrayList(); - for ( Dependency dependency : getDependencies() ) - { - dependency.addIfDownstream( project, result ); - } - return result; - } - - public List getUpstreamProjects( MavenProject project, boolean transitive ) - { - /* if ( transitive ) - { - throw new RuntimeException( "Not implemented yet" ); - }*/ - List result = new ArrayList(); - final List dependencies = getDependencies(); - for ( Dependency dependency : dependencies ) - { - dependency.addIfUpstreamOf( project, result ); - } - return result; - } - - public static MavenSession getMavenSession( MavenProject mavenProject ) - { - final MavenSession session = getMavenSession(); - session.setCurrentProject( mavenProject ); - return session; - } - - public static MavenSession getMavenSession() - { - final DefaultMavenExecutionResult defaultMavenExecutionResult = new DefaultMavenExecutionResult(); - MavenExecutionRequest mavenExecutionRequest = new DefaultMavenExecutionRequest(); - mavenExecutionRequest.setExecutionListener( new AbstractExecutionListener() ); - mavenExecutionRequest.setGoals( Arrays.asList( "clean", "aggr", "install" ) ); - mavenExecutionRequest.setDegreeOfConcurrency( 1 ); - final MavenSession session = new MavenSession( null, null, mavenExecutionRequest, defaultMavenExecutionResult ); - final ProjectDependencyGraphStub dependencyGraphStub = new ProjectDependencyGraphStub(); - session.setProjectDependencyGraph( dependencyGraphStub ); - session.setProjects( dependencyGraphStub.getSortedProjects() ); - return session; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/ProjectDependencyGraphStubTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/ProjectDependencyGraphStubTest.java deleted file mode 100644 index 8c605723..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/ProjectDependencyGraphStubTest.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.apache.maven.lifecycle.internal.stub; - -import junit.framework.TestCase; -import org.apache.maven.project.MavenProject; - -import java.util.List; - - -/** - * Tests the stub. Yeah, I know. - * - * @author Kristian Rosenvold - */ - -public class ProjectDependencyGraphStubTest - extends TestCase -{ - public void testADependencies() - { - ProjectDependencyGraphStub stub = new ProjectDependencyGraphStub(); - final List mavenProjects = stub.getUpstreamProjects( ProjectDependencyGraphStub.A, false ); - assertEquals( 0, mavenProjects.size() ); - } - - public void testBDepenencies( ProjectDependencyGraphStub stub ) - { - final List bProjects = stub.getUpstreamProjects( ProjectDependencyGraphStub.B, false ); - assertEquals( 1, bProjects.size() ); - assertTrue( bProjects.contains( ProjectDependencyGraphStub.A ) ); - } - - public void testCDepenencies( ProjectDependencyGraphStub stub ) - { - final List cProjects = stub.getUpstreamProjects( ProjectDependencyGraphStub.C, false ); - assertEquals( 1, cProjects.size() ); - assertTrue( cProjects.contains( ProjectDependencyGraphStub.C ) ); - } - - public void testXDepenencies( ProjectDependencyGraphStub stub ) - { - final List cProjects = stub.getUpstreamProjects( ProjectDependencyGraphStub.X, false ); - assertEquals( 2, cProjects.size() ); - assertTrue( cProjects.contains( ProjectDependencyGraphStub.C ) ); - assertTrue( cProjects.contains( ProjectDependencyGraphStub.B ) ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/plugin/PluginManagerTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/plugin/PluginManagerTest.java deleted file mode 100644 index 025e7725..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/plugin/PluginManagerTest.java +++ /dev/null @@ -1,342 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.AbstractCoreMavenComponentTestCase; -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.repository.DefaultRepositoryRequest; -import org.apache.maven.artifact.repository.RepositoryRequest; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.model.Plugin; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.classworlds.realm.ClassRealm; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.component.repository.ComponentDescriptor; - -public class PluginManagerTest - extends AbstractCoreMavenComponentTestCase -{ - @Requirement - private DefaultBuildPluginManager pluginManager; - - protected void setUp() - throws Exception - { - super.setUp(); - pluginManager = (DefaultBuildPluginManager) lookup( BuildPluginManager.class ); - } - - @Override - protected void tearDown() - throws Exception - { - pluginManager = null; - super.tearDown(); - } - - protected String getProjectsDirectory() - { - return "src/test/projects/plugin-manager"; - } - - public void testPluginLoading() - throws Exception - { - MavenSession session = createMavenSession( null ); - Plugin plugin = new Plugin(); - plugin.setGroupId( "org.apache.maven.its.plugins" ); - plugin.setArtifactId( "maven-it-plugin" ); - plugin.setVersion( "0.1" ); - PluginDescriptor pluginDescriptor = - pluginManager.loadPlugin( plugin, session.getCurrentProject().getRemotePluginRepositories(), - session.getRepositorySession() ); - assertNotNull( pluginDescriptor ); - } - - public void testMojoDescriptorRetrieval() - throws Exception - { - MavenSession session = createMavenSession( null ); - String goal = "it"; - Plugin plugin = new Plugin(); - plugin.setGroupId( "org.apache.maven.its.plugins" ); - plugin.setArtifactId( "maven-it-plugin" ); - plugin.setVersion( "0.1" ); - - MojoDescriptor mojoDescriptor = - pluginManager.getMojoDescriptor( plugin, goal, session.getCurrentProject().getRemotePluginRepositories(), - session.getRepositorySession() ); - assertNotNull( mojoDescriptor ); - assertEquals( goal, mojoDescriptor.getGoal() ); - // igorf: plugin realm comes later - // assertNotNull( mojoDescriptor.getRealm() ); - - PluginDescriptor pluginDescriptor = mojoDescriptor.getPluginDescriptor(); - assertNotNull( pluginDescriptor ); - assertEquals( "org.apache.maven.its.plugins", pluginDescriptor.getGroupId() ); - assertEquals( "maven-it-plugin", pluginDescriptor.getArtifactId() ); - assertEquals( "0.1", pluginDescriptor.getVersion() ); - } - - // ----------------------------------------------------------------------------------------------- - // Tests which exercise the lifecycle executor when it is dealing with individual goals. - // ----------------------------------------------------------------------------------------------- - - //TODO: These two tests display a lack of symmetry with respect to the input which is a free form string and the - // mojo descriptor which comes back. All the free form parsing needs to be done somewhere else, this is - // really the function of the CLI, and then the pre-processing of that output still needs to be fed into - // a hinting process which helps flesh out the full specification of the plugin. The plugin manager should - // only deal in concrete terms -- all version finding mumbo jumbo is a customization to base functionality - // the plugin manager provides. - - public void testRemoteResourcesPlugin() - throws Exception - { - //TODO: turn an equivalent back on when the RR plugin is released. - - /* - - This will not work until the RR plugin is released to get rid of the binding to the reporting exception which is a mistake. - - This happpens after removing the reporting API from the core: - - java.lang.NoClassDefFoundError: org/apache/maven/reporting/MavenReportException - - MavenSession session = createMavenSession( getProject( "project-with-inheritance" ) ); - String goal = "process"; - - Plugin plugin = new Plugin(); - plugin.setGroupId( "org.apache.maven.plugins" ); - plugin.setArtifactId( "maven-remote-resources-plugin" ); - plugin.setVersion( "1.0-beta-2" ); - - MojoDescriptor mojoDescriptor = pluginManager.getMojoDescriptor( plugin, goal, session.getCurrentProject(), session.getLocalRepository() ); - assertPluginDescriptor( mojoDescriptor, "org.apache.maven.plugins", "maven-remote-resources-plugin", "1.0-beta-2" ); - MojoExecution mojoExecution = new MojoExecution( mojoDescriptor ); - pluginManager.executeMojo( session, mojoExecution ); - */ - } - - //TODO: this will be the basis of the customizable lifecycle execution so need to figure this out quickly. - public void testSurefirePlugin() - throws Exception - { - /* - MavenSession session = createMavenSession( getProject( "project-with-inheritance" ) ); - String goal = "test"; - - Plugin plugin = new Plugin(); - plugin.setGroupId( "org.apache.maven.plugins" ); - plugin.setArtifactId( "maven-surefire-plugin" ); - plugin.setVersion( "2.4.2" ); - - // The project has already been fully interpolated so getting the raw mojoDescriptor is not going to have the processes configuration. - MojoDescriptor mojoDescriptor = pluginManager.getMojoDescriptor( plugin, goal, session.getLocalRepository(), session.getCurrentProject().getPluginArtifactRepositories() ); - assertPluginDescriptor( mojoDescriptor, "org.apache.maven.plugins", "maven-surefire-plugin", "2.4.2" ); - - System.out.println( session.getCurrentProject().getBuild().getPluginsAsMap() ); - - Xpp3Dom configuration = (Xpp3Dom) session.getCurrentProject().getBuild().getPluginsAsMap().get( plugin.getKey() ).getExecutions().get( 0 ).getConfiguration(); - MojoExecution mojoExecution = new MojoExecution( mojoDescriptor, configuration ); - pluginManager.executeMojo( session, mojoExecution ); - */ - } - - public void testMojoConfigurationIsMergedCorrectly() - throws Exception - { - } - - /** - * The case where the user wants to specify an alternate version of the underlying tool. Common case - * is in the Antlr plugin which comes bundled with a version of Antlr but the user often times needs - * to use a specific version. We need to make sure the version that they specify takes precedence. - */ - public void testMojoWhereInternallyStatedDependencyIsOverriddenByProject() - throws Exception - { - } - - /** - * The case where you have a plugin in the current build that you want to be used on projects in - * the current build. - */ - public void testMojoThatIsPresentInTheCurrentBuild() - throws Exception - { - } - - /** - * This is the case where the Mojo wants to execute on every project and then do something at the end - * with the results of each project. - */ - public void testAggregatorMojo() - throws Exception - { - } - - /** - * This is the case where a Mojo needs the lifecycle run to a certain phase before it can do - * anything useful. - */ - public void testMojoThatRequiresExecutionToAGivenPhaseBeforeExecutingItself() - throws Exception - { - } - - // test that mojo which does not require dependency resolution trigger no downloading of dependencies - - // test interpolation of basedir values in mojo configuration - - // test a build where projects use different versions of the same plugin - - public void testThatPluginDependencyThatHasSystemScopeIsResolved() - throws Exception - { - /* - File systemPath = new File( getBasedir(), "pom.xml" ); - - Plugin plugin = new PluginBuilder( "org.apache.maven", "project-test", "1.0" ) - .addDependency( "org.apache.maven", "system-dependency", "1.0", Artifact.SCOPE_SYSTEM, systemPath.getAbsolutePath() ) - .get(); - - MavenProject pluginProject = new ProjectBuilder( "org.apache.maven", "project-test", "1.0" ) - .addPlugin( plugin ) - .addDependency( "junit", "junit", "3.8.1", Artifact.SCOPE_COMPILE ) - .get(); - - // i'm making this artifact which is assumed to come from a pom in the metadata processor, then it tries to create a POM artifact - // and parse it for the dependencies and it blows up. - // - // we need to pass this through as is so it doesn't get parsed again. - Artifact pluginArtifact = new ProjectArtifact( pluginProject ); - - Set artifacts = pluginManager.getPluginArtifacts( pluginArtifact, plugin, getLocalRepository(), getPluginArtifactRepositories() ); - System.out.println( artifacts ); - */ - - MavenSession session = createMavenSession( getProject( "project-contributing-system-scope-plugin-dep" ) ); - MavenProject project = session.getCurrentProject(); - Plugin plugin = project.getPlugin( "org.apache.maven.its.plugins:maven-it-plugin" ); - - RepositoryRequest repositoryRequest = new DefaultRepositoryRequest(); - repositoryRequest.setLocalRepository( getLocalRepository() ); - repositoryRequest.setRemoteRepositories( getPluginArtifactRepositories() ); - - PluginDescriptor pluginDescriptor = - pluginManager.loadPlugin( plugin, session.getCurrentProject().getRemotePluginRepositories(), - session.getRepositorySession() ); - pluginManager.getPluginRealm( session, pluginDescriptor ); - List artifacts = pluginDescriptor.getArtifacts(); - - for ( Artifact a : artifacts ) - { - if ( a.getGroupId().equals( "org.apache.maven.its.mng3586" ) && a.getArtifactId().equals( "tools" ) ) - { - // The system scoped dependencies will be present in the classloader for the plugin - return; - } - } - - fail( "Can't find the system scoped dependency in the plugin artifacts." ); - } - - // ----------------------------------------------------------------------------------------------- - // Testing help - // ----------------------------------------------------------------------------------------------- - - protected void assertPluginDescriptor( MojoDescriptor mojoDescriptor, String groupId, String artifactId, String version ) - { - assertNotNull( mojoDescriptor ); - PluginDescriptor pd = mojoDescriptor.getPluginDescriptor(); - assertNotNull( pd ); - assertEquals( groupId, pd.getGroupId() ); - assertEquals( artifactId, pd.getArtifactId() ); - assertEquals( version, pd.getVersion() ); - } - - public void testPluginRealmCache() - throws Exception - { - RepositoryRequest repositoryRequest = new DefaultRepositoryRequest(); - repositoryRequest.setLocalRepository( getLocalRepository() ); - repositoryRequest.setRemoteRepositories( getPluginArtifactRepositories() ); - - // prime realm cache - MavenSession session = createMavenSession( getProject( "project-contributing-system-scope-plugin-dep" ) ); - MavenProject project = session.getCurrentProject(); - Plugin plugin = project.getPlugin( "org.apache.maven.its.plugins:maven-it-plugin" ); - - PluginDescriptor pluginDescriptor = - pluginManager.loadPlugin( plugin, session.getCurrentProject().getRemotePluginRepositories(), - session.getRepositorySession() ); - pluginManager.getPluginRealm( session, pluginDescriptor ); - - assertEquals( 1, pluginDescriptor.getDependencies().size() ); - - for ( ComponentDescriptor descriptor : pluginDescriptor.getComponents() ) - { - assertNotNull( descriptor.getRealm() ); - assertNotNull( descriptor.getImplementationClass() ); - } - - // reload plugin realm from cache - session = createMavenSession( getProject( "project-contributing-system-scope-plugin-dep" ) ); - project = session.getCurrentProject(); - plugin = project.getPlugin( "org.apache.maven.its.plugins:maven-it-plugin" ); - - pluginDescriptor = - pluginManager.loadPlugin( plugin, session.getCurrentProject().getRemotePluginRepositories(), - session.getRepositorySession() ); - pluginManager.getPluginRealm( session, pluginDescriptor ); - - assertEquals( 1, pluginDescriptor.getDependencies().size() ); - - for ( ComponentDescriptor descriptor : pluginDescriptor.getComponents() ) - { - assertNotNull( descriptor.getRealm() ); - assertNotNull( descriptor.getImplementationClass() ); - } - } - - public void testBuildExtensionsPluginLoading() - throws Exception - { - RepositoryRequest repositoryRequest = new DefaultRepositoryRequest(); - repositoryRequest.setLocalRepository( getLocalRepository() ); - repositoryRequest.setRemoteRepositories( getPluginArtifactRepositories() ); - - // prime realm cache - MavenSession session = createMavenSession( getProject( "project-with-build-extensions-plugin" ) ); - MavenProject project = session.getCurrentProject(); - Plugin plugin = project.getPlugin( "org.apache.maven.its.plugins:maven-it-plugin" ); - - PluginDescriptor pluginDescriptor = - pluginManager.loadPlugin( plugin, session.getCurrentProject().getRemotePluginRepositories(), - session.getRepositorySession() ); - ClassRealm pluginRealm = pluginManager.getPluginRealm( session, pluginDescriptor ); - - assertEquals(pluginRealm, pluginDescriptor.getComponents().get(0).getRealm()); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExceptionTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExceptionTest.java deleted file mode 100644 index ead7ae2e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExceptionTest.java +++ /dev/null @@ -1,164 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collections; - -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.descriptor.Parameter; -import org.apache.maven.plugin.descriptor.PluginDescriptor; - -import junit.framework.TestCase; - -/** - * MNG-3131 - * - * @author Robert Scholte - * - */ -public class PluginParameterExceptionTest - extends TestCase -{ - - public void testMissingRequiredStringArrayTypeParameter() - { - MojoDescriptor mojoDescriptor = new MojoDescriptor(); - mojoDescriptor.setGoal( "goal" ); - PluginDescriptor pluginDescriptor = new PluginDescriptor(); - pluginDescriptor.setGoalPrefix( "goalPrefix" ); - pluginDescriptor.setArtifactId( "artifactId" ); - mojoDescriptor.setPluginDescriptor( pluginDescriptor ); - - Parameter parameter = new Parameter(); - parameter.setType( "java.lang.String[]" ); - parameter.setName( "toAddresses" ); - - parameter.setRequired( true ); - - PluginParameterException exception = - new PluginParameterException( mojoDescriptor, Collections.singletonList( parameter ) ); - - assertEquals( "One or more required plugin parameters are invalid/missing for 'goalPrefix:goal'\n" + - "\n" + - "[0] Inside the definition for plugin 'artifactId', specify the following:\n" + - "\n" + - "\n" + - " ...\n" + - " \n" + - " VALUE\n" + - " \n" + - ".\n", exception.buildDiagnosticMessage() ); - } - - public void testMissingRequiredCollectionTypeParameter() - { - MojoDescriptor mojoDescriptor = new MojoDescriptor(); - mojoDescriptor.setGoal( "goal" ); - PluginDescriptor pluginDescriptor = new PluginDescriptor(); - pluginDescriptor.setGoalPrefix( "goalPrefix" ); - pluginDescriptor.setArtifactId( "artifactId" ); - mojoDescriptor.setPluginDescriptor( pluginDescriptor ); - - Parameter parameter = new Parameter(); - parameter.setType( "java.util.List" ); - parameter.setName( "toAddresses" ); - - parameter.setRequired( true ); - - PluginParameterException exception = - new PluginParameterException( mojoDescriptor, Collections.singletonList( parameter ) ); - - assertEquals( "One or more required plugin parameters are invalid/missing for 'goalPrefix:goal'\n" + - "\n" + - "[0] Inside the definition for plugin 'artifactId', specify the following:\n" + - "\n" + - "\n" + - " ...\n" + - " \n" + - " VALUE\n" + - " \n" + - ".\n", exception.buildDiagnosticMessage() ); - } - - public void testMissingRequiredMapTypeParameter() - { - MojoDescriptor mojoDescriptor = new MojoDescriptor(); - mojoDescriptor.setGoal( "goal" ); - PluginDescriptor pluginDescriptor = new PluginDescriptor(); - pluginDescriptor.setGoalPrefix( "goalPrefix" ); - pluginDescriptor.setArtifactId( "artifactId" ); - mojoDescriptor.setPluginDescriptor( pluginDescriptor ); - - Parameter parameter = new Parameter(); - parameter.setType( "java.util.Map" ); - parameter.setName( "toAddresses" ); - - parameter.setRequired( true ); - - PluginParameterException exception = - new PluginParameterException( mojoDescriptor, Collections.singletonList( parameter ) ); - - assertEquals( "One or more required plugin parameters are invalid/missing for 'goalPrefix:goal'\n" + - "\n" + - "[0] Inside the definition for plugin 'artifactId', specify the following:\n" + - "\n" + - "\n" + - " ...\n" + - " \n" + - " VALUE\n" + - " \n" + - ".\n", exception.buildDiagnosticMessage() ); - } - - public void testMissingRequiredPropertiesTypeParameter() - { - MojoDescriptor mojoDescriptor = new MojoDescriptor(); - mojoDescriptor.setGoal( "goal" ); - PluginDescriptor pluginDescriptor = new PluginDescriptor(); - pluginDescriptor.setGoalPrefix( "goalPrefix" ); - pluginDescriptor.setArtifactId( "artifactId" ); - mojoDescriptor.setPluginDescriptor( pluginDescriptor ); - - Parameter parameter = new Parameter(); - parameter.setType( "java.util.Properties" ); - parameter.setName( "toAddresses" ); - - parameter.setRequired( true ); - - PluginParameterException exception = - new PluginParameterException( mojoDescriptor, Collections.singletonList( parameter ) ); - - assertEquals( "One or more required plugin parameters are invalid/missing for 'goalPrefix:goal'\n" + - "\n" + - "[0] Inside the definition for plugin 'artifactId', specify the following:\n" + - "\n" + - "\n" + - " ...\n" + - " \n" + - " \n" + - " KEY\n" + - " VALUE\n" + - " \n" + - " \n" + - ".\n", exception.buildDiagnosticMessage() ); - } - - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java deleted file mode 100644 index 5f6744c9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java +++ /dev/null @@ -1,447 +0,0 @@ -package org.apache.maven.plugin; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Map; -import java.util.Properties; - -import org.apache.maven.AbstractCoreMavenComponentTestCase; -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.ArtifactUtils; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.execution.DefaultMavenExecutionRequest; -import org.apache.maven.execution.DefaultMavenExecutionResult; -import org.apache.maven.execution.MavenExecutionRequest; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.model.Build; -import org.apache.maven.model.Dependency; -import org.apache.maven.model.Model; -import org.apache.maven.plugin.descriptor.MojoDescriptor; -import org.apache.maven.plugin.descriptor.PluginDescriptor; -import org.apache.maven.project.DuplicateProjectException; -import org.apache.maven.project.MavenProject; -import org.apache.maven.repository.RepositorySystem; -import org.codehaus.plexus.MutablePlexusContainer; -import org.codehaus.plexus.PlexusContainer; -import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator; -import org.codehaus.plexus.util.dag.CycleDetectedException; - -/** - * @author Jason van Zyl - */ -public class PluginParameterExpressionEvaluatorTest - extends AbstractCoreMavenComponentTestCase -{ - private static final String FS = System.getProperty( "file.separator" ); - - private RepositorySystem factory; - - public void setUp() - throws Exception - { - super.setUp(); - factory = lookup( RepositorySystem.class ); - } - - @Override - protected void tearDown() - throws Exception - { - factory = null; - super.tearDown(); - } - - public void testPluginDescriptorExpressionReference() - throws Exception - { - MojoExecution exec = newMojoExecution(); - - MavenSession session = newMavenSession(); - - Object result = new PluginParameterExpressionEvaluator( session, exec ).evaluate( "${plugin}" ); - - System.out.println( "Result: " + result ); - - assertSame( "${plugin} expression does not return plugin descriptor.", - exec.getMojoDescriptor().getPluginDescriptor(), - result ); - } - - public void testPluginArtifactsExpressionReference() - throws Exception - { - MojoExecution exec = newMojoExecution(); - - Artifact depArtifact = createArtifact( "group", "artifact", "1" ); - - List deps = new ArrayList(); - deps.add( depArtifact ); - - exec.getMojoDescriptor().getPluginDescriptor().setArtifacts( deps ); - - MavenSession session = newMavenSession(); - - @SuppressWarnings( "unchecked" ) - List depResults = - (List) new PluginParameterExpressionEvaluator( session, exec ).evaluate( "${plugin.artifacts}" ); - - System.out.println( "Result: " + depResults ); - - assertNotNull( depResults ); - assertEquals( 1, depResults.size() ); - assertSame( "dependency artifact is wrong.", depArtifact, depResults.get( 0 ) ); - } - - public void testPluginArtifactMapExpressionReference() - throws Exception - { - MojoExecution exec = newMojoExecution(); - - Artifact depArtifact = createArtifact( "group", "artifact", "1" ); - - List deps = new ArrayList(); - deps.add( depArtifact ); - - exec.getMojoDescriptor().getPluginDescriptor().setArtifacts( deps ); - - MavenSession session = newMavenSession(); - - @SuppressWarnings( "unchecked" ) - Map depResults = - (Map) new PluginParameterExpressionEvaluator( session, exec ).evaluate( "${plugin.artifactMap}" ); - - System.out.println( "Result: " + depResults ); - - assertNotNull( depResults ); - assertEquals( 1, depResults.size() ); - assertSame( "dependency artifact is wrong.", - depArtifact, - depResults.get( ArtifactUtils.versionlessKey( depArtifact ) ) ); - } - - public void testPluginArtifactIdExpressionReference() - throws Exception - { - MojoExecution exec = newMojoExecution(); - - MavenSession session = newMavenSession(); - - Object result = new PluginParameterExpressionEvaluator( session, exec ).evaluate( "${plugin.artifactId}" ); - - System.out.println( "Result: " + result ); - - assertSame( "${plugin.artifactId} expression does not return plugin descriptor's artifactId.", - exec.getMojoDescriptor().getPluginDescriptor().getArtifactId(), - result ); - } - - public void testValueExtractionWithAPomValueContainingAPath() - throws Exception - { - String expected = getTestFile( "target/test-classes/target/classes" ).getCanonicalPath(); - - Build build = new Build(); - build.setDirectory( expected.substring( 0, expected.length() - "/classes".length() ) ); - - Model model = new Model(); - model.setBuild( build ); - - MavenProject project = new MavenProject( model ); - project.setFile( new File( "pom.xml" ).getCanonicalFile() ); - - ExpressionEvaluator expressionEvaluator = createExpressionEvaluator( project, null, new Properties() ); - - Object value = expressionEvaluator.evaluate( "${project.build.directory}/classes" ); - String actual = new File( value.toString() ).getCanonicalPath(); - - assertEquals( expected, actual ); - } - - public void testEscapedVariablePassthrough() - throws Exception - { - String var = "${var}"; - - Model model = new Model(); - model.setVersion( "1" ); - - MavenProject project = new MavenProject( model ); - - ExpressionEvaluator ee = createExpressionEvaluator( project, null, new Properties() ); - - Object value = ee.evaluate( "$" + var ); - - assertEquals( var, value ); - } - - public void testEscapedVariablePassthroughInLargerExpression() - throws Exception - { - String var = "${var}"; - String key = var + " with version: ${project.version}"; - - Model model = new Model(); - model.setVersion( "1" ); - - MavenProject project = new MavenProject( model ); - - ExpressionEvaluator ee = createExpressionEvaluator( project, null, new Properties() ); - - Object value = ee.evaluate( "$" + key ); - - assertEquals( "${var} with version: 1", value ); - } - - public void testMultipleSubExpressionsInLargerExpression() - throws Exception - { - String key = "${project.artifactId} with version: ${project.version}"; - - Model model = new Model(); - model.setArtifactId( "test" ); - model.setVersion( "1" ); - - MavenProject project = new MavenProject( model ); - - ExpressionEvaluator ee = createExpressionEvaluator( project, null, new Properties() ); - - Object value = ee.evaluate( key ); - - assertEquals( "test with version: 1", value ); - } - - public void testMissingPOMPropertyRefInLargerExpression() - throws Exception - { - String expr = "/path/to/someproject-${baseVersion}"; - - MavenProject project = new MavenProject( new Model() ); - - ExpressionEvaluator ee = createExpressionEvaluator( project, null, new Properties() ); - - Object value = ee.evaluate( expr ); - - assertEquals( expr, value ); - } - - public void testPOMPropertyExtractionWithMissingProject_WithDotNotation() - throws Exception - { - String key = "m2.name"; - String checkValue = "value"; - - Properties properties = new Properties(); - properties.setProperty( key, checkValue ); - - Model model = new Model(); - model.setProperties( properties ); - - MavenProject project = new MavenProject( model ); - - ExpressionEvaluator ee = createExpressionEvaluator( project, null, new Properties() ); - - Object value = ee.evaluate( "${" + key + "}" ); - - assertEquals( checkValue, value ); - } - - public void testBasedirExtractionWithMissingProject() - throws Exception - { - ExpressionEvaluator ee = createExpressionEvaluator( null, null, new Properties() ); - - Object value = ee.evaluate( "${basedir}" ); - - assertEquals( System.getProperty( "user.dir" ), value ); - } - - public void testValueExtractionFromSystemPropertiesWithMissingProject() - throws Exception - { - String sysprop = "PPEET_sysprop1"; - - Properties executionProperties = new Properties(); - - if ( executionProperties.getProperty( sysprop ) == null ) - { - executionProperties.setProperty( sysprop, "value" ); - } - - ExpressionEvaluator ee = createExpressionEvaluator( null, null, executionProperties ); - - Object value = ee.evaluate( "${" + sysprop + "}" ); - - assertEquals( "value", value ); - } - - public void testValueExtractionFromSystemPropertiesWithMissingProject_WithDotNotation() - throws Exception - { - String sysprop = "PPEET.sysprop2"; - - Properties executionProperties = new Properties(); - - if ( executionProperties.getProperty( sysprop ) == null ) - { - executionProperties.setProperty( sysprop, "value" ); - } - - ExpressionEvaluator ee = createExpressionEvaluator( null, null, executionProperties ); - - Object value = ee.evaluate( "${" + sysprop + "}" ); - - assertEquals( "value", value ); - } - - @SuppressWarnings( "deprecation" ) - private static MavenSession createSession( PlexusContainer container, ArtifactRepository repo, Properties properties ) - throws CycleDetectedException, DuplicateProjectException - { - MavenExecutionRequest request = new DefaultMavenExecutionRequest() - .setSystemProperties( properties ) - .setGoals( Collections.emptyList() ) - .setBaseDirectory( new File( "" ) ) - .setLocalRepository( repo ); - - return new MavenSession( container, request, new DefaultMavenExecutionResult(), Collections.emptyList() ); - } - - public void testLocalRepositoryExtraction() - throws Exception - { - ExpressionEvaluator expressionEvaluator = - createExpressionEvaluator( createDefaultProject(), null, new Properties() ); - Object value = expressionEvaluator.evaluate( "${localRepository}" ); - - assertEquals( "local", ( (ArtifactRepository) value ).getId() ); - } - - public void testTwoExpressions() - throws Exception - { - Build build = new Build(); - build.setDirectory( "expected-directory" ); - build.setFinalName( "expected-finalName" ); - - Model model = new Model(); - model.setBuild( build ); - - ExpressionEvaluator expressionEvaluator = - createExpressionEvaluator( new MavenProject( model ), null, new Properties() ); - - Object value = expressionEvaluator.evaluate( "${project.build.directory}" + FS + "${project.build.finalName}" ); - - assertEquals( "expected-directory" + File.separatorChar + "expected-finalName", value ); - } - - public void testShouldExtractPluginArtifacts() - throws Exception - { - PluginDescriptor pd = new PluginDescriptor(); - - Artifact artifact = createArtifact( "testGroup", "testArtifact", "1.0" ); - - pd.setArtifacts( Collections.singletonList( artifact ) ); - - ExpressionEvaluator ee = createExpressionEvaluator( createDefaultProject(), pd, new Properties() ); - - Object value = ee.evaluate( "${plugin.artifacts}" ); - - assertTrue( value instanceof List ); - - @SuppressWarnings( "unchecked" ) - List artifacts = (List) value; - - assertEquals( 1, artifacts.size() ); - - Artifact result = artifacts.get( 0 ); - - assertEquals( "testGroup", result.getGroupId() ); - } - - private MavenProject createDefaultProject() - { - return new MavenProject( new Model() ); - } - - private ExpressionEvaluator createExpressionEvaluator( MavenProject project, PluginDescriptor pluginDescriptor, Properties executionProperties ) - throws Exception - { - ArtifactRepository repo = factory.createDefaultLocalRepository(); - - MutablePlexusContainer container = (MutablePlexusContainer) getContainer(); - MavenSession session = createSession( container, repo, executionProperties ); - session.setCurrentProject( project ); - - MojoDescriptor mojo = new MojoDescriptor(); - mojo.setPluginDescriptor( pluginDescriptor ); - mojo.setGoal( "goal" ); - - MojoExecution mojoExecution = new MojoExecution( mojo ); - - return new PluginParameterExpressionEvaluator( session, mojoExecution ); - } - - protected Artifact createArtifact( String groupId, String artifactId, String version ) - throws Exception - { - Dependency dependency = new Dependency(); - dependency.setGroupId( groupId ); - dependency.setArtifactId( artifactId ); - dependency.setVersion( version ); - dependency.setType( "jar" ); - dependency.setScope( "compile" ); - - return factory.createDependencyArtifact( dependency ); - } - - private MojoExecution newMojoExecution() - { - PluginDescriptor pd = new PluginDescriptor(); - pd.setArtifactId( "my-plugin" ); - pd.setGroupId( "org.myco.plugins" ); - pd.setVersion( "1" ); - - MojoDescriptor md = new MojoDescriptor(); - md.setPluginDescriptor( pd ); - - pd.addComponentDescriptor( md ); - - return new MojoExecution( md ); - } - - private MavenSession newMavenSession() - throws Exception - { - return createMavenSession( null ); - } - - @Override - protected String getProjectsDirectory() - { - // TODO Auto-generated method stub - return null; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/plugin/internal/DefaultLegacySupportTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/plugin/internal/DefaultLegacySupportTest.java deleted file mode 100644 index d350770c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/plugin/internal/DefaultLegacySupportTest.java +++ /dev/null @@ -1,74 +0,0 @@ -package org.apache.maven.plugin.internal; -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import junit.framework.TestCase; -import org.apache.maven.execution.DefaultMavenExecutionRequest; -import org.apache.maven.execution.MavenExecutionRequest; -import org.apache.maven.execution.MavenSession; - -import java.util.concurrent.CountDownLatch; - -/** - * @author Kristian Rosenvold - */ -public class DefaultLegacySupportTest extends TestCase { - final CountDownLatch latch = new CountDownLatch(1); - final DefaultLegacySupport defaultLegacySupport = new DefaultLegacySupport(); - - public void testSetSession() throws Exception { - - MavenExecutionRequest mavenExecutionRequest = new DefaultMavenExecutionRequest(); - MavenSession m1 = new MavenSession(null, null, mavenExecutionRequest, null); - defaultLegacySupport.setSession(m1); - - MyRunnable myRunnable = new MyRunnable(); - Thread thread = new Thread(myRunnable); - thread.start(); - - MavenSession m2 = new MavenSession(null, null, mavenExecutionRequest, null); - defaultLegacySupport.setSession(m2); - latch.countDown(); - thread.join(); - assertNull( myRunnable.getSession()); - } - - - class MyRunnable implements Runnable { - - private volatile MavenSession session; - - public void run() { - try - { - latch.await(); - } - catch (InterruptedException ingore) - { - // Test may fail if we get interrupted - } - session = defaultLegacySupport.getSession(); - } - - public MavenSession getSession() { - return session; - } - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java deleted file mode 100644 index 73bdbcae..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java +++ /dev/null @@ -1,189 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -import java.io.File; -import java.io.FileNotFoundException; -import java.net.URI; -import java.net.URISyntaxException; -import java.net.URL; -import java.util.Arrays; - -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout; -import org.apache.maven.model.building.ModelBuildingException; -import org.apache.maven.model.building.ModelProblem; -import org.apache.maven.repository.RepositorySystem; -import org.apache.maven.repository.internal.MavenRepositorySystemUtils; -import org.codehaus.plexus.ContainerConfiguration; -import org.codehaus.plexus.PlexusConstants; -import org.codehaus.plexus.PlexusTestCase; -import org.eclipse.aether.DefaultRepositorySystemSession; - -/** - * @author Jason van Zyl - */ -public abstract class AbstractMavenProjectTestCase - extends PlexusTestCase -{ - protected ProjectBuilder projectBuilder; - - protected RepositorySystem repositorySystem; - - @Override - protected void customizeContainerConfiguration( ContainerConfiguration containerConfiguration ) - { - super.customizeContainerConfiguration( containerConfiguration ); - containerConfiguration.setAutoWiring( true ); - containerConfiguration.setClassPathScanning( PlexusConstants.SCANNING_INDEX ); - } - - protected void setUp() - throws Exception - { - super.setUp(); - - if ( getContainer().hasComponent( ProjectBuilder.class, "test" ) ) - { - projectBuilder = lookup( ProjectBuilder.class, "test" ); - } - else - { - // default over to the main project builder... - projectBuilder = lookup( ProjectBuilder.class ); - } - - repositorySystem = lookup( RepositorySystem.class ); - } - - @Override - protected void tearDown() - throws Exception - { - projectBuilder = null; - - super.tearDown(); - } - - protected ProjectBuilder getProjectBuilder() - { - return projectBuilder; - } - - @Override - protected String getCustomConfigurationName() - { - String name = AbstractMavenProjectTestCase.class.getName().replace( '.', '/' ) + ".xml"; - System.out.println( name ); - return name; - } - - // ---------------------------------------------------------------------- - // Local repository - // ---------------------------------------------------------------------- - - protected File getLocalRepositoryPath() - throws FileNotFoundException, URISyntaxException - { - File markerFile = getFileForClasspathResource( "local-repo/marker.txt" ); - - return markerFile.getAbsoluteFile().getParentFile(); - } - - protected static File getFileForClasspathResource( String resource ) - throws FileNotFoundException - { - ClassLoader cloader = Thread.currentThread().getContextClassLoader(); - - URL resourceUrl = cloader.getResource( resource ); - - if ( resourceUrl == null ) - { - throw new FileNotFoundException( "Unable to find: " + resource ); - } - - return new File( URI.create( resourceUrl.toString().replaceAll( " ", "%20" ) ) ); - } - - protected ArtifactRepository getLocalRepository() - throws Exception - { - ArtifactRepositoryLayout repoLayout = lookup( ArtifactRepositoryLayout.class, "legacy" ); - - ArtifactRepository r = repositorySystem.createArtifactRepository( "local", "file://" + getLocalRepositoryPath().getAbsolutePath(), repoLayout, null, null ); - - return r; - } - - // ---------------------------------------------------------------------- - // Project building - // ---------------------------------------------------------------------- - - protected MavenProject getProjectWithDependencies( File pom ) - throws Exception - { - ProjectBuildingRequest configuration = newBuildingRequest(); - configuration.setRemoteRepositories( Arrays.asList( new ArtifactRepository[] {} ) ); - configuration.setProcessPlugins( false ); - configuration.setResolveDependencies( true ); - - try - { - return projectBuilder.build( pom, configuration ).getProject(); - } - catch ( Exception e ) - { - Throwable cause = e.getCause(); - if ( cause instanceof ModelBuildingException ) - { - String message = "In: " + pom + "\n\n"; - for ( ModelProblem problem : ( (ModelBuildingException) cause ).getProblems() ) - { - message += problem + "\n"; - } - System.out.println( message ); - } - - throw e; - } - } - - protected MavenProject getProject( File pom ) - throws Exception - { - ProjectBuildingRequest configuration = newBuildingRequest(); - - return projectBuilder.build( pom, configuration ).getProject(); - } - - protected ProjectBuildingRequest newBuildingRequest() - throws Exception - { - ProjectBuildingRequest configuration = new DefaultProjectBuildingRequest(); - configuration.setLocalRepository( getLocalRepository() ); - initRepoSession( configuration ); - return configuration; - } - - protected void initRepoSession( ProjectBuildingRequest request ) - { - File localRepo = new File( request.getLocalRepository().getBasedir() ); - DefaultRepositorySystemSession repoSession = MavenRepositorySystemUtils.newSession(); - repoSession.setLocalRepositoryManager( new LegacyLocalRepositoryManager( localRepo ) ); - request.setRepositorySession( repoSession ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java deleted file mode 100644 index 13c32abb..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java +++ /dev/null @@ -1,193 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout; -import org.codehaus.plexus.util.FileUtils; - -public class DefaultMavenProjectBuilderTest - extends AbstractMavenProjectTestCase -{ - - private List filesToDelete = new ArrayList(); - - private File localRepoDir; - - @Override - public void setUp() - throws Exception - { - super.setUp(); - - projectBuilder = lookup( ProjectBuilder.class ); - - localRepoDir = new File( System.getProperty( "java.io.tmpdir" ), "local-repo." + System.currentTimeMillis() ); - localRepoDir.mkdirs(); - - filesToDelete.add( localRepoDir ); - } - - @Override - public void tearDown() - throws Exception - { - super.tearDown(); - - if ( !filesToDelete.isEmpty() ) - { - for ( File file : filesToDelete ) - { - if ( file.exists() ) - { - if ( file.isDirectory() ) - { - FileUtils.deleteDirectory( file ); - } - else - { - file.delete(); - } - } - } - } - } - - protected MavenProject getProject( Artifact pom, boolean allowStub ) - throws Exception - { - ProjectBuildingRequest configuration = new DefaultProjectBuildingRequest(); - configuration.setLocalRepository( getLocalRepository() ); - initRepoSession( configuration ); - - return projectBuilder.build( pom, allowStub, configuration ).getProject(); - } - - /** - * Check that we can build ok from the middle pom of a (parent,child,grandchild) heirarchy - * @throws Exception - */ - public void testBuildFromMiddlePom() throws Exception - { - File f1 = getTestFile( "src/test/resources/projects/grandchild-check/child/pom.xml"); - File f2 = getTestFile( "src/test/resources/projects/grandchild-check/child/grandchild/pom.xml"); - - getProject( f1 ); - - // it's the building of the grandchild project, having already cached the child project - // (but not the parent project), which causes the problem. - getProject( f2 ); - } - - public void testDuplicatePluginDefinitionsMerged() - throws Exception - { - File f1 = getTestFile( "src/test/resources/projects/duplicate-plugins-merged-pom.xml" ); - - MavenProject project = getProject( f1 ); - assertEquals( 2, project.getBuildPlugins().get( 0 ).getDependencies().size() ); - assertEquals( 2, project.getBuildPlugins().get( 0 ).getExecutions().size() ); - assertEquals( "first", project.getBuildPlugins().get( 0 ).getExecutions().get( 0 ).getId() ); - } - - public void testBuildStubModelForMissingRemotePom() - throws Exception - { - Artifact pom = repositorySystem.createProjectArtifact( "org.apache.maven.its", "missing", "0.1" ); - MavenProject project = getProject( pom, true ); - - assertNotNull( project.getArtifactId() ); - - assertNotNull( project.getRemoteArtifactRepositories() ); - assertFalse( project.getRemoteArtifactRepositories().isEmpty() ); - - assertNotNull( project.getPluginArtifactRepositories() ); - assertFalse( project.getPluginArtifactRepositories().isEmpty() ); - - assertNull( project.getParent() ); - assertNull( project.getParentArtifact() ); - - assertFalse( project.isExecutionRoot() ); - } - - @Override - protected ArtifactRepository getLocalRepository() - throws Exception - { - ArtifactRepositoryLayout repoLayout = lookup( ArtifactRepositoryLayout.class, "default" ); - ArtifactRepository r = - repositorySystem.createArtifactRepository( "local", "file://" + localRepoDir.getAbsolutePath(), repoLayout, - null, null ); - return r; - } - - public void xtestLoop() - throws Exception - { - while ( true ) - { - File f1 = getTestFile( "src/test/resources/projects/duplicate-plugins-merged-pom.xml" ); - getProject( f1 ); - } - } - - public void testPartialResultUponBadDependencyDeclaration() - throws Exception - { - File pomFile = getTestFile( "src/test/resources/projects/bad-dependency.xml" ); - - try - { - ProjectBuildingRequest request = newBuildingRequest(); - request.setProcessPlugins( false ); - request.setResolveDependencies( true ); - projectBuilder.build( pomFile, request ); - fail( "Project building did not fail despite invalid POM" ); - } - catch ( ProjectBuildingException e ) - { - List results = e.getResults(); - assertNotNull( results ); - assertEquals( 1, results.size() ); - ProjectBuildingResult result = results.get( 0 ); - assertNotNull( result ); - assertNotNull( result.getProject() ); - assertEquals( 1, result.getProblems().size() ); - assertEquals( 1, result.getProject().getArtifacts().size() ); - assertNotNull( result.getDependencyResolutionResult() ); - } - } - - public void testImportScopePomResolvesFromPropertyBasedRepository() - throws Exception - { - File pomFile = getTestFile( "src/test/resources/projects/import-scope-pom-resolves-from-property-based-repository.xml" ); - ProjectBuildingRequest request = newBuildingRequest(); - request.setProcessPlugins( false ); - request.setResolveDependencies( true ); - projectBuilder.build( pomFile, request ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/EmptyLifecycleExecutor.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/EmptyLifecycleExecutor.java deleted file mode 100644 index 8ff912fb..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/EmptyLifecycleExecutor.java +++ /dev/null @@ -1,109 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Collections; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Set; - -import org.apache.maven.execution.MavenSession; -import org.apache.maven.lifecycle.LifecycleExecutor; -import org.apache.maven.lifecycle.MavenExecutionPlan; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.PluginExecution; -import org.apache.maven.plugin.MojoExecution; - -/** - * A stub implementation that assumes an empty lifecycle to bypass interaction with the plugin manager and to avoid - * plugin artifact resolution from repositories. - * - * @author Benjamin Bentmann - */ -public class EmptyLifecycleExecutor - implements LifecycleExecutor -{ - - public MavenExecutionPlan calculateExecutionPlan( MavenSession session, String... tasks ) - { - return new MavenExecutionPlan( null, null ); - } - - public MavenExecutionPlan calculateExecutionPlan( MavenSession session, boolean setup, String... tasks ) - { - return new MavenExecutionPlan( null, null ); - } - - public void execute( MavenSession session ) - { - } - - public Set getPluginsBoundByDefaultToAllLifecycles( String packaging ) - { - Set plugins; - - // NOTE: The upper-case packaging name is intentional, that's a special hinting mode used for certain tests - if ( "JAR".equals( packaging ) ) - { - plugins = new LinkedHashSet(); - - plugins.add( newPlugin( "maven-compiler-plugin", "compile", "testCompile" ) ); - plugins.add( newPlugin( "maven-resources-plugin", "resources", "testResources" ) ); - plugins.add( newPlugin( "maven-surefire-plugin", "test" ) ); - plugins.add( newPlugin( "maven-jar-plugin", "jar" ) ); - plugins.add( newPlugin( "maven-install-plugin", "install" ) ); - plugins.add( newPlugin( "maven-deploy-plugin", "deploy" ) ); - } - else - { - plugins = Collections.emptySet(); - } - - return plugins; - } - - private Plugin newPlugin( String artifactId, String... goals ) - { - Plugin plugin = new Plugin(); - - plugin.setGroupId( "org.apache.maven.plugins" ); - plugin.setArtifactId( artifactId ); - - for ( String goal : goals ) - { - PluginExecution pluginExecution = new PluginExecution(); - pluginExecution.setId( "default-" + goal ); - pluginExecution.addGoal( goal ); - plugin.addExecution( pluginExecution ); - } - - return plugin; - } - - public void calculateForkedExecutions( MojoExecution mojoExecution, MavenSession session ) - { - } - - public List executeForkedExecutions( MojoExecution mojoExecution, MavenSession session ) - { - return Collections.emptyList(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/EmptyProjectBuildingHelper.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/EmptyProjectBuildingHelper.java deleted file mode 100644 index 21e37f1f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/EmptyProjectBuildingHelper.java +++ /dev/null @@ -1,62 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.List; - -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.model.Model; -import org.apache.maven.model.Repository; - -/** - * A stub implementation to bypass artifact resolution from repositories. - * - * @author Benjamin Bentmann - */ -public class EmptyProjectBuildingHelper - implements ProjectBuildingHelper -{ - - public List createArtifactRepositories( List pomRepositories, - List externalRepositories, - ProjectBuildingRequest request ) - { - if ( externalRepositories != null ) - { - return externalRepositories; - } - else - { - return new ArrayList(); - } - } - - public ProjectRealmCache.CacheRecord createProjectRealm( MavenProject proejct, - Model model, ProjectBuildingRequest request ) - { - return new ProjectRealmCache.CacheRecord( null, null ); - } - - public void selectProjectRealm( MavenProject project ) - { - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/ExtensionDescriptorBuilderTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/ExtensionDescriptorBuilderTest.java deleted file mode 100644 index 68727013..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/ExtensionDescriptorBuilderTest.java +++ /dev/null @@ -1,101 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.ByteArrayInputStream; -import java.io.InputStream; -import java.io.UnsupportedEncodingException; -import java.util.Arrays; - -import junit.framework.TestCase; - -/** - * Tests {@link ExtensionDescriptorBuilder}. - * - * @author Benjamin Bentmann - */ -public class ExtensionDescriptorBuilderTest - extends TestCase -{ - - private ExtensionDescriptorBuilder builder; - - @Override - protected void setUp() - throws Exception - { - super.setUp(); - - builder = new ExtensionDescriptorBuilder(); - } - - @Override - protected void tearDown() - throws Exception - { - builder = null; - - super.tearDown(); - } - - private InputStream toStream( String xml ) - { - try - { - return new ByteArrayInputStream( xml.getBytes( "UTF-8" ) ); - } - catch ( UnsupportedEncodingException e ) - { - throw new IllegalStateException( e ); - } - } - - public void testEmptyDescriptor() - throws Exception - { - String xml = ""; - - ExtensionDescriptor ed = builder.build( toStream( xml ) ); - - assertNotNull( ed ); - assertNotNull( ed.getExportedPackages() ); - assertTrue( ed.getExportedPackages().isEmpty() ); - assertNotNull( ed.getExportedArtifacts() ); - assertTrue( ed.getExportedArtifacts().isEmpty() ); - } - - public void testCompleteDescriptor() - throws Exception - { - String xml = - "" + "" + "" - + "a" + "b" - + "c" + "" + "" - + "x" + "y" - + " z " + "" + ""; - - ExtensionDescriptor ed = builder.build( toStream( xml ) ); - - assertNotNull( ed ); - assertEquals( Arrays.asList( "a", "b", "c" ), ed.getExportedPackages() ); - assertEquals( Arrays.asList( "x", "y", "z" ), ed.getExportedArtifacts() ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java deleted file mode 100644 index 52fdd804..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java +++ /dev/null @@ -1,192 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; - -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.artifact.Artifact; -import org.eclipse.aether.metadata.Metadata; -import org.eclipse.aether.repository.LocalArtifactRegistration; -import org.eclipse.aether.repository.LocalArtifactRequest; -import org.eclipse.aether.repository.LocalArtifactResult; -import org.eclipse.aether.repository.LocalMetadataRegistration; -import org.eclipse.aether.repository.LocalMetadataRequest; -import org.eclipse.aether.repository.LocalMetadataResult; -import org.eclipse.aether.repository.LocalRepository; -import org.eclipse.aether.repository.LocalRepositoryManager; -import org.eclipse.aether.repository.RemoteRepository; - -/** - * @author Benjamin Bentmann - */ -public class LegacyLocalRepositoryManager - implements LocalRepositoryManager -{ - - private final LocalRepository repository; - - public LegacyLocalRepositoryManager( File basedir ) - { - this.repository = new LocalRepository( basedir.getAbsoluteFile(), "legacy" ); - } - - public LocalRepository getRepository() - { - return repository; - } - - public String getPathForLocalArtifact( Artifact artifact ) - { - StringBuilder path = new StringBuilder( 128 ); - - path.append( artifact.getGroupId() ).append( '/' ); - - path.append( artifact.getExtension() ).append( 's' ).append( '/' ); - - path.append( artifact.getArtifactId() ).append( '-' ).append( artifact.getVersion() ); - - if ( artifact.getClassifier().length() > 0 ) - { - path.append( '-' ).append( artifact.getClassifier() ); - } - - path.append( '.' ).append( artifact.getExtension() ); - - return path.toString(); - } - - public String getPathForRemoteArtifact( Artifact artifact, RemoteRepository repository, String context ) - { - return getPathForLocalArtifact( artifact ); - } - - public String getPathForLocalMetadata( Metadata metadata ) - { - return getPath( metadata, "local" ); - } - - public String getPathForRemoteMetadata( Metadata metadata, RemoteRepository repository, String context ) - { - return getPath( metadata, getRepositoryKey( repository, context ) ); - } - - String getRepositoryKey( RemoteRepository repository, String context ) - { - return repository.getId(); - } - - private String getPath( Metadata metadata, String repositoryKey ) - { - StringBuilder path = new StringBuilder( 128 ); - - if ( metadata.getGroupId().length() > 0 ) - { - path.append( metadata.getGroupId().replace( '.', '/' ) ).append( '/' ); - - if ( metadata.getArtifactId().length() > 0 ) - { - path.append( metadata.getArtifactId() ).append( '/' ); - - if ( metadata.getVersion().length() > 0 ) - { - path.append( metadata.getVersion() ).append( '/' ); - } - } - } - - path.append( insertRepositoryKey( metadata.getType(), repositoryKey ) ); - - return path.toString(); - } - - private String insertRepositoryKey( String filename, String repositoryKey ) - { - String result; - int idx = filename.indexOf( '.' ); - if ( idx < 0 ) - { - result = filename + '-' + repositoryKey; - } - else - { - result = filename.substring( 0, idx ) + '-' + repositoryKey + filename.substring( idx ); - } - return result; - } - - public LocalArtifactResult find( RepositorySystemSession session, LocalArtifactRequest request ) - { - String path = getPathForLocalArtifact( request.getArtifact() ); - File file = new File( getRepository().getBasedir(), path ); - - LocalArtifactResult result = new LocalArtifactResult( request ); - if ( file.isFile() ) - { - result.setFile( file ); - result.setAvailable( true ); - } - - return result; - } - - public void add( RepositorySystemSession session, LocalArtifactRegistration request ) - { - // noop - } - - public LocalMetadataResult find( RepositorySystemSession session, LocalMetadataRequest request ) - { - LocalMetadataResult result = new LocalMetadataResult( request ); - - String path; - - Metadata metadata = request.getMetadata(); - String context = request.getContext(); - RemoteRepository remote = request.getRepository(); - - if ( remote != null ) - { - path = getPathForRemoteMetadata( metadata, remote, context ); - } - else - { - path = getPathForLocalMetadata( metadata ); - } - - File file = new File( getRepository().getBasedir(), path ); - if ( file.isFile() ) - { - result.setFile( file ); - } - - return result; - } - - public void add( RepositorySystemSession session, LocalMetadataRegistration request ) - { - // noop - } - - public String toString() - { - return String.valueOf( getRepository() ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/MavenProjectTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/MavenProjectTest.java deleted file mode 100644 index 0c5cd07d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/MavenProjectTest.java +++ /dev/null @@ -1,197 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.IOException; -import java.util.List; -import java.util.Map; -import java.util.concurrent.atomic.AtomicInteger; - -import org.apache.maven.lifecycle.internal.stub.LoggerStub; -import org.apache.maven.model.DependencyManagement; -import org.apache.maven.model.Model; -import org.apache.maven.model.Parent; -import org.apache.maven.model.Profile; - -public class MavenProjectTest - extends AbstractMavenProjectTestCase -{ - - public void testShouldInterpretChildPathAdjustmentBasedOnModulePaths() - throws IOException - { - Model parentModel = new Model(); - parentModel.addModule( "../child" ); - - MavenProject parentProject = new MavenProject( parentModel ); - - Model childModel = new Model(); - childModel.setArtifactId( "artifact" ); - - MavenProject childProject = new MavenProject( childModel ); - - File childFile = - new File( System.getProperty( "java.io.tmpdir" ), "maven-project-tests" + System.currentTimeMillis() - + "/child/pom.xml" ); - - childProject.setFile( childFile ); - - String adjustment = parentProject.getModulePathAdjustment( childProject ); - - assertNotNull( adjustment ); - - assertEquals( "..", adjustment ); - } - - public void testIdentityProtoInheritance() - { - Parent parent = new Parent(); - - parent.setGroupId( "test-group" ); - parent.setVersion( "1000" ); - parent.setArtifactId( "test-artifact" ); - - Model model = new Model(); - - model.setParent( parent ); - model.setArtifactId( "real-artifact" ); - - MavenProject project = new MavenProject( model ); - - assertEquals( "groupId proto-inheritance failed.", "test-group", project.getGroupId() ); - assertEquals( "artifactId is masked.", "real-artifact", project.getArtifactId() ); - assertEquals( "version proto-inheritance failed.", "1000", project.getVersion() ); - - // draw the NPE. - project.getId(); - } - - public void testEmptyConstructor() - { - MavenProject project = new MavenProject(); - - assertEquals( MavenProject.EMPTY_PROJECT_GROUP_ID + ":" + MavenProject.EMPTY_PROJECT_ARTIFACT_ID + ":jar:" - + MavenProject.EMPTY_PROJECT_VERSION, project.getId() ); - } - - public void testClone() - throws Exception - { - File f = getFileForClasspathResource( "canonical-pom.xml" ); - MavenProject projectToClone = getProject( f ); - - MavenProject clonedProject = projectToClone.clone(); - assertEquals( "maven-core", clonedProject.getArtifactId() ); - Map clonedMap = clonedProject.getManagedVersionMap(); - assertNotNull( "ManagedVersionMap not copied", clonedMap ); - assertTrue( "ManagedVersionMap is not empty", clonedMap.isEmpty() ); - } - - public void testCloneWithDependencyManagement() - throws Exception - { - File f = getFileForClasspathResource( "dependencyManagement-pom.xml" ); - MavenProject projectToClone = getProjectWithDependencies( f ); - DependencyManagement dep = projectToClone.getDependencyManagement(); - assertNotNull( "No dependencyManagement", dep ); - List list = dep.getDependencies(); - assertNotNull( "No dependencies", list ); - assertTrue( "Empty dependency list", !list.isEmpty() ); - - Map map = projectToClone.getManagedVersionMap(); - assertNotNull( "No ManagedVersionMap", map ); - assertTrue( "ManagedVersionMap is empty", !map.isEmpty() ); - - MavenProject clonedProject = projectToClone.clone(); - assertEquals( "maven-core", clonedProject.getArtifactId() ); - Map clonedMap = clonedProject.getManagedVersionMap(); - assertNotNull( "ManagedVersionMap not copied", clonedMap ); - assertTrue( "ManagedVersionMap is empty", !clonedMap.isEmpty() ); - assertTrue( "ManagedVersionMap does not contain test key", - clonedMap.containsKey( "maven-test:maven-test-b:jar" ) ); - } - - public void testGetModulePathAdjustment() - throws IOException - { - Model moduleModel = new Model(); - - MavenProject module = new MavenProject( moduleModel ); - module.setFile( new File( "module-dir/pom.xml" ) ); - - Model parentModel = new Model(); - parentModel.addModule( "../module-dir" ); - - MavenProject parent = new MavenProject( parentModel ); - parent.setFile( new File( "parent-dir/pom.xml" ) ); - - String pathAdjustment = parent.getModulePathAdjustment( module ); - - assertEquals( "..", pathAdjustment ); - } - - public void testCloneWithDistributionManagement() - throws Exception - { - - File f = getFileForClasspathResource( "distributionManagement-pom.xml" ); - MavenProject projectToClone = getProject( f ); - - MavenProject clonedProject = projectToClone.clone(); - assertNotNull( "clonedProject - distributionManagement", clonedProject.getDistributionManagementArtifactRepository() ); - } - - public void testCloneWithActiveProfile() - throws Exception - { - - File f = getFileForClasspathResource( "withActiveByDefaultProfile-pom.xml" ); - MavenProject projectToClone = getProject( f ); - List activeProfilesOrig = projectToClone.getActiveProfiles(); - - assertEquals( "Expecting 1 active profile", 1, activeProfilesOrig.size() ); - - MavenProject clonedProject = projectToClone.clone(); - - List activeProfilesClone = clonedProject.getActiveProfiles(); - - assertEquals( "Expecting 1 active profile", 1, activeProfilesClone.size() ); - - assertNotSame( "The list of active profiles should have been cloned too but is same", activeProfilesOrig, - activeProfilesClone ); - } - - public void testUndefinedOutputDirectory() - throws Exception - { - MavenProject p = new MavenProject(); - assertNoNulls( p.getCompileClasspathElements() ); - assertNoNulls( p.getSystemClasspathElements() ); - assertNoNulls( p.getRuntimeClasspathElements() ); - assertNoNulls( p.getTestClasspathElements() ); - } - - private void assertNoNulls( List elements ) - { - assertFalse( elements.contains( null ) ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java deleted file mode 100644 index f17539b1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java +++ /dev/null @@ -1,1878 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.Properties; - -import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.PluginExecution; -import org.apache.maven.model.building.ModelBuildingRequest; -import org.apache.maven.project.harness.PomTestWrapper; -import org.apache.maven.repository.RepositorySystem; -import org.apache.maven.repository.internal.MavenRepositorySystemUtils; -import org.codehaus.plexus.ContainerConfiguration; -import org.codehaus.plexus.PlexusConstants; -import org.codehaus.plexus.PlexusTestCase; -import org.eclipse.aether.DefaultRepositorySystemSession; -import org.eclipse.aether.internal.impl.SimpleLocalRepositoryManagerFactory; -import org.eclipse.aether.repository.LocalRepository; - -public class PomConstructionTest - extends PlexusTestCase -{ - private static String BASE_DIR = "src/test"; - - private static String BASE_POM_DIR = BASE_DIR + "/resources-project-builder"; - - private static String BASE_MIXIN_DIR = BASE_DIR + "/resources-mixins"; - - private DefaultProjectBuilder projectBuilder; - - private RepositorySystem repositorySystem; - - private File testDirectory; - - @Override - protected void customizeContainerConfiguration( ContainerConfiguration containerConfiguration ) - { - super.customizeContainerConfiguration( containerConfiguration ); - containerConfiguration.setAutoWiring( true ); - containerConfiguration.setClassPathScanning( PlexusConstants.SCANNING_INDEX ); - } - - protected void setUp() - throws Exception - { - testDirectory = new File( getBasedir(), BASE_POM_DIR ); - new File( getBasedir(), BASE_MIXIN_DIR ); - projectBuilder = (DefaultProjectBuilder) lookup( ProjectBuilder.class ); - repositorySystem = lookup( RepositorySystem.class ); - } - - @Override - protected void tearDown() - throws Exception - { - projectBuilder = null; - - super.tearDown(); - } - - /** - * Will throw exception if url is empty. MNG-4050 - * - * @throws Exception - */ - - public void testEmptyUrl() - throws Exception - { - buildPom( "empty-distMng-repo-url" ); - } - - /** - * Tests that modules is not overriden by profile - * - * @throws Exception - */ - /* MNG-786*/ - public void testProfileModules() - throws Exception - { - PomTestWrapper pom = buildPom( "profile-module", "a" ); - assertEquals( "test-prop", pom.getValue( "properties[1]/b" ) );// verifies profile applied - assertEquals( 4, ( (List) pom.getValue( "modules" ) ).size() ); - assertEquals( "module-2", pom.getValue( "modules[1]" ) ); - assertEquals( "module-1", pom.getValue( "modules[2]" ) ); - assertEquals( "module-3", pom.getValue( "modules[3]" ) ); - assertEquals( "module-4", pom.getValue( "modules[4]" ) ); - } - - /** - * Will throw exception if doesn't find parent(s) in build - * - * @throws Exception - */ - public void testParentInheritance() - throws Exception - { - buildPom( "parent-inheritance/sub" ); - } - - /*MNG-3995*/ - public void testExecutionConfigurationJoin() - throws Exception - { - PomTestWrapper pom = buildPom( "execution-configuration-join" ); - assertEquals( 2, ( (List) pom.getValue( "build/plugins[1]/executions[1]/configuration[1]/fileset[1]" ) ).size() ); - } - - /*MNG-3803*/ - public void testPluginConfigProperties() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-config-properties" ); - assertEquals( "my.property", pom.getValue( "build/plugins[1]/configuration[1]/systemProperties[1]/property[1]/name" ) ); - } - - /*MNG-3900*/ - public void testProfilePropertiesInterpolation() - throws Exception - { - PomTestWrapper pom = buildPom( "profile-properties-interpolation", "interpolation-profile" ); - assertEquals( "PASSED", pom.getValue( "properties[1]/test" ) ); - assertEquals( "PASSED", pom.getValue( "properties[1]/property" ) ); - } - - - // Some better conventions for the test poms needs to be created and each of these tests - // that represent a verification of a specification item needs to be a couple lines at most. - // The expressions help a lot, but we need a clean to pick up a directory of POMs, automatically load - // them into a resolver, create the expression to extract the data to validate the Model, and the URI - // to validate the properties. We also need a way to navigate from the Tex specification documents to - // the test in question and vice versa. A little Eclipse plugin would do the trick. - public void testThatExecutionsWithoutIdsAreMergedAndTheChildWins() - throws Exception - { - PomTestWrapper tester = buildPom( "micromailer" ); - assertModelEquals( tester, "child-descriptor", "build/plugins[1]/executions[1]/goals[1]" ); - } - - /*MNG- - public void testDependencyScope() - throws Exception - { - PomTestWrapper pom = buildPom( "dependency-scope/sub" ); - - } - - /*MNG- 4010*/ - public void testDuplicateExclusionsDependency() - throws Exception - { - PomTestWrapper pom = buildPom( "duplicate-exclusions-dependency/sub" ); - assertEquals( 1, ( (List) pom.getValue( "dependencies[1]/exclusions" ) ).size() ); - - } - - /*MNG- 4008*/ - public void testMultipleFilters() - throws Exception - { - PomTestWrapper pom = buildPom( "multiple-filters" ); - assertEquals( 4, ( (List) pom.getValue( "build/filters" ) ).size() ); - - } - - /** MNG-4005: postponed to 3.1 - public void testValidationErrorUponNonUniqueDependencyKey() - throws Exception - { - try - { - buildPom( "unique-dependency-key/deps" ); - fail( "Non-unique dependency keys did not cause validation error" ); - } - catch ( ProjectBuildingException e ) - { - // expected - } - } - - public void testValidationErrorUponNonUniqueDependencyManagementKey() - throws Exception - { - try - { - buildPom( "unique-dependency-key/dep-mngt" ); - fail( "Non-unique dependency keys did not cause validation error" ); - } - catch ( ProjectBuildingException e ) - { - // expected - } - } - - public void testValidationErrorUponNonUniqueDependencyKeyInProfile() - throws Exception - { - try - { - buildPom( "unique-dependency-key/deps-in-profile" ); - fail( "Non-unique dependency keys did not cause validation error" ); - } - catch ( ProjectBuildingException e ) - { - // expected - } - } - - public void testValidationErrorUponNonUniqueDependencyManagementKeyInProfile() - throws Exception - { - try - { - buildPom( "unique-dependency-key/dep-mngt-in-profile" ); - fail( "Non-unique dependency keys did not cause validation error" ); - } - catch ( ProjectBuildingException e ) - { - // expected - } - } - */ - - public void testDuplicateDependenciesCauseLastDeclarationToBePickedInLenientMode() - throws Exception - { - PomTestWrapper pom = buildPom( "unique-dependency-key/deps", true, null ); - assertEquals( 1, ( (List) pom.getValue( "dependencies" ) ).size() ); - assertEquals( "0.2", pom.getValue( "dependencies[1]/version" ) ); - } - - /* MNG-3567*/ - public void testParentInterpolation() - throws Exception - { - PomTestWrapper pom = buildPom( "parent-interpolation/sub" ); - pom = new PomTestWrapper( pom.getMavenProject().getParent() ); - assertEquals( "1.3.0-SNAPSHOT", pom.getValue( "build/plugins[1]/version" ) ); - } - -/* - public void testMaven() - throws Exception - { - PomTestWrapper pom = buildPomFromMavenProject( "maven-build/sub/pom.xml", null ); - - for( String s: pom.getMavenProject().getTestClasspathElements() ) - { - System.out.println( s ); - } - - } - */ - - /* MNG-3567*/ - public void testPluginManagementInherited() - throws Exception - { - PomTestWrapper pom = buildPom( "pluginmanagement-inherited/sub" ); - assertEquals( "1.0-alpha-21", pom.getValue( "build/plugins[1]/version" ) ); - } - - /* MNG-2174*/ - public void testPluginManagementDependencies() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-management-dependencies/sub", "test" ); - assertEquals( "1.0-alpha-21", pom.getValue( "build/plugins[1]/version" ) ); - assertEquals( "1.0", pom.getValue( "build/plugins[1]/dependencies[1]/version" ) ); - } - - - /* MNG-3877*/ - public void testReportingInterpolation() - throws Exception - { - PomTestWrapper pom = buildPom( "reporting-interpolation" ); - assertEquals( createPath( Arrays.asList( System.getProperty( "user.dir" ), "src", "test", - "resources-project-builder", "reporting-interpolation", "target", - "site" ) ), pom.getValue( "reporting/outputDirectory" ) ); - } - - - public void testPluginOrder() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-order" ); - assertEquals( "plexus-component-metadata", pom.getValue( "build/plugins[1]/artifactId" ) ); - assertEquals( "maven-surefire-plugin", pom.getValue( "build/plugins[2]/artifactId" ) ); - } - - public void testErroneousJoiningOfDifferentPluginsWithEqualDependencies() - throws Exception - { - PomTestWrapper pom = buildPom( "equal-plugin-deps" ); - assertEquals( "maven-it-plugin-a", pom.getValue( "build/plugins[1]/artifactId" ) ); - assertEquals( 1, ( (List) pom.getValue( "build/plugins[1]/dependencies" ) ).size() ); - assertEquals( "maven-it-plugin-b", pom.getValue( "build/plugins[2]/artifactId" ) ); - assertEquals( 1, ( (List) pom.getValue( "build/plugins[1]/dependencies" ) ).size() ); - } - - /** MNG-3821 */ - public void testErroneousJoiningOfDifferentPluginsWithEqualExecutionIds() - throws Exception - { - PomTestWrapper pom = buildPom( "equal-plugin-exec-ids" ); - assertEquals( "maven-it-plugin-a", pom.getValue( "build/plugins[1]/artifactId" ) ); - assertEquals( 1, ( (List) pom.getValue( "build/plugins[1]/executions" ) ).size() ); - assertEquals( "maven-it-plugin-b", pom.getValue( "build/plugins[2]/artifactId" ) ); - assertEquals( 1, ( (List) pom.getValue( "build/plugins[1]/executions" ) ).size() ); - assertEquals( "maven-it-plugin-a", pom.getValue( "reporting/plugins[1]/artifactId" ) ); - assertEquals( 1, ( (List) pom.getValue( "reporting/plugins[1]/reportSets" ) ).size() ); - assertEquals( "maven-it-plugin-b", pom.getValue( "reporting/plugins[2]/artifactId" ) ); - assertEquals( 1, ( (List) pom.getValue( "reporting/plugins[1]/reportSets" ) ).size() ); - } - - /** MNG-3998 */ - public void testExecutionConfiguration() - throws Exception - { - PomTestWrapper pom = buildPom( "execution-configuration" ); - assertEquals( 2, ( (List) pom.getValue( "build/plugins[1]/executions" ) ).size() ); - assertEquals( "src/main/mdo/nexus.xml", - ( pom.getValue( "build/plugins[1]/executions[1]/configuration[1]/model" ) ) ); - assertEquals( "src/main/mdo/security.xml", - ( pom.getValue( "build/plugins[1]/executions[2]/configuration[1]/model" ) ) ); - } - - /* - public void testPluginConfigDuplicate() - throws Exception -{ - PomTestWrapper pom = buildPom( "plugin-config-duplicate/dup" ); -} -*/ - - - public void testSingleConfigurationInheritance() - throws Exception - { - PomTestWrapper pom = buildPom( "single-configuration-inheritance" ); - - assertEquals( 2, ( (List) pom.getValue( "build/plugins[1]/executions[1]/configuration[1]/rules" ) ).size() ); - assertEquals( "2.0.6", - pom.getValue( "build/plugins[1]/executions[1]/configuration[1]/rules[1]/requireMavenVersion[1]/version" ) ); - assertEquals( "[1.4,)", - pom.getValue( "build/plugins[1]/executions[1]/configuration[1]/rules[1]/requireJavaVersion[1]/version" ) ); - } - - public void testConfigWithPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "config-with-plugin-mng" ); - assertEquals( 2, ( (List) pom.getValue( "build/plugins[1]/executions" ) ).size() ); - assertEquals( "src/main/mdo/security.xml", pom.getValue( "build/plugins[1]/executions[2]/configuration[1]/model" ) ); - assertEquals( "1.0.8", pom.getValue( "build/plugins[1]/executions[1]/configuration[1]/version" ) ); - } - - /** MNG-3965 */ - public void testExecutionConfigurationSubcollections() - throws Exception - { - PomTestWrapper pom = buildPom( "execution-configuration-subcollections" ); - assertEquals( 2, ( (List) pom.getValue( "build/plugins[1]/executions[1]/configuration[1]/rules[1]/bannedDependencies" ) ).size() ); - } - - /** MNG-3985 */ - public void testMultipleRepositories() - throws Exception - { - PomTestWrapper pom = buildPom( "multiple-repos/sub" ); - assertEquals( 3, ( (List) pom.getValue( "repositories" ) ).size() ); - } - - /** MNG-3965 */ - public void testMultipleExecutionIds() - throws Exception - { - PomTestWrapper pom = buildPom( "dual-execution-ids/sub" ); - assertEquals( 1, ( (List) pom.getValue( "build/plugins[1]/executions" ) ).size() ); - } - - /** MNG-3997 */ - public void testConsecutiveEmptyElements() - throws Exception - { - buildPom( "consecutive_empty_elements" ); - } - - public void testOrderOfGoalsFromPluginExecutionWithoutPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-exec-goals-order/wo-plugin-mngt" ); - assertEquals( 5, ( (List) pom.getValue( "build/plugins[1]/executions[1]/goals" ) ).size() ); - assertEquals( "b", pom.getValue( "build/plugins[1]/executions[1]/goals[1]" ) ); - assertEquals( "a", pom.getValue( "build/plugins[1]/executions[1]/goals[2]" ) ); - assertEquals( "d", pom.getValue( "build/plugins[1]/executions[1]/goals[3]" ) ); - assertEquals( "c", pom.getValue( "build/plugins[1]/executions[1]/goals[4]" ) ); - assertEquals( "e", pom.getValue( "build/plugins[1]/executions[1]/goals[5]" ) ); - } - - /* MNG-3886*/ - public void testOrderOfGoalsFromPluginExecutionWithPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-exec-goals-order/w-plugin-mngt" ); - assertEquals( 5, ( (List) pom.getValue( "build/plugins[1]/executions[1]/goals" ) ).size() ); - assertEquals( "b", pom.getValue( "build/plugins[1]/executions[1]/goals[1]" ) ); - assertEquals( "a", pom.getValue( "build/plugins[1]/executions[1]/goals[2]" ) ); - assertEquals( "d", pom.getValue( "build/plugins[1]/executions[1]/goals[3]" ) ); - assertEquals( "c", pom.getValue( "build/plugins[1]/executions[1]/goals[4]" ) ); - assertEquals( "e", pom.getValue( "build/plugins[1]/executions[1]/goals[5]" ) ); - } - - public void testOrderOfPluginExecutionsWithoutPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-exec-order/wo-plugin-mngt" ); - assertEquals( 5, ( (List) pom.getValue( "build/plugins[1]/executions" ) ).size() ); - assertEquals( "b", pom.getValue( "build/plugins[1]/executions[1]/id" ) ); - assertEquals( "a", pom.getValue( "build/plugins[1]/executions[2]/id" ) ); - assertEquals( "d", pom.getValue( "build/plugins[1]/executions[3]/id" ) ); - assertEquals( "c", pom.getValue( "build/plugins[1]/executions[4]/id" ) ); - assertEquals( "e", pom.getValue( "build/plugins[1]/executions[5]/id" ) ); - } - - /* MNG-3887 */ - public void testOrderOfPluginExecutionsWithPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-exec-order/w-plugin-mngt" ); - assertEquals( 5, ( (List) pom.getValue( "build/plugins[1]/executions" ) ).size() ); - assertEquals( "b", pom.getValue( "build/plugins[1]/executions[1]/id" ) ); - assertEquals( "a", pom.getValue( "build/plugins[1]/executions[2]/id" ) ); - assertEquals( "d", pom.getValue( "build/plugins[1]/executions[3]/id" ) ); - assertEquals( "c", pom.getValue( "build/plugins[1]/executions[4]/id" ) ); - assertEquals( "e", pom.getValue( "build/plugins[1]/executions[5]/id" ) ); - } - - public void testMergeOfPluginExecutionsWhenChildInheritsPluginVersion() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-exec-merging-wo-version/sub" ); - assertEquals( 4, ( (List) pom.getValue( "build/plugins[1]/executions" ) ).size() ); - } - - /* MNG-3943*/ - public void testMergeOfPluginExecutionsWhenChildAndParentUseDifferentPluginVersions() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-exec-merging-version-insensitive/sub" ); - assertEquals( 4, ( (List) pom.getValue( "build/plugins[1]/executions" ) ).size() ); - } - - - public void testInterpolationWithXmlMarkup() - throws Exception - { - PomTestWrapper pom = buildPom( "xml-markup-interpolation" ); - assertEquals( "Tom&Jerry", pom.getValue( "properties/xmlTest" ) ); - } - - /* MNG-3925 */ - public void testOrderOfMergedPluginExecutionsWithoutPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "merged-plugin-exec-order/wo-plugin-mngt/sub" ); - assertEquals( 5, ( (List) pom.getValue( "build/plugins[1]/executions" ) ).size() ); - assertEquals( "parent-1", pom.getValue( "build/plugins[1]/executions[1]/goals[1]" ) ); - assertEquals( "parent-2", pom.getValue( "build/plugins[1]/executions[2]/goals[1]" ) ); - assertEquals( "child-default", pom.getValue( "build/plugins[1]/executions[3]/goals[1]" ) ); - assertEquals( "child-1", pom.getValue( "build/plugins[1]/executions[4]/goals[1]" ) ); - assertEquals( "child-2", pom.getValue( "build/plugins[1]/executions[5]/goals[1]" ) ); - } - - public void testOrderOfMergedPluginExecutionsWithPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "merged-plugin-exec-order/w-plugin-mngt/sub" ); - assertEquals( 5, ( (List) pom.getValue( "build/plugins[1]/executions" ) ).size() ); - assertEquals( "parent-1", pom.getValue( "build/plugins[1]/executions[1]/goals[1]" ) ); - assertEquals( "parent-2", pom.getValue( "build/plugins[1]/executions[2]/goals[1]" ) ); - assertEquals( "child-default", pom.getValue( "build/plugins[1]/executions[3]/goals[1]" ) ); - assertEquals( "child-1", pom.getValue( "build/plugins[1]/executions[4]/goals[1]" ) ); - assertEquals( "child-2", pom.getValue( "build/plugins[1]/executions[5]/goals[1]" ) ); - } - - /* MNG-3984*/ - public void testDifferentContainersWithSameId() - throws Exception - { - PomTestWrapper pom = buildPom( "join-different-containers-same-id" ); - assertEquals( 1, ( (List) pom.getValue( "build/plugins[1]/executions[1]/goals" ) ).size() ); - assertEquals( 1, ( (List) pom.getValue( "build/pluginManagement/plugins[@artifactId='maven-it-plugin-b']/executions[1]/goals" ) ).size() ); - } - - /* MNG-3937*/ - public void testOrderOfMergedPluginExecutionGoalsWithoutPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "merged-plugin-exec-goals-order/wo-plugin-mngt/sub" ); - - assertEquals( 5, ( (List) pom.getValue( "build/plugins[1]/executions[1]/goals" ) ).size() ); - assertEquals( "child-a", pom.getValue( "build/plugins[1]/executions[1]/goals[1]" ) ); - assertEquals( "merged", pom.getValue( "build/plugins[1]/executions[1]/goals[2]" ) ); - assertEquals( "child-b", pom.getValue( "build/plugins[1]/executions[1]/goals[3]" ) ); - assertEquals( "parent-b", pom.getValue( "build/plugins[1]/executions[1]/goals[4]" ) ); - assertEquals( "parent-a", pom.getValue( "build/plugins[1]/executions[1]/goals[5]" ) ); - } - - public void testOrderOfMergedPluginExecutionGoalsWithPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "merged-plugin-exec-goals-order/w-plugin-mngt/sub" ); - assertEquals( 5, ( (List) pom.getValue( "build/plugins[1]/executions[1]/goals" ) ).size() ); - assertEquals( "child-a", pom.getValue( "build/plugins[1]/executions[1]/goals[1]" ) ); - assertEquals( "merged", pom.getValue( "build/plugins[1]/executions[1]/goals[2]" ) ); - assertEquals( "child-b", pom.getValue( "build/plugins[1]/executions[1]/goals[3]" ) ); - assertEquals( "parent-b", pom.getValue( "build/plugins[1]/executions[1]/goals[4]" ) ); - assertEquals( "parent-a", pom.getValue( "build/plugins[1]/executions[1]/goals[5]" ) ); - } - - /*MNG-3938*/ - public void testOverridingOfInheritedPluginExecutionsWithoutPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-exec-merging/wo-plugin-mngt/sub" ); - assertEquals( 2, ( (List) pom.getValue( "build/plugins[1]/executions" ) ).size() ); - assertEquals( "child-default", pom.getValue( "build/plugins[1]/executions[@id='default']/phase" ) ); - assertEquals( "child-non-default", pom.getValue( "build/plugins[1]/executions[@id='non-default']/phase" ) ); - } - - /* MNG-3938 */ - public void testOverridingOfInheritedPluginExecutionsWithPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-exec-merging/w-plugin-mngt/sub" ); - assertEquals( 2, ( (List) pom.getValue( "build/plugins[1]/executions" ) ).size() ); - assertEquals( "child-default", pom.getValue( "build/plugins[1]/executions[@id='default']/phase" ) ); - assertEquals( "child-non-default", pom.getValue( "build/plugins[1]/executions[@id='non-default']/phase" ) ); - } - - - /* MNG-3906*/ - public void testOrderOfMergedPluginDependenciesWithoutPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "merged-plugin-class-path-order/wo-plugin-mngt/sub" ); - - assertEquals( 5, ( (List) pom.getValue( "build/plugins[1]/dependencies" ) ).size() ); - assertNotNull( pom.getValue( "build/plugins[1]/dependencies[1]" ) ); - assertEquals( "c", pom.getValue( "build/plugins[1]/dependencies[1]/artifactId" ) ); - assertEquals( "1", pom.getValue( "build/plugins[1]/dependencies[1]/version" ) ); - assertEquals( "a", pom.getValue( "build/plugins[1]/dependencies[2]/artifactId" ) ); - assertEquals( "2", pom.getValue( "build/plugins[1]/dependencies[2]/version" ) ); - assertEquals( "b", pom.getValue( "build/plugins[1]/dependencies[3]/artifactId" ) ); - assertEquals( "1", pom.getValue( "build/plugins[1]/dependencies[3]/version" ) ); - assertEquals( "e", pom.getValue( "build/plugins[1]/dependencies[4]/artifactId" ) ); - assertEquals( "1", pom.getValue( "build/plugins[1]/dependencies[4]/version" ) ); - assertEquals( "d", pom.getValue( "build/plugins[1]/dependencies[5]/artifactId" ) ); - assertEquals( "1", pom.getValue( "build/plugins[1]/dependencies[5]/version" ) ); - } - - public void testOrderOfMergedPluginDependenciesWithPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "merged-plugin-class-path-order/w-plugin-mngt/sub" ); - assertEquals( 5, ( (List) pom.getValue( "build/plugins[1]/dependencies" ) ).size() ); - assertEquals( "c", pom.getValue( "build/plugins[1]/dependencies[1]/artifactId" ) ); - assertEquals( "1", pom.getValue( "build/plugins[1]/dependencies[1]/version" ) ); - assertEquals( "a", pom.getValue( "build/plugins[1]/dependencies[2]/artifactId" ) ); - assertEquals( "2", pom.getValue( "build/plugins[1]/dependencies[2]/version" ) ); - assertEquals( "b", pom.getValue( "build/plugins[1]/dependencies[3]/artifactId" ) ); - assertEquals( "1", pom.getValue( "build/plugins[1]/dependencies[3]/version" ) ); - assertEquals( "e", pom.getValue( "build/plugins[1]/dependencies[4]/artifactId" ) ); - assertEquals( "1", pom.getValue( "build/plugins[1]/dependencies[4]/version" ) ); - assertEquals( "d", pom.getValue( "build/plugins[1]/dependencies[5]/artifactId" ) ); - assertEquals( "1", pom.getValue( "build/plugins[1]/dependencies[5]/version" ) ); - } - - public void testInterpolationOfNestedBuildDirectories() - throws Exception - { - PomTestWrapper pom = buildPom( "nested-build-dir-interpolation" ); - assertEquals( new File( pom.getBasedir(), "target/classes/dir0" ), - new File( (String) pom.getValue( "properties/dir0" ) ) ); - assertEquals( new File( pom.getBasedir(), "src/test/dir1" ), - new File( (String) pom.getValue( "properties/dir1" ) ) ); - assertEquals( new File( pom.getBasedir(), "target/site/dir2" ), - new File( (String) pom.getValue( "properties/dir2" ) ) ); - } - - public void testAppendArtifactIdOfChildToInheritedUrls() - throws Exception - { - PomTestWrapper pom = buildPom( "url-inheritance/sub" ); - assertEquals( "http://parent.url/child", pom.getValue( "url" ) ); - assertEquals( "http://parent.url/org", pom.getValue( "organization/url" ) ); - assertEquals( "http://parent.url/license.txt", pom.getValue( "licenses[1]/url" ) ); - assertEquals( "http://parent.url/viewvc/child", pom.getValue( "scm/url" ) ); - assertEquals( "http://parent.url/scm/child", pom.getValue( "scm/connection" ) ); - assertEquals( "https://parent.url/scm/child", pom.getValue( "scm/developerConnection" ) ); - assertEquals( "http://parent.url/issues", pom.getValue( "issueManagement/url" ) ); - assertEquals( "http://parent.url/ci", pom.getValue( "ciManagement/url" ) ); - assertEquals( "http://parent.url/dist", pom.getValue( "distributionManagement/repository/url" ) ); - assertEquals( "http://parent.url/snaps", pom.getValue( "distributionManagement/snapshotRepository/url" ) ); - assertEquals( "http://parent.url/site/child", pom.getValue( "distributionManagement/site/url" ) ); - assertEquals( "http://parent.url/download", pom.getValue( "distributionManagement/downloadUrl" ) ); - } - - /* MNG-3846*/ - public void testAppendArtifactIdOfParentAndChildToInheritedUrls() - throws Exception - { - PomTestWrapper pom = buildPom( "url-inheritance/another-parent/sub" ); - assertEquals( "http://parent.url/ap/child", pom.getValue( "url" ) ); - assertEquals( "http://parent.url/org", pom.getValue( "organization/url" ) ); - assertEquals( "http://parent.url/license.txt", pom.getValue( "licenses[1]/url" ) ); - assertEquals( "http://parent.url/viewvc/ap/child", pom.getValue( "scm/url" ) ); - assertEquals( "http://parent.url/scm/ap/child", pom.getValue( "scm/connection" ) ); - assertEquals( "https://parent.url/scm/ap/child", pom.getValue( "scm/developerConnection" ) ); - assertEquals( "http://parent.url/issues", pom.getValue( "issueManagement/url" ) ); - assertEquals( "http://parent.url/ci", pom.getValue( "ciManagement/url" ) ); - assertEquals( "http://parent.url/dist", pom.getValue( "distributionManagement/repository/url" ) ); - assertEquals( "http://parent.url/snaps", pom.getValue( "distributionManagement/snapshotRepository/url" ) ); - assertEquals( "http://parent.url/site/ap/child", pom.getValue( "distributionManagement/site/url" ) ); - assertEquals( "http://parent.url/download", pom.getValue( "distributionManagement/downloadUrl" ) ); - } - //*/ - - public void testNonInheritedElementsInSubtreesOverriddenByChild() - throws Exception - { - PomTestWrapper pom = buildPom( "limited-inheritance/child" ); - assertEquals( null, pom.getValue( "organization/url" ) ); - assertEquals( null, pom.getValue( "issueManagement/system" ) ); - assertEquals( 0, ( (List) pom.getValue( "ciManagement/notifiers" ) ).size() ); - assertEquals( "child-distros", pom.getValue( "distributionManagement/repository/id" ) ); - assertEquals( "ssh://child.url/distros", pom.getValue( "distributionManagement/repository/url" ) ); - assertEquals( null, pom.getValue( "distributionManagement/repository/name" ) ); - assertEquals( true, pom.getValue( "distributionManagement/repository/uniqueVersion" ) ); - assertEquals( "default", pom.getValue( "distributionManagement/repository/layout" ) ); - assertEquals( "child-snaps", pom.getValue( "distributionManagement/snapshotRepository/id" ) ); - assertEquals( "ssh://child.url/snaps", pom.getValue( "distributionManagement/snapshotRepository/url" ) ); - assertEquals( null, pom.getValue( "distributionManagement/snapshotRepository/name" ) ); - assertEquals( true, pom.getValue( "distributionManagement/snapshotRepository/uniqueVersion" ) ); - assertEquals( "default", pom.getValue( "distributionManagement/snapshotRepository/layout" ) ); - assertEquals( "child-site", pom.getValue( "distributionManagement/site/id" ) ); - assertEquals( "scp://child.url/site", pom.getValue( "distributionManagement/site/url" ) ); - assertEquals( null, pom.getValue( "distributionManagement/site/name" ) ); - } - - public void testXmlTextCoalescing() - throws Exception - { - PomTestWrapper pom = buildPom( "xml-coalesce-text" ); - assertEquals( "A Test Project Property", pom.getValue( "properties/prop0" ) ); - assertEquals( "That's a test!", pom.getValue( "properties/prop1" ) ); - assertEquals( 32 * 1024, - pom.getValue( "properties/prop2" ).toString().trim().replaceAll( "[\n\r]", "" ).length() ); - } - - public void testFullInterpolationOfNestedExpressions() - throws Exception - { - PomTestWrapper pom = buildPom( "full-interpolation" ); - for ( int i = 0; i < 24; i++ ) - { - String index = ( ( i < 10 ) ? "0" : "" ) + i; - assertEquals( "PASSED", pom.getValue( "properties/property" + index ) ); - } - } - - public void testInterpolationOfLegacyExpressionsThatDontIncludeTheProjectPrefix() - throws Exception - { - PomTestWrapper pom = buildPom( "unprefixed-expression-interpolation/child" ); - - assertEquals( pom.getBasedir(), new File( pom.getValue( "properties/projectDir" ).toString() ) ); - - assertEquals( "org.apache.maven.its.mng3831.child", pom.getValue( "properties/projectGroupId" ) ); - assertEquals( "child", pom.getValue( "properties/projectArtifactId" ) ); - assertEquals( "2.0-alpha-1", pom.getValue( "properties/projectVersion" ) ); - assertEquals( "jar", pom.getValue( "properties/projectPackaging" ) ); - - assertEquals( "child-name", pom.getValue( "properties/projectName" ) ); - assertEquals( "child-desc", pom.getValue( "properties/projectDesc" ) ); - assertEquals( "http://child.org/", pom.getValue( "properties/projectUrl" ) ); - assertEquals( "2008", pom.getValue( "properties/projectYear" ) ); - assertEquals( "child-org-name", pom.getValue( "properties/projectOrgName" ) ); - - assertEquals( "2.0.0", pom.getValue( "properties/projectPrereqMvn" ) ); - assertEquals( "http://scm.org/", pom.getValue( "properties/projectScmUrl" ) ); - assertEquals( "http://issue.org/", pom.getValue( "properties/projectIssueUrl" ) ); - assertEquals( "http://ci.org/", pom.getValue( "properties/projectCiUrl" ) ); - assertEquals( "child-dist-repo", pom.getValue( "properties/projectDistRepoName" ) ); - assertEquals( "http://dist.org/", pom.getValue( "properties/projectDistRepoUrl" ) ); - assertEquals( "http://site.org/", pom.getValue( "properties/projectDistSiteUrl" ) ); - - assertEquals( "org.apache.maven.its.mng3831", pom.getValue( "properties/parentGroupId" ) ); - assertEquals( "parent", pom.getValue( "properties/parentArtifactId" ) ); - assertEquals( "1.0", pom.getValue( "properties/parentVersion" ) ); - - assertTrue( pom.getValue( "properties/projectBuildOut" ).toString().endsWith( "bin" ) ); - assertTrue( pom.getValue( "properties/projectSiteOut" ).toString().endsWith( "doc" ) ); - } - - public void testInterpolationWithBasedirAlignedDirectories() - throws Exception - { - PomTestWrapper pom = buildPom( "basedir-aligned-interpolation" ); - assertEquals( new File( pom.getBasedir(), "src/main/java" ), - new File( pom.getValue( "properties/buildMainSrc" ).toString() ) ); - assertEquals( new File( pom.getBasedir(), "src/test/java" ), - new File( pom.getValue( "properties/buildTestSrc" ).toString() ) ); - assertEquals( new File( pom.getBasedir(), "src/main/scripts" ), - new File( pom.getValue( "properties/buildScriptSrc" ).toString() ) ); - assertEquals( new File( pom.getBasedir(), "target" ), - new File( pom.getValue( "properties/buildOut" ).toString() ) ); - assertEquals( new File( pom.getBasedir(), "target/classes" ), - new File( pom.getValue( "properties/buildMainOut" ).toString() ) ); - assertEquals( new File( pom.getBasedir(), "target/test-classes" ), - new File( pom.getValue( "properties/buildTestOut" ).toString() ) ); - assertEquals( new File( pom.getBasedir(), "target/site" ), - new File( pom.getValue( "properties/siteOut" ).toString() ) ); - } - - /* MNG-3944*/ - public void testInterpolationOfBasedirInPomWithUnusualName() - throws Exception - { - PomTestWrapper pom = buildPom( "basedir-interpolation/pom-with-unusual-name.xml" ); - assertEquals( pom.getBasedir(), new File( pom.getValue( "properties/prop0" ).toString() ) ); - assertEquals( pom.getBasedir(), new File( pom.getValue( "properties/prop1" ).toString() ) ); - } - - /* MNG-3979 */ - public void testJoiningOfContainersWhenChildHasEmptyElements() - throws Exception - { - PomTestWrapper pom = buildPom( "id-container-joining-with-empty-elements/sub" ); - assertNotNull( pom ); - } - - public void testOrderOfPluginConfigurationElementsWithoutPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-config-order/wo-plugin-mngt" ); - assertEquals( "one", pom.getValue( "build/plugins[1]/configuration/stringParams/stringParam[1]" ) ); - assertEquals( "two", pom.getValue( "build/plugins[1]/configuration/stringParams/stringParam[2]" ) ); - assertEquals( "three", pom.getValue( "build/plugins[1]/configuration/stringParams/stringParam[3]" ) ); - assertEquals( "four", pom.getValue( "build/plugins[1]/configuration/stringParams/stringParam[4]" ) ); - } - - /* MNG-3827*/ - public void testOrderOfPluginConfigurationElementsWithPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-config-order/w-plugin-mngt" ); - assertEquals( "one", pom.getValue( "build/plugins[1]/configuration/stringParams/stringParam[1]" ) ); - assertEquals( "two", pom.getValue( "build/plugins[1]/configuration/stringParams/stringParam[2]" ) ); - assertEquals( "three", pom.getValue( "build/plugins[1]/configuration/stringParams/stringParam[3]" ) ); - assertEquals( "four", pom.getValue( "build/plugins[1]/configuration/stringParams/stringParam[4]" ) ); - } - - public void testOrderOfPluginExecutionConfigurationElementsWithoutPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-exec-config-order/wo-plugin-mngt" ); - String prefix = "build/plugins[1]/executions[1]/configuration/"; - assertEquals( "one", pom.getValue( prefix + "stringParams/stringParam[1]" ) ); - assertEquals( "two", pom.getValue( prefix + "stringParams/stringParam[2]" ) ); - assertEquals( "three", pom.getValue( prefix + "stringParams/stringParam[3]" ) ); - assertEquals( "four", pom.getValue( prefix + "stringParams/stringParam[4]" ) ); - assertEquals( "key1", pom.getValue( prefix + "propertiesParam/property[1]/name" ) ); - assertEquals( "key2", pom.getValue( prefix + "propertiesParam/property[2]/name" ) ); - } - - /* MNG-3864*/ - public void testOrderOfPluginExecutionConfigurationElementsWithPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-exec-config-order/w-plugin-mngt" ); - String prefix = "build/plugins[1]/executions[1]/configuration/"; - assertEquals( "one", pom.getValue( prefix + "stringParams/stringParam[1]" ) ); - assertEquals( "two", pom.getValue( prefix + "stringParams/stringParam[2]" ) ); - assertEquals( "three", pom.getValue( prefix + "stringParams/stringParam[3]" ) ); - assertEquals( "four", pom.getValue( prefix + "stringParams/stringParam[4]" ) ); - assertEquals( "key1", pom.getValue( prefix + "propertiesParam/property[1]/name" ) ); - assertEquals( "key2", pom.getValue( prefix + "propertiesParam/property[2]/name" ) ); - } - - /* MNG-3836*/ - public void testMergeOfInheritedPluginConfiguration() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-config-merging/child" ); - - String prefix = "build/plugins[1]/configuration/"; - assertEquals( "PASSED", pom.getValue( prefix + "propertiesFile" ) ); - assertEquals( "PASSED", pom.getValue( prefix + "parent" ) ); - assertEquals( "PASSED-1", pom.getValue( prefix + "stringParams/stringParam[1]" ) ); - assertEquals( "PASSED-3", pom.getValue( prefix + "stringParams/stringParam[2]" ) ); - assertEquals( "PASSED-2", pom.getValue( prefix + "stringParams/stringParam[3]" ) ); - assertEquals( "PASSED-4", pom.getValue( prefix + "stringParams/stringParam[4]" ) ); - assertEquals( "PASSED-1", pom.getValue( prefix + "listParam/listParam[1]" ) ); - assertEquals( "PASSED-3", pom.getValue( prefix + "listParam/listParam[2]" ) ); - assertEquals( "PASSED-2", pom.getValue( prefix + "listParam/listParam[3]" ) ); - assertEquals( "PASSED-4", pom.getValue( prefix + "listParam/listParam[4]" ) ); - } - - /* MNG-2591 */ - public void testAppendOfInheritedPluginConfigurationWithNoProfile() - throws Exception - { - testAppendOfInheritedPluginConfiguration( "no-profile" ); - } - - /* MNG-2591*/ - public void testAppendOfInheritedPluginConfigurationWithActiveProfile() - throws Exception - { - testAppendOfInheritedPluginConfiguration( "with-profile" ); - } - - private void testAppendOfInheritedPluginConfiguration( String test ) - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-config-append/" + test + "/subproject" ); - String prefix = "build/plugins[1]/configuration/"; - assertEquals( "PARENT-1", pom.getValue( prefix + "stringParams/stringParam[1]" ) ); - assertEquals( "PARENT-3", pom.getValue( prefix + "stringParams/stringParam[2]" ) ); - assertEquals( "PARENT-2", pom.getValue( prefix + "stringParams/stringParam[3]" ) ); - assertEquals( "PARENT-4", pom.getValue( prefix + "stringParams/stringParam[4]" ) ); - assertEquals( "CHILD-1", pom.getValue( prefix + "stringParams/stringParam[5]" ) ); - assertEquals( "CHILD-3", pom.getValue( prefix + "stringParams/stringParam[6]" ) ); - assertEquals( "CHILD-2", pom.getValue( prefix + "stringParams/stringParam[7]" ) ); - assertEquals( "CHILD-4", pom.getValue( prefix + "stringParams/stringParam[8]" ) ); - assertEquals( null, pom.getValue( prefix + "stringParams/stringParam[9]" ) ); - assertEquals( "PARENT-1", pom.getValue( prefix + "listParam/listParam[1]" ) ); - assertEquals( "PARENT-3", pom.getValue( prefix + "listParam/listParam[2]" ) ); - assertEquals( "PARENT-2", pom.getValue( prefix + "listParam/listParam[3]" ) ); - assertEquals( "PARENT-4", pom.getValue( prefix + "listParam/listParam[4]" ) ); - assertEquals( "CHILD-1", pom.getValue( prefix + "listParam/listParam[5]" ) ); - assertEquals( "CHILD-3", pom.getValue( prefix + "listParam/listParam[6]" ) ); - assertEquals( "CHILD-2", pom.getValue( prefix + "listParam/listParam[7]" ) ); - assertEquals( "CHILD-4", pom.getValue( prefix + "listParam/listParam[8]" ) ); - assertEquals( null, pom.getValue( prefix + "listParam/listParam[9]" ) ); - } - - /* MNG-4000 */ - public void testMultiplePluginExecutionsWithAndWithoutIdsWithoutPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-exec-w-and-wo-id/wo-plugin-mngt" ); - assertEquals( 2, ( (List) pom.getValue( "build/plugins[1]/executions" ) ).size() ); - assertEquals( "log-string", pom.getValue( "build/plugins[1]/executions[1]/goals[1]" ) ); - assertEquals( "log-string", pom.getValue( "build/plugins[1]/executions[2]/goals[1]" ) ); - } - - public void testMultiplePluginExecutionsWithAndWithoutIdsWithPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-exec-w-and-wo-id/w-plugin-mngt" ); - assertEquals( 2, ( (List) pom.getValue( "build/plugins[1]/executions" ) ).size() ); - assertEquals( "log-string", pom.getValue( "build/plugins[1]/executions[1]/goals[1]" ) ); - assertEquals( "log-string", pom.getValue( "build/plugins[1]/executions[2]/goals[1]" ) ); - } - - public void testDependencyOrderWithoutPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "dependency-order/wo-plugin-mngt" ); - assertEquals( 4, ( (List) pom.getValue( "dependencies" ) ).size() ); - assertEquals( "a", pom.getValue( "dependencies[1]/artifactId" ) ); - assertEquals( "c", pom.getValue( "dependencies[2]/artifactId" ) ); - assertEquals( "b", pom.getValue( "dependencies[3]/artifactId" ) ); - assertEquals( "d", pom.getValue( "dependencies[4]/artifactId" ) ); - } - - public void testDependencyOrderWithPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "dependency-order/w-plugin-mngt" ); - assertEquals( 4, ( (List) pom.getValue( "dependencies" ) ).size() ); - assertEquals( "a", pom.getValue( "dependencies[1]/artifactId" ) ); - assertEquals( "c", pom.getValue( "dependencies[2]/artifactId" ) ); - assertEquals( "b", pom.getValue( "dependencies[3]/artifactId" ) ); - assertEquals( "d", pom.getValue( "dependencies[4]/artifactId" ) ); - } - - public void testBuildDirectoriesUsePlatformSpecificFileSeparator() - throws Exception - { - PomTestWrapper pom = buildPom( "platform-file-separator" ); - assertPathWithNormalizedFileSeparators( pom.getValue( "build/directory" ) ); - assertPathWithNormalizedFileSeparators( pom.getValue( "build/outputDirectory" ) ); - assertPathWithNormalizedFileSeparators( pom.getValue( "build/testOutputDirectory" ) ); - assertPathWithNormalizedFileSeparators( pom.getValue( "build/sourceDirectory" ) ); - assertPathWithNormalizedFileSeparators( pom.getValue( "build/testSourceDirectory" ) ); - assertPathWithNormalizedFileSeparators( pom.getValue( "build/resources[1]/directory" ) ); - assertPathWithNormalizedFileSeparators( pom.getValue( "build/testResources[1]/directory" ) ); - assertPathWithNormalizedFileSeparators( pom.getValue( "build/filters[1]" ) ); - assertPathWithNormalizedFileSeparators( pom.getValue( "reporting/outputDirectory" ) ); - } - - /* MNG-4008 */ - public void testMergedFilterOrder() - throws Exception - { - PomTestWrapper pom = buildPom( "merged-filter-order/sub" ); - - assertEquals( 7, ( (List) pom.getValue( "build/filters" ) ).size() ); - assertTrue( pom.getValue( "build/filters[1]" ).toString().endsWith( "child-a.properties" ) ); - assertTrue( pom.getValue( "build/filters[2]" ).toString().endsWith( "child-c.properties" ) ); - assertTrue( pom.getValue( "build/filters[3]" ).toString().endsWith( "child-b.properties" ) ); - assertTrue( pom.getValue( "build/filters[4]" ).toString().endsWith( "child-d.properties" ) ); - assertTrue( pom.getValue( "build/filters[5]" ).toString().endsWith( "parent-c.properties" ) ); - assertTrue( pom.getValue( "build/filters[6]" ).toString().endsWith( "parent-b.properties" ) ); - assertTrue( pom.getValue( "build/filters[7]" ).toString().endsWith( "parent-d.properties" ) ); - } - - /** MNG-4027*/ - public void testProfileInjectedDependencies() - throws Exception - { - PomTestWrapper pom = buildPom( "profile-injected-dependencies" ); - assertEquals( 4, ( (List) pom.getValue( "dependencies" ) ).size() ); - assertEquals( "a", pom.getValue( "dependencies[1]/artifactId" ) ); - assertEquals( "c", pom.getValue( "dependencies[2]/artifactId" ) ); - assertEquals( "b", pom.getValue( "dependencies[3]/artifactId" ) ); - assertEquals( "d", pom.getValue( "dependencies[4]/artifactId" ) ); - } - - /** IT-0021*/ - public void testProfileDependenciesMultipleProfiles() - throws Exception - { - PomTestWrapper pom = buildPom( "profile-dependencies-multiple-profiles", "profile-1", "profile-2" ); - assertEquals(2, ( (List) pom.getValue( "dependencies" ) ).size() ); - } - - public void testDependencyInheritance() - throws Exception - { - PomTestWrapper pom = buildPom( "dependency-inheritance/sub" ); - assertEquals( 1, ( (List) pom.getValue( "dependencies" ) ).size() ); - assertEquals( "4.4", pom.getValue( "dependencies[1]/version" ) ); - } - - /** MNG-4034 */ - public void testManagedProfileDependency() - throws Exception - { - PomTestWrapper pom = this.buildPom( "managed-profile-dependency/sub", "maven-core-it" ); - assertEquals( 1, ( (List) pom.getValue( "dependencies" ) ).size() ); - assertEquals( "org.apache.maven.its", pom.getValue( "dependencies[1]/groupId" ) ); - assertEquals( "maven-core-it-support", pom.getValue( "dependencies[1]/artifactId" ) ); - assertEquals( "1.3", pom.getValue( "dependencies[1]/version" ) ); - assertEquals( "runtime", pom.getValue( "dependencies[1]/scope" ) ); - assertEquals( 1, ( (List) pom.getValue( "dependencies[1]/exclusions" ) ).size() ); - assertEquals( "commons-lang", pom.getValue( "dependencies[1]/exclusions[1]/groupId" ) ); - } - - /** MNG-4040 */ - public void testProfileModuleInheritance() - throws Exception - { - PomTestWrapper pom = this.buildPom( "profile-module-inheritance/sub", "dist" ); - assertEquals( 0, ( (List) pom.getValue( "modules" ) ).size() ); - } - - /** MNG-3621 */ - public void testUncPath() - throws Exception - { - PomTestWrapper pom = this.buildPom( "unc-path/sub" ); - assertEquals( "file:////host/site/test-child", pom.getValue( "distributionManagement/site/url" ) ); - } - - /** MNG-2006 */ - public void testUrlAppendWithChildPathAdjustment() - throws Exception - { - PomTestWrapper pom = this.buildPom( "url-append/child" ); - assertEquals( "http://project.url/child", pom.getValue( "url" ) ); - assertEquals( "http://viewvc.project.url/child", pom.getValue( "scm/url" ) ); - assertEquals( "http://scm.project.url/child", pom.getValue( "scm/connection" ) ); - assertEquals( "https://scm.project.url/child", pom.getValue( "scm/developerConnection" ) ); - assertEquals( "http://site.project.url/child", pom.getValue( "distributionManagement/site/url" ) ); - } - - /** MNG-0479 */ - public void testRepoInheritance() - throws Exception - { - PomTestWrapper pom = this.buildPom( "repo-inheritance" ); - assertEquals( 1, ( (List) pom.getValue( "repositories" ) ).size() ); - assertEquals( "it0043", pom.getValue( "repositories[1]/name" ) ); - } - - public void testEmptyScm() - throws Exception - { - PomTestWrapper pom = this.buildPom( "empty-scm" ); - assertNull( pom.getValue( "scm" ) ); - } - - public void testPluginConfigurationUsingAttributesWithoutPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-config-attributes/wo-plugin-mngt" ); - assertEquals( "src", pom.getValue( "build/plugins[1]/configuration/domParam/copy/@todir" ) ); - assertEquals( "true", pom.getValue( "build/plugins[1]/configuration/domParam/copy/@overwrite" ) ); - assertEquals( "target", pom.getValue( "build/plugins[1]/configuration/domParam/copy/fileset/@dir" ) ); - assertEquals( null, pom.getValue( "build/plugins[1]/configuration/domParam/copy/fileset/@todir" ) ); - assertEquals( null, pom.getValue( "build/plugins[1]/configuration/domParam/copy/fileset/@overwrite" ) ); - } - - /** MNG-4053*/ - public void testPluginConfigurationUsingAttributesWithPluginManagement() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-config-attributes/w-plugin-mngt" ); - assertEquals( "src", pom.getValue( "build/plugins[1]/configuration/domParam/copy/@todir" ) ); - assertEquals( "true", pom.getValue( "build/plugins[1]/configuration/domParam/copy/@overwrite" ) ); - assertEquals( "target", pom.getValue( "build/plugins[1]/configuration/domParam/copy/fileset/@dir" ) ); - assertEquals( null, pom.getValue( "build/plugins[1]/configuration/domParam/copy/fileset/@todir" ) ); - assertEquals( null, pom.getValue( "build/plugins[1]/configuration/domParam/copy/fileset/@overwrite" ) ); - } - - public void testPluginConfigurationUsingAttributesWithPluginManagementAndProfile() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-config-attributes/w-profile", "maven-core-it" ); - assertEquals( "src", pom.getValue( "build/plugins[1]/configuration/domParam/copy/@todir" ) ); - assertEquals( "true", pom.getValue( "build/plugins[1]/configuration/domParam/copy/@overwrite" ) ); - assertEquals( "target", pom.getValue( "build/plugins[1]/configuration/domParam/copy/fileset/@dir" ) ); - assertEquals( null, pom.getValue( "build/plugins[1]/configuration/domParam/copy/fileset/@todir" ) ); - assertEquals( null, pom.getValue( "build/plugins[1]/configuration/domParam/copy/fileset/@overwrite" ) ); - } - - public void testPomEncoding() - throws Exception - { - PomTestWrapper pom = buildPom( "pom-encoding/utf-8" ); - assertEquals( "TEST-CHARS: \u00DF\u0131\u03A3\u042F\u05D0\u20AC", pom.getValue( "description" ) ); - pom = buildPom( "pom-encoding/latin-1" ); - assertEquals( "TEST-CHARS: \u00C4\u00D6\u00DC\u00E4\u00F6\u00FC\u00DF", pom.getValue( "description" ) ); - } - - /* MNG-4070 */ - public void testXmlWhitespaceHandling() - throws Exception - { - PomTestWrapper pom = buildPom( "xml-whitespace/sub" ); - assertEquals( "org.apache.maven.its.mng4070", pom.getValue( "groupId" ) ); - } - - /* MNG-3760*/ - public void testInterpolationOfBaseUrl() - throws Exception - { - PomTestWrapper pom = buildPom( "baseurl-interpolation/pom.xml" ); - assertEquals( pom.getBasedir().toURI().toString(), pom.getValue( "properties/prop1" ).toString() ); - } - - /* MNG-3811*/ - public void testReportingPluginConfig() - throws Exception - { - PomTestWrapper pom = buildPom( "reporting-plugin-config/sub" ); - - assertEquals( 3, ( (List) pom.getValue( "reporting/plugins[1]/configuration/stringParams" ) ).size() ); - assertEquals( "parentParam", pom.getValue( "reporting/plugins[1]/configuration/stringParams[1]/stringParam[1]" ) ); - assertEquals( "childParam", pom.getValue( "reporting/plugins[1]/configuration/stringParams[1]/stringParam[2]" ) ); - assertEquals( " preserve space ", pom.getValue( "reporting/plugins[1]/configuration/stringParams[1]/stringParam[3]" ) ); - assertEquals( "true", pom.getValue( "reporting/plugins[1]/configuration/booleanParam" ) ); - } - - public void testPropertiesNoDuplication() - throws Exception - { - PomTestWrapper pom = buildPom( "properties-no-duplication/sub" ); - assertEquals( 1, ( (Properties) pom.getValue( "properties" ) ).size() ); - assertEquals( "child", pom.getValue( "properties/pomProfile" ) ); - } - - public void testPomInheritance() - throws Exception - { - PomTestWrapper pom = buildPom( "pom-inheritance/sub" ); - assertEquals( "parent-description", pom.getValue( "description" ) ); - assertEquals( "jar", pom.getValue( "packaging" ) ); - } - - public void testCompleteModelWithoutParent() - throws Exception - { - PomTestWrapper pom = buildPom( "complete-model/wo-parent" ); - - testCompleteModel( pom ); - } - - public void testCompleteModelWithParent() - throws Exception - { - PomTestWrapper pom = buildPom( "complete-model/w-parent/sub" ); - - testCompleteModel( pom ); - } - - private void testCompleteModel( PomTestWrapper pom ) - throws Exception - { - assertEquals( "4.0.0", pom.getValue( "modelVersion" ) ); - - assertEquals( "org.apache.maven.its.mng", pom.getValue( "groupId" ) ); - assertEquals( "test", pom.getValue( "artifactId" ) ); - assertEquals( "0.2", pom.getValue( "version" ) ); - assertEquals( "pom", pom.getValue( "packaging" ) ); - - assertEquals( "project-name", pom.getValue( "name" ) ); - assertEquals( "project-description", pom.getValue( "description" ) ); - assertEquals( "http://project.url/", pom.getValue( "url" ) ); - assertEquals( "2009", pom.getValue( "inceptionYear" ) ); - - assertEquals( "project-org", pom.getValue( "organization/name" ) ); - assertEquals( "http://project-org.url/", pom.getValue( "organization/url" ) ); - - assertEquals( 1, ( (List) pom.getValue( "licenses" ) ).size() ); - assertEquals( "project-license", pom.getValue( "licenses[1]/name" ) ); - assertEquals( "http://project.url/license", pom.getValue( "licenses[1]/url" ) ); - assertEquals( "repo", pom.getValue( "licenses[1]/distribution" ) ); - assertEquals( "free", pom.getValue( "licenses[1]/comments" ) ); - - assertEquals( 1, ( (List) pom.getValue( "developers" ) ).size() ); - assertEquals( "dev", pom.getValue( "developers[1]/id" ) ); - assertEquals( "project-developer", pom.getValue( "developers[1]/name" ) ); - assertEquals( "developer@", pom.getValue( "developers[1]/email" ) ); - assertEquals( "http://developer", pom.getValue( "developers[1]/url" ) ); - assertEquals( "developer", pom.getValue( "developers[1]/organization" ) ); - assertEquals( "http://devel.org", pom.getValue( "developers[1]/organizationUrl" ) ); - assertEquals( "-1", pom.getValue( "developers[1]/timezone" ) ); - assertEquals( "yes", pom.getValue( "developers[1]/properties/developer" ) ); - assertEquals( 1, ( (List) pom.getValue( "developers[1]/roles" ) ).size() ); - assertEquals( "devel", pom.getValue( "developers[1]/roles[1]" ) ); - - assertEquals( 1, ( (List) pom.getValue( "contributors" ) ).size() ); - assertEquals( "project-contributor", pom.getValue( "contributors[1]/name" ) ); - assertEquals( "contributor@", pom.getValue( "contributors[1]/email" ) ); - assertEquals( "http://contributor", pom.getValue( "contributors[1]/url" ) ); - assertEquals( "contributor", pom.getValue( "contributors[1]/organization" ) ); - assertEquals( "http://contrib.org", pom.getValue( "contributors[1]/organizationUrl" ) ); - assertEquals( "+1", pom.getValue( "contributors[1]/timezone" ) ); - assertEquals( "yes", pom.getValue( "contributors[1]/properties/contributor" ) ); - assertEquals( 1, ( (List) pom.getValue( "contributors[1]/roles" ) ).size() ); - assertEquals( "contrib", pom.getValue( "contributors[1]/roles[1]" ) ); - - assertEquals( 1, ( (List) pom.getValue( "mailingLists" ) ).size() ); - assertEquals( "project-mailing-list", pom.getValue( "mailingLists[1]/name" ) ); - assertEquals( "subscribe@", pom.getValue( "mailingLists[1]/subscribe" ) ); - assertEquals( "unsubscribe@", pom.getValue( "mailingLists[1]/unsubscribe" ) ); - assertEquals( "post@", pom.getValue( "mailingLists[1]/post" ) ); - assertEquals( "mail-archive", pom.getValue( "mailingLists[1]/archive" ) ); - assertEquals( 1, ( (List) pom.getValue( "mailingLists[1]/otherArchives" ) ).size() ); - assertEquals( "other-archive", pom.getValue( "mailingLists[1]/otherArchives[1]" ) ); - - assertEquals( "2.0.1", pom.getValue( "prerequisites/maven" ) ); - - assertEquals( "http://project.url/trunk", pom.getValue( "scm/url" ) ); - assertEquals( "http://project.url/scm", pom.getValue( "scm/connection" ) ); - assertEquals( "https://project.url/scm", pom.getValue( "scm/developerConnection" ) ); - assertEquals( "TAG", pom.getValue( "scm/tag" ) ); - - assertEquals( "issues", pom.getValue( "issueManagement/system" ) ); - assertEquals( "http://project.url/issues", pom.getValue( "issueManagement/url" ) ); - - assertEquals( "ci", pom.getValue( "ciManagement/system" ) ); - assertEquals( "http://project.url/ci", pom.getValue( "ciManagement/url" ) ); - assertEquals( 1, ( (List) pom.getValue( "ciManagement/notifiers" ) ).size() ); - assertEquals( "irc", pom.getValue( "ciManagement/notifiers[1]/type" ) ); - assertEquals( "ci@", pom.getValue( "ciManagement/notifiers[1]/address" ) ); - assertEquals( Boolean.TRUE, pom.getValue( "ciManagement/notifiers[1]/sendOnError" ) ); - assertEquals( Boolean.FALSE, pom.getValue( "ciManagement/notifiers[1]/sendOnFailure" ) ); - assertEquals( Boolean.FALSE, pom.getValue( "ciManagement/notifiers[1]/sendOnWarning" ) ); - assertEquals( Boolean.FALSE, pom.getValue( "ciManagement/notifiers[1]/sendOnSuccess" ) ); - assertEquals( "ci", pom.getValue( "ciManagement/notifiers[1]/configuration/ciProp" ) ); - - assertEquals( "project.distros", pom.getValue( "distributionManagement/repository/id" ) ); - assertEquals( "distros", pom.getValue( "distributionManagement/repository/name" ) ); - assertEquals( "http://project.url/dist", pom.getValue( "distributionManagement/repository/url" ) ); - assertEquals( Boolean.TRUE, pom.getValue( "distributionManagement/repository/uniqueVersion" ) ); - - assertEquals( "project.snaps", pom.getValue( "distributionManagement/snapshotRepository/id" ) ); - assertEquals( "snaps", pom.getValue( "distributionManagement/snapshotRepository/name" ) ); - assertEquals( "http://project.url/snaps", pom.getValue( "distributionManagement/snapshotRepository/url" ) ); - assertEquals( Boolean.FALSE, pom.getValue( "distributionManagement/snapshotRepository/uniqueVersion" ) ); - - assertEquals( "project.site", pom.getValue( "distributionManagement/site/id" ) ); - assertEquals( "docs", pom.getValue( "distributionManagement/site/name" ) ); - assertEquals( "http://project.url/site", pom.getValue( "distributionManagement/site/url" ) ); - - assertEquals( "http://project.url/download", pom.getValue( "distributionManagement/downloadUrl" ) ); - assertEquals( "reloc-gid", pom.getValue( "distributionManagement/relocation/groupId" ) ); - assertEquals( "reloc-aid", pom.getValue( "distributionManagement/relocation/artifactId" ) ); - assertEquals( "reloc-version", pom.getValue( "distributionManagement/relocation/version" ) ); - assertEquals( "project-reloc-msg", pom.getValue( "distributionManagement/relocation/message" ) ); - - assertEquals( 1, ( (List) pom.getValue( "modules" ) ).size() ); - assertEquals( "sub", pom.getValue( "modules[1]" ) ); - - assertEquals( 1, ( (Map) pom.getValue( "properties" ) ).size() ); - assertEquals( "project-property", pom.getValue( "properties[1]/itProperty" ) ); - - assertEquals( 1, ( (List) pom.getValue( "dependencyManagement/dependencies" ) ).size() ); - assertEquals( "org.apache.maven.its", pom.getValue( "dependencyManagement/dependencies[1]/groupId" ) ); - assertEquals( "managed-dep", pom.getValue( "dependencyManagement/dependencies[1]/artifactId" ) ); - assertEquals( "0.1", pom.getValue( "dependencyManagement/dependencies[1]/version" ) ); - assertEquals( "war", pom.getValue( "dependencyManagement/dependencies[1]/type" ) ); - assertEquals( "runtime", pom.getValue( "dependencyManagement/dependencies[1]/scope" ) ); - assertEquals( Boolean.FALSE, pom.getValue( "dependencyManagement/dependencies[1]/optional" ) ); - assertEquals( 1, ( (List) pom.getValue( "dependencyManagement/dependencies[1]/exclusions" ) ).size() ); - assertEquals( "org.apache.maven.its", - pom.getValue( "dependencyManagement/dependencies[1]/exclusions[1]/groupId" ) ); - assertEquals( "excluded-managed-dep", - pom.getValue( "dependencyManagement/dependencies[1]/exclusions[1]/artifactId" ) ); - - assertEquals( 1, ( (List) pom.getValue( "dependencies" ) ).size() ); - assertEquals( "org.apache.maven.its", pom.getValue( "dependencies[1]/groupId" ) ); - assertEquals( "dep", pom.getValue( "dependencies[1]/artifactId" ) ); - assertEquals( "0.2", pom.getValue( "dependencies[1]/version" ) ); - assertEquals( "ejb", pom.getValue( "dependencies[1]/type" ) ); - assertEquals( "test", pom.getValue( "dependencies[1]/scope" ) ); - assertEquals( Boolean.TRUE, pom.getValue( "dependencies[1]/optional" ) ); - assertEquals( 1, ( (List) pom.getValue( "dependencies[1]/exclusions" ) ).size() ); - assertEquals( "org.apache.maven.its", pom.getValue( "dependencies[1]/exclusions[1]/groupId" ) ); - assertEquals( "excluded-dep", pom.getValue( "dependencies[1]/exclusions[1]/artifactId" ) ); - - assertEquals( 2, ( (List) pom.getValue( "repositories" ) ).size() ); - assertEquals( "project-remote-repo", pom.getValue( "repositories[1]/id" ) ); - assertEquals( "http://project.url/remote", pom.getValue( "repositories[1]/url" ) ); - assertEquals( "repo", pom.getValue( "repositories[1]/name" ) ); - assertEquals( RepositorySystem.DEFAULT_REMOTE_REPO_ID, pom.getValue( "repositories[2]/id" ) ); - assertEquals( RepositorySystem.DEFAULT_REMOTE_REPO_URL, pom.getValue( "repositories[2]/url" ) ); - - assertEquals( "test", pom.getValue( "build/defaultGoal" ) ); - assertEquals( "coreit", pom.getValue( "build/finalName" ) ); - - assertPathSuffixEquals( "build", pom.getValue( "build/directory" ) ); - assertPathSuffixEquals( "build/main", pom.getValue( "build/outputDirectory" ) ); - assertPathSuffixEquals( "build/test", pom.getValue( "build/testOutputDirectory" ) ); - assertPathSuffixEquals( "sources/main", pom.getValue( "build/sourceDirectory" ) ); - assertPathSuffixEquals( "sources/test", pom.getValue( "build/testSourceDirectory" ) ); - assertPathSuffixEquals( "sources/scripts", pom.getValue( "build/scriptSourceDirectory" ) ); - - assertEquals( 1, ( (List) pom.getValue( "build/filters" ) ).size() ); - assertPathSuffixEquals( "src/main/filter/it.properties", pom.getValue( "build/filters[1]" ) ); - - assertEquals( 1, ( (List) pom.getValue( "build/resources" ) ).size() ); - assertPathSuffixEquals( "res/main", pom.getValue( "build/resources[1]/directory" ) ); - assertPathSuffixEquals( "main", pom.getValue( "build/resources[1]/targetPath" ) ); - assertEquals( Boolean.TRUE, pom.getValue( "build/resources[1]/filtering" ) ); - assertEquals( 1, ( (List) pom.getValue( "build/resources[1]/includes" ) ).size() ); - assertPathSuffixEquals( "main.included", pom.getValue( "build/resources[1]/includes[1]" ) ); - assertEquals( 1, ( (List) pom.getValue( "build/resources[1]/excludes" ) ).size() ); - assertPathSuffixEquals( "main.excluded", pom.getValue( "build/resources[1]/excludes[1]" ) ); - - assertEquals( 1, ( (List) pom.getValue( "build/testResources" ) ).size() ); - assertPathSuffixEquals( "res/test", pom.getValue( "build/testResources[1]/directory" ) ); - assertPathSuffixEquals( "test", pom.getValue( "build/testResources[1]/targetPath" ) ); - assertEquals( Boolean.TRUE, pom.getValue( "build/testResources[1]/filtering" ) ); - assertEquals( 1, ( (List) pom.getValue( "build/testResources[1]/includes" ) ).size() ); - assertPathSuffixEquals( "test.included", pom.getValue( "build/testResources[1]/includes[1]" ) ); - assertEquals( 1, ( (List) pom.getValue( "build/testResources[1]/excludes" ) ).size() ); - assertPathSuffixEquals( "test.excluded", pom.getValue( "build/testResources[1]/excludes[1]" ) ); - - assertEquals( 1, ( (List) pom.getValue( "build/extensions" ) ).size() ); - assertEquals( "org.apache.maven.its.ext", pom.getValue( "build/extensions[1]/groupId" ) ); - assertEquals( "ext", pom.getValue( "build/extensions[1]/artifactId" ) ); - assertEquals( "3.0", pom.getValue( "build/extensions[1]/version" ) ); - - assertEquals( 1, ( (List) pom.getValue( "build/plugins" ) ).size() ); - assertEquals( "org.apache.maven.its.plugins", pom.getValue( "build/plugins[1]/groupId" ) ); - assertEquals( "maven-it-plugin-build", pom.getValue( "build/plugins[1]/artifactId" ) ); - assertEquals( "2.1-SNAPSHOT", pom.getValue( "build/plugins[1]/version" ) ); - assertEquals( "test.properties", pom.getValue( "build/plugins[1]/configuration/outputFile" ) ); - assertEquals( 1, ( (List) pom.getValue( "build/plugins[1]/executions" ) ).size() ); - assertEquals( "test", pom.getValue( "build/plugins[1]/executions[1]/id" ) ); - assertEquals( "validate", pom.getValue( "build/plugins[1]/executions[1]/phase" ) ); - assertEquals( "pom.properties", pom.getValue( "build/plugins[1]/executions[1]/configuration/outputFile" ) ); - assertEquals( 1, ( (List) pom.getValue( "build/plugins[1]/executions[1]/goals" ) ).size() ); - assertEquals( "eval", pom.getValue( "build/plugins[1]/executions[1]/goals[1]" ) ); - assertEquals( 1, ( (List) pom.getValue( "build/plugins[1]/dependencies" ) ).size() ); - assertEquals( "org.apache.maven.its", pom.getValue( "build/plugins[1]/dependencies[1]/groupId" ) ); - assertEquals( "build-plugin-dep", pom.getValue( "build/plugins[1]/dependencies[1]/artifactId" ) ); - assertEquals( "0.3", pom.getValue( "build/plugins[1]/dependencies[1]/version" ) ); - assertEquals( "zip", pom.getValue( "build/plugins[1]/dependencies[1]/type" ) ); - assertEquals( 1, ( (List) pom.getValue( "build/plugins[1]/dependencies[1]/exclusions" ) ).size() ); - assertEquals( "org.apache.maven.its", pom.getValue( "build/plugins[1]/dependencies[1]/exclusions[1]/groupId" ) ); - assertEquals( "excluded-build-plugin-dep", - pom.getValue( "build/plugins[1]/dependencies[1]/exclusions[1]/artifactId" ) ); - - assertEquals( Boolean.TRUE, pom.getValue( "reporting/excludeDefaults" ) ); - assertPathSuffixEquals( "docs", pom.getValue( "reporting/outputDirectory" ) ); - - assertEquals( 1, ( (List) pom.getValue( "reporting/plugins" ) ).size() ); - assertEquals( "org.apache.maven.its.plugins", pom.getValue( "reporting/plugins[1]/groupId" ) ); - assertEquals( "maven-it-plugin-reporting", pom.getValue( "reporting/plugins[1]/artifactId" ) ); - assertEquals( "2.0-SNAPSHOT", pom.getValue( "reporting/plugins[1]/version" ) ); - assertEquals( "test.html", pom.getValue( "reporting/plugins[1]/configuration/outputFile" ) ); - assertEquals( 1, ( (List) pom.getValue( "reporting/plugins[1]/reportSets" ) ).size() ); - assertEquals( "it", pom.getValue( "reporting/plugins[1]/reportSets[1]/id" ) ); - assertEquals( "index.html", pom.getValue( "reporting/plugins[1]/reportSets[1]/configuration/outputFile" ) ); - assertEquals( 1, ( (List) pom.getValue( "reporting/plugins[1]/reportSets[1]/reports" ) ).size() ); - assertEquals( "run", pom.getValue( "reporting/plugins[1]/reportSets[1]/reports[1]" ) ); - } - - /* MNG-2309*/ - - public void testProfileInjectionOrder() - throws Exception - { - PomTestWrapper pom = - buildPom( "profile-injection-order", "pom-a", "pom-b", "pom-e", "pom-c", "pom-d" ); - assertEquals( "e", pom.getValue( "properties[1]/pomProperty" ) ); - } - - public void testPropertiesInheritance() - throws Exception - { - PomTestWrapper pom = buildPom( "properties-inheritance/sub" ); - assertEquals( "parent-property", pom.getValue( "properties/parentProperty" ) ); - assertEquals( "child-property", pom.getValue( "properties/childProperty" ) ); - assertEquals( "child-override", pom.getValue( "properties/overriddenProperty" ) ); - } - - /* MNG-4102*/ - public void testInheritedPropertiesInterpolatedWithValuesFromChildWithoutProfiles() - throws Exception - { - PomTestWrapper pom = buildPom( "inherited-properties-interpolation/no-profile/sub" ); - - assertEquals( "CHILD", pom.getValue( "properties/overridden" ) ); - assertEquals( "CHILD", pom.getValue( "properties/interpolated" ) ); - } - - /* MNG-4102 */ - public void testInheritedPropertiesInterpolatedWithValuesFromChildWithActiveProfiles() - throws Exception - { - PomTestWrapper pom = buildPom( "inherited-properties-interpolation/active-profile/sub" ); - - assertEquals( 1, pom.getMavenProject().getModel().getProfiles().size() ); - - buildPom( "inherited-properties-interpolation/active-profile/sub", "it-parent", "it-child" ); - assertEquals( "CHILD", pom.getValue( "properties/overridden" ) ); - assertEquals( "CHILD", pom.getValue( "properties/interpolated" ) ); - } - - /* MNG-3545 */ - public void testProfileDefaultActivation() - throws Exception - { - PomTestWrapper pom = buildPom( "profile-default-deactivation", "profile4" ); - assertEquals( 1, pom.getMavenProject().getActiveProfiles().size() ); - assertEquals( 1, ( (List) pom.getValue( "build/plugins" ) ).size() ); - assertEquals( "2.1", pom.getValue( "build/plugins[1]/version" ) ); - } - - /* MNG-1995 */ - public void testBooleanInterpolation() - throws Exception - { - PomTestWrapper pom = buildPom( "boolean-interpolation" ); - assertTrue ((Boolean) pom.getValue( "repositories[1]/releases/enabled" ) ); - assertTrue((Boolean) pom.getValue( "build/resources[1]/filtering" ) ); - } - - - /* MNG-3899 */ - public void testBuildExtensionInheritance() - throws Exception - { - PomTestWrapper pom = buildPom( "build-extension-inheritance/sub" ); - assertEquals( 3, ( (List) pom.getValue( "build/extensions" ) ).size() ); - assertEquals( "b", pom.getValue( "build/extensions[1]/artifactId" ) ); - assertEquals( "a", pom.getValue( "build/extensions[2]/artifactId" ) ); - assertEquals( "0.2", pom.getValue( "build/extensions[2]/version" ) ); - assertEquals( "c", pom.getValue( "build/extensions[3]/artifactId" ) ); - } - - /*MNG-1957*/ - public void testJdkActivation() - throws Exception - { - Properties props = new Properties(); - props.put( "java.version", "1.5.0_15" ); - - PomTestWrapper pom = buildPom( "jdk-activation", props ); - assertEquals( 3, pom.getMavenProject().getActiveProfiles().size() ); - assertEquals( "PASSED", pom.getValue( "properties/jdkProperty3" ) ); - assertEquals( "PASSED", pom.getValue( "properties/jdkProperty2" ) ); - assertEquals( "PASSED", pom.getValue( "properties/jdkProperty1" ) ); - } - - /* MNG-2174 */ - public void testProfilePluginMngDependencies() - throws Exception - { - PomTestWrapper pom = buildPom( "profile-plugin-mng-dependencies/sub", "maven-core-it" ); - assertEquals( "a", pom.getValue( "build/plugins[1]/dependencies[1]/artifactId" ) ); - } - - /** MNG-4116 */ - public void testPercentEncodedUrlsMustNotBeDecoded() - throws Exception - { - PomTestWrapper pom = this.buildPom( "url-no-decoding" ); - assertEquals( "http://maven.apache.org/spacy%20path", pom.getValue( "url" ) ); - assertEquals( "http://svn.apache.org/viewvc/spacy%20path", pom.getValue( "scm/url" ) ); - assertEquals( "scm:svn:svn+ssh://svn.apache.org/spacy%20path", pom.getValue( "scm/connection" ) ); - assertEquals( "scm:svn:svn+ssh://svn.apache.org/spacy%20path", pom.getValue( "scm/developerConnection" ) ); - assertEquals( "http://issues.apache.org/spacy%20path", pom.getValue( "issueManagement/url" ) ); - assertEquals( "http://ci.apache.org/spacy%20path", pom.getValue( "ciManagement/url" ) ); - assertEquals( "scm:svn:svn+ssh://dist.apache.org/spacy%20path", - pom.getValue( "distributionManagement/repository/url" ) ); - assertEquals( "scm:svn:svn+ssh://snap.apache.org/spacy%20path", - pom.getValue( "distributionManagement/snapshotRepository/url" ) ); - assertEquals( "scm:svn:svn+ssh://site.apache.org/spacy%20path", - pom.getValue( "distributionManagement/site/url" ) ); - } - - public void testPluginManagementInheritance() - throws Exception - { - PomTestWrapper pom = this.buildPom( "plugin-management-inheritance" ); - assertEquals( "0.1-stub-SNAPSHOT", - pom.getValue( "build/pluginManagement/plugins[@artifactId='maven-compiler-plugin']/version" ) ); - } - - public void testProfilePlugins() - throws Exception - { - PomTestWrapper pom = this.buildPom( "profile-plugins", "standard" ); - assertEquals( 2, ( (List) pom.getValue( "build/plugins" ) ).size() ); - assertEquals( "maven-assembly2-plugin", pom.getValue( "build/plugins[2]/artifactId" ) ); - } - - public void testPluginInheritanceSimple() - throws Exception - { - PomTestWrapper pom = this.buildPom( "plugin-inheritance-simple/sub" ); - assertEquals( 2, ( (List) pom.getValue( "build/plugins" ) ).size() ); - } - - public void testPluginManagementDuplicate() - throws Exception - { - PomTestWrapper pom = this.buildPom( "plugin-management-duplicate/sub" ); - assertEquals( 12, ( (List) pom.getValue( "build/pluginManagement/plugins" ) ).size() ); - } - - public void testDistributionManagement() - throws Exception - { - PomTestWrapper pom = this.buildPom( "distribution-management" ); - assertEquals( "legacy", pom.getValue( "distributionManagement/repository/layout" ) ); - } - - public void testDependencyScopeInheritance() - throws Exception - { - PomTestWrapper pom = buildPom( "dependency-scope-inheritance/sub" ); - String scope = (String) pom.getValue( "dependencies[1]/scope" ); - assertEquals( "compile", scope ); - } - - public void testDependencyScope() - throws Exception - { - buildPom( "dependency-scope/sub" ); - } - - //This will fail on a validation error if incorrect - public void testDependencyManagementWithInterpolation() - throws Exception - { - buildPom( "dependency-management-with-interpolation/sub" ); - } - - public void testInterpolationWithSystemProperty() - throws Exception - { - Properties sysProps = new Properties(); - sysProps.setProperty( "system.property", "PASSED" ); - PomTestWrapper pom = buildPom( "sytem-property-interpolation", sysProps ); - assertEquals( "PASSED", pom.getValue( "name" ) ); - } - - /* MNG-4129 */ - public void testPluginExecutionInheritanceWhenChildDoesNotDeclarePlugin() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-exec-inheritance/wo-merge" ); - @SuppressWarnings( "unchecked" ) - List executions = - (List) pom.getValue( "build/pluginsAsMap[@name='org.apache.maven.its.plugins:maven-it-plugin-log-file']/executions" ); - assertEquals( 1, executions.size() ); - assertEquals( "inherited-execution", executions.get( 0 ).getId() ); - } - - public void testPluginExecutionInheritanceWhenChildDoesDeclarePluginAsWell() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-exec-inheritance/w-merge" ); - @SuppressWarnings( "unchecked" ) - List executions = - (List) pom.getValue( "build/pluginsAsMap[@name='org.apache.maven.its.plugins:maven-it-plugin-log-file']/executions" ); - assertEquals( 1, executions.size() ); - assertEquals( "inherited-execution", executions.get( 0 ).getId() ); - } - - /* MNG-4193 */ - public void testValidationErrorUponNonUniqueArtifactRepositoryId() - throws Exception - { - try - { - buildPom( "unique-repo-id/artifact-repo" ); - fail( "Non-unique repository ids did not cause validation error" ); - } - catch ( ProjectBuildingException e ) - { - // expected - } - } - - /* MNG-4193 */ - public void testValidationErrorUponNonUniquePluginRepositoryId() - throws Exception - { - try - { - buildPom( "unique-repo-id/plugin-repo" ); - fail( "Non-unique repository ids did not cause validation error" ); - } - catch ( ProjectBuildingException e ) - { - // expected - } - } - - /* MNG-4193 */ - public void testValidationErrorUponNonUniqueArtifactRepositoryIdInProfile() - throws Exception - { - try - { - buildPom( "unique-repo-id/artifact-repo-in-profile" ); - fail( "Non-unique repository ids did not cause validation error" ); - } - catch ( ProjectBuildingException e ) - { - // expected - } - } - - /* MNG-4193 */ - public void testValidationErrorUponNonUniquePluginRepositoryIdInProfile() - throws Exception - { - try - { - buildPom( "unique-repo-id/plugin-repo-in-profile" ); - fail( "Non-unique repository ids did not cause validation error" ); - } - catch ( ProjectBuildingException e ) - { - // expected - } - } - - /** MNG-3843 */ - public void testPrerequisitesAreNotInherited() - throws Exception - { - PomTestWrapper pom = buildPom( "prerequisites-inheritance/child" ); - assertSame( null, pom.getValue( "prerequisites" ) ); - } - - public void testLicensesAreInheritedButNotAggregated() - throws Exception - { - PomTestWrapper pom = buildPom( "licenses-inheritance/child-2" ); - assertEquals( 1, ( (List) pom.getValue( "licenses" ) ).size() ); - assertEquals( "child-license", pom.getValue( "licenses[1]/name" ) ); - assertEquals( "http://child.url/license", pom.getValue( "licenses[1]/url" ) ); - } - - public void testDevelopersAreInheritedButNotAggregated() - throws Exception - { - PomTestWrapper pom = buildPom( "developers-inheritance/child-2" ); - assertEquals( 1, ( (List) pom.getValue( "developers" ) ).size() ); - assertEquals( "child-developer", pom.getValue( "developers[1]/name" ) ); - } - - public void testContributorsAreInheritedButNotAggregated() - throws Exception - { - PomTestWrapper pom = buildPom( "contributors-inheritance/child-2" ); - assertEquals( 1, ( (List) pom.getValue( "contributors" ) ).size() ); - assertEquals( "child-contributor", pom.getValue( "contributors[1]/name" ) ); - } - - public void testMailingListsAreInheritedButNotAggregated() - throws Exception - { - PomTestWrapper pom = buildPom( "mailing-lists-inheritance/child-2" ); - assertEquals( 1, ( (List) pom.getValue( "mailingLists" ) ).size() ); - assertEquals( "child-mailing-list", pom.getValue( "mailingLists[1]/name" ) ); - } - - public void testPluginInheritanceOrder() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-inheritance-order/child" ); - - assertEquals( "maven-it-plugin-log-file", pom.getValue( "build/plugins[1]/artifactId" ) ); - assertEquals( "maven-it-plugin-expression", pom.getValue( "build/plugins[2]/artifactId" ) ); - assertEquals( "maven-it-plugin-configuration", pom.getValue( "build/plugins[3]/artifactId" ) ); - - assertEquals( "maven-it-plugin-log-file", pom.getValue( "reporting/plugins[1]/artifactId" ) ); - assertEquals( "maven-it-plugin-expression", pom.getValue( "reporting/plugins[2]/artifactId" ) ); - assertEquals( "maven-it-plugin-configuration", pom.getValue( "reporting/plugins[3]/artifactId" ) ); - } - - public void testCliPropsDominateProjectPropsDuringInterpolation() - throws Exception - { - Properties props = new Properties(); - props.setProperty( "testProperty", "PASSED" ); - PomTestWrapper pom = buildPom( "interpolation-cli-wins", props ); - - assertEquals( "PASSED", pom.getValue( "properties/interpolatedProperty" ) ); - } - - public void testParentPomPackagingMustBePom() - throws Exception - { - try - { - buildPom( "parent-pom-packaging/sub" ); - fail( "Wrong packaging of parent POM was not rejected" ); - } - catch ( ProjectBuildingException e ) - { - // expected - } - } - - /** MNG-522, MNG-3018 */ - public void testManagedPluginConfigurationAppliesToImplicitPluginsIntroducedByPackaging() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-management-for-implicit-plugin/child" ); - assertEquals( "passed.txt", - pom.getValue( "build/plugins[@artifactId='maven-resources-plugin']/configuration/pathname" ) ); - assertEquals( "passed.txt", - pom.getValue( "build/plugins[@artifactId='maven-it-plugin-log-file']/configuration/logFile" ) ); - } - - public void testDefaultPluginsExecutionContributedByPackagingExecuteBeforeUserDefinedExecutions() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-exec-order-and-default-exec" ); - @SuppressWarnings( "unchecked" ) - List executions = - (List) pom.getValue( "build/plugins[@artifactId='maven-resources-plugin']/executions" ); - assertNotNull( executions ); - assertEquals( 4, executions.size() ); - assertEquals( "default-resources", executions.get( 0 ).getId() ); - assertEquals( "default-testResources", executions.get( 1 ).getId() ); - assertEquals( "test-1", executions.get( 2 ).getId() ); - assertEquals( "test-2", executions.get( 3 ).getId() ); - } - - public void testPluginDeclarationsRetainPomOrderAfterInjectionOfDefaultPlugins() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-exec-order-with-lifecycle" ); - @SuppressWarnings( "unchecked" ) - List plugins = (List) pom.getValue( "build/plugins" ); - int resourcesPlugin = -1; - int customPlugin = -1; - for ( int i = 0; i < plugins.size(); i++ ) - { - Plugin plugin = plugins.get( i ); - if ( "maven-resources-plugin".equals( plugin.getArtifactId() ) ) - { - assertTrue( resourcesPlugin < 0 ); - resourcesPlugin = i; - } - else if ( "maven-it-plugin-log-file".equals( plugin.getArtifactId() ) ) - { - assertTrue( customPlugin < 0 ); - customPlugin = i; - } - } - assertTrue( plugins.toString(), customPlugin == resourcesPlugin - 1 ); - } - - /** MNG-4415 */ - public void testPluginOrderAfterMergingWithInheritedPlugins() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-inheritance-merge-order/sub" ); - - List expected = new ArrayList(); - expected.add( "maven-it-plugin-error" ); - expected.add( "maven-it-plugin-configuration" ); - expected.add( "maven-it-plugin-dependency-resolution" ); - expected.add( "maven-it-plugin-packaging" ); - expected.add( "maven-it-plugin-log-file" ); - expected.add( "maven-it-plugin-expression" ); - expected.add( "maven-it-plugin-fork" ); - expected.add( "maven-it-plugin-touch" ); - - List actual = new ArrayList(); - @SuppressWarnings( "unchecked" ) - List plugins = (List) pom.getValue( "build/plugins" ); - for ( Plugin plugin : plugins ) - { - actual.add( plugin.getArtifactId() ); - } - - actual.retainAll( expected ); - - assertEquals( actual, expected ); - } - - /** MNG-4416 */ - public void testPluginOrderAfterMergingWithInjectedPlugins() - throws Exception - { - PomTestWrapper pom = buildPom( "plugin-injection-merge-order" ); - - List expected = new ArrayList(); - expected.add( "maven-it-plugin-error" ); - expected.add( "maven-it-plugin-configuration" ); - expected.add( "maven-it-plugin-dependency-resolution" ); - expected.add( "maven-it-plugin-packaging" ); - expected.add( "maven-it-plugin-log-file" ); - expected.add( "maven-it-plugin-expression" ); - expected.add( "maven-it-plugin-fork" ); - expected.add( "maven-it-plugin-touch" ); - - List actual = new ArrayList(); - @SuppressWarnings( "unchecked" ) - List plugins = (List) pom.getValue( "build/plugins" ); - for ( Plugin plugin : plugins ) - { - actual.add( plugin.getArtifactId() ); - } - - actual.retainAll( expected ); - - assertEquals( actual, expected ); - } - - public void testProjectArtifactIdIsNotInheritedButMandatory() - throws Exception - { - try - { - buildPom( "artifact-id-inheritance/child" ); - fail( "Missing artifactId did not cause validation error" ); - } - catch ( ProjectBuildingException e ) - { - // expected - } - } - - private void assertPathSuffixEquals( String expected, Object actual ) - { - String a = actual.toString(); - a = a.substring( a.length() - expected.length() ).replace( '\\', '/' ); - assertEquals( expected, a ); - } - - private void assertPathWithNormalizedFileSeparators( Object value ) - { - assertEquals( new File( value.toString() ).getPath(), value.toString() ); - } - - private PomTestWrapper buildPom( String pomPath, String... profileIds ) - throws Exception - { - return buildPom( pomPath, null, profileIds ); - } - - private PomTestWrapper buildPom( String pomPath, Properties executionProperties, String... profileIds ) - throws Exception - { - return buildPom( pomPath, false, executionProperties, profileIds ); - } - - private PomTestWrapper buildPom( String pomPath, boolean lenientValidation, Properties executionProperties, - String... profileIds ) - throws Exception - { - File pomFile = new File( testDirectory, pomPath ); - if ( pomFile.isDirectory() ) - { - pomFile = new File( pomFile, "pom.xml" ); - } - - ProjectBuildingRequest config = new DefaultProjectBuildingRequest(); - - String localRepoUrl = - System.getProperty( "maven.repo.local", System.getProperty( "user.home" ) + "/.m2/repository" ); - localRepoUrl = "file://" + localRepoUrl; - config.setLocalRepository( repositorySystem.createArtifactRepository( "local", localRepoUrl, new DefaultRepositoryLayout(), null, null ) ); - config.setActiveProfileIds( Arrays.asList( profileIds ) ); - config.setSystemProperties( executionProperties ); - config.setUserProperties( executionProperties ); - config.setValidationLevel( lenientValidation ? ModelBuildingRequest.VALIDATION_LEVEL_MAVEN_2_0 - : ModelBuildingRequest.VALIDATION_LEVEL_STRICT ); - - DefaultRepositorySystemSession repoSession = MavenRepositorySystemUtils.newSession(); - LocalRepository localRepo = new LocalRepository( config.getLocalRepository().getBasedir() ); - repoSession.setLocalRepositoryManager( new SimpleLocalRepositoryManagerFactory().newInstance( repoSession, localRepo ) ); - config.setRepositorySession( repoSession ); - - return new PomTestWrapper( pomFile, projectBuilder.build( pomFile, config ).getProject() ); - } - - protected void assertModelEquals( PomTestWrapper pom, Object expected, String expression ) - { - assertEquals( expected, pom.getValue( expression ) ); - } - - private static String createPath( List elements ) - { - StringBuilder buffer = new StringBuilder( 256 ); - for ( String s : elements ) - { - buffer.append( s ).append( File.separator ); - } - return buffer.toString().substring( 0, buffer.toString().length() - 1 ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java deleted file mode 100644 index 5511cb1a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java +++ /dev/null @@ -1,87 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.Properties; - -import org.apache.maven.AbstractCoreMavenComponentTestCase; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.model.building.FileModelSource; -import org.apache.maven.model.building.ModelSource; - -public class ProjectBuilderTest - extends AbstractCoreMavenComponentTestCase -{ - protected String getProjectsDirectory() - { - return "src/test/projects/project-builder"; - } - - public void testSystemScopeDependencyIsPresentInTheCompileClasspathElements() - throws Exception - { - File pom = getProject( "it0063" ); - - Properties eps = new Properties(); - eps.setProperty( "jre.home", new File( pom.getParentFile(), "jdk/jre" ).getPath() ); - - MavenSession session = createMavenSession( pom, eps ); - MavenProject project = session.getCurrentProject(); - - // Here we will actually not have any artifacts because the ProjectDependenciesResolver is not involved here. So - // right now it's not valid to ask for artifacts unless plugins require the artifacts. - - project.getCompileClasspathElements(); - } - - public void testBuildFromModelSource() - throws Exception - { - File pomFile = new File( "src/test/resources/projects/modelsource/module01/pom.xml" ); - MavenSession mavenSession = createMavenSession( pomFile ); - ProjectBuildingRequest configuration = new DefaultProjectBuildingRequest(); - configuration.setRepositorySession( mavenSession.getRepositorySession() ); - ModelSource modelSource = new FileModelSource( pomFile ); - ProjectBuildingResult result = - lookup( org.apache.maven.project.ProjectBuilder.class ).build( modelSource, configuration ); - - assertNotNull( result.getProject().getParentFile() ); - } - - public void testVersionlessManagedDependency() - throws Exception - { - File pomFile = new File( "src/test/resources/projects/versionless-managed-dependency.xml" ); - MavenSession mavenSession = createMavenSession( null ); - ProjectBuildingRequest configuration = new DefaultProjectBuildingRequest(); - configuration.setRepositorySession( mavenSession.getRepositorySession() ); - - try - { - lookup( org.apache.maven.project.ProjectBuilder.class ).build( pomFile, configuration ); - fail(); - } - catch ( ProjectBuildingException e ) - { - // this is expected - } - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/ProjectSorterTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/ProjectSorterTest.java deleted file mode 100644 index 5cb45279..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/ProjectSorterTest.java +++ /dev/null @@ -1,363 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - -import junit.framework.TestCase; - -import org.apache.maven.model.Build; -import org.apache.maven.model.Dependency; -import org.apache.maven.model.Extension; -import org.apache.maven.model.Model; -import org.apache.maven.model.Parent; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.PluginManagement; -import org.codehaus.plexus.util.dag.CycleDetectedException; - -/** - * Test sorting projects by dependencies. - * - * @author Brett Porter - */ -public class ProjectSorterTest - extends TestCase -{ - - private Parent createParent( MavenProject project ) - { - return createParent( project.getGroupId(), project.getArtifactId(), project.getVersion() ); - } - - private Parent createParent( String groupId, String artifactId, String version ) - { - Parent plugin = new Parent(); - plugin.setGroupId( groupId ); - plugin.setArtifactId( artifactId ); - plugin.setVersion( version ); - return plugin; - } - - private Dependency createDependency( MavenProject project ) - { - return createDependency( project.getGroupId(), project.getArtifactId(), project.getVersion() ); - } - - private Dependency createDependency( String groupId, String artifactId, String version ) - { - Dependency depdendency = new Dependency(); - depdendency.setGroupId( groupId ); - depdendency.setArtifactId( artifactId ); - depdendency.setVersion( version ); - return depdendency; - } - - private Plugin createPlugin( MavenProject project ) - { - return createPlugin( project.getGroupId(), project.getArtifactId(), project.getVersion() ); - } - - private Plugin createPlugin( String groupId, String artifactId, String version ) - { - Plugin plugin = new Plugin(); - plugin.setGroupId( groupId ); - plugin.setArtifactId( artifactId ); - plugin.setVersion( version ); - return plugin; - } - - private Extension createExtension( String groupId, String artifactId, String version ) - { - Extension extension = new Extension(); - extension.setGroupId( groupId ); - extension.setArtifactId( artifactId ); - extension.setVersion( version ); - return extension; - } - - private static MavenProject createProject( String groupId, String artifactId, String version ) - { - Model model = new Model(); - model.setGroupId( groupId ); - model.setArtifactId( artifactId ); - model.setVersion( version ); - model.setBuild( new Build() ); - return new MavenProject( model ); - } - - public void testShouldNotFailWhenPluginDepReferencesCurrentProject() - throws CycleDetectedException, DuplicateProjectException - { - MavenProject project = createProject( "group", "artifact", "1.0" ); - - Build build = project.getModel().getBuild(); - - Plugin plugin = createPlugin( "other.group", "other-artifact", "1.0" ); - - Dependency dep = createDependency( "group", "artifact", "1.0" ); - - plugin.addDependency( dep ); - - build.addPlugin( plugin ); - - new ProjectSorter( Collections.singletonList( project ) ); - } - - public void testShouldNotFailWhenManagedPluginDepReferencesCurrentProject() - throws CycleDetectedException, DuplicateProjectException - { - MavenProject project = createProject( "group", "artifact", "1.0" ); - - Build build = project.getModel().getBuild(); - - PluginManagement pMgmt = new PluginManagement(); - - Plugin plugin = createPlugin( "other.group", "other-artifact", "1.0" ); - - Dependency dep = createDependency( "group", "artifact", "1.0" ); - - plugin.addDependency( dep ); - - pMgmt.addPlugin( plugin ); - - build.setPluginManagement( pMgmt ); - - new ProjectSorter( Collections.singletonList( project ) ); - } - - public void testShouldNotFailWhenProjectReferencesNonExistentProject() - throws CycleDetectedException, DuplicateProjectException - { - MavenProject project = createProject( "group", "artifact", "1.0" ); - - Build build = project.getModel().getBuild(); - - Extension extension = createExtension( "other.group", "other-artifact", "1.0" ); - - build.addExtension( extension ); - - new ProjectSorter( Collections.singletonList( project ) ); - } - - public void testMatchingArtifactIdsDifferentGroupIds() - throws CycleDetectedException, DuplicateProjectException - { - List projects = new ArrayList(); - MavenProject project1 = createProject( "groupId1", "artifactId", "1.0" ); - projects.add( project1 ); - MavenProject project2 = createProject( "groupId2", "artifactId", "1.0" ); - projects.add( project2 ); - project1.getDependencies().add( createDependency( project2 ) ); - - projects = new ProjectSorter( projects ).getSortedProjects(); - - assertEquals( project2, projects.get( 0 ) ); - assertEquals( project1, projects.get( 1 ) ); - } - - public void testMatchingGroupIdsDifferentArtifactIds() - throws CycleDetectedException, DuplicateProjectException - { - List projects = new ArrayList(); - MavenProject project1 = createProject( "groupId", "artifactId1", "1.0" ); - projects.add( project1 ); - MavenProject project2 = createProject( "groupId", "artifactId2", "1.0" ); - projects.add( project2 ); - project1.getDependencies().add( createDependency( project2 ) ); - - projects = new ProjectSorter( projects ).getSortedProjects(); - - assertEquals( project2, projects.get( 0 ) ); - assertEquals( project1, projects.get( 1 ) ); - } - - public void testMatchingIdsAndVersions() - throws CycleDetectedException - { - List projects = new ArrayList(); - MavenProject project1 = createProject( "groupId", "artifactId", "1.0" ); - projects.add( project1 ); - MavenProject project2 = createProject( "groupId", "artifactId", "1.0" ); - projects.add( project2 ); - - try - { - projects = new ProjectSorter( projects ).getSortedProjects(); - fail( "Duplicate projects should fail" ); - } - catch ( DuplicateProjectException e ) - { - // expected - assertTrue( true ); - } - } - - public void testMatchingIdsAndDifferentVersions() - throws CycleDetectedException, DuplicateProjectException - { - List projects = new ArrayList(); - MavenProject project1 = createProject( "groupId", "artifactId", "1.0" ); - projects.add( project1 ); - MavenProject project2 = createProject( "groupId", "artifactId", "2.0" ); - projects.add( project2 ); - - projects = new ProjectSorter( projects ).getSortedProjects(); - assertEquals( project1, projects.get( 0 ) ); - assertEquals( project2, projects.get( 1 ) ); - } - - public void testPluginDependenciesInfluenceSorting() - throws Exception - { - List projects = new ArrayList(); - - MavenProject parentProject = createProject( "groupId", "parent", "1.0" ); - projects.add( parentProject ); - - MavenProject declaringProject = createProject( "groupId", "declarer", "1.0" ); - declaringProject.setParent( parentProject ); - declaringProject.getModel().setParent( createParent( parentProject ) ); - projects.add( declaringProject ); - - MavenProject pluginLevelDepProject = createProject( "groupId", "plugin-level-dep", "1.0" ); - pluginLevelDepProject.setParent( parentProject ); - pluginLevelDepProject.getModel().setParent( createParent( parentProject ) ); - projects.add( pluginLevelDepProject ); - - MavenProject pluginProject = createProject( "groupId", "plugin", "1.0" ); - pluginProject.setParent( parentProject ); - pluginProject.getModel().setParent( createParent( parentProject ) ); - projects.add( pluginProject ); - - Plugin plugin = createPlugin( pluginProject ); - - plugin.addDependency( createDependency( pluginLevelDepProject ) ); - - Build build = declaringProject.getModel().getBuild(); - - build.addPlugin( plugin ); - - projects = new ProjectSorter( projects ).getSortedProjects(); - - assertEquals( parentProject, projects.get( 0 ) ); - - // the order of these two is non-deterministic, based on when they're added to the reactor. - assertTrue( projects.contains( pluginProject ) ); - assertTrue( projects.contains( pluginLevelDepProject ) ); - - // the declaring project MUST be listed after the plugin and its plugin-level dep, though. - assertEquals( declaringProject, projects.get( 3 ) ); - } - - public void testPluginDependenciesInfluenceSorting_DeclarationInParent() - throws Exception - { - List projects = new ArrayList(); - - MavenProject parentProject = createProject( "groupId", "parent-declarer", "1.0" ); - projects.add( parentProject ); - - MavenProject pluginProject = createProject( "groupId", "plugin", "1.0" ); - pluginProject.setParent( parentProject ); - pluginProject.getModel().setParent( createParent( parentProject ) ); - projects.add( pluginProject ); - - MavenProject pluginLevelDepProject = createProject( "groupId", "plugin-level-dep", "1.0" ); - pluginLevelDepProject.setParent( parentProject ); - pluginLevelDepProject.getModel().setParent( createParent( parentProject ) ); - projects.add( pluginLevelDepProject ); - - Plugin plugin = createPlugin( pluginProject ); - - plugin.addDependency( createDependency( pluginLevelDepProject ) ); - - Build build = parentProject.getModel().getBuild(); - - build.addPlugin( plugin ); - - projects = new ProjectSorter( projects ).getSortedProjects(); - - System.out.println( projects ); - - assertEquals( parentProject, projects.get( 0 ) ); - - // the order of these two is non-deterministic, based on when they're added to the reactor. - assertTrue( projects.contains( pluginProject ) ); - assertTrue( projects.contains( pluginLevelDepProject ) ); - } - - public void testPluginVersionsAreConsidered() - throws Exception - { - List projects = new ArrayList(); - - MavenProject pluginProjectA = createProject( "group", "plugin-a", "2.0-SNAPSHOT" ); - projects.add( pluginProjectA ); - pluginProjectA.getModel().getBuild().addPlugin( createPlugin( "group", "plugin-b", "1.0" ) ); - - MavenProject pluginProjectB = createProject( "group", "plugin-b", "2.0-SNAPSHOT" ); - projects.add( pluginProjectB ); - pluginProjectB.getModel().getBuild().addPlugin( createPlugin( "group", "plugin-a", "1.0" ) ); - - projects = new ProjectSorter( projects ).getSortedProjects(); - - assertTrue( projects.contains( pluginProjectA ) ); - assertTrue( projects.contains( pluginProjectB ) ); - } - - public void testDependencyPrecedesProjectThatUsesSpecificDependencyVersion() - throws Exception - { - List projects = new ArrayList(); - - MavenProject usingProject = createProject( "group", "project", "1.0" ); - projects.add( usingProject ); - usingProject.getModel().addDependency( createDependency( "group", "dependency", "1.0" ) ); - - MavenProject pluginProject = createProject( "group", "dependency", "1.0" ); - projects.add( pluginProject ); - - projects = new ProjectSorter( projects ).getSortedProjects(); - - assertEquals( pluginProject, projects.get( 0 ) ); - assertEquals( usingProject, projects.get( 1 ) ); - } - - public void testDependencyPrecedesProjectThatUsesUnresolvedDependencyVersion() - throws Exception - { - List projects = new ArrayList(); - - MavenProject usingProject = createProject( "group", "project", "1.0" ); - projects.add( usingProject ); - usingProject.getModel().addDependency( createDependency( "group", "dependency", "[1.0,)" ) ); - - MavenProject pluginProject = createProject( "group", "dependency", "1.0" ); - projects.add( pluginProject ); - - projects = new ProjectSorter( projects ).getSortedProjects(); - - assertEquals( pluginProject, projects.get( 0 ) ); - assertEquals( usingProject, projects.get( 1 ) ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/TestMetadataSource.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/TestMetadataSource.java deleted file mode 100644 index 67c0037b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/TestMetadataSource.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.apache.maven.project; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; -import org.apache.maven.artifact.metadata.ArtifactMetadataSource; -import org.apache.maven.artifact.metadata.ResolutionGroup; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.project.artifact.MavenMetadataSource; -import org.codehaus.plexus.component.annotations.Component; - -@SuppressWarnings( "deprecation" ) -@Component( role = ArtifactMetadataSource.class, hint = "classpath" ) -public class TestMetadataSource - extends MavenMetadataSource -{ - @Override - public ResolutionGroup retrieve( Artifact artifact, ArtifactRepository localRepository, - List remoteRepositories ) - throws ArtifactMetadataRetrievalException - { - ResolutionGroup rg = super.retrieve( artifact, localRepository, remoteRepositories ); - - for ( Artifact a : rg.getArtifacts() ) - { - a.setResolved( true ); - } - - return rg; - } -} \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/artifact/DefaultMavenMetadataCacheTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/artifact/DefaultMavenMetadataCacheTest.java deleted file mode 100644 index 6b103b2c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/artifact/DefaultMavenMetadataCacheTest.java +++ /dev/null @@ -1,81 +0,0 @@ -package org.apache.maven.project.artifact; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Arrays; -import java.util.Collections; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.resolver.filter.ExcludesArtifactFilter; -import org.apache.maven.project.artifact.DefaultMavenMetadataCache.CacheKey; -import org.apache.maven.repository.DelegatingLocalArtifactRepository; -import org.apache.maven.repository.RepositorySystem; -import org.codehaus.plexus.PlexusTestCase; - -/** - * @author Igor Fedorenko - */ -public class DefaultMavenMetadataCacheTest - extends PlexusTestCase -{ - private RepositorySystem repositorySystem; - - protected void setUp() - throws Exception - { - super.setUp(); - repositorySystem = lookup( RepositorySystem.class ); - } - - @Override - protected void tearDown() - throws Exception - { - repositorySystem = null; - super.tearDown(); - } - - public void testCacheKey() - throws Exception - { - Artifact a1 = repositorySystem.createArtifact( "testGroup", "testArtifact", "1.2.3", "jar" ); - @SuppressWarnings( "deprecation" ) - ArtifactRepository lr1 = new DelegatingLocalArtifactRepository( repositorySystem.createDefaultLocalRepository() ); - ArtifactRepository rr1 = repositorySystem.createDefaultRemoteRepository(); - a1.setDependencyFilter( new ExcludesArtifactFilter( Arrays.asList( "foo" ) ) ); - - Artifact a2 = repositorySystem.createArtifact( "testGroup", "testArtifact", "1.2.3", "jar" ); - @SuppressWarnings( "deprecation" ) - ArtifactRepository lr2 = new DelegatingLocalArtifactRepository( repositorySystem.createDefaultLocalRepository() ); - ArtifactRepository rr2 = repositorySystem.createDefaultRemoteRepository(); - a2.setDependencyFilter( new ExcludesArtifactFilter( Arrays.asList( "foo" ) ) ); - - // sanity checks - assertNotSame( a1, a2 ); - assertNotSame( lr1, lr2 ); - assertNotSame( rr1, rr2 ); - - CacheKey k1 = new CacheKey( a1, false, lr1, Collections.singletonList( rr1 ) ); - CacheKey k2 = new CacheKey( a2, false, lr2, Collections.singletonList( rr2 ) ); - - assertEquals(k1.hashCode(), k2.hashCode()); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/artifact/MavenMetadataSourceTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/artifact/MavenMetadataSourceTest.java deleted file mode 100644 index 9c770da9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/artifact/MavenMetadataSourceTest.java +++ /dev/null @@ -1,183 +0,0 @@ -package org.apache.maven.project.artifact; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.repository.RepositorySystem; -import org.codehaus.plexus.PlexusTestCase; - -public class MavenMetadataSourceTest - extends PlexusTestCase -{ - private RepositorySystem repositorySystem; - - protected void setUp() - throws Exception - { - super.setUp(); - repositorySystem = lookup( RepositorySystem.class ); - } - - @Override - protected void tearDown() - throws Exception - { - repositorySystem = null; - super.tearDown(); - } - - public void testShouldNotCarryExclusionsOverFromDependencyToDependency() - throws Exception - { - /* - Dependency dep1 = new Dependency(); - dep1.setGroupId( "test" ); - dep1.setArtifactId( "test-artifact" ); - dep1.setVersion( "1" ); - dep1.setType( "jar" ); - - Exclusion exc = new Exclusion(); - exc.setGroupId( "test" ); - exc.setArtifactId( "test-artifact3" ); - - dep1.addExclusion( exc ); - - Dependency dep2 = new Dependency(); - dep2.setGroupId( "test" ); - dep2.setArtifactId( "test-artifact2" ); - dep2.setVersion( "1" ); - dep2.setType( "jar" ); - - List deps = new ArrayList(); - deps.add( dep1 ); - deps.add( dep2 ); - - ArtifactFactory factory = lookup( ArtifactFactory.class ); - - ArtifactFilter dependencyFilter = new ScopeArtifactFilter( Artifact.SCOPE_COMPILE ); - - MavenProject project = new MavenProject( new Model() ); - - Set result = project.createArtifacts( dependencyFilter ); - - for ( Iterator it = result.iterator(); it.hasNext(); ) - { - Artifact artifact = ( Artifact ) it.next(); - - if ( "test-artifact2".equals( artifact.getArtifactId() ) ) - { - ArtifactFilter filter = artifact.getDependencyFilter(); - - assertSame( dependencyFilter, filter ); - } - } - */ - } - - //TODO: restore these if it makes sense - /* - public void testShouldUseCompileScopeIfDependencyScopeEmpty() - throws Exception - { - String groupId = "org.apache.maven"; - String artifactId = "maven-model"; - - Dependency dep = new Dependency(); - - dep.setGroupId( groupId ); - dep.setArtifactId( artifactId ); - dep.setVersion( "2.0-alpha-3" ); - - Model model = new Model(); - - model.addDependency( dep ); - - MavenProject project = new MavenProject( model, repositorySystem ); - - project.setArtifacts( project.createArtifacts( null ) ); - - String key = ArtifactUtils.versionlessKey( groupId, artifactId ); - - Map artifactMap = project.getArtifactMap(); - - assertNotNull( "artifact-map should not be null.", artifactMap ); - assertEquals( "artifact-map should contain 1 element.", 1, artifactMap.size() ); - - Artifact artifact = (Artifact) artifactMap.get( key ); - - assertNotNull( "dependency artifact not found in map.", artifact ); - assertEquals( "dependency artifact has wrong scope.", Artifact.SCOPE_COMPILE, artifact.getScope() ); - - //check for back-propagation of default scope. - assertEquals( "default scope NOT back-propagated to dependency.", Artifact.SCOPE_COMPILE, dep.getScope() ); - } - - public void testShouldUseInjectedTestScopeFromDependencyManagement() - throws Exception - { - String groupId = "org.apache.maven"; - String artifactId = "maven-model"; - - Dependency dep = new Dependency(); - - dep.setGroupId( groupId ); - dep.setArtifactId( artifactId ); - dep.setVersion( "2.0-alpha-3" ); - - Model model = new Model(); - - model.addDependency( dep ); - - Dependency mgd = new Dependency(); - mgd.setGroupId( groupId ); - mgd.setArtifactId( artifactId ); - mgd.setScope( Artifact.SCOPE_TEST ); - - DependencyManagement depMgmt = new DependencyManagement(); - - depMgmt.addDependency( mgd ); - - model.setDependencyManagement( depMgmt ); - - MavenProject project = new MavenProject( model, repositorySystem ); - - TestModelDefaultsInjector injector = new TestModelDefaultsInjector(); - - injector.injectDefaults( model ); - - project.setArtifacts( project.createArtifacts( null ) ); - - String key = ArtifactUtils.versionlessKey( groupId, artifactId ); - - Map artifactMap = project.getArtifactMap(); - - assertNotNull( "artifact-map should not be null.", artifactMap ); - assertEquals( "artifact-map should contain 1 element.", 1, artifactMap.size() ); - - Artifact artifact = (Artifact) artifactMap.get( key ); - - assertNotNull( "dependency artifact not found in map.", artifact ); - assertEquals( "dependency artifact has wrong scope.", Artifact.SCOPE_TEST, artifact.getScope() ); - - //check for back-propagation of default scope. - assertEquals( "default scope NOT back-propagated to dependency.", Artifact.SCOPE_TEST, dep.getScope() ); - } - */ - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/canonical/CanonicalProjectBuilderTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/canonical/CanonicalProjectBuilderTest.java deleted file mode 100644 index 8b6454da..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/canonical/CanonicalProjectBuilderTest.java +++ /dev/null @@ -1,101 +0,0 @@ -package org.apache.maven.project.canonical; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.List; - -import org.apache.maven.model.Plugin; -import org.apache.maven.model.PluginExecution; -import org.apache.maven.project.AbstractMavenProjectTestCase; -import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.util.xml.Xpp3Dom; - -/** - * @author Jason van Zyl - */ -public class CanonicalProjectBuilderTest - extends AbstractMavenProjectTestCase -{ - public void testProjectBuilder() - throws Exception - { - File f = getFileForClasspathResource( "canonical-pom.xml" ); - - MavenProject project = getProject( f ); - - // ---------------------------------------------------------------------- - // Top-level elements - // ---------------------------------------------------------------------- - - assertEquals( "4.0.0", project.getModelVersion() ); - - // ---------------------------------------------------------------------- - // Plugins - // ---------------------------------------------------------------------- - - List plugins = project.getBuildPlugins(); - - // Plugin0 [plexus] - - String key = "org.apache.maven.plugins:maven-plexus-plugin"; - - Plugin plugin = null; - for ( Plugin check : plugins ) - { - if ( key.equals( check.getKey() ) ) - { - plugin = check; - break; - } - } - - assertNotNull( plugin ); - - assertEquals( "1.0", plugin.getVersion() ); - - Xpp3Dom configuration = (Xpp3Dom) plugin.getConfiguration(); - - assertEquals( "src/conf/plexus.conf", configuration.getChild( "plexusConfiguration" ).getValue() ); - - assertEquals( "src/conf/plexus.properties", - configuration.getChild( "plexusConfigurationPropertiesFile" ).getValue() ); - - assertEquals( "Continuum", configuration.getChild( "plexusApplicationName" ).getValue() ); - - // ---------------------------------------------------------------------- - // Goal specific configuration - // ---------------------------------------------------------------------- - - List executions = plugin.getExecutions(); - - PluginExecution execution = executions.get( 0 ); - - String g0 = execution.getGoals().get( 0 ); - - assertEquals( "plexus:runtime", g0 ); - - configuration = (Xpp3Dom) execution.getConfiguration(); - - assertEquals( "ContinuumPro", configuration.getChild( "plexusApplicationName" ).getValue() ); - - // Plugin1 [antlr] - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/PomTestWrapper.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/PomTestWrapper.java deleted file mode 100644 index c204140a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/PomTestWrapper.java +++ /dev/null @@ -1,121 +0,0 @@ -package org.apache.maven.project.harness; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.util.Iterator; - -import org.apache.commons.jxpath.JXPathContext; -import org.apache.commons.jxpath.JXPathNotFoundException; -import org.apache.commons.jxpath.ri.JXPathContextReferenceImpl; -import org.apache.maven.project.MavenProject; - -public class PomTestWrapper -{ - - private File pomFile; - - private JXPathContext context; - - private MavenProject mavenProject; - - static - { - JXPathContextReferenceImpl.addNodePointerFactory( new Xpp3DomPointerFactory() ); - } - - public PomTestWrapper( File pomFile, MavenProject mavenProject ) - { - if ( mavenProject == null ) - { - throw new IllegalArgumentException( "mavenProject: null" ); - } - this.mavenProject = mavenProject; - this.pomFile = pomFile; - context = JXPathContext.newContext( mavenProject.getModel() ); - } - - public PomTestWrapper( MavenProject mavenProject ) - { - if ( mavenProject == null ) - { - throw new IllegalArgumentException( "mavenProject: null" ); - } - this.mavenProject = mavenProject; - context = JXPathContext.newContext( mavenProject.getModel() ); - } - - public MavenProject getMavenProject() - { - return mavenProject; - } - - public File getBasedir() - { - return ( pomFile != null ) ? pomFile.getParentFile() : null; - } - - public void setValueOnModel( String expression, Object value ) - { - context.setValue( expression, value ); - } - - /* - public int containerCountForUri( String uri ) - throws IOException - { - if ( uri == null || uri.trim().equals( "" ) ) - { - throw new IllegalArgumentException( "uri: null or empty" ); - } - ModelDataSource source = new DefaultModelDataSource(); - source.init( domainModel.getModelProperties(), null ); - return source.queryFor( uri ).size(); - } - */ - - public Iterator getIteratorForXPathExpression( String expression ) - { - return context.iterate( expression ); - } - - public boolean containsXPathExpression( String expression ) - { - return context.getValue( expression ) != null; - } - - public Object getValue( String expression ) - { - try - { - return context.getValue( expression ); - } - catch ( JXPathNotFoundException e ) - { - return null; - } - } - - public boolean xPathExpressionEqualsValue( String expression, String value ) - { - return context.getValue( expression ) != null && context.getValue( expression ).equals( value ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomAttributeIterator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomAttributeIterator.java deleted file mode 100644 index 2811a848..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomAttributeIterator.java +++ /dev/null @@ -1,89 +0,0 @@ -package org.apache.maven.project.harness; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; - -import org.apache.commons.jxpath.ri.QName; -import org.apache.commons.jxpath.ri.model.NodeIterator; -import org.apache.commons.jxpath.ri.model.NodePointer; -import org.codehaus.plexus.util.xml.Xpp3Dom; - -/** - * An attribute iterator for JXPath to support Xpp3Dom. - * - * @author Benjamin Bentmann - */ -class Xpp3DomAttributeIterator - implements NodeIterator -{ - - private NodePointer parent; - - private Xpp3Dom node; - - private List> attributes; - - private Map.Entry attribute; - - private int position; - - public Xpp3DomAttributeIterator( NodePointer parent, QName qname ) - { - this.parent = parent; - this.node = (Xpp3Dom) parent.getNode(); - - Map map = new LinkedHashMap(); - for ( String name : this.node.getAttributeNames() ) - { - if ( name.equals( qname.getName() ) || "*".equals( qname.getName() ) ) - { - String value = this.node.getAttribute( name ); - map.put( name, value ); - } - } - this.attributes = new ArrayList>( map.entrySet() ); - } - - public NodePointer getNodePointer() - { - if ( position == 0 ) - { - setPosition( 1 ); - } - return ( attribute == null ) ? null : new Xpp3DomAttributePointer( parent, attribute ); - } - - public int getPosition() - { - return position; - } - - public boolean setPosition( int position ) - { - this.position = position; - attribute = ( position > 0 && position <= attributes.size() ) ? attributes.get( position - 1 ) : null; - return attribute != null; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomAttributePointer.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomAttributePointer.java deleted file mode 100644 index 04514b18..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomAttributePointer.java +++ /dev/null @@ -1,105 +0,0 @@ -package org.apache.maven.project.harness; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Map; - -import org.apache.commons.jxpath.ri.QName; -import org.apache.commons.jxpath.ri.model.NodePointer; - -/** - * An attribute pointer for JXPath to support Xpp3Dom. - * - * @author Benjamin Bentmann - */ -class Xpp3DomAttributePointer - extends NodePointer -{ - - private Map.Entry attrib; - - public Xpp3DomAttributePointer( NodePointer parent, Map.Entry attrib ) - { - super( parent ); - this.attrib = attrib; - } - - @Override - public int compareChildNodePointers( NodePointer pointer1, NodePointer pointer2 ) - { - // should never happen because attributes have no children - return 0; - } - - @Override - public Object getValue() - { - return attrib.getValue(); - } - - @Override - public Object getBaseValue() - { - return attrib; - } - - @Override - public Object getImmediateNode() - { - return attrib; - } - - @Override - public int getLength() - { - return 1; - } - - @Override - public QName getName() - { - return new QName( null, attrib.getKey() ); - } - - @Override - public boolean isActual() - { - return true; - } - - @Override - public boolean isCollection() - { - return false; - } - - @Override - public boolean isLeaf() - { - return true; - } - - @Override - public void setValue( Object value ) - { - throw new UnsupportedOperationException(); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomNodeIterator.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomNodeIterator.java deleted file mode 100644 index 796a5ca0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomNodeIterator.java +++ /dev/null @@ -1,161 +0,0 @@ -package org.apache.maven.project.harness; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.List; - -import org.apache.commons.jxpath.ri.Compiler; -import org.apache.commons.jxpath.ri.compiler.NodeNameTest; -import org.apache.commons.jxpath.ri.compiler.NodeTest; -import org.apache.commons.jxpath.ri.compiler.NodeTypeTest; -import org.apache.commons.jxpath.ri.model.NodeIterator; -import org.apache.commons.jxpath.ri.model.NodePointer; -import org.codehaus.plexus.util.StringUtils; -import org.codehaus.plexus.util.xml.Xpp3Dom; - -/** - * A node iterator for JXPath to support Xpp3Dom. - * - * @author Benjamin Bentmann - */ -class Xpp3DomNodeIterator - implements NodeIterator -{ - - private NodePointer parent; - - private NodeTest test; - - private Xpp3Dom node; - - private Xpp3Dom[] children; - - private List filteredChildren = new ArrayList(); - - private int filteredIndex; - - private Xpp3Dom child; - - private int position; - - public Xpp3DomNodeIterator( NodePointer parent, NodeTest test, boolean reverse, NodePointer startWith ) - { - this.parent = parent; - this.node = (Xpp3Dom) parent.getNode(); - this.children = this.node.getChildren(); - if ( startWith != null ) - { - Xpp3Dom startWithNode = (Xpp3Dom) startWith.getNode(); - for ( ; filteredIndex < children.length; filteredIndex++ ) - { - if ( startWithNode.equals( children[filteredIndex] ) ) - { - filteredIndex++; - break; - } - } - } - this.test = test; - if ( reverse ) - { - throw new UnsupportedOperationException(); - } - } - - public NodePointer getNodePointer() - { - if ( position == 0 ) - { - setPosition( 1 ); - } - return ( child == null ) ? null : new Xpp3DomNodePointer( parent, child ); - } - - public int getPosition() - { - return position; - } - - public boolean setPosition( int position ) - { - this.position = position; - filterChildren( position ); - child = ( position > 0 && position <= filteredChildren.size() ) ? filteredChildren.get( position - 1 ) : null; - return child != null; - } - - private void filterChildren( int position ) - { - for ( ; position > filteredChildren.size() && filteredIndex < children.length; filteredIndex++ ) - { - Xpp3Dom child = children[filteredIndex]; - if ( testNode( child ) ) - { - filteredChildren.add( child ); - } - } - } - - private boolean testNode( Xpp3Dom node ) - { - if ( test == null ) - { - return true; - } - if ( test instanceof NodeNameTest ) - { - String nodeName = node.getName(); - if ( StringUtils.isEmpty( nodeName ) ) - { - return false; - } - - NodeNameTest nodeNameTest = (NodeNameTest) test; - String namespaceURI = nodeNameTest.getNamespaceURI(); - boolean wildcard = nodeNameTest.isWildcard(); - String testName = nodeNameTest.getNodeName().getName(); - String testPrefix = nodeNameTest.getNodeName().getPrefix(); - if ( wildcard && testPrefix == null ) - { - return true; - } - if ( wildcard || testName.equals( nodeName ) ) - { - return StringUtils.isEmpty( namespaceURI ) || StringUtils.isEmpty( testPrefix ); - } - return false; - } - if ( test instanceof NodeTypeTest ) - { - switch ( ( (NodeTypeTest) test ).getNodeType() ) - { - case Compiler.NODE_TYPE_NODE: - return true; - case Compiler.NODE_TYPE_TEXT: - return node.getValue() != null; - default: - return false; - } - } - return false; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomNodePointer.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomNodePointer.java deleted file mode 100644 index f93bd892..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomNodePointer.java +++ /dev/null @@ -1,155 +0,0 @@ -package org.apache.maven.project.harness; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; -import java.util.List; - -import org.apache.commons.jxpath.ri.QName; -import org.apache.commons.jxpath.ri.compiler.NodeTest; -import org.apache.commons.jxpath.ri.model.NodeIterator; -import org.apache.commons.jxpath.ri.model.NodePointer; -import org.codehaus.plexus.util.xml.Xpp3Dom; - -/** - * A node pointer for JXPath to support Xpp3Dom. - * - * @author Benjamin Bentmann - */ -class Xpp3DomNodePointer - extends NodePointer -{ - - private Xpp3Dom node; - - public Xpp3DomNodePointer( Xpp3Dom node ) - { - super( null ); - this.node = node; - } - - public Xpp3DomNodePointer( NodePointer parent, Xpp3Dom node ) - { - super( parent ); - this.node = node; - } - - @Override - public int compareChildNodePointers( NodePointer pointer1, NodePointer pointer2 ) - { - Xpp3Dom node1 = (Xpp3Dom) pointer1.getBaseValue(); - Xpp3Dom node2 = (Xpp3Dom) pointer2.getBaseValue(); - if ( node1 == node2 ) - { - return 0; - } - for ( int i = 0; i < node.getChildCount(); i++ ) - { - Xpp3Dom child = node.getChild( i ); - if ( child == node1 ) - { - return -1; - } - if ( child == node2 ) - { - return 1; - } - } - return 0; - } - - @Override - public Object getValue() - { - return getValue( node ); - } - - private static Object getValue( Xpp3Dom node ) - { - if ( node.getValue() != null ) - { - return node.getValue(); - } - else - { - List children = new ArrayList(); - for ( int i = 0; i < node.getChildCount(); i++ ) - { - children.add( getValue( node.getChild( i ) ) ); - } - return children; - } - } - - @Override - public Object getBaseValue() - { - return node; - } - - @Override - public Object getImmediateNode() - { - return node; - } - - @Override - public int getLength() - { - return 1; - } - - @Override - public QName getName() - { - return new QName( null, node.getName() ); - } - - @Override - public boolean isCollection() - { - return false; - } - - @Override - public boolean isLeaf() - { - return node.getChildCount() <= 0; - } - - @Override - public void setValue( Object value ) - { - throw new UnsupportedOperationException(); - } - - @Override - public NodeIterator childIterator( NodeTest test, boolean reverse, NodePointer startWith ) - { - return new Xpp3DomNodeIterator( this, test, reverse, startWith ); - } - - @Override - public NodeIterator attributeIterator( QName qname ) - { - return new Xpp3DomAttributeIterator( this, qname ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomPointerFactory.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomPointerFactory.java deleted file mode 100644 index 28c0f8ff..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomPointerFactory.java +++ /dev/null @@ -1,61 +0,0 @@ -package org.apache.maven.project.harness; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.Locale; - -import org.apache.commons.jxpath.ri.QName; -import org.apache.commons.jxpath.ri.model.NodePointer; -import org.apache.commons.jxpath.ri.model.NodePointerFactory; -import org.codehaus.plexus.util.xml.Xpp3Dom; - -/** - * A node pointer factory for JXPath to support Xpp3Dom. - * - * @author Benjamin Bentmann - */ -public class Xpp3DomPointerFactory - implements NodePointerFactory -{ - - public int getOrder() - { - return 200; - } - - public NodePointer createNodePointer( QName name, Object object, Locale locale ) - { - if ( object instanceof Xpp3Dom ) - { - return new Xpp3DomNodePointer( (Xpp3Dom) object ); - } - return null; - } - - public NodePointer createNodePointer( NodePointer parent, QName name, Object object ) - { - if ( object instanceof Xpp3Dom ) - { - return new Xpp3DomNodePointer( parent, (Xpp3Dom) object ); - } - return null; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/LegacyRepositoryLayout.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/LegacyRepositoryLayout.java deleted file mode 100644 index 77a6baef..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/LegacyRepositoryLayout.java +++ /dev/null @@ -1,89 +0,0 @@ -package org.apache.maven.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.handler.ArtifactHandler; -import org.apache.maven.artifact.metadata.ArtifactMetadata; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout; -import org.codehaus.plexus.component.annotations.Component; - -/** - * @author jdcasey - */ -@Component(role=ArtifactRepositoryLayout.class, hint="legacy") -public class LegacyRepositoryLayout - implements ArtifactRepositoryLayout -{ - private static final String PATH_SEPARATOR = "/"; - - public String getId() - { - return "legacy"; - } - - public String pathOf( Artifact artifact ) - { - ArtifactHandler artifactHandler = artifact.getArtifactHandler(); - - StringBuilder path = new StringBuilder( 128 ); - - path.append( artifact.getGroupId() ).append( '/' ); - path.append( artifactHandler.getDirectory() ).append( '/' ); - path.append( artifact.getArtifactId() ).append( '-' ).append( artifact.getVersion() ); - - if ( artifact.hasClassifier() ) - { - path.append( '-' ).append( artifact.getClassifier() ); - } - - if ( artifactHandler.getExtension() != null && artifactHandler.getExtension().length() > 0 ) - { - path.append( '.' ).append( artifactHandler.getExtension() ); - } - - return path.toString(); - } - - public String pathOfLocalRepositoryMetadata( ArtifactMetadata metadata, - ArtifactRepository repository ) - { - return pathOfRepositoryMetadata( metadata, metadata.getLocalFilename( repository ) ); - } - - private String pathOfRepositoryMetadata( ArtifactMetadata metadata, - String filename ) - { - StringBuilder path = new StringBuilder( 128 ); - - path.append( metadata.getGroupId() ).append( PATH_SEPARATOR ).append( "poms" ).append( PATH_SEPARATOR ); - - path.append( filename ); - - return path.toString(); - } - - public String pathOfRemoteRepositoryMetadata( ArtifactMetadata metadata ) - { - return pathOfRepositoryMetadata( metadata, metadata.getRemoteFilename() ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/TestArtifactHandler.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/TestArtifactHandler.java deleted file mode 100644 index db1fecb5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/TestArtifactHandler.java +++ /dev/null @@ -1,83 +0,0 @@ -package org.apache.maven.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.artifact.handler.ArtifactHandler; - -/** - * Assists unit testing. - * - * @author Benjamin Bentmann - */ -class TestArtifactHandler - implements ArtifactHandler -{ - - private String type; - - private String extension; - - public TestArtifactHandler( String type ) - { - this( type, type ); - } - - public TestArtifactHandler( String type, String extension ) - { - this.type = type; - this.extension = extension; - } - - public String getClassifier() - { - return null; - } - - public String getDirectory() - { - return getPackaging() + "s"; - } - - public String getExtension() - { - return extension; - } - - public String getLanguage() - { - return "java"; - } - - public String getPackaging() - { - return type; - } - - public boolean isAddedToClasspath() - { - return true; - } - - public boolean isIncludesDependencies() - { - return false; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/TestRepositoryConnector.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/TestRepositoryConnector.java deleted file mode 100644 index 91ace4f1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/TestRepositoryConnector.java +++ /dev/null @@ -1,123 +0,0 @@ -package org.apache.maven.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.IOException; -import java.net.MalformedURLException; -import java.net.URL; -import java.util.Collection; - -import org.codehaus.plexus.util.FileUtils; -import org.eclipse.aether.artifact.Artifact; -import org.eclipse.aether.repository.RemoteRepository; -import org.eclipse.aether.spi.connector.ArtifactDownload; -import org.eclipse.aether.spi.connector.ArtifactUpload; -import org.eclipse.aether.spi.connector.MetadataDownload; -import org.eclipse.aether.spi.connector.MetadataUpload; -import org.eclipse.aether.spi.connector.RepositoryConnector; -import org.eclipse.aether.transfer.ArtifactNotFoundException; -import org.eclipse.aether.transfer.ArtifactTransferException; - -/** - * @author Benjamin Bentmann - */ -public class TestRepositoryConnector - implements RepositoryConnector -{ - - private RemoteRepository repository; - - private File basedir; - - public TestRepositoryConnector( RemoteRepository repository ) - { - this.repository = repository; - try - { - basedir = FileUtils.toFile( new URL( repository.getUrl() ) ); - } - catch ( MalformedURLException e ) - { - throw new IllegalStateException( e ); - } - } - - public void close() - { - } - - public void get( Collection artifactDownloads, - Collection metadataDownloads ) - { - if ( artifactDownloads != null ) - { - for ( ArtifactDownload download : artifactDownloads ) - { - File remoteFile = new File( basedir, path( download.getArtifact() ) ); - try - { - FileUtils.copyFile( remoteFile, download.getFile() ); - } - catch ( IOException e ) - { - if ( !remoteFile.exists() ) - { - download.setException( new ArtifactNotFoundException( download.getArtifact(), repository ) ); - } - else - { - download.setException( new ArtifactTransferException( download.getArtifact(), repository, e ) ); - } - } - } - } - } - - private String path( Artifact artifact ) - { - StringBuilder path = new StringBuilder( 128 ); - - path.append( artifact.getGroupId().replace( '.', '/' ) ).append( '/' ); - - path.append( artifact.getArtifactId() ).append( '/' ); - - path.append( artifact.getBaseVersion() ).append( '/' ); - - path.append( artifact.getArtifactId() ).append( '-' ).append( artifact.getVersion() ); - - if ( artifact.getClassifier().length() > 0 ) - { - path.append( '-' ).append( artifact.getClassifier() ); - } - - path.append( '.' ).append( artifact.getExtension() ); - - return path.toString(); - } - - public void put( Collection artifactUploads, - Collection metadataUploads ) - { - // TODO Auto-generated method stub - - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/TestRepositoryConnectorFactory.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/TestRepositoryConnectorFactory.java deleted file mode 100644 index 17fd43f9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/TestRepositoryConnectorFactory.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.apache.maven.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.codehaus.plexus.component.annotations.Component; -import org.eclipse.aether.RepositorySystemSession; -import org.eclipse.aether.repository.RemoteRepository; -import org.eclipse.aether.spi.connector.RepositoryConnector; -import org.eclipse.aether.spi.connector.RepositoryConnectorFactory; -import org.eclipse.aether.transfer.NoRepositoryConnectorException; - -/** - * @author Benjamin Bentmann - */ -@Component( role = RepositoryConnectorFactory.class, hint = "test" ) -public class TestRepositoryConnectorFactory - implements RepositoryConnectorFactory -{ - - public RepositoryConnector newInstance( RepositorySystemSession session, RemoteRepository repository ) - throws NoRepositoryConnectorException - { - return new TestRepositoryConnector( repository ); - } - - public float getPriority() - { - return 0; - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/TestRepositorySystem.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/TestRepositorySystem.java deleted file mode 100644 index c4afc7a9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/repository/TestRepositorySystem.java +++ /dev/null @@ -1,329 +0,0 @@ -package org.apache.maven.repository; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.IOException; -import java.util.ArrayList; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.DefaultArtifact; -import org.apache.maven.artifact.InvalidRepositoryException; -import org.apache.maven.artifact.factory.ArtifactFactory; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy; -import org.apache.maven.artifact.repository.MavenArtifactRepository; -import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout; -import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout; -import org.apache.maven.artifact.resolver.ArtifactResolutionRequest; -import org.apache.maven.artifact.resolver.ArtifactResolutionResult; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.artifact.versioning.VersionRange; -import org.apache.maven.model.Dependency; -import org.apache.maven.model.Model; -import org.apache.maven.model.Plugin; -import org.apache.maven.model.Repository; -import org.apache.maven.model.io.ModelReader; -import org.apache.maven.project.artifact.ArtifactWithDependencies; -import org.apache.maven.settings.Mirror; -import org.apache.maven.settings.Proxy; -import org.apache.maven.settings.Server; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; -import org.codehaus.plexus.util.FileUtils; -import org.codehaus.plexus.util.StringUtils; -import org.eclipse.aether.RepositorySystemSession; - -/** - * @author Benjamin Bentmann - */ -@Component( role = RepositorySystem.class ) -public class TestRepositorySystem - implements RepositorySystem -{ - - @Requirement - private ModelReader modelReader; - - @Requirement - private ArtifactFactory artifactFactory; - - public ArtifactRepository buildArtifactRepository( Repository repository ) - throws InvalidRepositoryException - { - return new MavenArtifactRepository( repository.getId(), repository.getUrl(), new DefaultRepositoryLayout(), - new ArtifactRepositoryPolicy(), new ArtifactRepositoryPolicy() ); - } - - public Artifact createArtifact( String groupId, String artifactId, String version, String packaging ) - { - return createArtifact( groupId, artifactId, version, null, packaging ); - } - - public Artifact createArtifact( String groupId, String artifactId, String version, String scope, String type ) - { - return new DefaultArtifact( groupId, artifactId, version, scope, type, null, new TestArtifactHandler( type ) ); - } - - public ArtifactRepository createArtifactRepository( String id, String url, - ArtifactRepositoryLayout repositoryLayout, - ArtifactRepositoryPolicy snapshots, - ArtifactRepositoryPolicy releases ) - { - return new MavenArtifactRepository( id, url, repositoryLayout, snapshots, releases ); - } - - public Artifact createArtifactWithClassifier( String groupId, String artifactId, String version, String type, - String classifier ) - { - return new DefaultArtifact( groupId, artifactId, version, null, type, classifier, - new TestArtifactHandler( type ) ); - } - - public ArtifactRepository createDefaultLocalRepository() - throws InvalidRepositoryException - { - return createLocalRepository( new File( System.getProperty( "basedir", "" ), "target/local-repo" ).getAbsoluteFile() ); - } - - public ArtifactRepository createDefaultRemoteRepository() - throws InvalidRepositoryException - { - return new MavenArtifactRepository( DEFAULT_REMOTE_REPO_ID, "file://" - + new File( System.getProperty( "basedir", "" ), "src/test/remote-repo" ).toURI().getPath(), - new DefaultRepositoryLayout(), new ArtifactRepositoryPolicy(), - new ArtifactRepositoryPolicy() ); - } - - public Artifact createDependencyArtifact( Dependency dependency ) - { - Artifact artifact = - new DefaultArtifact( dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion(), - dependency.getScope(), dependency.getType(), dependency.getClassifier(), - new TestArtifactHandler( dependency.getType() ) ); - - if ( Artifact.SCOPE_SYSTEM.equals( dependency.getScope() ) ) - { - artifact.setFile( new File( dependency.getSystemPath() ) ); - artifact.setResolved( true ); - } - - return artifact; - } - - public ArtifactRepository createLocalRepository( File localRepository ) - throws InvalidRepositoryException - { - return new MavenArtifactRepository( DEFAULT_LOCAL_REPO_ID, "file://" + localRepository.toURI().getPath(), - new DefaultRepositoryLayout(), new ArtifactRepositoryPolicy(), - new ArtifactRepositoryPolicy() ); - } - - public Artifact createPluginArtifact( Plugin plugin ) - { - VersionRange versionRange; - try - { - String version = plugin.getVersion(); - if ( StringUtils.isEmpty( version ) ) - { - version = "RELEASE"; - } - versionRange = VersionRange.createFromVersionSpec( version ); - } - catch ( InvalidVersionSpecificationException e ) - { - return null; - } - - return artifactFactory.createPluginArtifact( plugin.getGroupId(), plugin.getArtifactId(), versionRange ); - } - - public Artifact createProjectArtifact( String groupId, String artifactId, String version ) - { - return createArtifact( groupId, artifactId, version, "pom" ); - } - - public List getEffectiveRepositories( List repositories ) - { - return repositories; - } - - public Mirror getMirror( ArtifactRepository repository, List mirrors ) - { - return null; - } - - public void injectAuthentication( List repositories, List servers ) - { - } - - public void injectMirror( List repositories, List mirrors ) - { - } - - public void injectProxy( List repositories, List proxies ) - { - } - - public void publish( ArtifactRepository repository, File source, String remotePath, - ArtifactTransferListener transferListener ) - throws ArtifactTransferFailedException - { - // TODO Auto-generated method stub - - } - - public ArtifactResolutionResult resolve( ArtifactResolutionRequest request ) - { - ArtifactResolutionResult result = new ArtifactResolutionResult(); - - if ( request.isResolveRoot() ) - { - try - { - resolve( request.getArtifact(), request ); - result.addArtifact( request.getArtifact() ); - } - catch ( IOException e ) - { - result.addMissingArtifact( request.getArtifact() ); - } - } - - if ( request.isResolveTransitively() ) - { - Map artifacts = new LinkedHashMap(); - - if ( request.getArtifactDependencies() != null ) - { - for ( Artifact artifact : request.getArtifactDependencies() ) - { - artifacts.put( artifact.getDependencyConflictId(), artifact ); - } - } - - List dependencies = new ArrayList(); - if ( request.getArtifact() instanceof ArtifactWithDependencies ) - { - dependencies = ( (ArtifactWithDependencies) request.getArtifact() ).getDependencies(); - } - else - { - Artifact pomArtifact = - createProjectArtifact( request.getArtifact().getGroupId(), request.getArtifact().getArtifactId(), - request.getArtifact().getVersion() ); - File pomFile = - new File( request.getLocalRepository().getBasedir(), - request.getLocalRepository().pathOf( pomArtifact ) ); - - try - { - Model model = modelReader.read( pomFile, null ); - - dependencies = model.getDependencies(); - } - catch ( IOException e ) - { - e.printStackTrace(); - } - } - - for ( Dependency dependency : dependencies ) - { - Artifact artifact = createDependencyArtifact( dependency ); - if ( !artifacts.containsKey( artifact.getDependencyConflictId() ) ) - { - artifacts.put( artifact.getDependencyConflictId(), artifact ); - } - } - - for ( Artifact artifact : artifacts.values() ) - { - try - { - resolve( artifact, request ); - result.addArtifact( artifact ); - } - catch ( IOException e ) - { - result.addMissingArtifact( artifact ); - } - } - } - - return result; - } - - private void resolve( Artifact artifact, ArtifactResolutionRequest request ) - throws IOException - { - if ( Artifact.SCOPE_SYSTEM.equals( artifact.getScope() ) ) - { - return; - } - - ArtifactRepository localRepo = request.getLocalRepository(); - - File localFile = new File( localRepo.getBasedir(), localRepo.pathOf( artifact ) ); - - artifact.setFile( localFile ); - - if ( !localFile.exists() ) - { - if ( request.getRemoteRepositories().isEmpty() ) - { - throw new IOException( localFile + " does not exist and no remote repositories are configured" ); - } - - ArtifactRepository remoteRepo = request.getRemoteRepositories().get( 0 ); - - File remoteFile = new File( remoteRepo.getBasedir(), remoteRepo.pathOf( artifact ) ); - - FileUtils.copyFile( remoteFile, localFile ); - } - - artifact.setResolved( true ); - } - - public void retrieve( ArtifactRepository repository, File destination, String remotePath, - ArtifactTransferListener transferListener ) - throws ArtifactTransferFailedException, ArtifactDoesNotExistException - { - // TODO Auto-generated method stub - - } - - public void injectMirror( RepositorySystemSession session, List repositories ) - { - } - - public void injectProxy( RepositorySystemSession session, List repositories ) - { - } - - public void injectAuthentication( RepositorySystemSession session, List repositories ) - { - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformationTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformationTest.java deleted file mode 100644 index 71be9284..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformationTest.java +++ /dev/null @@ -1,81 +0,0 @@ -package org.apache.maven.rtinfo.internal; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.apache.maven.rtinfo.RuntimeInformation; -import org.codehaus.plexus.PlexusTestCase; - -public class DefaultRuntimeInformationTest - extends PlexusTestCase -{ - - public void testGetMavenVersion() - throws Exception - { - RuntimeInformation rtInfo = lookup( RuntimeInformation.class ); - - String mavenVersion = rtInfo.getMavenVersion(); - assertNotNull( mavenVersion ); - assertTrue( mavenVersion.length() > 0 ); - } - - public void testIsMavenVersion() - throws Exception - { - RuntimeInformation rtInfo = lookup( RuntimeInformation.class ); - - assertTrue( rtInfo.isMavenVersion( "2.0" ) ); - assertFalse( rtInfo.isMavenVersion( "9.9" ) ); - - assertTrue( rtInfo.isMavenVersion( "[2.0.11,2.1.0),[3.0,)" ) ); - assertFalse( rtInfo.isMavenVersion( "[9.0,)" ) ); - - try - { - rtInfo.isMavenVersion( "[3.0," ); - fail( "Bad version range wasn't rejected" ); - } - catch ( IllegalArgumentException e ) - { - assertTrue( true ); - } - - try - { - rtInfo.isMavenVersion( "" ); - fail( "Bad version range wasn't rejected" ); - } - catch ( IllegalArgumentException e ) - { - assertTrue( true ); - } - - try - { - rtInfo.isMavenVersion( null ); - fail( "Bad version range wasn't rejected" ); - } - catch ( IllegalArgumentException e ) - { - assertTrue( true ); - } - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/settings/PomConstructionWithSettingsTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/settings/PomConstructionWithSettingsTest.java deleted file mode 100644 index 5c166868..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/settings/PomConstructionWithSettingsTest.java +++ /dev/null @@ -1,159 +0,0 @@ -package org.apache.maven.settings; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.io.File; -import java.io.IOException; -import java.io.Reader; - -import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout; -import org.apache.maven.model.Profile; -import org.apache.maven.project.DefaultProjectBuilder; -import org.apache.maven.project.DefaultProjectBuildingRequest; -import org.apache.maven.project.ProjectBuilder; -import org.apache.maven.project.ProjectBuildingRequest; -import org.apache.maven.project.harness.PomTestWrapper; -import org.apache.maven.repository.RepositorySystem; -import org.apache.maven.repository.internal.MavenRepositorySystemUtils; -import org.apache.maven.settings.io.xpp3.SettingsXpp3Reader; -import org.codehaus.plexus.ContainerConfiguration; -import org.codehaus.plexus.PlexusConstants; -import org.codehaus.plexus.PlexusTestCase; -import org.codehaus.plexus.util.IOUtil; -import org.codehaus.plexus.util.ReaderFactory; -import org.codehaus.plexus.util.xml.pull.XmlPullParserException; -import org.eclipse.aether.DefaultRepositorySystemSession; -import org.eclipse.aether.internal.impl.SimpleLocalRepositoryManagerFactory; -import org.eclipse.aether.repository.LocalRepository; - -public class PomConstructionWithSettingsTest - extends PlexusTestCase -{ - private static final String BASE_DIR = "src/test"; - - private static final String BASE_POM_DIR = BASE_DIR + "/resources-settings"; - - private DefaultProjectBuilder projectBuilder; - - private RepositorySystem repositorySystem; - - private File testDirectory; - - @Override - protected void customizeContainerConfiguration( ContainerConfiguration containerConfiguration ) - { - super.customizeContainerConfiguration( containerConfiguration ); - containerConfiguration.setAutoWiring( true ); - containerConfiguration.setClassPathScanning( PlexusConstants.SCANNING_INDEX ); - } - - protected void setUp() - throws Exception - { - testDirectory = new File( getBasedir(), BASE_POM_DIR ); - projectBuilder = (DefaultProjectBuilder) lookup( ProjectBuilder.class ); - repositorySystem = lookup( RepositorySystem.class ); - } - - @Override - protected void tearDown() - throws Exception - { - projectBuilder = null; - - super.tearDown(); - } - - public void testSettingsNoPom() throws Exception - { - PomTestWrapper pom = buildPom( "settings-no-pom" ); - assertEquals( "local-profile-prop-value", pom.getValue( "properties/local-profile-prop" ) ); - } - - /**MNG-4107 */ - public void testPomAndSettingsInterpolation() throws Exception - { - PomTestWrapper pom = buildPom( "test-pom-and-settings-interpolation" ); - assertEquals( "applied", pom.getValue( "properties/settingsProfile" ) ); - assertEquals( "applied", pom.getValue( "properties/pomProfile" ) ); - assertEquals( "settings", pom.getValue( "properties/pomVsSettings" ) ); - assertEquals( "settings", pom.getValue( "properties/pomVsSettingsInterpolated" ) ); - } - - /**MNG-4107 */ - public void testRepositories() throws Exception - { - PomTestWrapper pom = buildPom( "repositories" ); - assertEquals( "maven-core-it-0", pom.getValue( "repositories[1]/id" ) ); - } - - private PomTestWrapper buildPom( String pomPath ) - throws Exception - { - File pomFile = new File( testDirectory + File.separator + pomPath, "pom.xml" ); - File settingsFile = new File( testDirectory + File.separator + pomPath, "settings.xml" ); - Settings settings = readSettingsFile( settingsFile ); - - ProjectBuildingRequest config = new DefaultProjectBuildingRequest(); - - for ( org.apache.maven.settings.Profile rawProfile : settings.getProfiles() ) - { - Profile profile = SettingsUtils.convertFromSettingsProfile( rawProfile ); - config.addProfile( profile ); - } - - String localRepoUrl = - System.getProperty( "maven.repo.local", System.getProperty( "user.home" ) + "/.m2/repository" ); - localRepoUrl = "file://" + localRepoUrl; - config.setLocalRepository( repositorySystem.createArtifactRepository( "local", localRepoUrl, - new DefaultRepositoryLayout(), null, null ) ); - config.setActiveProfileIds( settings.getActiveProfiles() ); - - DefaultRepositorySystemSession repoSession = MavenRepositorySystemUtils.newSession(); - LocalRepository localRepo = new LocalRepository( config.getLocalRepository().getBasedir() ); - repoSession.setLocalRepositoryManager( new SimpleLocalRepositoryManagerFactory().newInstance( repoSession, localRepo ) ); - config.setRepositorySession( repoSession ); - - return new PomTestWrapper( pomFile, projectBuilder.build( pomFile, config ).getProject() ); - } - - private static Settings readSettingsFile( File settingsFile ) - throws IOException, XmlPullParserException - { - Settings settings = null; - - Reader reader = null; - - try - { - reader = ReaderFactory.newXmlReader( settingsFile ); - - SettingsXpp3Reader modelReader = new SettingsXpp3Reader(); - - settings = modelReader.read( reader ); - } - finally - { - IOUtil.close( reader ); - } - - return settings; - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/settings/SettingsUtilsTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/settings/SettingsUtilsTest.java deleted file mode 100644 index f2231b3f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/settings/SettingsUtilsTest.java +++ /dev/null @@ -1,126 +0,0 @@ -package org.apache.maven.settings; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import junit.framework.TestCase; - -import java.util.ArrayList; -import java.util.List; -import java.util.Properties; -import java.util.Random; - -public class SettingsUtilsTest - extends TestCase -{ - - public void testShouldAppendRecessivePluginGroupIds() - { - Settings dominant = new Settings(); - dominant.addPluginGroup( "org.apache.maven.plugins" ); - dominant.addPluginGroup( "org.codehaus.modello" ); - - Settings recessive = new Settings(); - recessive.addPluginGroup( "org.codehaus.plexus" ); - - SettingsUtils.merge( dominant, recessive, Settings.GLOBAL_LEVEL ); - - List pluginGroups = dominant.getPluginGroups(); - - assertNotNull( pluginGroups ); - assertEquals( 3, pluginGroups.size() ); - assertEquals( "org.apache.maven.plugins", pluginGroups.get( 0 ) ); - assertEquals( "org.codehaus.modello", pluginGroups.get( 1 ) ); - assertEquals( "org.codehaus.plexus", pluginGroups.get( 2 ) ); - } - - public void testRoundTripProfiles() - { - Random entropy = new Random(); - Profile p = new Profile(); - p.setId( "id" + Long.toHexString( entropy.nextLong() ) ); - Activation a = new Activation(); - a.setActiveByDefault( entropy.nextBoolean() ); - a.setJdk( "jdk" + Long.toHexString( entropy.nextLong() ) ); - ActivationFile af = new ActivationFile(); - af.setExists( "exists" + Long.toHexString( entropy.nextLong() ) ); - af.setMissing( "missing" + Long.toHexString( entropy.nextLong() ) ); - a.setFile( af ); - ActivationProperty ap = new ActivationProperty(); - ap.setName( "name" + Long.toHexString( entropy.nextLong() ) ); - ap.setValue( "value" + Long.toHexString( entropy.nextLong() ) ); - a.setProperty( ap ); - ActivationOS ao = new ActivationOS(); - ao.setArch( "arch" + Long.toHexString( entropy.nextLong() ) ); - ao.setFamily( "family" + Long.toHexString( entropy.nextLong() ) ); - ao.setName( "name" + Long.toHexString( entropy.nextLong() ) ); - ao.setVersion( "version" + Long.toHexString( entropy.nextLong() ) ); - a.setOs( ao ); - p.setActivation( a ); - Properties props = new Properties(); - int count = entropy.nextInt( 10 ); - for ( int i = 0; i < count; i++ ) - { - props.setProperty( "name" + Long.toHexString( entropy.nextLong() ), - "value" + Long.toHexString( entropy.nextLong() ) ); - } - p.setProperties( props ); - count = entropy.nextInt( 3 ); - List repos = new ArrayList(); - for ( int i = 0; i < count; i++ ) - { - Repository r = new Repository(); - r.setId( "id" + Long.toHexString( entropy.nextLong() ) ); - r.setName( "name" + Long.toHexString( entropy.nextLong() ) ); - r.setUrl( "url" + Long.toHexString( entropy.nextLong() ) ); - repos.add( r ); - } - p.setRepositories( repos ); - count = entropy.nextInt( 3 ); - repos = new ArrayList(); - for ( int i = 0; i < count; i++ ) - { - Repository r = new Repository(); - r.setId( "id" + Long.toHexString( entropy.nextLong() ) ); - r.setName( "name" + Long.toHexString( entropy.nextLong() ) ); - r.setUrl( "url" + Long.toHexString( entropy.nextLong() ) ); - repos.add( r ); - } - p.setPluginRepositories( repos ); - - Profile clone = SettingsUtils.convertToSettingsProfile( SettingsUtils.convertFromSettingsProfile( p ) ); - - assertEquals( p.getId(), clone.getId() ); - assertEquals( p.getActivation().getJdk(), clone.getActivation().getJdk() ); - assertEquals( p.getActivation().getFile().getExists(), clone.getActivation().getFile().getExists() ); - assertEquals( p.getActivation().getFile().getMissing(), clone.getActivation().getFile().getMissing() ); - assertEquals( p.getActivation().getProperty().getName(), clone.getActivation().getProperty().getName() ); - assertEquals( p.getActivation().getProperty().getValue(), clone.getActivation().getProperty().getValue() ); - assertEquals( p.getActivation().getOs().getArch(), clone.getActivation().getOs().getArch() ); - assertEquals( p.getActivation().getOs().getFamily(), clone.getActivation().getOs().getFamily() ); - assertEquals( p.getActivation().getOs().getName(), clone.getActivation().getOs().getName() ); - assertEquals( p.getActivation().getOs().getVersion(), clone.getActivation().getOs().getVersion() ); - assertEquals( p.getProperties(), clone.getProperties() ); - assertEquals( p.getRepositories().size(), clone.getRepositories().size() ); - // TODO deep compare the lists - assertEquals( p.getPluginRepositories().size(), clone.getPluginRepositories().size() ); - // TODO deep compare the lists - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/DefaultToolchainManagerPrivateTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/DefaultToolchainManagerPrivateTest.java deleted file mode 100644 index 28a13bb2..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/DefaultToolchainManagerPrivateTest.java +++ /dev/null @@ -1,166 +0,0 @@ -package org.apache.maven.toolchain; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; -import static org.mockito.Matchers.anyString; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.never; -import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.when; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.apache.maven.execution.DefaultMavenExecutionRequest; -import org.apache.maven.execution.MavenExecutionRequest; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.toolchain.model.ToolchainModel; -import org.codehaus.plexus.logging.Logger; -import org.junit.Before; -import org.junit.Test; -import org.mockito.InjectMocks; -import org.mockito.Mock; -import org.mockito.MockitoAnnotations; - -public class DefaultToolchainManagerPrivateTest -{ - // Mocks to inject into toolchainManager - @Mock - private Logger logger; - - @InjectMocks - private DefaultToolchainManagerPrivate toolchainManager; - - @Mock - private ToolchainFactory toolchainFactory_basicType; - - @Mock - private ToolchainFactory toolchainFactory_rareType; - - @Before - public void setUp() - { - toolchainManager = new DefaultToolchainManagerPrivate(); - - MockitoAnnotations.initMocks( this ); - - toolchainManager.factories = new HashMap(); - toolchainManager.factories.put( "basic", toolchainFactory_basicType ); - toolchainManager.factories.put( "rare", toolchainFactory_rareType ); - } - - @Test - public void testToolchainsForAvailableType() - throws Exception - { - // prepare - MavenSession session = mock( MavenSession.class ); - MavenExecutionRequest req = new DefaultMavenExecutionRequest(); - when( session.getRequest() ).thenReturn( req ); - - ToolchainPrivate basicToolchain = mock( ToolchainPrivate.class ); - when( toolchainFactory_basicType.createDefaultToolchain() ).thenReturn( basicToolchain ); - ToolchainPrivate rareToolchain = mock( ToolchainPrivate.class ); - when( toolchainFactory_rareType.createDefaultToolchain() ).thenReturn( rareToolchain ); - - // execute - ToolchainPrivate[] toolchains = toolchainManager.getToolchainsForType( "basic", session ); - - // verify - verify( logger, never() ).error( anyString() ); - assertEquals( 1, toolchains.length ); - } - - @Test - public void testToolchainsForUnknownType() - throws Exception - { - // prepare - MavenSession session = mock( MavenSession.class ); - MavenExecutionRequest req = new DefaultMavenExecutionRequest(); - when( session.getRequest() ).thenReturn( req ); - - ToolchainPrivate basicToolchain = mock( ToolchainPrivate.class ); - when( toolchainFactory_basicType.createDefaultToolchain() ).thenReturn( basicToolchain ); - ToolchainPrivate rareToolchain = mock( ToolchainPrivate.class ); - when( toolchainFactory_rareType.createDefaultToolchain() ).thenReturn( rareToolchain ); - - // execute - ToolchainPrivate[] toolchains = toolchainManager.getToolchainsForType( "unknown", session ); - - // verify - verify( logger ).error( "Missing toolchain factory for type: unknown. Possibly caused by misconfigured project." ); - assertEquals( 0, toolchains.length ); - } - - @Test - public void testToolchainsForConfiguredType() - throws Exception - { - // prepare - MavenSession session = mock( MavenSession.class ); - MavenExecutionRequest req = new DefaultMavenExecutionRequest(); - when( session.getRequest() ).thenReturn( req ); - Map> groupedToolchains = new HashMap>(); - req.setToolchains( groupedToolchains ); - - List basicToolchains = new ArrayList(); - ToolchainModel basicToolchainModel = new ToolchainModel(); - basicToolchainModel.setType( "basic" ); - basicToolchains.add( basicToolchainModel ); - basicToolchains.add( basicToolchainModel ); - groupedToolchains.put( "basic", basicToolchains ); - - List rareToolchains = new ArrayList(); - ToolchainModel rareToolchainModel = new ToolchainModel(); - rareToolchainModel.setType( "rare" ); - rareToolchains.add( rareToolchainModel ); - groupedToolchains.put( "rare", rareToolchains ); - - // execute - ToolchainPrivate[] toolchains = toolchainManager.getToolchainsForType( "basic", session ); - - // verify - verify( logger, never() ).error( anyString() ); - assertEquals( 2, toolchains.length ); - } - - @SuppressWarnings( "unchecked" ) - @Test( expected = MisconfiguredToolchainException.class ) - public void testMisconfiguredToolchain() - throws Exception - { - // prepare - MavenSession session = mock( MavenSession.class ); - MavenExecutionRequest req = new DefaultMavenExecutionRequest(); - when( session.getRequest() ).thenReturn( req ); - when(toolchainFactory_basicType.createDefaultToolchain()).thenThrow( MisconfiguredToolchainException.class ); - - // execute - toolchainManager.getToolchainsForType( "basic", session ); - - // verify - fail( "Should exit with a MisconfiguredToolchainException" ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/DefaultToolchainManagerTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/DefaultToolchainManagerTest.java deleted file mode 100644 index d464502f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/DefaultToolchainManagerTest.java +++ /dev/null @@ -1,153 +0,0 @@ -package org.apache.maven.toolchain; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import static org.junit.Assert.assertEquals; -import static org.mockito.Matchers.anyMap; -import static org.mockito.Matchers.isA; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.when; - -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.apache.maven.execution.DefaultMavenExecutionRequest; -import org.apache.maven.execution.MavenExecutionRequest; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.toolchain.model.ToolchainModel; -import org.codehaus.plexus.logging.Logger; -import org.junit.Before; -import org.junit.Test; -import org.mockito.InjectMocks; -import org.mockito.Mock; -import org.mockito.MockitoAnnotations; - -public class DefaultToolchainManagerTest -{ - // Mocks to inject into toolchainManager - @Mock - private Logger logger; - - @InjectMocks - private DefaultToolchainManager toolchainManager; - - @Mock - private ToolchainFactory toolchainFactory_basicType; - - @Mock - private ToolchainFactory toolchainFactory_rareType; - - @Before - public void onSetup() throws Exception - { - toolchainManager = new DefaultToolchainManager(); - - MockitoAnnotations.initMocks( this ); - - toolchainManager.factories = new HashMap(); - toolchainManager.factories.put( "basic", toolchainFactory_basicType ); - toolchainManager.factories.put( "rare", toolchainFactory_rareType ); - } - - @Test - public void testNoModels() - { - MavenSession session = mock( MavenSession.class ); - MavenExecutionRequest executionRequest = new DefaultMavenExecutionRequest(); - when( session.getRequest() ).thenReturn( executionRequest ); - - List toolchains = toolchainManager.getToolchains( session, "unknown", null ); - - assertEquals( 0, toolchains.size() ); - } - - @Test - public void testModelNoFactory() - { - MavenSession session = mock( MavenSession.class ); - MavenExecutionRequest executionRequest = new DefaultMavenExecutionRequest(); - Map> toolchainModels = new HashMap>(); - toolchainModels.put( "unknown", Collections.singletonList( new ToolchainModel() ) ); - executionRequest.setToolchains( toolchainModels ); - when( session.getRequest() ).thenReturn( executionRequest ); - - List toolchains = toolchainManager.getToolchains( session, "unknown", null ); - - assertEquals( 0, toolchains.size() ); - verify( logger ).error( "Missing toolchain factory for type: unknown. Possibly caused by misconfigured project." ); - } - - @Test - public void testModelAndFactory() - { - MavenSession session = mock( MavenSession.class ); - MavenExecutionRequest executionRequest = new DefaultMavenExecutionRequest(); - Map> toolchainModels = new HashMap>(); - toolchainModels.put( "basic", Arrays.asList( new ToolchainModel(), new ToolchainModel() ) ); - toolchainModels.put( "rare", Collections.singletonList( new ToolchainModel() ) ); - executionRequest.setToolchains( toolchainModels ); - when( session.getRequest() ).thenReturn( executionRequest ); - - List toolchains = toolchainManager.getToolchains( session, "rare", null ); - - assertEquals( 1, toolchains.size() ); - } - - @Test - public void testModelsAndFactory() - { - MavenSession session = mock( MavenSession.class ); - MavenExecutionRequest executionRequest = new DefaultMavenExecutionRequest(); - Map> toolchainModels = new HashMap>(); - toolchainModels.put( "basic", Arrays.asList( new ToolchainModel(), new ToolchainModel() ) ); - toolchainModels.put( "rare", Collections.singletonList( new ToolchainModel() ) ); - executionRequest.setToolchains( toolchainModels ); - when( session.getRequest() ).thenReturn( executionRequest ); - - List toolchains = toolchainManager.getToolchains( session, "basic", null ); - - assertEquals( 2, toolchains.size() ); - } - - @Test - public void testRequirements() - throws Exception - { - MavenSession session = mock( MavenSession.class ); - MavenExecutionRequest executionRequest = new DefaultMavenExecutionRequest(); - Map> toolchainModels = new HashMap>(); - toolchainModels.put( "basic", Arrays.asList( new ToolchainModel(), new ToolchainModel() ) ); - toolchainModels.put( "rare", Collections.singletonList( new ToolchainModel() ) ); - executionRequest.setToolchains( toolchainModels ); - when( session.getRequest() ).thenReturn( executionRequest ); - ToolchainPrivate basicPrivate = mock( ToolchainPrivate.class ); - when( basicPrivate.matchesRequirements( anyMap() ) ).thenReturn( false ).thenReturn( true ); - when( toolchainFactory_basicType.createToolchain( isA( ToolchainModel.class ) ) ).thenReturn( basicPrivate ); - - List toolchains = - toolchainManager.getToolchains( session, "basic", Collections.singletonMap( "key", "value" ) ); - - assertEquals( 1, toolchains.size() ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/DefaultToolchainTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/DefaultToolchainTest.java deleted file mode 100644 index 3bba8177..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/DefaultToolchainTest.java +++ /dev/null @@ -1,158 +0,0 @@ -package org.apache.maven.toolchain; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; -import static org.mockito.Mockito.verify; - -import java.io.InputStream; -import java.util.Collections; - -import org.apache.maven.toolchain.java.DefaultJavaToolChain; -import org.apache.maven.toolchain.model.PersistedToolchains; -import org.apache.maven.toolchain.model.ToolchainModel; -import org.apache.maven.toolchain.model.io.xpp3.MavenToolchainsXpp3Reader; -import org.codehaus.plexus.logging.Logger; -import org.codehaus.plexus.util.IOUtil; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; -import org.mockito.MockitoAnnotations; - -public class DefaultToolchainTest -{ - @Mock - private Logger logger; - - private MavenToolchainsXpp3Reader reader = new MavenToolchainsXpp3Reader(); - - @Before - public void setUp() throws Exception - { - MockitoAnnotations.initMocks( this ); - } - - private DefaultToolchain newDefaultToolchain( ToolchainModel model ) - { - return new DefaultToolchain( model, logger ) - { - @Override - public String findTool( String toolName ) - { - return null; - } - }; - } - - private DefaultToolchain newDefaultToolchain( ToolchainModel model, String type ) - { - return new DefaultToolchain( model, type, logger ) - { - @Override - public String findTool( String toolName ) - { - return null; - } - }; - } - - @Test - public void testGetModel() - { - ToolchainModel model = new ToolchainModel(); - DefaultToolchain toolchain = newDefaultToolchain( model ); - assertEquals( model, toolchain.getModel() ); - } - - @Test - public void testGetType() - { - ToolchainModel model = new ToolchainModel(); - DefaultToolchain toolchain = newDefaultToolchain( model, "TYPE" ); - assertEquals( "TYPE", toolchain.getType() ); - - model.setType( "MODEL_TYPE" ); - toolchain = newDefaultToolchain( model ); - assertEquals( "MODEL_TYPE", toolchain.getType() ); - } - - @Test - public void testGetLogger() - { - ToolchainModel model = new ToolchainModel(); - DefaultToolchain toolchain = newDefaultToolchain( model ); - assertEquals( logger, toolchain.getLog() ); - } - - @Test - public void testMissingRequirementProperty() - { - ToolchainModel model = new ToolchainModel(); - model.setType( "TYPE" ); - DefaultToolchain toolchain = newDefaultToolchain( model ); - - assertFalse( toolchain.matchesRequirements( Collections.singletonMap( "name", "John Doe" ) ) ); - verify( logger ).debug( "Toolchain type:TYPE{} is missing required property: name" ); - } - - - @Test - public void testNonMatchingRequirementProperty() - { - ToolchainModel model = new ToolchainModel(); - model.setType( "TYPE" ); - DefaultToolchain toolchain = newDefaultToolchain( model ); - toolchain.addProvideToken( "name", RequirementMatcherFactory.createExactMatcher( "Jane Doe" ) ); - - assertFalse( toolchain.matchesRequirements( Collections.singletonMap( "name", "John Doe" ) ) ); - verify( logger ).debug( "Toolchain type:TYPE{name = Jane Doe} doesn't match required property: name" ); - } - - - @Test - public void testEquals() throws Exception - { - InputStream jdksIS = null; - InputStream jdksExtraIS = null; - try - { - jdksIS = ToolchainModel.class.getResourceAsStream( "toolchains-jdks.xml" ); - jdksExtraIS = ToolchainModel.class.getResourceAsStream( "toolchains-jdks-extra.xml" ); - - PersistedToolchains jdks = reader.read( jdksIS ); - PersistedToolchains jdksExtra = reader.read( jdksExtraIS ); - - DefaultToolchain tc1 = new DefaultJavaToolChain( jdks.getToolchains().get( 0 ), null ); - DefaultToolchain tc2 = new DefaultJavaToolChain( jdksExtra.getToolchains().get( 0 ), null ); - - assertTrue( tc1.equals( tc1 ) ); - assertFalse( tc1.equals( tc2 ) ); - assertFalse( tc2.equals( tc1 ) ); - assertTrue( tc2.equals( tc2 ) ); - } - finally - { - IOUtil.close( jdksIS ); - IOUtil.close( jdksExtraIS ); - } - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/RequirementMatcherFactoryTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/RequirementMatcherFactoryTest.java deleted file mode 100644 index c102b11f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/RequirementMatcherFactoryTest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.maven.toolchain; - -import junit.framework.TestCase; - -/** - * - * @author mkleint - */ -public class RequirementMatcherFactoryTest - extends TestCase -{ - - public RequirementMatcherFactoryTest( String testName ) - { - super( testName ); - } - - /** - * Test of createExactMatcher method, of class RequirementMatcherFactory. - */ - public void testCreateExactMatcher() - { - RequirementMatcher matcher; - matcher = RequirementMatcherFactory.createExactMatcher( "foo" ); - assertFalse( matcher.matches( "bar" ) ); - assertFalse( matcher.matches( "foobar" ) ); - assertFalse( matcher.matches( "foob" ) ); - assertTrue( matcher.matches( "foo" ) ); - } - - /** - * Test of createVersionMatcher method, of class RequirementMatcherFactory. - */ - public void testCreateVersionMatcher() - { - RequirementMatcher matcher; - matcher = RequirementMatcherFactory.createVersionMatcher( "1.5.2" ); - assertFalse( matcher.matches( "1.5" ) ); - assertTrue( matcher.matches( "1.5.2" ) ); - assertFalse( matcher.matches( "[1.4,1.5)" ) ); - assertFalse( matcher.matches( "[1.5,1.5.2)" ) ); - assertFalse( matcher.matches( "(1.5.2,1.6)" ) ); - assertTrue( matcher.matches( "(1.4,1.5.2]" ) ); - assertTrue( matcher.matches( "(1.5,)" ) ); - assertEquals( "1.5.2", matcher.toString() ); - - // Ensure it is not printed as 1.5.0 - matcher = RequirementMatcherFactory.createVersionMatcher( "1.5" ); - assertEquals( "1.5", matcher.toString() ); - - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilderTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilderTest.java deleted file mode 100644 index 80fca094..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilderTest.java +++ /dev/null @@ -1,185 +0,0 @@ -package org.apache.maven.toolchain.building; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.mockito.Matchers.any; -import static org.mockito.Matchers.anyMap; -import static org.mockito.Mockito.when; - -import java.io.IOException; -import java.io.InputStream; - -import org.apache.maven.building.StringSource; -import org.apache.maven.toolchain.io.ToolchainsParseException; -import org.apache.maven.toolchain.io.ToolchainsReader; -import org.apache.maven.toolchain.model.PersistedToolchains; -import org.apache.maven.toolchain.model.ToolchainModel; -import org.junit.Before; -import org.junit.Test; -import org.mockito.InjectMocks; -import org.mockito.Mock; -import org.mockito.MockitoAnnotations; - -public class DefaultToolchainsBuilderTest -{ - private static final String LS = System.getProperty( "line.separator" ); - - @Mock - private ToolchainsReader toolchainsReader; - - @InjectMocks - private DefaultToolchainsBuilder toolchainBuilder = new DefaultToolchainsBuilder(); - - @Before - public void onSetup() - { - MockitoAnnotations.initMocks( this ); - } - - @Test - public void testBuildEmptyRequest() - throws Exception - { - ToolchainsBuildingRequest request = new DefaultToolchainsBuildingRequest(); - ToolchainsBuildingResult result = toolchainBuilder.build( request ); - assertNotNull( result.getEffectiveToolchains() ); - assertNotNull( result.getProblems() ); - assertEquals( 0, result.getProblems().size() ); - } - - @Test - public void testBuildRequestWithUserToolchains() - throws Exception - { - ToolchainsBuildingRequest request = new DefaultToolchainsBuildingRequest(); - request.setUserToolchainsSource( new StringSource( "" ) ); - - PersistedToolchains userResult = new PersistedToolchains(); - ToolchainModel toolchain = new ToolchainModel(); - toolchain.setType( "TYPE" ); - toolchain.addProvide( "key", "user_value" ); - userResult.addToolchain( toolchain ); - when( toolchainsReader.read( any( InputStream.class ), anyMap() ) ).thenReturn( userResult ); - - ToolchainsBuildingResult result = toolchainBuilder.build( request ); - assertNotNull( result.getEffectiveToolchains() ); - assertEquals( 1, result.getEffectiveToolchains().getToolchains().size() ); - assertEquals( "TYPE", result.getEffectiveToolchains().getToolchains().get(0).getType() ); - assertEquals( "user_value", result.getEffectiveToolchains().getToolchains().get(0).getProvides().getProperty( "key" ) ); - assertNotNull( result.getProblems() ); - assertEquals( 0, result.getProblems().size() ); - } - - @Test - public void testBuildRequestWithGlobalToolchains() - throws Exception - { - ToolchainsBuildingRequest request = new DefaultToolchainsBuildingRequest(); - request.setGlobalToolchainsSource( new StringSource( "" ) ); - - PersistedToolchains globalResult = new PersistedToolchains(); - ToolchainModel toolchain = new ToolchainModel(); - toolchain.setType( "TYPE" ); - toolchain.addProvide( "key", "global_value" ); - globalResult.addToolchain( toolchain ); - when( toolchainsReader.read( any( InputStream.class ), anyMap() ) ).thenReturn( globalResult ); - - ToolchainsBuildingResult result = toolchainBuilder.build( request ); - assertNotNull( result.getEffectiveToolchains() ); - assertEquals( 1, result.getEffectiveToolchains().getToolchains().size() ); - assertEquals( "TYPE", result.getEffectiveToolchains().getToolchains().get(0).getType() ); - assertEquals( "global_value", result.getEffectiveToolchains().getToolchains().get(0).getProvides().getProperty( "key" ) ); - assertNotNull( result.getProblems() ); - assertEquals( 0, result.getProblems().size() ); - } - - @Test - public void testBuildRequestWithBothToolchains() - throws Exception - { - ToolchainsBuildingRequest request = new DefaultToolchainsBuildingRequest(); - request.setGlobalToolchainsSource( new StringSource( "" ) ); - request.setUserToolchainsSource( new StringSource( "" ) ); - - PersistedToolchains userResult = new PersistedToolchains(); - ToolchainModel userToolchain = new ToolchainModel(); - userToolchain.setType( "TYPE" ); - userToolchain.addProvide( "key", "user_value" ); - userResult.addToolchain( userToolchain ); - - PersistedToolchains globalResult = new PersistedToolchains(); - ToolchainModel globalToolchain = new ToolchainModel(); - globalToolchain.setType( "TYPE" ); - globalToolchain.addProvide( "key", "global_value" ); - globalResult.addToolchain( globalToolchain ); - when( toolchainsReader.read( any( InputStream.class ), anyMap() ) ).thenReturn( globalResult ).thenReturn( userResult ); - - ToolchainsBuildingResult result = toolchainBuilder.build( request ); - assertNotNull( result.getEffectiveToolchains() ); - assertEquals( 2, result.getEffectiveToolchains().getToolchains().size() ); - assertEquals( "TYPE", result.getEffectiveToolchains().getToolchains().get(0).getType() ); - assertEquals( "user_value", result.getEffectiveToolchains().getToolchains().get(0).getProvides().getProperty( "key" ) ); - assertEquals( "TYPE", result.getEffectiveToolchains().getToolchains().get(1).getType() ); - assertEquals( "global_value", result.getEffectiveToolchains().getToolchains().get(1).getProvides().getProperty( "key" ) ); - assertNotNull( result.getProblems() ); - assertEquals( 0, result.getProblems().size() ); - } - - @Test - public void testStrictToolchainsParseException() throws Exception - { - ToolchainsBuildingRequest request = new DefaultToolchainsBuildingRequest(); - request.setGlobalToolchainsSource( new StringSource( "" ) ); - ToolchainsParseException parseException = new ToolchainsParseException( "MESSAGE", 4, 2 ); - when( toolchainsReader.read( any( InputStream.class ), anyMap() ) ).thenThrow( parseException ); - - try - { - toolchainBuilder.build( request ); - } - catch ( ToolchainsBuildingException e ) - { - assertEquals( "1 problem was encountered while building the effective toolchains" + LS + - "[FATAL] Non-parseable toolchains (memory): MESSAGE @ line 4, column 2" + LS, e.getMessage() ); - } - } - - @Test - public void testIOException() throws Exception - { - ToolchainsBuildingRequest request = new DefaultToolchainsBuildingRequest(); - request.setGlobalToolchainsSource( new StringSource( "", "LOCATION" ) ); - IOException ioException = new IOException( "MESSAGE" ); - when( toolchainsReader.read( any( InputStream.class ), anyMap() ) ).thenThrow( ioException ); - - try - { - toolchainBuilder.build( request ); - } - catch ( ToolchainsBuildingException e ) - { - assertEquals( "1 problem was encountered while building the effective toolchains" + LS + - "[FATAL] Non-readable toolchains LOCATION: MESSAGE" + LS, e.getMessage() ); - } - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/building/ToolchainsBuildingExceptionTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/building/ToolchainsBuildingExceptionTest.java deleted file mode 100644 index bf745c2a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/building/ToolchainsBuildingExceptionTest.java +++ /dev/null @@ -1,73 +0,0 @@ -package org.apache.maven.toolchain.building; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import static org.junit.Assert.assertEquals; - -import java.util.Collections; - -import org.apache.maven.building.Problem; -import org.apache.maven.building.ProblemCollector; -import org.apache.maven.building.ProblemCollectorFactory; -import org.junit.Test; - -public class ToolchainsBuildingExceptionTest -{ - private static final String LS = System.getProperty( "line.separator" ); - - @Test - public void testNoProblems() - { - ToolchainsBuildingException e = new ToolchainsBuildingException( Collections.emptyList() ); - assertEquals( "0 problems were encountered while building the effective toolchains" + LS, e.getMessage() ); - } - - @Test - public void testOneProblem() - { - ProblemCollector problemCollector = ProblemCollectorFactory.newInstance( null ); - problemCollector.add( Problem.Severity.ERROR, "MESSAGE", 3, 5, new Exception() ); - ToolchainsBuildingException e = new ToolchainsBuildingException( problemCollector.getProblems() ); - assertEquals( "1 problem was encountered while building the effective toolchains" + LS + - "[ERROR] MESSAGE @ line 3, column 5" + LS, e.getMessage() ); - } - - @Test - public void testUnknownPositionAndSource() - { - ProblemCollector problemCollector = ProblemCollectorFactory.newInstance( null ); - problemCollector.add( Problem.Severity.ERROR, "MESSAGE", -1, -1, new Exception() ); - ToolchainsBuildingException e = new ToolchainsBuildingException( problemCollector.getProblems() ); - assertEquals( "1 problem was encountered while building the effective toolchains" + LS + - "[ERROR] MESSAGE" + LS, e.getMessage() ); - } - - @Test - public void testUnknownPosition() - { - ProblemCollector problemCollector = ProblemCollectorFactory.newInstance( null ); - problemCollector.setSource( "SOURCE" ); - problemCollector.add( Problem.Severity.ERROR, "MESSAGE", -1, -1, new Exception() ); - ToolchainsBuildingException e = new ToolchainsBuildingException( problemCollector.getProblems() ); - assertEquals( "1 problem was encountered while building the effective toolchains" + LS + - "[ERROR] MESSAGE @ SOURCE" + LS, e.getMessage() ); - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/merge/MavenToolchainMergerTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/merge/MavenToolchainMergerTest.java deleted file mode 100644 index 9183e175..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/java/org/apache/maven/toolchain/merge/MavenToolchainMergerTest.java +++ /dev/null @@ -1,176 +0,0 @@ -package org.apache.maven.toolchain.merge; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import static org.junit.Assert.assertEquals; - -import java.io.InputStream; - -import org.apache.maven.toolchain.model.PersistedToolchains; -import org.apache.maven.toolchain.model.ToolchainModel; -import org.apache.maven.toolchain.model.TrackableBase; -import org.apache.maven.toolchain.model.io.xpp3.MavenToolchainsXpp3Reader; -import org.codehaus.plexus.util.IOUtil; -import org.codehaus.plexus.util.xml.Xpp3Dom; -import org.junit.Test; - -public class MavenToolchainMergerTest -{ - private MavenToolchainMerger merger = new MavenToolchainMerger(); - - private MavenToolchainsXpp3Reader reader = new MavenToolchainsXpp3Reader(); - - @Test - public void testMergeNulls() - { - merger.merge( null, null, null ); - - PersistedToolchains pt = new PersistedToolchains(); - merger.merge( pt, null, null ); - merger.merge( null, pt, null ); - } - - @Test - public void testMergeJdk() throws Exception - { - InputStream isDominant = null; - InputStream isRecessive = null; - try - { - isDominant = ToolchainModel.class.getResourceAsStream( "toolchains-jdks.xml" ); - isRecessive = ToolchainModel.class.getResourceAsStream( "toolchains-jdks.xml" ); - - PersistedToolchains dominant = reader.read( isDominant ); - PersistedToolchains recessive = reader.read( isRecessive ); - assertEquals( 2, dominant.getToolchains().size() ); - - merger.merge( dominant, recessive, TrackableBase.USER_LEVEL ); - assertEquals( 2, dominant.getToolchains().size() ); - } - finally - { - IOUtil.close( isDominant ); - } - } - - @Test - public void testMergeJdkExtra() throws Exception - { - InputStream jdksIS = null; - InputStream jdksExtraIS = null; - try - { - jdksIS = ToolchainModel.class.getResourceAsStream( "toolchains-jdks.xml" ); - jdksExtraIS = ToolchainModel.class.getResourceAsStream( "toolchains-jdks-extra.xml" ); - - PersistedToolchains jdks = reader.read( jdksIS ); - PersistedToolchains jdksExtra = reader.read( jdksExtraIS ); - assertEquals( 2, jdks.getToolchains().size() ); - - merger.merge( jdks, jdksExtra, TrackableBase.USER_LEVEL ); - assertEquals( 4, jdks.getToolchains().size() ); - assertEquals( 2, jdksExtra.getToolchains().size() ); - } - finally - { - IOUtil.close( jdksIS ); - IOUtil.close( jdksExtraIS ); - } - - try - { - jdksIS = ToolchainModel.class.getResourceAsStream( "toolchains-jdks.xml" ); - jdksExtraIS = ToolchainModel.class.getResourceAsStream( "toolchains-jdks-extra.xml" ); - - PersistedToolchains jdks = reader.read( jdksIS ); - PersistedToolchains jdksExtra = reader.read( jdksExtraIS ); - assertEquals( 2, jdks.getToolchains().size() ); - - // switch dominant with reccessive - merger.merge( jdksExtra, jdks, TrackableBase.USER_LEVEL ); - assertEquals( 4, jdksExtra.getToolchains().size() ); - assertEquals( 2, jdks.getToolchains().size() ); - } - finally - { - IOUtil.close( jdksIS ); - IOUtil.close( jdksExtraIS ); - } - } - - @Test - public void testMergeJdkExtend() throws Exception - { - InputStream jdksIS = null; - InputStream jdksExtendIS = null; - try - { - jdksIS = ToolchainModel.class.getResourceAsStream( "toolchains-jdks.xml" ); - jdksExtendIS = ToolchainModel.class.getResourceAsStream( "toolchains-jdks-extend.xml" ); - - PersistedToolchains jdks = reader.read( jdksIS ); - PersistedToolchains jdksExtend = reader.read( jdksExtendIS ); - assertEquals( 2, jdks.getToolchains().size() ); - - merger.merge( jdks, jdksExtend, TrackableBase.USER_LEVEL ); - assertEquals( 2, jdks.getToolchains().size() ); - Xpp3Dom config0 = (Xpp3Dom) jdks.getToolchains().get( 0 ).getConfiguration(); - assertEquals( "lib/tools.jar", config0.getChild( "toolsJar" ).getValue() ); - assertEquals( 2, config0.getChildCount() ); - Xpp3Dom config1 = (Xpp3Dom) jdks.getToolchains().get( 1 ).getConfiguration(); - assertEquals( 2, config1.getChildCount() ); - assertEquals( "lib/classes.jar", config1.getChild( "toolsJar" ).getValue() ); - assertEquals( 2, jdksExtend.getToolchains().size() ); - } - finally - { - IOUtil.close( jdksIS ); - IOUtil.close( jdksExtendIS ); - } - - try - { - jdksIS = ToolchainModel.class.getResourceAsStream( "toolchains-jdks.xml" ); - jdksExtendIS = ToolchainModel.class.getResourceAsStream( "toolchains-jdks-extend.xml" ); - - PersistedToolchains jdks = reader.read( jdksIS ); - PersistedToolchains jdksExtend = reader.read( jdksExtendIS ); - assertEquals( 2, jdks.getToolchains().size() ); - - // switch dominant with reccessive - merger.merge( jdksExtend, jdks, TrackableBase.USER_LEVEL ); - assertEquals( 2, jdksExtend.getToolchains().size() ); - Xpp3Dom config0 = (Xpp3Dom) jdksExtend.getToolchains().get( 0 ).getConfiguration(); - assertEquals( "lib/tools.jar", config0.getChild( "toolsJar" ).getValue() ); - assertEquals( 2, config0.getChildCount() ); - Xpp3Dom config1 = (Xpp3Dom) jdksExtend.getToolchains().get( 1 ).getConfiguration(); - assertEquals( 2, config1.getChildCount() ); - assertEquals( "lib/classes.jar", config1.getChild( "toolsJar" ).getValue() ); - assertEquals( 2, jdks.getToolchains().size() ); - } - finally - { - IOUtil.close( jdksIS ); - IOUtil.close( jdksExtendIS ); - } - - } - -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/default-maven/cyclic-reference/module-a/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/default-maven/cyclic-reference/module-a/pom.xml deleted file mode 100644 index 56ec3412..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/default-maven/cyclic-reference/module-a/pom.xml +++ /dev/null @@ -1,19 +0,0 @@ - - 4.0.0 - - - cyclic-reference - parent - 1.0-SNAPSHOT - - module-a - - - - cyclic-reference - module-b - 1.0-SNAPSHOT - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/default-maven/cyclic-reference/module-b/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/default-maven/cyclic-reference/module-b/pom.xml deleted file mode 100644 index ffa4f347..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/default-maven/cyclic-reference/module-b/pom.xml +++ /dev/null @@ -1,19 +0,0 @@ - - 4.0.0 - - - cyclic-reference - parent - 1.0-SNAPSHOT - - module-b - - - - cyclic-reference - module-a - 1.0-SNAPSHOT - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/default-maven/cyclic-reference/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/default-maven/cyclic-reference/pom.xml deleted file mode 100644 index e2666190..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/default-maven/cyclic-reference/pom.xml +++ /dev/null @@ -1,14 +0,0 @@ - - 4.0.0 - - cyclic-reference - parent - 1.0-SNAPSHOT - pom - - - module-a - module-b - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/mojo-configuration/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/mojo-configuration/pom.xml deleted file mode 100644 index a821765b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/mojo-configuration/pom.xml +++ /dev/null @@ -1,67 +0,0 @@ - - 4.0.0 - org.apache.maven.lifecycle.test - mojo-configuration - jar - 1.0 - project-with-additional-lifecycle-elements - http://maven.apache.org - - - - - - org.apache.maven.plugins - maven-clean-plugin - 0.1 - - - org.apache.maven.plugins - maven-compiler-plugin - 0.1 - - - org.apache.maven.plugins - maven-deploy-plugin - 0.1 - - - org.apache.maven.plugins - maven-install-plugin - 0.1 - - - org.apache.maven.plugins - maven-jar-plugin - 0.1 - - - org.apache.maven.plugins - maven-plugin-plugin - 0.1 - - - org.apache.maven.plugins - maven-surefire-plugin - 0.1 - - - - - - org.apache.maven.its.plugins - maven-it-plugin - 0.1 - - - - xpp3-reader - - generate-sources - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-basic/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-basic/pom.xml deleted file mode 100644 index ab8584d9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-basic/pom.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.lifecycle.test - project-basic - 1.0 - jar - - Test Project - 2009 - - - - - - org.apache.maven.plugins - maven-clean-plugin - 0.1 - - - org.apache.maven.plugins - maven-compiler-plugin - 0.1 - - - org.apache.maven.plugins - maven-deploy-plugin - 0.1 - - - org.apache.maven.plugins - maven-install-plugin - 0.1 - - - org.apache.maven.plugins - maven-jar-plugin - 0.1 - - - org.apache.maven.plugins - maven-plugin-plugin - 0.1 - - - org.apache.maven.plugins - maven-resources-plugin - 0.1 - - - org.apache.maven.plugins - maven-surefire-plugin - 0.1 - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-additional-lifecycle-elements/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-additional-lifecycle-elements/pom.xml deleted file mode 100644 index 83080888..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-additional-lifecycle-elements/pom.xml +++ /dev/null @@ -1,72 +0,0 @@ - - 4.0.0 - org.apache.maven.lifecycle.test - project-with-additional-lifecycle-elements - jar - 1.0 - project-with-additional-lifecycle-elements - http://maven.apache.org - - - - - - org.apache.maven.plugins - maven-clean-plugin - 0.1 - - - org.apache.maven.plugins - maven-compiler-plugin - 0.1 - - - org.apache.maven.plugins - maven-deploy-plugin - 0.1 - - - org.apache.maven.plugins - maven-install-plugin - 0.1 - - - org.apache.maven.plugins - maven-jar-plugin - 0.1 - - - org.apache.maven.plugins - maven-plugin-plugin - 0.1 - - - org.apache.maven.plugins - maven-surefire-plugin - 0.1 - - - - - - org.apache.maven.its.plugins - maven-it-plugin - 0.1 - - - - generate-metadata - generate-test-metadata - - - - - - org.apache.maven.plugins - maven-resources-plugin - 0.1 - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-additional-lifecycle-elements/src/main/java/org/apache/maven/lifecycle/test/App.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-additional-lifecycle-elements/src/main/java/org/apache/maven/lifecycle/test/App.java deleted file mode 100644 index 826279cc..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-additional-lifecycle-elements/src/main/java/org/apache/maven/lifecycle/test/App.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.apache.maven.lifecycle.test; - -/** - * Hello world! - * - */ -public class App -{ - public static void main( String[] args ) - { - System.out.println( "Hello World!" ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-additional-lifecycle-elements/src/test/java/org/apache/maven/lifecycle/test/AppTest.java b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-additional-lifecycle-elements/src/test/java/org/apache/maven/lifecycle/test/AppTest.java deleted file mode 100644 index 469cb2c4..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-additional-lifecycle-elements/src/test/java/org/apache/maven/lifecycle/test/AppTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.apache.maven.lifecycle.test; - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -/** - * Unit test for simple App. - */ -public class AppTest - extends TestCase -{ - /** - * Create the test case - * - * @param testName name of the test case - */ - public AppTest( String testName ) - { - super( testName ); - } - - /** - * @return the suite of tests being tested - */ - public static Test suite() - { - return new TestSuite( AppTest.class ); - } - - /** - * Rigourous Test :-) - */ - public void testApp() - { - assertTrue( true ); - } -} diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-inheritance/pom.xml deleted file mode 100644 index 0f49e9ae..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-inheritance/pom.xml +++ /dev/null @@ -1,628 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven - maven-parent - 11 - ../pom/maven/pom.xml - - org.apache.maven - maven - 3.0-SNAPSHOT - pom - Apache Maven - Maven is a project development management and - comprehension tool. Based on the concept of a project object model: - builds, dependency management, documentation creation, site - publication, and distribution publication are all controlled from - the declarative file. Maven can be extended by plugins to utilise a - number of other development tools for reporting or the build - process. - - http://maven.apache.org/ - 2001 - - 1.3 - 1.0 - - 1.0-alpha-9 - 1.2_Java1.3 - 3.8.1 - 1.0-beta-3.0.7 - 1.0-alpha-6 - 1.1 - 1.0-alpha-1 - 1.5.8 - 1.6 - 1.0 - 1.0-beta-4 - 1.7-SNAPSHOT - 1.0-alpha-6-SNAPSHOT - 1.0-alpha-1 - 1.2 - 3.2.6 - 1.0.1-SNAPSHOT - 1.3 - - - jira - http://jira.codehaus.org/browse/MNG - - - - Maven Developer List - dev-subscribe@maven.apache.org - dev-unsubscribe@maven.apache.org - dev@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-dev - - http://www.mail-archive.com/dev@maven.apache.org/ - http://www.nabble.com/Maven-Developers-f179.html - http://maven.dev.markmail.org/ - - - - Maven User List - users-subscribe@maven.apache.org - users-unsubscribe@maven.apache.org - users@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-users - - http://www.mail-archive.com/users@maven.apache.org/ - http://www.nabble.com/Maven---Users-f178.html - http://maven.users.markmail.org/ - - - - Maven Issues List - issues-subscribe@maven.apache.org - issues-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-issues/ - - http://www.mail-archive.com/issues@maven.apache.org - http://www.nabble.com/Maven---Issues-f15573.html - http://maven.issues.markmail.org/ - - - - Maven Commits List - commits-subscribe@maven.apache.org - commits-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-commits - - http://www.mail-archive.com/commits@maven.apache.org - http://www.nabble.com/Maven---Commits-f15575.html - http://maven.commits.markmail.org/ - - - - - Maven Announcements List - announce@maven.apache.org - announce-subscribe@maven.apache.org - announce-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-announce/ - - http://www.mail-archive.com/announce@maven.apache.org - http://www.nabble.com/Maven-Announcements-f15617.html - http://maven.announce.markmail.org/ - - - - Maven Notifications List - notifications-subscribe@maven.apache.org - notifications-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-notifications/ - - http://www.mail-archive.com/notifications@maven.apache.org - http://www.nabble.com/Maven---Notifications-f15574.html - http://maven.notifications.markmail.org/ - - - - - scm:svn:http://svn.apache.org/repos/asf/maven/components/trunk - scm:svn:https://svn.apache.org/repos/asf/maven/components/trunk - http://svn.apache.org/viewcvs.cgi/maven/components/trunk - - - - - - org.codehaus.plexus - plexus-component-metadata - ${plexusVersion} - - - - generate-metadata - generate-test-metadata - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 2.0.2 - - 1.5 - 1.5 - - - - maven-release-plugin - - https://svn.apache.org/repos/asf/maven/components/tags - - - - org.codehaus.modello - modello-maven-plugin - ${modelloVersion} - - true - - - - site-docs - pre-site - - xdoc - xsd - - - - standard - - java - xpp3-reader - xpp3-writer - - - - - - org.apache.felix - maven-bundle-plugin - 1.0.0 - - - org.apache.maven.plugins - maven-surefire-plugin - 2.4.2 - - - org.apache.maven.plugins - maven-assembly-plugin - 2.2-beta-2 - - - org.apache.maven.plugins - maven-resources-plugin - 2.4-SNAPSHOT - - - - - - maven-core - apache-maven - maven-model - maven-plugin-api - maven-project - maven-reporting-api - maven-project-builder - maven-mercury - maven-embedder - maven-toolchain - maven-compat - maven-repository - maven-repository-mercury - - - - - junit - junit - ${junitVersion} - test - - - - - - - - - org.apache.maven - maven-mercury - ${project.version} - - - org.apache.maven - maven-lifecycle - ${project.version} - - - org.apache.maven - maven-reporting-api - ${project.version} - - - org.apache.maven - maven-profile - ${project.version} - - - org.apache.maven - maven-model - ${project.version} - - - org.apache.maven - maven-project - ${project.version} - - - org.apache.maven - maven-plugin-api - ${project.version} - - - org.apache.maven - maven-toolchain - ${project.version} - - - org.apache.maven - maven-embedder - ${project.version} - - - org.apache.maven - maven-core - ${project.version} - - - org.apache.maven - maven-project-builder - ${project.version} - - - org.apache.maven - maven-repository - ${project.version} - - - org.apache.maven - maven-compat - ${project.version} - - - - - org.codehaus.plexus - plexus-utils - ${plexusUtilsVersion} - - - org.codehaus.plexus - plexus-container-default - ${plexusVersion} - - - org.codehaus.plexus - plexus-component-annotations - ${plexusVersion} - - - org.codehaus.plexus - plexus-classworlds - ${classWorldsVersion} - - - org.codehaus.plexus - plexus-interpolation - ${plexusInterpolationVersion} - - - org.codehaus.plexus - plexus-interactivity-api - ${plexusInteractivityVersion} - - - org.codehaus.plexus - plexus-component-api - - - - - - - org.sonatype.plexus - plexus-jetty6 - ${plexusJetty6Version} - test - - - org.sonatype.spice - plexus-webdav - ${plexusWebdavVersion} - test - - - - - org.apache.maven.wagon - wagon-provider-api - ${wagonVersion} - - - org.apache.maven.wagon - wagon-file - ${wagonVersion} - - - org.apache.maven.wagon - wagon-http-lightweight - ${wagonVersion} - - - org.apache.maven.wagon - wagon-ssh - ${wagonVersion} - - - org.apache.maven.wagon - wagon-ssh-external - ${wagonVersion} - - - - org.apache.maven.doxia - doxia-sink-api - ${doxiaVersion} - - - - org.sonatype.spice - model-builder - ${modelBuilderVersion} - - - org.codehaus.woodstox - wstx-asl - ${woodstoxVersion} - - - - commons-cli - commons-cli - ${commonsCliVersion} - - - commons-lang - commons-lang - - - commons-logging - commons-logging - - - - - commons-jxpath - commons-jxpath - ${jxpathVersion} - - - - - org.apache.maven.mercury - mercury-artifact - ${mercuryVersion} - - - org.apache.maven.mercury - mercury-external - ${mercuryVersion} - - - org.apache.maven.mercury - mercury-plexus - ${mercuryVersion} - - - org.apache.maven.mercury - mercury-repo-virtual - ${mercuryVersion} - - - org.sonatype.mercury - mercury-mp3-cli - ${mercuryMp3Version} - - - org.sonatype.plexus - plexus-sec-dispatcher - ${securityDispatcherVersion} - - - - - - org.apache.maven.mercury - mercury-repo-local-m2 - ${mercuryVersion} - test - - - org.apache.maven.mercury - mercury-repo-remote-m2 - ${mercuryVersion} - test - - - org.apache.maven.mercury - mercury-md-sat - ${mercuryVersion} - test - - - org.apache.maven.mercury - mercury-util - ${mercuryVersion} - test - - - org.apache.maven.mercury - mercury-transport-http - ${mercuryVersion} - test - - - org.apache.maven.mercury - mercury-transport-http - ${mercuryVersion} - test-jar - test - - - org.sonatype.plexus - plexus-plugin-manager - ${plexusPluginManagerVersion} - - - - easymock - easymock - ${easyMockVersion} - test - - - - - - - - - apache.website - scp://people.apache.org/www/maven.apache.org/ref/${project.version}/ - - - - - osgi - - - - org.apache.felix - maven-bundle-plugin - - - - manifest - - - - - - - org.apache.maven.plugins - maven-jar-plugin - 2.1 - - - ${project.build.outputDirectory}/META-INF/MANIFEST.MF - - - - - - - - release - - - - maven-assembly-plugin - false - - - src/main/assembly/src.xml - - gnu - maven-${project.version}-src - - - - make-assembly - package - - single - - - - - - - - - strict - - - - org.apache.maven.plugins - maven-enforcer-plugin - 1.0-alpha-3 - - - enforce-jdk-15 - - enforce - - - - - 1.5 - - - - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-multiple-executions/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-multiple-executions/pom.xml deleted file mode 100644 index e7a38347..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-multiple-executions/pom.xml +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - 4.0.0 - org.apache.maven.plugins - project-with-multiple-executions - 1.0.1 - maven-plugin - - - - - - org.apache.maven.plugins - maven-clean-plugin - 0.1 - - - org.apache.maven.plugins - maven-compiler-plugin - 0.1 - - - org.apache.maven.plugins - maven-deploy-plugin - 0.1 - - - org.apache.maven.plugins - maven-install-plugin - 0.1 - - - org.apache.maven.plugins - maven-jar-plugin - 0.1 - - - org.apache.maven.plugins - maven-plugin-plugin - 0.1 - - - org.apache.maven.plugins - maven-resources-plugin - 0.1 - - - org.apache.maven.plugins - maven-surefire-plugin - 0.1 - - - - - - org.apache.maven.its.plugins - maven-it-plugin - 0.1 - - - remote-resources - - xpp3-writer - java - xpp3-reader - - - 1.1.0 - - src/main/mdo/remote-resources.mdo - - - - - supplemental-models - - xpp3-writer - java - xpp3-reader - - - 1.0.0 - - src/main/mdo/supplemental-model.mdo - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-multiple-executions/src/main/mdo/remote-resources.mdo b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-multiple-executions/src/main/mdo/remote-resources.mdo deleted file mode 100644 index c64cfbc8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-multiple-executions/src/main/mdo/remote-resources.mdo +++ /dev/null @@ -1,61 +0,0 @@ - - - - remoteResourcesBundle - RemoteResourcesBundle - - - - package - org.apache.maven.plugin.resources.remote - - - - - RemoteResourcesBundle - 1.1.0 - Root element of the remote-resources.xml file. - - - remoteResources - 1.1.0 - - - String - * - - - - sourceEncoding - 1.1.0 - - String - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-multiple-executions/src/main/mdo/supplemental-model.mdo b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-multiple-executions/src/main/mdo/supplemental-model.mdo deleted file mode 100644 index 102149df..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-multiple-executions/src/main/mdo/supplemental-model.mdo +++ /dev/null @@ -1,61 +0,0 @@ - - - - supplementalModel - SupplementalDataModel - Provides access to supplemental POM data models. - - - package - org.apache.maven.plugin.resources.remote - - - - - SupplementalDataModel - 1.0.0 - Root element of the supplemental-models.xml file. - - - supplement - 1.0.0 - Snippets of POM xml files used to supplement the data model. - - Supplement - * - - - - - - Supplement - 1.0.0 - A single supplement - - - project - 1.0.0 - Snippets of POM xml files used to supplement the data model. - DOM - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-plugin-level-configuration-only/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-plugin-level-configuration-only/pom.xml deleted file mode 100644 index b3bb2dd9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-executor/project-with-plugin-level-configuration-only/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - 4.0.0 - org.apache.maven.plugins - project-plugin-level-configuration-only - 1.0.1 - - - - org.codehaus.modello - modello-maven-plugin - 1.0.1 - - 1.1.0 - - src/main/mdo/remote-resources.mdo - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-listener/lifecycle-listener-dependency-injection/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-listener/lifecycle-listener-dependency-injection/pom.xml deleted file mode 100644 index 41b99c72..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-listener/lifecycle-listener-dependency-injection/pom.xml +++ /dev/null @@ -1,30 +0,0 @@ - - 4.0.0 - - org.apache.maven.lifecycle-listener.test - simple - 1.0 - - - ${injected} - - - - - - org.apache.maven.its.plugins - maven-it-plugin - 0.1 - - - test - validate - - it - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-listener/lifecycle-participant-reactor-dependency-injection/module-a/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-listener/lifecycle-participant-reactor-dependency-injection/module-a/pom.xml deleted file mode 100644 index 6a173f61..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-listener/lifecycle-participant-reactor-dependency-injection/module-a/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ - - 4.0.0 - - - lifecycle-participant-reactor-dependency-injection - parent - 1.0 - - - module-a - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-listener/lifecycle-participant-reactor-dependency-injection/module-b/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-listener/lifecycle-participant-reactor-dependency-injection/module-b/pom.xml deleted file mode 100644 index 795111a2..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-listener/lifecycle-participant-reactor-dependency-injection/module-b/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ - - 4.0.0 - - - lifecycle-participant-reactor-dependency-injection - parent - 1.0 - - - module-b - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-listener/lifecycle-participant-reactor-dependency-injection/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-listener/lifecycle-participant-reactor-dependency-injection/pom.xml deleted file mode 100644 index 2830b321..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/lifecycle-listener/lifecycle-participant-reactor-dependency-injection/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ - - 4.0.0 - - lifecycle-participant-reactor-dependency-injection - parent - 1.0 - pom - - - module-a - module-b - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/mng-5003-plugin-realm-cache/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/mng-5003-plugin-realm-cache/pom.xml deleted file mode 100644 index 55f8e317..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/mng-5003-plugin-realm-cache/pom.xml +++ /dev/null @@ -1,8 +0,0 @@ - - 4.0.0 - - org.apache.maven.its.mng5003 - mng-5003-plugin-realm-cache - 1.0 - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-contributing-system-scope-plugin-dep/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-contributing-system-scope-plugin-dep/pom.xml deleted file mode 100644 index a9fa3cac..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-contributing-system-scope-plugin-dep/pom.xml +++ /dev/null @@ -1,44 +0,0 @@ - - 4.0.0 - - org.apache.maven.its.mng3586 - test2 - 1.0 - - Maven Integration Test :: MNG-3586 - - Test that plugin dependencies with scope system are part of the plugin class realm. - - - - - - org.apache.maven.its.plugins - maven-it-plugin - 0.1 - - - org.apache.maven.its.mng3586 - tools - 1.5.0 - system - ${basedir}/tools.jar - - - - - load - validate - - maven-core-it.properties - target/pcl.properties - - - load - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-contributing-system-scope-plugin-dep/tools.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-contributing-system-scope-plugin-dep/tools.jar deleted file mode 100644 index e69de29b..00000000 diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-build-extensions-plugin/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-build-extensions-plugin/pom.xml deleted file mode 100644 index d4e34a5d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-build-extensions-plugin/pom.xml +++ /dev/null @@ -1,31 +0,0 @@ - - 4.0.0 - - org.apache.maven.test - project-with-build-extensions-plugin - 1.0 - - - - - org.apache.maven.its.plugins - maven-it-plugin - 0.1 - true - - - load - validate - - maven-core-it.properties - target/pcl.properties - - - load - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-inheritance/pom.xml deleted file mode 100644 index 0f49e9ae..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-inheritance/pom.xml +++ /dev/null @@ -1,628 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven - maven-parent - 11 - ../pom/maven/pom.xml - - org.apache.maven - maven - 3.0-SNAPSHOT - pom - Apache Maven - Maven is a project development management and - comprehension tool. Based on the concept of a project object model: - builds, dependency management, documentation creation, site - publication, and distribution publication are all controlled from - the declarative file. Maven can be extended by plugins to utilise a - number of other development tools for reporting or the build - process. - - http://maven.apache.org/ - 2001 - - 1.3 - 1.0 - - 1.0-alpha-9 - 1.2_Java1.3 - 3.8.1 - 1.0-beta-3.0.7 - 1.0-alpha-6 - 1.1 - 1.0-alpha-1 - 1.5.8 - 1.6 - 1.0 - 1.0-beta-4 - 1.7-SNAPSHOT - 1.0-alpha-6-SNAPSHOT - 1.0-alpha-1 - 1.2 - 3.2.6 - 1.0.1-SNAPSHOT - 1.3 - - - jira - http://jira.codehaus.org/browse/MNG - - - - Maven Developer List - dev-subscribe@maven.apache.org - dev-unsubscribe@maven.apache.org - dev@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-dev - - http://www.mail-archive.com/dev@maven.apache.org/ - http://www.nabble.com/Maven-Developers-f179.html - http://maven.dev.markmail.org/ - - - - Maven User List - users-subscribe@maven.apache.org - users-unsubscribe@maven.apache.org - users@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-users - - http://www.mail-archive.com/users@maven.apache.org/ - http://www.nabble.com/Maven---Users-f178.html - http://maven.users.markmail.org/ - - - - Maven Issues List - issues-subscribe@maven.apache.org - issues-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-issues/ - - http://www.mail-archive.com/issues@maven.apache.org - http://www.nabble.com/Maven---Issues-f15573.html - http://maven.issues.markmail.org/ - - - - Maven Commits List - commits-subscribe@maven.apache.org - commits-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-commits - - http://www.mail-archive.com/commits@maven.apache.org - http://www.nabble.com/Maven---Commits-f15575.html - http://maven.commits.markmail.org/ - - - - - Maven Announcements List - announce@maven.apache.org - announce-subscribe@maven.apache.org - announce-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-announce/ - - http://www.mail-archive.com/announce@maven.apache.org - http://www.nabble.com/Maven-Announcements-f15617.html - http://maven.announce.markmail.org/ - - - - Maven Notifications List - notifications-subscribe@maven.apache.org - notifications-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-notifications/ - - http://www.mail-archive.com/notifications@maven.apache.org - http://www.nabble.com/Maven---Notifications-f15574.html - http://maven.notifications.markmail.org/ - - - - - scm:svn:http://svn.apache.org/repos/asf/maven/components/trunk - scm:svn:https://svn.apache.org/repos/asf/maven/components/trunk - http://svn.apache.org/viewcvs.cgi/maven/components/trunk - - - - - - org.codehaus.plexus - plexus-component-metadata - ${plexusVersion} - - - - generate-metadata - generate-test-metadata - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 2.0.2 - - 1.5 - 1.5 - - - - maven-release-plugin - - https://svn.apache.org/repos/asf/maven/components/tags - - - - org.codehaus.modello - modello-maven-plugin - ${modelloVersion} - - true - - - - site-docs - pre-site - - xdoc - xsd - - - - standard - - java - xpp3-reader - xpp3-writer - - - - - - org.apache.felix - maven-bundle-plugin - 1.0.0 - - - org.apache.maven.plugins - maven-surefire-plugin - 2.4.2 - - - org.apache.maven.plugins - maven-assembly-plugin - 2.2-beta-2 - - - org.apache.maven.plugins - maven-resources-plugin - 2.4-SNAPSHOT - - - - - - maven-core - apache-maven - maven-model - maven-plugin-api - maven-project - maven-reporting-api - maven-project-builder - maven-mercury - maven-embedder - maven-toolchain - maven-compat - maven-repository - maven-repository-mercury - - - - - junit - junit - ${junitVersion} - test - - - - - - - - - org.apache.maven - maven-mercury - ${project.version} - - - org.apache.maven - maven-lifecycle - ${project.version} - - - org.apache.maven - maven-reporting-api - ${project.version} - - - org.apache.maven - maven-profile - ${project.version} - - - org.apache.maven - maven-model - ${project.version} - - - org.apache.maven - maven-project - ${project.version} - - - org.apache.maven - maven-plugin-api - ${project.version} - - - org.apache.maven - maven-toolchain - ${project.version} - - - org.apache.maven - maven-embedder - ${project.version} - - - org.apache.maven - maven-core - ${project.version} - - - org.apache.maven - maven-project-builder - ${project.version} - - - org.apache.maven - maven-repository - ${project.version} - - - org.apache.maven - maven-compat - ${project.version} - - - - - org.codehaus.plexus - plexus-utils - ${plexusUtilsVersion} - - - org.codehaus.plexus - plexus-container-default - ${plexusVersion} - - - org.codehaus.plexus - plexus-component-annotations - ${plexusVersion} - - - org.codehaus.plexus - plexus-classworlds - ${classWorldsVersion} - - - org.codehaus.plexus - plexus-interpolation - ${plexusInterpolationVersion} - - - org.codehaus.plexus - plexus-interactivity-api - ${plexusInteractivityVersion} - - - org.codehaus.plexus - plexus-component-api - - - - - - - org.sonatype.plexus - plexus-jetty6 - ${plexusJetty6Version} - test - - - org.sonatype.spice - plexus-webdav - ${plexusWebdavVersion} - test - - - - - org.apache.maven.wagon - wagon-provider-api - ${wagonVersion} - - - org.apache.maven.wagon - wagon-file - ${wagonVersion} - - - org.apache.maven.wagon - wagon-http-lightweight - ${wagonVersion} - - - org.apache.maven.wagon - wagon-ssh - ${wagonVersion} - - - org.apache.maven.wagon - wagon-ssh-external - ${wagonVersion} - - - - org.apache.maven.doxia - doxia-sink-api - ${doxiaVersion} - - - - org.sonatype.spice - model-builder - ${modelBuilderVersion} - - - org.codehaus.woodstox - wstx-asl - ${woodstoxVersion} - - - - commons-cli - commons-cli - ${commonsCliVersion} - - - commons-lang - commons-lang - - - commons-logging - commons-logging - - - - - commons-jxpath - commons-jxpath - ${jxpathVersion} - - - - - org.apache.maven.mercury - mercury-artifact - ${mercuryVersion} - - - org.apache.maven.mercury - mercury-external - ${mercuryVersion} - - - org.apache.maven.mercury - mercury-plexus - ${mercuryVersion} - - - org.apache.maven.mercury - mercury-repo-virtual - ${mercuryVersion} - - - org.sonatype.mercury - mercury-mp3-cli - ${mercuryMp3Version} - - - org.sonatype.plexus - plexus-sec-dispatcher - ${securityDispatcherVersion} - - - - - - org.apache.maven.mercury - mercury-repo-local-m2 - ${mercuryVersion} - test - - - org.apache.maven.mercury - mercury-repo-remote-m2 - ${mercuryVersion} - test - - - org.apache.maven.mercury - mercury-md-sat - ${mercuryVersion} - test - - - org.apache.maven.mercury - mercury-util - ${mercuryVersion} - test - - - org.apache.maven.mercury - mercury-transport-http - ${mercuryVersion} - test - - - org.apache.maven.mercury - mercury-transport-http - ${mercuryVersion} - test-jar - test - - - org.sonatype.plexus - plexus-plugin-manager - ${plexusPluginManagerVersion} - - - - easymock - easymock - ${easyMockVersion} - test - - - - - - - - - apache.website - scp://people.apache.org/www/maven.apache.org/ref/${project.version}/ - - - - - osgi - - - - org.apache.felix - maven-bundle-plugin - - - - manifest - - - - - - - org.apache.maven.plugins - maven-jar-plugin - 2.1 - - - ${project.build.outputDirectory}/META-INF/MANIFEST.MF - - - - - - - - release - - - - maven-assembly-plugin - false - - - src/main/assembly/src.xml - - gnu - maven-${project.version}-src - - - - make-assembly - package - - single - - - - - - - - - strict - - - - org.apache.maven.plugins - maven-enforcer-plugin - 1.0-alpha-3 - - - enforce-jdk-15 - - enforce - - - - - 1.5 - - - - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/pom.xml deleted file mode 100644 index 32124c53..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/pom.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3906 - parent - 0.1 - pom - - Maven Integration Test :: MNG-3906 - - Test that project-level plugin dependencies are properly merged during inheritance. - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-class-loader - 2.1-SNAPSHOT - - - org.apache.maven.its.mng3906 - e - 0.1 - - - org.apache.maven.its.mng3906 - a - 0.1 - - - org.apache.maven.its.mng3906 - d - 0.1 - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/pom.xml deleted file mode 100644 index e13262b0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/pom.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3906 - parent - 0.1 - - - child - - Maven Integration Test :: MNG-3906 - - Test that project-level plugin dependencies are properly merged during inheritance. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-class-loader - 2.1-SNAPSHOT - - - org.apache.maven.its.mng3906 - c - 0.1 - - - org.apache.maven.its.mng3906 - a - 0.2 - - - org.apache.maven.its.mng3906 - b - 0.1 - - - - - load - validate - - org/apache/maven/its/mng3906/SomeClass.class - target/pcl.properties - - - load - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/0.1/a-0.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/0.1/a-0.1.jar deleted file mode 100644 index 0db2c9f4..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/0.1/a-0.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/0.1/a-0.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/0.1/a-0.1.pom deleted file mode 100644 index ed095b25..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/0.1/a-0.1.pom +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3906 - a - 0.1 - jar - - - - maven-core-it - file:///${basedir}/repo - - - - - true - true - - - - - - . - - pom.xml - src/** - - - - src/main/resources - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/0.2/a-0.2.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/0.2/a-0.2.jar deleted file mode 100644 index c5fb69a1..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/0.2/a-0.2.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/0.2/a-0.2.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/0.2/a-0.2.pom deleted file mode 100644 index cb5373bd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/0.2/a-0.2.pom +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3906 - a - 0.2 - jar - - - - maven-core-it - file:///${basedir}/repo - - - - - true - true - - - - - - . - - pom.xml - src/** - - - - src/main/resources - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/maven-metadata.xml deleted file mode 100644 index 472f1c8c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/a/maven-metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ - - org.apache.maven.its.mng3906 - a - 0.1 - - 0.2 - - 0.1 - 0.2 - - 20081214111115 - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/b/0.1/b-0.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/b/0.1/b-0.1.jar deleted file mode 100644 index 7817617f..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/b/0.1/b-0.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/b/0.1/b-0.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/b/0.1/b-0.1.pom deleted file mode 100644 index d4dbbb73..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/b/0.1/b-0.1.pom +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3906 - b - 0.1 - jar - - - - maven-core-it - file:///${basedir}/repo - - - - - true - true - - - - - - . - - pom.xml - src/** - - - - src/main/resources - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/b/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/b/maven-metadata.xml deleted file mode 100644 index 2847985b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/b/maven-metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ - - org.apache.maven.its.mng3906 - b - 0.1 - - 0.1 - - 0.1 - - 20081214111129 - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/c/0.1/c-0.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/c/0.1/c-0.1.jar deleted file mode 100644 index a4dcec7a..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/c/0.1/c-0.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/c/0.1/c-0.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/c/0.1/c-0.1.pom deleted file mode 100644 index afc967cb..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/c/0.1/c-0.1.pom +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3906 - c - 0.1 - jar - - - - maven-core-it - file:///${basedir}/repo - - - - - true - true - - - - - - . - - pom.xml - src/** - - - - src/main/resources - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/c/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/c/maven-metadata.xml deleted file mode 100644 index bcc92824..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/c/maven-metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ - - org.apache.maven.its.mng3906 - c - 0.1 - - 0.1 - - 0.1 - - 20081214111138 - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/d/0.1/d-0.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/d/0.1/d-0.1.jar deleted file mode 100644 index 067491b4..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/d/0.1/d-0.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/d/0.1/d-0.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/d/0.1/d-0.1.pom deleted file mode 100644 index bfd077cb..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/d/0.1/d-0.1.pom +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3906 - d - 0.1 - jar - - - - maven-core-it - file:///${basedir}/repo - - - - - true - true - - - - - - . - - pom.xml - src/** - - - - src/main/resources - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/d/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/d/maven-metadata.xml deleted file mode 100644 index 06b6e18d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/d/maven-metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ - - org.apache.maven.its.mng3906 - d - 0.1 - - 0.1 - - 0.1 - - 20081214111146 - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/e/0.1/e-0.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/e/0.1/e-0.1.jar deleted file mode 100644 index 2469da59..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/e/0.1/e-0.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/e/0.1/e-0.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/e/0.1/e-0.1.pom deleted file mode 100644 index 24f2705e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/e/0.1/e-0.1.pom +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3906 - e - 0.1 - jar - - - - maven-core-it - file:///${basedir}/repo - - - - - true - true - - - - - - . - - pom.xml - src/** - - - - src/main/resources - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/e/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/e/maven-metadata.xml deleted file mode 100644 index 95023c7a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/repo/org/apache/maven/its/mng3906/e/maven-metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ - - org.apache.maven.its.mng3906 - e - 0.1 - - 0.1 - - 0.1 - - 20081214111155 - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/settings-template.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/settings-template.xml deleted file mode 100644 index cde42158..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/plugin-manager/project-with-plugin-classpath-ordering/sub/settings-template.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - maven-core-it-repo - - - maven-core-it - @baseurl@/repo - - ignore - - - false - - - - - - maven-core-it - @baseurl@/repo - - ignore - - - false - - - - - - - maven-core-it-repo - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/it0063/jdk/jre/placeholder.txt b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/it0063/jdk/jre/placeholder.txt deleted file mode 100644 index e26e8608..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/it0063/jdk/jre/placeholder.txt +++ /dev/null @@ -1 +0,0 @@ -need it so that empty folder does not get deleted \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/it0063/jdk/lib/tools.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/it0063/jdk/lib/tools.jar deleted file mode 100644 index d6435519..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/it0063/jdk/lib/tools.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/it0063/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/it0063/pom.xml deleted file mode 100644 index 0d7b08a9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/it0063/pom.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.it0063 - maven-it-it0063 - 1.0 - jar - - Maven Integration Test :: it0063 - Test the use of a system scoped dependency to a (fake) tools.jar. - - - - com.sun - tools - 1.4.2 - system - ${jre.home}/../lib/tools.jar - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-dependency-resolution - 2.1-SNAPSHOT - - target/compile.txt - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/mng-3023/consumer/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/mng-3023/consumer/pom.xml deleted file mode 100644 index a70b208c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/mng-3023/consumer/pom.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3023 - parent - 1 - - - consumer - - Maven Integration Test :: MNG-3023 :: Consumer - Test that reactor projects are included in dependency resolution. - - - - org.apache.maven.its.mng3023 - dependency - 1 - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-dependency-resolution - 2.1-SNAPSHOT - - - compile-classpath - validate - - compile - - - ${project.build.directory}/compile.classpath - 1 - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/mng-3023/dependency/dependency-1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/mng-3023/dependency/dependency-1.jar deleted file mode 100644 index d1fb4ec7..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/mng-3023/dependency/dependency-1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/mng-3023/dependency/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/mng-3023/dependency/pom.xml deleted file mode 100644 index e783f85c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/mng-3023/dependency/pom.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3023 - parent - 1 - - - dependency - - Maven Integration Test :: MNG-3023 :: Dependency - Test that reactor projects are included in dependency resolution. - - - dependency-classes - - - org.apache.maven.its.plugins - maven-it-plugin-artifact - 2.1-SNAPSHOT - - - compile - initialize - - set - - - dependency-classes - - - - install - generate-sources - - set - attach-pom - install - - - dependency-1.jar - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/mng-3023/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/mng-3023/pom.xml deleted file mode 100644 index 23f09ce5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-builder/mng-3023/pom.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3023 - parent - 1 - pom - - Maven Integration Test :: MNG-3023 - Test that reactor projects are included in dependency resolution. - - - dependency - consumer - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-dependencies-resolver/it0063/jdk/jre/placeholder.txt b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-dependencies-resolver/it0063/jdk/jre/placeholder.txt deleted file mode 100644 index e26e8608..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-dependencies-resolver/it0063/jdk/jre/placeholder.txt +++ /dev/null @@ -1 +0,0 @@ -need it so that empty folder does not get deleted \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-dependencies-resolver/it0063/jdk/lib/tools.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-dependencies-resolver/it0063/jdk/lib/tools.jar deleted file mode 100644 index d6435519..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-dependencies-resolver/it0063/jdk/lib/tools.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-dependencies-resolver/it0063/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-dependencies-resolver/it0063/pom.xml deleted file mode 100644 index 0d7b08a9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-dependencies-resolver/it0063/pom.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.it0063 - maven-it-it0063 - 1.0 - jar - - Maven Integration Test :: it0063 - Test the use of a system scoped dependency to a (fake) tools.jar. - - - - com.sun - tools - 1.4.2 - system - ${jre.home}/../lib/tools.jar - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-dependency-resolution - 2.1-SNAPSHOT - - target/compile.txt - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-dependencies-resolver/project-with-exclusions/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-dependencies-resolver/project-with-exclusions/pom.xml deleted file mode 100644 index 9fae2925..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/projects/project-dependencies-resolver/project-with-exclusions/pom.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - 4.0.0 - org.apache.maven.its.mng4034 - parent - 1.0-SNAPSHOT - - - org.apache.maven.its - maven-core-it-support - 1.3 - runtime - - - commons-lang - commons-lang - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/a/0.1/a-0.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/a/0.1/a-0.1.jar deleted file mode 100644 index 609ec21b..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/a/0.1/a-0.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/a/0.1/a-0.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/a/0.1/a-0.1.pom deleted file mode 100644 index f4514188..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/a/0.1/a-0.1.pom +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its - a - 0.1 - jar - - Maven Integration Test :: Dummy Artifact - - - - - - - maven-core-it - file:///${basedir}/repo - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/a/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/a/maven-metadata.xml deleted file mode 100644 index 8099175e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/a/maven-metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - org.apache.maven.its - a - 0.1 - - - 0.1 - - 20091023222756 - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/b/0.1/b-0.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/b/0.1/b-0.1.jar deleted file mode 100644 index 19df0485..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/b/0.1/b-0.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/b/0.1/b-0.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/b/0.1/b-0.1.pom deleted file mode 100644 index ca20cbf5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/b/0.1/b-0.1.pom +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its - b - 0.1 - jar - - Maven Integration Test :: Dummy Artifact - - - - - - - maven-core-it - file:///${basedir}/repo - - - - - - org.apache.maven.its - a - 0.1 - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/b/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/b/maven-metadata.xml deleted file mode 100644 index e77af628..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/b/maven-metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - org.apache.maven.its - b - 0.1 - - - 0.1 - - 20091023222817 - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-it-plugin/0.1/maven-it-plugin-0.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-it-plugin/0.1/maven-it-plugin-0.1.jar deleted file mode 100644 index 84a4bf7a..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-it-plugin/0.1/maven-it-plugin-0.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-it-plugin/0.1/maven-it-plugin-0.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-it-plugin/0.1/maven-it-plugin-0.1.pom deleted file mode 100644 index 4cd0ff00..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-it-plugin/0.1/maven-it-plugin-0.1.pom +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.plugins - maven-it-plugin - 0.1 - maven-plugin - - Maven Integration Test Plugin - - A test plugin to assist testing of Maven core. - - 2009 - - - - maven-core-it - file:///${basedir}/repo - - - - - true - true - - - - - org.apache.maven - maven-plugin-api - 2.0 - - - - - - - . - - pom.xml - src/** - - - - src/main/resources - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-it-plugin/0.1/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-it-plugin/0.1/pom.xml deleted file mode 100644 index 4cd0ff00..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-it-plugin/0.1/pom.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.plugins - maven-it-plugin - 0.1 - maven-plugin - - Maven Integration Test Plugin - - A test plugin to assist testing of Maven core. - - 2009 - - - - maven-core-it - file:///${basedir}/repo - - - - - true - true - - - - - org.apache.maven - maven-plugin-api - 2.0 - - - - - - - . - - pom.xml - src/** - - - - src/main/resources - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-it-plugin/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-it-plugin/maven-metadata.xml deleted file mode 100644 index 65155293..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-it-plugin/maven-metadata.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - org.apache.maven.its.plugins - maven-it-plugin - 0.1 - - 0.1 - 0.1 - - 0.1 - - 20091023233513 - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-metadata.xml deleted file mode 100644 index 637ec122..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/its/plugins/maven-metadata.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - Maven Integration Test Plugin - it - maven-it-plugin - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.jar deleted file mode 100644 index 5150c162..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.pom deleted file mode 100644 index f4ea8d1d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.pom +++ /dev/null @@ -1,23 +0,0 @@ - - - maven - org.apache.maven - 2.0 - - 4.0.0 - org.apache.maven - maven-plugin-api - Maven Plugin API - 2.0 - - - junit - junit - 3.8.1 - test - - - - deployed - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/maven/2.0/maven-2.0.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/maven/2.0/maven-2.0.pom deleted file mode 100644 index 3fe5d31d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/maven/2.0/maven-2.0.pom +++ /dev/null @@ -1,264 +0,0 @@ - - 4.0.0 - org.apache.maven - maven - pom - Maven - 2.0 - Maven is a project development management and comprehension tool. Based on the concept of a project object model: builds, dependency management, documentation creation, site publication, and distribution publication are all controlled from the declarative file. Maven can be extended by plugins to utilise a number of other development tools for reporting or the build process. - http://maven.apache.org/maven2/ - - jira - http://jira.codehaus.org/browse/MNG - - - continuum - - - -
    commits@maven.apache.org
    -
    -
    -
    -
    - - - Maven User List - users-subscribe@maven.apache.org - users-unsubscribe@maven.apache.org - users@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-users - - - Maven Developer List - dev-subscribe@maven.apache.org - dev-unsubscribe@maven.apache.org - dev@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-dev - - - Maven Commits List - commits-subscribe@maven.apache.org - commits-unsubscribe@maven.apache.org - commits@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-dev - - - Apache Announce List - announce-subscribe@apache.org - announce-unsubscribe@apache.org - announce@apache.org - http://mail-archives.apache.org/mod_mbox/www-announce/ - - - - - jvanzyl - Jason van Zyl - jason@maven.org - ASF - - PMC Chair - - -5 - - - brett - Brett Porter - brett@apache.org - ASF - - PMC Member - - +10 - - - evenisse - Emmanuel Venisse - evenisse@apache.org - ASF - - PMC Member - - +1 - - - jdcasey - John Casey - jdcasey@apache.org - ASF - - PMC Member - - -5 - - - kenney - Kenney Westerhof - kenney@apache.org - Neonics - - PMC Member - - +1 - - - trygvis - Trygve Laugstol - trygvis@apache.org - ASF - - PMC Member - - +1 - - - vmassol - Vincent Massol - vmassol@apache.org - ASF - - PMC Member - - +1 - - - vsiveton - Vincent Siveton - vsiveton@apache.org - ASF - - Committer - - -5 - - - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - scm:svn:http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0 - scm:svn:https://svn.apache.org/repos/asf/maven/components/tags/maven-2.0 - http://svn.apache.org/viewcvs.cgi/maven/components/tags/maven-2.0 - - - Apache Software Foundation - http://www.apache.org/ - - - - - - maven-release-plugin - - https://svn.apache.org/repos/asf/maven/components/tags - - - - - - - maven-archiver - maven-artifact - maven-artifact-manager - maven-artifact-ant - maven-artifact-test - maven-core - maven-error-diagnostics - maven-model - maven-monitor - maven-plugin-api - maven-plugin-descriptor - maven-plugin-parameter-documenter - maven-plugin-registry - maven-plugin-tools - maven-profile - maven-project - maven-reporting - maven-repository-metadata - maven-script - maven-settings - - - - - false - - snapshots - Maven Central Development Repository - http://snapshots.maven.codehaus.org/maven2 - - - - - - false - - snapshots - Maven Central Plugins Development Repository - http://snapshots.maven.codehaus.org/maven2 - - - - - junit - junit - 3.8.1 - test - - - - - - org.codehaus.plexus - plexus-container-default - 1.0-alpha-8 - - - org.codehaus.plexus - plexus-utils - 1.0.4 - - - org.apache.maven.wagon - wagon-provider-api - 1.0-alpha-5 - - - org.apache.maven.wagon - wagon-ssh - 1.0-alpha-5 - - - org.apache.maven.wagon - wagon-file - 1.0-alpha-5 - - - org.apache.maven.wagon - wagon-http-lightweight - 1.0-alpha-5 - - - - - - repo1 - Maven Central Repository - scp://repo1.maven.org/home/projects/maven/repository-staging/to-ibiblio/maven2 - - - snapshots - Maven Central Development Repository - scp://repo1.maven.org/home/projects/maven/repository-staging/snapshots/maven2 - - - website - scp://minotaur.apache.org/www/maven.apache.org/maven2/ - - -
    \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-clean-plugin/0.1/maven-clean-plugin-0.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-clean-plugin/0.1/maven-clean-plugin-0.1.jar deleted file mode 100644 index ee01f101..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-clean-plugin/0.1/maven-clean-plugin-0.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-clean-plugin/0.1/maven-clean-plugin-0.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-clean-plugin/0.1/maven-clean-plugin-0.1.pom deleted file mode 100644 index e4318d07..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-clean-plugin/0.1/maven-clean-plugin-0.1.pom +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.plugins - maven-clean-plugin - 0.1 - maven-plugin - - Maven Integration Test Plugin - - A test plugin to assist testing of Maven core. - - 2009 - - - - maven-core-it - file:///${basedir}/repo - - - - - true - true - - - - - org.apache.maven - maven-plugin-api - 2.0 - - - - - - - . - - pom.xml - src/** - - - - src/main/resources - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-clean-plugin/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-clean-plugin/maven-metadata.xml deleted file mode 100644 index 91261b37..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-clean-plugin/maven-metadata.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - org.apache.maven.plugins - maven-clean-plugin - 0.1 - - 0.1 - 0.1 - - 0.1 - - 20091023224342 - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-compiler-plugin/0.1/maven-compiler-plugin-0.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-compiler-plugin/0.1/maven-compiler-plugin-0.1.jar deleted file mode 100644 index e5ef4464..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-compiler-plugin/0.1/maven-compiler-plugin-0.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-compiler-plugin/0.1/maven-compiler-plugin-0.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-compiler-plugin/0.1/maven-compiler-plugin-0.1.pom deleted file mode 100644 index 22371630..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-compiler-plugin/0.1/maven-compiler-plugin-0.1.pom +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.plugins - maven-compiler-plugin - 0.1 - maven-plugin - - Maven Integration Test Plugin - - A test plugin to assist testing of Maven core. - - 2009 - - - - maven-core-it - file:///${basedir}/repo - - - - - true - true - - - - - org.apache.maven - maven-plugin-api - 2.0 - - - - - - - . - - pom.xml - src/** - - - - src/main/resources - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml deleted file mode 100644 index 544f16ea..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - org.apache.maven.plugins - maven-compiler-plugin - 0.1 - - 0.1 - 0.1 - - 0.1 - - 20091023224813 - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-deploy-plugin/0.1/maven-deploy-plugin-0.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-deploy-plugin/0.1/maven-deploy-plugin-0.1.jar deleted file mode 100644 index f2432a6d..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-deploy-plugin/0.1/maven-deploy-plugin-0.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-deploy-plugin/0.1/maven-deploy-plugin-0.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-deploy-plugin/0.1/maven-deploy-plugin-0.1.pom deleted file mode 100644 index 82ed5748..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-deploy-plugin/0.1/maven-deploy-plugin-0.1.pom +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.plugins - maven-deploy-plugin - 0.1 - maven-plugin - - Maven Integration Test Plugin - - A test plugin to assist testing of Maven core. - - 2009 - - - - maven-core-it - file:///${basedir}/repo - - - - - true - true - - - - - org.apache.maven - maven-plugin-api - 2.0 - - - - - - - . - - pom.xml - src/** - - - - src/main/resources - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml deleted file mode 100644 index f0af94c7..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - org.apache.maven.plugins - maven-deploy-plugin - 0.1 - - 0.1 - 0.1 - - 0.1 - - 20091023224421 - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-install-plugin/0.1/maven-install-plugin-0.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-install-plugin/0.1/maven-install-plugin-0.1.jar deleted file mode 100644 index a6adb988..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-install-plugin/0.1/maven-install-plugin-0.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-install-plugin/0.1/maven-install-plugin-0.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-install-plugin/0.1/maven-install-plugin-0.1.pom deleted file mode 100644 index 1ce2bd06..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-install-plugin/0.1/maven-install-plugin-0.1.pom +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.plugins - maven-install-plugin - 0.1 - maven-plugin - - Maven Integration Test Plugin - - A test plugin to assist testing of Maven core. - - 2009 - - - - maven-core-it - file:///${basedir}/repo - - - - - true - true - - - - - org.apache.maven - maven-plugin-api - 2.0 - - - - - - - . - - pom.xml - src/** - - - - src/main/resources - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml deleted file mode 100644 index bb528791..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - org.apache.maven.plugins - maven-install-plugin - 0.1 - - 0.1 - 0.1 - - 0.1 - - 20091023224444 - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-jar-plugin/0.1/maven-jar-plugin-0.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-jar-plugin/0.1/maven-jar-plugin-0.1.jar deleted file mode 100644 index 0b03b350..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-jar-plugin/0.1/maven-jar-plugin-0.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-jar-plugin/0.1/maven-jar-plugin-0.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-jar-plugin/0.1/maven-jar-plugin-0.1.pom deleted file mode 100644 index d8abdf6f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-jar-plugin/0.1/maven-jar-plugin-0.1.pom +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.plugins - maven-jar-plugin - 0.1 - maven-plugin - - Maven Integration Test Plugin - - A test plugin to assist testing of Maven core. - - 2009 - - - - maven-core-it - file:///${basedir}/repo - - - - - true - true - - - - - org.apache.maven - maven-plugin-api - 2.0 - - - - - - - . - - pom.xml - src/** - - - - src/main/resources - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-jar-plugin/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-jar-plugin/maven-metadata.xml deleted file mode 100644 index 6b734ad5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-jar-plugin/maven-metadata.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - org.apache.maven.plugins - maven-jar-plugin - 0.1 - - 0.1 - 0.1 - - 0.1 - - 20091023232454 - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-metadata.xml deleted file mode 100644 index 615714cc..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-metadata.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - Maven Integration Test Plugin - clean - maven-clean-plugin - - - Maven Integration Test Plugin - deploy - maven-deploy-plugin - - - Maven Integration Test Plugin - install - maven-install-plugin - - - Maven Integration Test Plugin - jar - maven-jar-plugin - - - Maven Integration Test Plugin - surefire - maven-surefire-plugin - - - Maven Integration Test Plugin - compiler - maven-compiler-plugin - - - Maven Integration Test Plugin - resources - maven-resources-plugin - - - Maven Integration Test Plugin - plugin - maven-plugin-plugin - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-plugin-plugin/0.1/maven-plugin-plugin-0.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-plugin-plugin/0.1/maven-plugin-plugin-0.1.jar deleted file mode 100644 index e2eab46e..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-plugin-plugin/0.1/maven-plugin-plugin-0.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-plugin-plugin/0.1/maven-plugin-plugin-0.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-plugin-plugin/0.1/maven-plugin-plugin-0.1.pom deleted file mode 100644 index 7df6bdbc..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-plugin-plugin/0.1/maven-plugin-plugin-0.1.pom +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.plugins - maven-plugin-plugin - 0.1 - maven-plugin - - Maven Integration Test Plugin - - A test plugin to assist testing of Maven core. - - 2009 - - - - maven-core-it - file:///${basedir}/repo - - - - - true - true - - - - - org.apache.maven - maven-plugin-api - 2.0 - - - - - - - . - - pom.xml - src/** - - - - src/main/resources - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-plugin-plugin/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-plugin-plugin/maven-metadata.xml deleted file mode 100644 index 4c29db7d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-plugin-plugin/maven-metadata.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - org.apache.maven.plugins - maven-plugin-plugin - 0.1 - - 0.1 - 0.1 - - 0.1 - - 20091023225046 - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-resources-plugin/0.1/maven-resources-plugin-0.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-resources-plugin/0.1/maven-resources-plugin-0.1.jar deleted file mode 100644 index ffa11df4..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-resources-plugin/0.1/maven-resources-plugin-0.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-resources-plugin/0.1/maven-resources-plugin-0.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-resources-plugin/0.1/maven-resources-plugin-0.1.pom deleted file mode 100644 index 782dbf7d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-resources-plugin/0.1/maven-resources-plugin-0.1.pom +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.plugins - maven-resources-plugin - 0.1 - maven-plugin - - Maven Integration Test Plugin - - A test plugin to assist testing of Maven core. - - 2009 - - - - maven-core-it - file:///${basedir}/repo - - - - - true - true - - - - - org.apache.maven - maven-plugin-api - 2.0 - - - - - - - . - - pom.xml - src/** - - - - src/main/resources - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-resources-plugin/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-resources-plugin/maven-metadata.xml deleted file mode 100644 index 38c5503a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-resources-plugin/maven-metadata.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - org.apache.maven.plugins - maven-resources-plugin - 0.1 - - 0.1 - 0.1 - - 0.1 - - 20091023224958 - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-surefire-plugin/0.1/maven-surefire-plugin-0.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-surefire-plugin/0.1/maven-surefire-plugin-0.1.jar deleted file mode 100644 index 989e5837..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-surefire-plugin/0.1/maven-surefire-plugin-0.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-surefire-plugin/0.1/maven-surefire-plugin-0.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-surefire-plugin/0.1/maven-surefire-plugin-0.1.pom deleted file mode 100644 index 3588a043..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-surefire-plugin/0.1/maven-surefire-plugin-0.1.pom +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.plugins - maven-surefire-plugin - 0.1 - maven-plugin - - Maven Integration Test Plugin - - A test plugin to assist testing of Maven core. - - 2009 - - - - maven-core-it - file:///${basedir}/repo - - - - - true - true - - - - - org.apache.maven - maven-plugin-api - 2.0 - - - - - - - . - - pom.xml - src/** - - - - src/main/resources - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml deleted file mode 100644 index c6d1df93..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - org.apache.maven.plugins - maven-surefire-plugin - 0.1 - - 0.1 - 0.1 - - 0.1 - - 20091023225125 - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar deleted file mode 100644 index 5c50e177..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom deleted file mode 100644 index 6cf90799..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/remote-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom +++ /dev/null @@ -1,27 +0,0 @@ - - - plexus - org.codehaus.plexus - 1.0.4 - - 4.0.0 - plexus-utils - Plexus Common Utilities - 1.1 - - - - maven-surefire-plugin - - - org/codehaus/plexus/util/FileBasedTestCase.java - **/Test*.java - - - - - - - deployed - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/artifact-id-inheritance/child/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/artifact-id-inheritance/child/pom.xml deleted file mode 100644 index eee189d4..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/artifact-id-inheritance/child/pom.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng - parent - 0.1 - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/artifact-id-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/artifact-id-inheritance/pom.xml deleted file mode 100644 index f22afbc0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/artifact-id-inheritance/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng - parent - 0.1 - pom - - - http://maven.apache.org/ - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/basedir-aligned-interpolation/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/basedir-aligned-interpolation/pom.xml deleted file mode 100644 index 1885fc48..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/basedir-aligned-interpolation/pom.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3822 - test1 - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-3822 - - Verify that POM interpolation uses basedir-aligned build directories. - - - - - ${project.build.sourceDirectory} - ${project.build.testSourceDirectory} - ${project.build.scriptSourceDirectory} - ${project.build.directory} - ${project.build.outputDirectory} - ${project.build.testOutputDirectory} - ${project.reporting.outputDirectory} - - - - - src/main/java - src/test/java - src/main/scripts - target - target/classes - target/test-classes - - - - target/site - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/basedir-interpolation/pom-with-unusual-name.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/basedir-interpolation/pom-with-unusual-name.xml deleted file mode 100644 index 1c037e63..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/basedir-interpolation/pom-with-unusual-name.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3944 - test1 - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-3944 - - Test that interpolation of ${basedir} works for a POM that is not named "pom.xml" - - - - - ${basedir} - ${project.basedir} - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/baseurl-interpolation/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/baseurl-interpolation/pom.xml deleted file mode 100644 index f1d4e6ca..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/baseurl-interpolation/pom.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3760 - test1 - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-3760 - - Test interpolation of ${project.baseUri} - - - - - ${project.baseUri} - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/boolean-interpolation/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/boolean-interpolation/pom.xml deleted file mode 100644 index 992eac1e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/boolean-interpolation/pom.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng1995 - test1 - 1.0 - - Maven Integration Test :: MNG-1995 - - Verify that POM fields that are of type boolean can be interpolated with expressions. - - - - true - true - - - - - maven-core-it - file:///${basedir}/repo - - - ${releasesEnabled} - - - - - - - - src/main/resources - - ${filter.resources} - - - - - org.apache.maven.its.plugins - maven-it-plugin-expression - 2.1-SNAPSHOT - - target/expression.properties - - project/build/resources/0/filtering - project/repositories - - - - - test - validate - - eval - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/build-extension-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/build-extension-inheritance/pom.xml deleted file mode 100644 index 262af4fb..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/build-extension-inheritance/pom.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3899 - parent - 0.1 - pom - - Maven Integration Test :: MNG-3899 - - Test that build extensions are properly merged during inheritance. - - - - - - org.apache.maven.its.mng3899 - a - 0.1 - - - org.apache.maven.its.mng3899 - c - 0.1 - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/build-extension-inheritance/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/build-extension-inheritance/sub/pom.xml deleted file mode 100644 index dc8f6f5b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/build-extension-inheritance/sub/pom.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3899 - parent - 0.1 - - - child - - Maven Integration Test :: MNG-3899 - - Test that build extensions are properly merged during inheritance. - - - - - - - org.apache.maven.its.mng3899 - b - 0.1 - - - - org.apache.maven.its.mng3899 - a - 0.2 - - - - - org.apache.maven.its.plugins - maven-it-plugin-expression - 2.1-SNAPSHOT - - - validate - - eval - - - target/extension.properties - - project/build/extensions - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/complete-model/w-parent/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/complete-model/w-parent/pom.xml deleted file mode 100644 index ebcd7d1e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/complete-model/w-parent/pom.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng - parent - 0.1 - pom - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/complete-model/w-parent/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/complete-model/w-parent/sub/pom.xml deleted file mode 100644 index 68ca28dd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/complete-model/w-parent/sub/pom.xml +++ /dev/null @@ -1,319 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng - parent - 0.1 - - - org.apache.maven.its.mng - test - 0.2 - pom - - project-name - project-description - http://project.url/ - 2009 - - project-org - http://project-org.url/ - - - - project-license - http://project.url/license - repo - free - - - - - - dev - project-developer - developer@ - http://developer - developer - http://devel.org - - devel - - -1 - - yes - - - - - - project-contributor - contributor@ - http://contributor - contributor - http://contrib.org - - contrib - - +1 - - yes - - - - - - - project-mailing-list - subscribe@ - unsubscribe@ - post@ - mail-archive - - other-archive - - - - - - 2.0.1 - - - - http://project.url/trunk - http://project.url/scm - https://project.url/scm - TAG - - - issues - http://project.url/issues - - - ci - http://project.url/ci - - - irc -
    ci@
    - true - false - false - false - - ci - -
    -
    -
    - - - http://project.url/dist - project.distros - distros - - - http://project.url/snaps - project.snaps - snaps - false - - - http://project.url/site - project.site - docs - - http://project.url/download - - reloc-gid - reloc-aid - reloc-version - project-reloc-msg - - - - - sub - - - - project-property - - - - - - org.apache.maven.its - managed-dep - 0.1 - war - runtime - - - org.apache.maven.its - excluded-managed-dep - - - - - - - - - org.apache.maven.its - dep - 0.2 - ejb - test - true - - - org.apache.maven.its - excluded-dep - - - - - - - - project-remote-repo - http://project.url/remote - repo - - - - - - - org.apache.maven.its.ext - ext - 3.0 - - - - test - build - sources/main - sources/scripts - sources/test - build/main - build/test - coreit - - - res/main - true - main - - main.included - - - main.excluded - - - - - - res/test - true - test - - test.included - - - test.excluded - - - - - src/main/filter/it.properties - - - - - org.apache.maven.its.plugins - maven-it-plugin-build - 2.1-SNAPSHOT - - test.properties - - - - test - validate - - eval - - - pom.properties - - - - - - org.apache.maven.its - build-plugin-dep - 0.3 - zip - - - org.apache.maven.its - excluded-build-plugin-dep - - - - - - - - - - true - docs - - - - org.apache.maven.its.plugins - maven-it-plugin-reporting - 2.0-SNAPSHOT - - test.html - - - - it - - run - - - index.html - - - - - - -
    diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/complete-model/wo-parent/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/complete-model/wo-parent/pom.xml deleted file mode 100644 index 7b1ad794..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/complete-model/wo-parent/pom.xml +++ /dev/null @@ -1,313 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng - test - 0.2 - pom - - project-name - project-description - http://project.url/ - 2009 - - project-org - http://project-org.url/ - - - - project-license - http://project.url/license - repo - free - - - - - - dev - project-developer - developer@ - http://developer - developer - http://devel.org - - devel - - -1 - - yes - - - - - - project-contributor - contributor@ - http://contributor - contributor - http://contrib.org - - contrib - - +1 - - yes - - - - - - - project-mailing-list - subscribe@ - unsubscribe@ - post@ - mail-archive - - other-archive - - - - - - 2.0.1 - - - - http://project.url/trunk - http://project.url/scm - https://project.url/scm - TAG - - - issues - http://project.url/issues - - - ci - http://project.url/ci - - - irc -
    ci@
    - true - false - false - false - - ci - -
    -
    -
    - - - http://project.url/dist - project.distros - distros - - - http://project.url/snaps - project.snaps - snaps - false - - - http://project.url/site - project.site - docs - - http://project.url/download - - reloc-gid - reloc-aid - reloc-version - project-reloc-msg - - - - - sub - - - - project-property - - - - - - org.apache.maven.its - managed-dep - 0.1 - war - runtime - - - org.apache.maven.its - excluded-managed-dep - - - - - - - - - org.apache.maven.its - dep - 0.2 - ejb - test - true - - - org.apache.maven.its - excluded-dep - - - - - - - - project-remote-repo - http://project.url/remote - repo - - - - - - - org.apache.maven.its.ext - ext - 3.0 - - - - test - build - sources/main - sources/scripts - sources/test - build/main - build/test - coreit - - - res/main - true - main - - main.included - - - main.excluded - - - - - - res/test - true - test - - test.included - - - test.excluded - - - - - src/main/filter/it.properties - - - - - org.apache.maven.its.plugins - maven-it-plugin-build - 2.1-SNAPSHOT - - test.properties - - - - test - validate - - eval - - - pom.properties - - - - - - org.apache.maven.its - build-plugin-dep - 0.3 - zip - - - org.apache.maven.its - excluded-build-plugin-dep - - - - - - - - - - true - docs - - - - org.apache.maven.its.plugins - maven-it-plugin-reporting - 2.0-SNAPSHOT - - test.html - - - - it - - run - - - index.html - - - - - - -
    diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/config-with-plugin-mng/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/config-with-plugin-mng/pom.xml deleted file mode 100644 index e13c8a89..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/config-with-plugin-mng/pom.xml +++ /dev/null @@ -1,39 +0,0 @@ - - 4.0.0 - org.sonatype.nexus - nexus - 1.3.0-SNAPSHOT - - - - org.codehaus.modello - modello-maven-plugin - - - nexus.xml - - 1.0.8 - - - - security.xml - - 1.0.0 - src/main/mdo/security.xml - - - - - - - - - org.codehaus.modello - modello-maven-plugin - 1.0-alpha-21 - - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/consecutive_empty_elements/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/consecutive_empty_elements/pom.xml deleted file mode 100644 index 16d1968f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/consecutive_empty_elements/pom.xml +++ /dev/null @@ -1,14 +0,0 @@ - - 4.0.0 - test - artifact - 1.0 - - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/contributors-inheritance/child-2/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/contributors-inheritance/child-2/pom.xml deleted file mode 100644 index 745289fd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/contributors-inheritance/child-2/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - 4.0.0 - - - - - org.apache.maven.its.mng3843 - parent-1 - 0.1 - - - org.apache.maven.its.mng3843.child - child-2 - 0.2 - jar - - - - child-contributor - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/contributors-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/contributors-inheritance/pom.xml deleted file mode 100644 index 1f65eb5f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/contributors-inheritance/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3843 - parent-1 - 0.1 - pom - - - - parent-contributor - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-inheritance/maven-parent.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-inheritance/maven-parent.xml deleted file mode 100644 index 6d642626..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-inheritance/maven-parent.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven - maven-parent - 11 - pom - - Apache Maven - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-inheritance/pom.xml deleted file mode 100644 index c2c061c3..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-inheritance/pom.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven - maven-parent - 11 - maven-parent.xml - - org.apache.maven - maven - 3.0-SNAPSHOT - pom - - - 3.8.1 - - - - - junit - junit - ${junitVersion} - test - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-inheritance/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-inheritance/sub/pom.xml deleted file mode 100644 index 788c5a72..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-inheritance/sub/pom.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - maven - org.apache.maven - 3.0-SNAPSHOT - - 4.0.0 - org.apache.maven - maven-project-builder - 3.0-SNAPSHOT - Maven Project Builder - - - junit - junit - 4.4 - test - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-management-with-interpolation/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-management-with-interpolation/pom.xml deleted file mode 100644 index 49ffab5a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-management-with-interpolation/pom.xml +++ /dev/null @@ -1,19 +0,0 @@ - - 4.0.0 - - asm-parent - asm - 3.0 - pom - - - - - asm-util - ${project.groupId} - ${project.version} - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-management-with-interpolation/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-management-with-interpolation/sub/pom.xml deleted file mode 100644 index 2423568e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-management-with-interpolation/sub/pom.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - asm-parent - asm - 3.0 - - 4.0.0 - - asm-xml - 3.0 - - - asm - asm-util - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-order/w-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-order/w-plugin-mngt/pom.xml deleted file mode 100644 index 5882ab5c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-order/w-plugin-mngt/pom.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4003 - test - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-4003 - - Verify that dependencies survive the project construction in the POM order. - - - - - org.apache.maven.its.mng4003 - a - 1 - - - org.apache.maven.its.mng4003 - c - 1 - - - org.apache.maven.its.mng4003 - b - 1 - - - org.apache.maven.its.mng4003 - d - 1 - - - - - - - - - maven-clean-plugin - 2.3 - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-order/wo-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-order/wo-plugin-mngt/pom.xml deleted file mode 100644 index 57bd6d0f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-order/wo-plugin-mngt/pom.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4003 - test - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-4003 - - Verify that dependencies survive the project construction in the POM order. - - - - - org.apache.maven.its.mng4003 - a - 1 - - - org.apache.maven.its.mng4003 - c - 1 - - - org.apache.maven.its.mng4003 - b - 1 - - - org.apache.maven.its.mng4003 - d - 1 - - - - - - - - maven-clean-plugin - 2.3 - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-scope-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-scope-inheritance/pom.xml deleted file mode 100644 index 9f2ab958..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-scope-inheritance/pom.xml +++ /dev/null @@ -1,16 +0,0 @@ - - 4.0.0 - p0 - maven - 1.0 - pom - - - - maven-test - 1.0 - a - test - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-scope-inheritance/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-scope-inheritance/sub/pom.xml deleted file mode 100644 index 80c5570c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-scope-inheritance/sub/pom.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - p0 - maven - 1.0 - - 4.0.0 - maven - p1 - 1.0 - - - - maven-test - 1.0 - a - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-scope/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-scope/pom.xml deleted file mode 100644 index 0f9ae5c6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-scope/pom.xml +++ /dev/null @@ -1,18 +0,0 @@ - - 4.0.0 - maven-t10 - p0 - pom - p0 - 1.0 - - - - - maven-test - t10-a - 2.0 - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-scope/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-scope/sub/pom.xml deleted file mode 100644 index 8cec33d1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dependency-scope/sub/pom.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - p0 - maven-t10 - 1.0 - - 4.0.0 - maven-t10 - p1 - pom - p1 - 1.0 - - scm-url - - - - - maven-test - t10-a - 1.0 - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/developers-inheritance/child-2/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/developers-inheritance/child-2/pom.xml deleted file mode 100644 index dad2375b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/developers-inheritance/child-2/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - 4.0.0 - - - - - org.apache.maven.its.mng3843 - parent-1 - 0.1 - - - org.apache.maven.its.mng3843.child - child-2 - 0.2 - jar - - - - child-developer - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/developers-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/developers-inheritance/pom.xml deleted file mode 100644 index 6e7c44d1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/developers-inheritance/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3843 - parent-1 - 0.1 - pom - - - - parent-developer - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/distribution-management/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/distribution-management/pom.xml deleted file mode 100644 index 1a0acb08..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/distribution-management/pom.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.it0061 - maven-it-it0061 - 1.0 - jar - - Maven Integration Test :: it0061 - - - - test - file:target/test-repo - legacy - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dual-execution-ids/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dual-execution-ids/pom.xml deleted file mode 100644 index 8833c089..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dual-execution-ids/pom.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - 4.0.0 - org.apache.maven.mercury - mercury-parent - 1.0.0-alpha-3-SNAPSHOT - pom - - - - org.apache.maven.plugins - maven-remote-resources-plugin - - - - process - - - - org.apache:apache-jar-resource-bundle:1.5 - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dual-execution-ids/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dual-execution-ids/sub/pom.xml deleted file mode 100644 index 6ebd5994..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/dual-execution-ids/sub/pom.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - mercury-parent - org.apache.maven.mercury - 1.0.0-alpha-3-SNAPSHOT - - -4.0.0 -org.apache.maven.mercury -mercury-util -Mercury Shared Utilities -1.0.0-alpha-3-SNAPSHOT - - - - - maven-remote-resources-plugin - 1.0 - - - - - - maven-remote-resources-plugin - 1.0 - - - default - - process - - - - org.apache:apache-jar-resource-bundle:1.4 - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/duplicate-exclusions-dependency/nexus-parent.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/duplicate-exclusions-dependency/nexus-parent.xml deleted file mode 100644 index d2ac100c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/duplicate-exclusions-dependency/nexus-parent.xml +++ /dev/null @@ -1,29 +0,0 @@ - - 4.0.0 - - org.sonatype.nexus - nexus-parent - 8-SNAPSHOT - pom - - - 1.0-beta-3.0.5-SNAPSHOT - - - - - - org.codehaus.plexus - plexus-container-default - ${plexus.version} - - - commons-logging - commons-logging-api - - - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/duplicate-exclusions-dependency/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/duplicate-exclusions-dependency/pom.xml deleted file mode 100644 index b12db4f0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/duplicate-exclusions-dependency/pom.xml +++ /dev/null @@ -1,33 +0,0 @@ - - 4.0.0 - - - org.sonatype.nexus - nexus-parent - 8-SNAPSHOT - nexus-parent.xml - - - org.sonatype.nexus - nexus - pom - Nexus Repository Manager - 1.3.0-SNAPSHOT - - - - - org.codehaus.plexus - plexus-container-default - provided - ${plexus.version} - - - commons-logging - commons-logging-api - - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/duplicate-exclusions-dependency/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/duplicate-exclusions-dependency/sub/pom.xml deleted file mode 100644 index 37b166d1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/duplicate-exclusions-dependency/sub/pom.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - org.sonatype.nexus - nexus - 1.3.0-SNAPSHOT - - 4.0.0 - nexus-proxy - - - - org.codehaus.plexus - plexus-container-default - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/empty-distMng-repo-url/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/empty-distMng-repo-url/pom.xml deleted file mode 100644 index 91ce38df..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/empty-distMng-repo-url/pom.xml +++ /dev/null @@ -1,15 +0,0 @@ - - 4.0.0 - org.apache.commons - commons-parent - pom - 11 - - - - dummy - Dummy to avoid accidental deploys - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/empty-scm/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/empty-scm/pom.xml deleted file mode 100644 index a0462ddd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/empty-scm/pom.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - 4.0.0 - - - - org.apache.maven.its.mng3843 - test-1 - 0.1 - - test - - - - - org.apache.maven.its.plugins - maven-it-plugin-expression - 2.1-SNAPSHOT - - - validate - - eval - - - target/pom.properties - - project - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/equal-plugin-deps/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/equal-plugin-deps/pom.xml deleted file mode 100644 index d33b2bae..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/equal-plugin-deps/pom.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3838 - test - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-3838 - - Verify that using the same dependency for different plugins doesn't blow up the project builder. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - - org.apache.maven.its.mng3838 - dep - 123 - - - - - org.apache.maven.its.plugins - maven-it-plugin-b - 1.0-SNAPSHOT - - - - org.apache.maven.its.mng3838 - dep - 123 - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/equal-plugin-exec-ids/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/equal-plugin-exec-ids/pom.xml deleted file mode 100644 index a05d45d0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/equal-plugin-exec-ids/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3821 - test - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-3821 - - Verify that using the same id for executions/reportsets of different plugins doesn't blow up the project builder. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - the-one-and-only-id - - - - - org.apache.maven.its.plugins - maven-it-plugin-b - 1.0-SNAPSHOT - - - the-one-and-only-id - - - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - the-one-and-only-id - - - - - org.apache.maven.its.plugins - maven-it-plugin-b - 1.0-SNAPSHOT - - - the-one-and-only-id - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/execution-configuration-join/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/execution-configuration-join/pom.xml deleted file mode 100644 index 28defaa2..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/execution-configuration-join/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - 4.0.0 - org.sonatype.nexus - nexus - 1.3.0-SNAPSHOT - - - - org.codehaus.modello - modello-maven-plugin - 1.0-alpha-21 - - - - - - org.codehaus.modello - modello-maven-plugin - 1.0-alpha-21 - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/execution-configuration-subcollections/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/execution-configuration-subcollections/pom.xml deleted file mode 100644 index e5b19d4e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/execution-configuration-subcollections/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - 4.0.0 - test - nexus - pom - Nexus Repository Manager - 1.1-M1 - - - - - - maven-enforcer-plugin - 1.0 - - - - enforce - - enforce - - - - - commons-logging:* - - a - - - - *:plexus-component-api - - - - - - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/execution-configuration/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/execution-configuration/pom.xml deleted file mode 100644 index 130174d5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/execution-configuration/pom.xml +++ /dev/null @@ -1,58 +0,0 @@ - - 4.0.0 - org.sonatype.nexus - nexus - 1.3.0-SNAPSHOT - - - - org.codehaus.modello - modello-maven-plugin - 1.0-alpha-21 - - - nexus.xml - - java - xpp3-reader - xpp3-writer - - - 1.0.8 - - 1.0.0 - 1.0.1 - 1.0.6 - - src/main/mdo/nexus.xml - - - - - security.xml - - java1 - xpp3-reader1 - xpp3-writer1 - - - 1.0.0 - src/main/mdo/security.xml - - - - - - - - - - org.codehaus.modello - modello-maven-plugin - 1.0-alpha-21 - - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/foo/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/foo/sub/pom.xml deleted file mode 100644 index c5e3d9a6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/foo/sub/pom.xml +++ /dev/null @@ -1,418 +0,0 @@ - - - 4.0.0 - - archetype-common - Maven Archetype Common - jar - - - org.apache.maven - maven-core - - - net.sourceforge.jchardet - jchardet - - - dom4j - dom4j - - - jdom - jdom - - - org.apache.maven - maven-model - - - org.apache.maven - maven-project - - - org.codehaus.plexus - plexus-container-default - - - org.codehaus.plexus - plexus-utils - - - org.apache.maven.shared - maven-plugin-testing-harness - test - - - commons-io - commons-io - - - org.codehaus.plexus - plexus-velocity - - - velocity - velocity - - - dom4j - dom4j - - - commons-collections - commons-collections - - - junit - junit - - - org.codehaus.cargo - cargo-core-api-container - 0.9 - test - - - org.codehaus.cargo - cargo-core-api-util - 0.9 - test - - - org.codehaus.cargo - cargo-core-api-generic - 0.9 - test - - - org.codehaus.cargo - cargo-core-api-module - 0.9 - test - - - org.codehaus.cargo - cargo-core-container-jetty - 0.9 - test - - - org.mortbay.jetty - jetty - 6.1.4 - test - - - org.apache.maven.wagon - wagon-file - - - org.apache.maven.wagon - wagon-http - 1.0-beta-2 - test - - - ${project.groupId} - archetype-repository - ${project.version} - war - test - - - ${project.groupId} - archetype-proxy - ${project.version} - war - test - - - - - - - src/test/resources - true - - - - - org.codehaus.modello - modello-maven-plugin - 1.0-alpha-14 - - - archetype-common - - java - xsd - xpp3-reader - xpp3-writer - - - 1.0.0 - src/main/mdo/archetype-common.mdo - - - - archetype-registry - - java - xsd - xpp3-reader - xpp3-writer - - - 1.0.0 - src/main/mdo/archetype-registry.mdo - - - - archetype-descriptor - - java - xsd - xpp3-reader - xpp3-writer - - - 1.0.0 - src/main/mdo/archetype-descriptor.mdo - - - - archetype-catalog - - java - xsd - xpp3-reader - xpp3-writer - - - 1.0.0 - src/main/mdo/archetype-catalog.mdo - - - - archetype-old - - java - xsd - xpp3-reader - xpp3-writer - - - 1.0.0 - src/main/mdo/archetype.mdo - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - copy - process-test-resources - - copy-dependencies - - - ${project.build.directory}/wars - true - true - war - true - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - ant - ant-antlr - 1.6.5 - - - - - - archetype-test - process-test-resources - - - - - - - - - - - - - - - - run - - - - - archetype-test-partial - process-test-resources - - - - - - - - - - - - - - - run - - - - - archetype-test-site - process-test-resources - - - - - - - - - - - - - - - - run - - - - - archetype-test-old - process-test-resources - - - - - - - - - - - - - - - - run - - - - - archetype-test-fileset - process-test-resources - - - - - - - - - - - - - - - - run - - - - - repository-metadata - process-test-resources - - - - - - - - - - - run - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - - **/ArchetyperRoundtripTest.java - **/ArchetyperRoundtripWithProxyTest.java - **/DefaultRepositoryCrawlerTest.java - - - - - - - - - org.codehaus.mojo - cobertura-maven-plugin - 2.2 - - - - - - - internal-catalog - - - - org.apache.maven.plugins - maven-surefire-plugin - - - **/*Verification.java - - - - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/full-interpolation/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/full-interpolation/pom.xml deleted file mode 100644 index 503dadb9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/full-interpolation/pom.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3833 - coreit - 0.1 - jar - - Maven Integration Test :: MNG-3833 - - Test that POM interpolation fully interpolates all properties in data flow chain, i.e. where property - A depends on property B, and property B depends on property C and so on. - - - - - ${property22} - ${property20} - ${property18} - ${property16} - ${property14} - ${property12} - ${property10} - ${property08} - ${property06} - ${property04} - ${property02} - ${property00} - PASSED - ${property01} - ${property03} - ${property05} - ${property09} - ${property11} - ${property07} - ${property13} - ${property15} - ${property17} - ${property19} - ${property21} - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/id-container-joining-with-empty-elements/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/id-container-joining-with-empty-elements/pom.xml deleted file mode 100644 index 4db43cd4..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/id-container-joining-with-empty-elements/pom.xml +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3979 - parent - 0.1 - pom - - Maven Integration Test :: MNG-3979 - - Test that during inheritance the merging/joining of sub trees with equal identifier doesn't crash if the parent - POM has a non-empty element and the child POM has an empty element to join. - - - - test - - - - - equal-repo-id - http://maven.apache.org/null - - false - - - ignore - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-log-file - 2.1-SNAPSHOT - - - equal-build-exec-id - initialize - - reset - - - target/exec.log - test - - - - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-log-file - 2.1-SNAPSHOT - - - equal-report-exec-id - - reset - - - target/exec.log - test - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/id-container-joining-with-empty-elements/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/id-container-joining-with-empty-elements/sub/pom.xml deleted file mode 100644 index e65d26c2..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/id-container-joining-with-empty-elements/sub/pom.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3979 - parent - 0.1 - - - child - - Maven Integration Test :: MNG-3979 - - Test that during inheritance the merging/joining of sub trees with equal identifier doesn't crash if the parent - POM has a non-empty element and the child POM has an empty element to join. - - - - - - - equal-repo-id - file:///${basedir}/null - - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-log-file - 2.1-SNAPSHOT - - - equal-build-exec-id - initialize - - - - - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-log-file - 2.1-SNAPSHOT - - - equal-report-exec-id - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/inherited-properties-interpolation/active-profile/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/inherited-properties-interpolation/active-profile/pom.xml deleted file mode 100644 index 640cf288..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/inherited-properties-interpolation/active-profile/pom.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4102 - parent - 0.1 - pom - - Maven Integration Test :: MNG-4102 - - Verify that the effective value of an inherited property reflects the values of any nested property - as defined by the child. This boils down to the order of inheritance and (parent) interpolation. - - - - PARENT - - ${overridden} - - - - - it-parent - - true - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/inherited-properties-interpolation/active-profile/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/inherited-properties-interpolation/active-profile/sub/pom.xml deleted file mode 100644 index 2aa40ded..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/inherited-properties-interpolation/active-profile/sub/pom.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng4102 - parent - 0.1 - - - org.apache.maven.its.mng4102 - test - 0.1 - jar - - Maven Integration Test :: MNG-4102 :: Child - - Verify that the effective value of an inherited property reflects the values of any nested property - as defined by the child. This boils down to the order of inheritance and (parent) interpolation. - - - - CHILD - - - - - it-child - - true - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/inherited-properties-interpolation/no-profile/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/inherited-properties-interpolation/no-profile/pom.xml deleted file mode 100644 index 3e11a6d6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/inherited-properties-interpolation/no-profile/pom.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4102 - parent - 0.1 - pom - - Maven Integration Test :: MNG-4102 - - Verify that the effective value of an inherited property reflects the values of any nested property - as defined by the child. This boils down to the order of inheritance and (parent) interpolation. - - - - PARENT - - ${overridden} - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/inherited-properties-interpolation/no-profile/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/inherited-properties-interpolation/no-profile/sub/pom.xml deleted file mode 100644 index 49c8fd21..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/inherited-properties-interpolation/no-profile/sub/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng4102 - parent - 0.1 - - - org.apache.maven.its.mng4102 - test - 0.1 - jar - - Maven Integration Test :: MNG-4102 :: Child - - Verify that the effective value of an inherited property reflects the values of any nested property - as defined by the child. This boils down to the order of inheritance and (parent) interpolation. - - - - CHILD - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/interpolation-cli-wins/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/interpolation-cli-wins/pom.xml deleted file mode 100644 index 39d8d9f8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/interpolation-cli-wins/pom.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4208 - test - 0.1 - jar - - Maven Integration Test :: MNG-4208 - - Test that CLI properties specified by the user override project properties during interpolation. - - - - FAILED - ${testProperty} - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/jdk-activation/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/jdk-activation/pom.xml deleted file mode 100644 index c0431f58..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/jdk-activation/pom.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng1957 - test - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-1957 - - Test that JDK profile activation allows version ranges. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-expression - 2.1-SNAPSHOT - - - validate - - eval - - - target/jdk.properties - - project/properties - - - - - - - - - - - test-1 - - [1.4,) - - - PASSED - - - - test-2 - - (,100) - - - PASSED - - - - test-3 - - (1.3,100) - - - PASSED - - - - test-4 - - (100,) - - - FAILED - - - - test-5 - - (,1.4) - - - FAILED - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/join-different-containers-same-id/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/join-different-containers-same-id/pom.xml deleted file mode 100644 index b3f48caa..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/join-different-containers-same-id/pom.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - 4.0.0 - - mng3984 - test - 0.1 - pom - - MNG-3984 - - - - - - org.apache.maven.its.plugins - maven-it-plugin-b - 1.0-SNAPSHOT - - - foo - - a - - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - foo - - b - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/licenses-inheritance/child-2/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/licenses-inheritance/child-2/pom.xml deleted file mode 100644 index 9fd30bf5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/licenses-inheritance/child-2/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - 4.0.0 - - - - - org.apache.maven.its.mng3843 - parent-1 - 0.1 - - - org.apache.maven.its.mng3843.child - child-2 - 0.2 - jar - - - - child-license - http://child.url/license - repo - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/licenses-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/licenses-inheritance/pom.xml deleted file mode 100644 index 641bb37f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/licenses-inheritance/pom.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3843 - parent-1 - 0.1 - pom - - - - parent-license - http://parent.url/license - repo - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/limited-inheritance/child/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/limited-inheritance/child/pom.xml deleted file mode 100644 index 8e9e6237..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/limited-inheritance/child/pom.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3845 - parent - 0.1 - - - child - - - child-org - - - - https://child.url/scm - - - http://child.url/issues - - - child-ci - http://child.url/ci - - - - child-distros - ssh://child.url/distros - - - child-snaps - ssh://child.url/snaps - - - child-site - scp://child.url/site - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/limited-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/limited-inheritance/pom.xml deleted file mode 100644 index 8bbe6eae..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/limited-inheritance/pom.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3845 - parent - 0.1 - pom - - Maven Integration Test :: MNG-3845 - - Test that inheritance is all-or-nothing for certain sub-trees of the POM. - - - - parent-org - http://parent.url/org - - - - http://parent.url/viewvc - http://parent.url/scm - https://parent.url/scm - parent-tag - - - parent-issues - http://parent.url/issues - - - parent-ci - http://parent.url/ci - - - irc - true - true - false - false - -
    irc://parent.url/#ci
    -
    -
    -
    -
    - - - parent-distros - parent-distros - ssh://parent.url/distros - false - legacy - - - parent-snaps - parent-snaps - ssh://parent.url/snaps - false - legacy - - - parent-site - parent-site - scp://parent.url/site - - -
    diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/mailing-lists-inheritance/child-2/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/mailing-lists-inheritance/child-2/pom.xml deleted file mode 100644 index 95ce7fe6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/mailing-lists-inheritance/child-2/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - 4.0.0 - - - - - org.apache.maven.its.mng3843 - parent-1 - 0.1 - - - org.apache.maven.its.mng3843.child - child-2 - 0.2 - jar - - - - child-mailing-list - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/mailing-lists-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/mailing-lists-inheritance/pom.xml deleted file mode 100644 index c9b05dfd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/mailing-lists-inheritance/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3843 - parent-1 - 0.1 - pom - - - - parent-mailing-list - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/managed-profile-dependency/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/managed-profile-dependency/pom.xml deleted file mode 100644 index 88c9813a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/managed-profile-dependency/pom.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4034 - parent - 1.0-SNAPSHOT - pom - - Maven Integration Test :: MNG-4034 - - Verify that dependencies defined in profiles are subject to the dependency management of the parent. - - - - sub - - - - - - org.apache.maven.its - maven-core-it-support - 1.3 - runtime - - - commons-lang - commons-lang - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/managed-profile-dependency/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/managed-profile-dependency/sub/pom.xml deleted file mode 100644 index 88204fcd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/managed-profile-dependency/sub/pom.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng4034 - parent - 1.0-SNAPSHOT - - - org.apache.maven.its.mng4034 - child - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-4034 - - Verify that dependencies defined in profiles are subject to the dependency management of the parent. - - - - - maven-core-it - - true - - - - org.apache.maven.its - maven-core-it-support - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-filter-order/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-filter-order/pom.xml deleted file mode 100644 index 6f4df9ac..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-filter-order/pom.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4008 - parent - 1.0 - pom - - Maven Integration Test :: MNG-4008 - - Verify that filter definitions are properly merged. - - - - - - src/main/filters/child-a.properties - src/main/filters/parent-c.properties - src/main/filters/parent-b.properties - src/main/filters/parent-d.properties - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-filter-order/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-filter-order/sub/pom.xml deleted file mode 100644 index 7e7155bf..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-filter-order/sub/pom.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng4008 - parent - 1.0 - - - org.apache.maven.its.mng4008 - test - 1.0 - jar - - Maven Integration Test :: MNG-4008 - - Verify that filter definitions are properly merged. - - - - - src/main/filters/child-a.properties - src/main/filters/child-c.properties - src/main/filters/child-b.properties - src/main/filters/child-d.properties - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-class-path-order/w-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-class-path-order/w-plugin-mngt/pom.xml deleted file mode 100644 index aba6bdf0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-class-path-order/w-plugin-mngt/pom.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3906 - parent - 0.1 - pom - - Maven Integration Test :: MNG-3906 - - Test that project-level plugin dependencies are properly merged during inheritance. - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-class-loader - 2.1-SNAPSHOT - - - org.apache.maven.its.mng3906 - e - 1 - - - org.apache.maven.its.mng3906 - a - 1 - - - org.apache.maven.its.mng3906 - d - 1 - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-class-path-order/w-plugin-mngt/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-class-path-order/w-plugin-mngt/sub/pom.xml deleted file mode 100644 index 1877ea54..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-class-path-order/w-plugin-mngt/sub/pom.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3906 - parent - 0.1 - - - child - - Maven Integration Test :: MNG-3906 - - Test that project-level plugin dependencies are properly merged during inheritance. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-class-loader - 2.1-SNAPSHOT - - - org.apache.maven.its.mng3906 - c - 1 - - - org.apache.maven.its.mng3906 - a - 2 - - - org.apache.maven.its.mng3906 - b - 1 - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-class-path-order/wo-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-class-path-order/wo-plugin-mngt/pom.xml deleted file mode 100644 index 10226cfb..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-class-path-order/wo-plugin-mngt/pom.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3906 - parent - 0.1 - pom - - Maven Integration Test :: MNG-3906 - - Test that project-level plugin dependencies are properly merged during inheritance. - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-class-loader - 2.1-SNAPSHOT - - - org.apache.maven.its.mng3906 - e - 1 - - - org.apache.maven.its.mng3906 - a - 1 - - - org.apache.maven.its.mng3906 - d - 1 - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-class-path-order/wo-plugin-mngt/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-class-path-order/wo-plugin-mngt/sub/pom.xml deleted file mode 100644 index 1877ea54..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-class-path-order/wo-plugin-mngt/sub/pom.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3906 - parent - 0.1 - - - child - - Maven Integration Test :: MNG-3906 - - Test that project-level plugin dependencies are properly merged during inheritance. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-class-loader - 2.1-SNAPSHOT - - - org.apache.maven.its.mng3906 - c - 1 - - - org.apache.maven.its.mng3906 - a - 2 - - - org.apache.maven.its.mng3906 - b - 1 - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-goals-order/w-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-goals-order/w-plugin-mngt/pom.xml deleted file mode 100644 index fc09dba1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-goals-order/w-plugin-mngt/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3937 - parent-2 - 0.1 - pom - - Maven Integration Test :: MNG-3937 - - Test that during inheritance/merging of a plugin execution the goals specified by child and parent are properly - ordered. - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - merge - validate - - parent-b - merged - parent-a - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-goals-order/w-plugin-mngt/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-goals-order/w-plugin-mngt/sub/pom.xml deleted file mode 100644 index 2148aa9b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-goals-order/w-plugin-mngt/sub/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3937 - parent-2 - 0.1 - - - child-2 - - Maven Integration Test :: MNG-3937 - - Test that during inheritance/merging of a plugin execution the goals specified by child and parent are properly - ordered. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - merge - validate - - child-a - merged - child-b - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-goals-order/wo-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-goals-order/wo-plugin-mngt/pom.xml deleted file mode 100644 index b9c3f18b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-goals-order/wo-plugin-mngt/pom.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3937 - parent-1 - 0.1 - pom - - Maven Integration Test :: MNG-3937 - - Test that during inheritance/merging of a plugin execution the goals specified by child and parent are properly - ordered. - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - merge - validate - - parent-b - merged - parent-a - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-goals-order/wo-plugin-mngt/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-goals-order/wo-plugin-mngt/sub/pom.xml deleted file mode 100644 index fab233b2..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-goals-order/wo-plugin-mngt/sub/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3937 - parent-1 - 0.1 - - - child-1 - - Maven Integration Test :: MNG-3937 - - Test that during inheritance/merging of a plugin execution the goals specified by child and parent are properly - ordered. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - merge - validate - - child-a - merged - child-b - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-order/w-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-order/w-plugin-mngt/pom.xml deleted file mode 100644 index ee4dedcf..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-order/w-plugin-mngt/pom.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3925 - parent - 0.1 - pom - - Maven Integration Test :: MNG-3925 - - Test that plugin executions (in the same phase) are properly ordered after inheritance/merge with - parent executions. - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - parent-1 - validate - - parent-1 - - - - parent-2 - validate - - parent-2 - - - - - validate - - parent-default - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-order/w-plugin-mngt/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-order/w-plugin-mngt/sub/pom.xml deleted file mode 100644 index bf777db9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-order/w-plugin-mngt/sub/pom.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3925 - parent - 0.1 - - - child - - Maven Integration Test :: MNG-3925 - - Test that plugin executions (in the same phase) are properly ordered after inheritance/merge with - parent executions. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - child-1 - validate - - child-1 - - - - child-2 - validate - - child-2 - - - - - validate - - child-default - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-order/wo-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-order/wo-plugin-mngt/pom.xml deleted file mode 100644 index a816975f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-order/wo-plugin-mngt/pom.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3925 - parent - 0.1 - pom - - Maven Integration Test :: MNG-3925 - - Test that plugin executions (in the same phase) are properly ordered after inheritance/merge with - parent executions. - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - parent-1 - validate - - parent-1 - - - - parent-2 - validate - - parent-2 - - - - - validate - - parent-default - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-order/wo-plugin-mngt/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-order/wo-plugin-mngt/sub/pom.xml deleted file mode 100644 index bf777db9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/merged-plugin-exec-order/wo-plugin-mngt/sub/pom.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3925 - parent - 0.1 - - - child - - Maven Integration Test :: MNG-3925 - - Test that plugin executions (in the same phase) are properly ordered after inheritance/merge with - parent executions. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - child-1 - validate - - child-1 - - - - child-2 - validate - - child-2 - - - - - validate - - child-default - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/micromailer/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/micromailer/pom.xml deleted file mode 100644 index 780faac2..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/micromailer/pom.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - 4.0.0 - - - org.sonatype.spice - spice-parent - 11 - spice-parent-9.pom - - - org.sonatype.micromailer - micromailer - 1.0.3 - jar - Micro Mailer - - - scm:svn:http://svn.sonatype.org/spice/trunk/micromailer - http://svn.sonatype.org/spice/trunk/micromailer - scm:svn:https://svn.sonatype.org/spice/trunk/micromailer - - - - - - org.codehaus.plexus - plexus-container-default - 1.0-alpha-47 - jar - compile - - - commons-logging - commons-logging - - - commons-logging - commons-logging-api - - - log4j - log4j - - - - - - org.codehaus.plexus - plexus-utils - 1.5.5 - jar - compile - - - - - org.codehaus.plexus - plexus-velocity - 1.1.7 - jar - compile - - - org.codehaus.plexus - plexus-component-api - - - velocity - velocity - - - commons-collections - commons-collections - - - - - - org.apache.velocity - velocity - 1.5 - jar - compile - - - - - javax.mail - mail - 1.4 - jar - compile - - - - - junit - junit - 3.8.2 - jar - test - - - - - - - - org.codehaus.plexus - plexus-maven-plugin - 1.3.8 - - - - child-descriptor - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/micromailer/spice-parent-9.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/micromailer/spice-parent-9.pom deleted file mode 100644 index 695c3c93..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/micromailer/spice-parent-9.pom +++ /dev/null @@ -1,103 +0,0 @@ - - 4.0.0 - org.sonatype.spice - spice-parent - 11 - pom - Sonatype Spice Components - - - scm:svn:http://svn.sonatype.org/spice/trunk/spice-parent - http://svn.sonatype.org/spice/trunk/spice-parent - scm:svn:https://svn.sonatype.org/spice/trunk/spice-parent - - - - - 6.1.12 - - - - - - org.codehaus.plexus - plexus-container-default - 1.0-beta-1 - - - commons-logging - commons-logging - - - commons-logging - commons-logging-api - - - log4j - log4j - - - - - org.codehaus.plexus - plexus-component-annotations - 1.0-beta-1 - - - org.codehaus.plexus - plexus-utils - 1.5.5 - - - org.mortbay.jetty - jetty - ${jetty.version} - - - org.mortbay.jetty - jetty-client - ${jetty.version} - - - junit - junit - 4.5 - test - - - - - - - - - org.codehaus.plexus - plexus-component-metadata - 1.0-beta-1 - - - process-classes - - generate-metadata - - - - - - org.codehaus.plexus - plexus-maven-plugin - 1.3.8 - - - - descriptor - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/multiple-filters/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/multiple-filters/pom.xml deleted file mode 100644 index 1141efb5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/multiple-filters/pom.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - 4.0.0 - a - b - 1.0 - - - - src/main/filters/a.properties - src/main/filters/c.properties - src/main/filters/b.properties - src/main/filters/d.properties - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/multiple-repos/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/multiple-repos/pom.xml deleted file mode 100644 index e59cd0c3..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/multiple-repos/pom.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - 4.0.0 - - mng3984 - test-1 - 0.1 - pom - - MNG-3984 - - - central-parent - Maven Repository Switchboard - default - http://repo1.maven.org/maven2 - - false - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/multiple-repos/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/multiple-repos/sub/pom.xml deleted file mode 100644 index d7b21020..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/multiple-repos/sub/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - 4.0.0 - - mng3984 - test-1 - 0.1 - - mng3984 - test-2 - 0.1 - - MNG-3984 - - - central-child - Maven Repository Switchboard - default - http://repo1.maven.org/maven2 - - false - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/nested-build-dir-interpolation/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/nested-build-dir-interpolation/pom.xml deleted file mode 100644 index 5632fad4..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/nested-build-dir-interpolation/pom.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3904 - test - 0.1 - jar - - Maven Integration Test :: MNG-3904 - - Test that properties which refer to build directories which in turn refer to other build directories are - properly interpolated. - - - - - ${project.build.outputDirectory}/dir0 - ${project.build.testSourceDirectory}/dir1 - ${project.reporting.outputDirectory}/dir2 - - - - - ${project.basedir}/target - ${project.build.directory}/classes - - ${basedir}/src - ${project.build.sourceDirectory}/test - - - - ${project.build.directory}/site - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-inheritance/child3.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-inheritance/child3.xml deleted file mode 100644 index 873f6f97..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-inheritance/child3.xml +++ /dev/null @@ -1,7 +0,0 @@ - - gid - child-3 - 1.0 - pom - 4.0.0 - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-inheritance/pom.xml deleted file mode 100644 index 89209d79..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-inheritance/pom.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - gid - child-3 - 1.0 - child3.xml - - 4.0.0 - child-2 - pom - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-inheritance/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-inheritance/sub/pom.xml deleted file mode 100644 index 2d4671ed..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-inheritance/sub/pom.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - gid - child-2 - 1.0 - - 4.0.0 - child-1 - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-interpolation/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-interpolation/pom.xml deleted file mode 100644 index d2ae6ea2..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-interpolation/pom.xml +++ /dev/null @@ -1,16 +0,0 @@ - - 4.0.0 - org.sonatype.nexus - nexus - 1.3.0-SNAPSHOT - pom - - - - org.codehaus.modello - modello-maven-plugin - ${project.version} - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-interpolation/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-interpolation/sub/pom.xml deleted file mode 100644 index 752852b1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-interpolation/sub/pom.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - org.sonatype.nexus - nexus - 1.3.0-SNAPSHOT - - 4.0.0 - a - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-pom-packaging/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-pom-packaging/pom.xml deleted file mode 100644 index 16952455..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-pom-packaging/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4283 - parent - 0.1 - - jar - - Maven Integration Test :: MNG-4283 - - Test that the model builder fails when a parent POM has not "pom" packaging. - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-pom-packaging/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-pom-packaging/sub/pom.xml deleted file mode 100644 index eca47eb3..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/parent-pom-packaging/sub/pom.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng4283 - parent - 0.1 - - - org.apache.maven.its.mng4283 - test - 0.1 - jar - - Maven Integration Test :: MNG-4283 - - Test that the model builder fails when a parent POM has not "pom" packaging. - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/platform-file-separator/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/platform-file-separator/pom.xml deleted file mode 100644 index 26ba2943..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/platform-file-separator/pom.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3877 - test - 1.0 - jar - - Maven Integration Test :: MNG-3877 - - Verify that paths to project directories use the platform-specific file separator. - - - - - src/main/filters/it.properties - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-append/no-profile/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-append/no-profile/pom.xml deleted file mode 100644 index 60180d51..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-append/no-profile/pom.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng2591 - parent - 1.0 - pom - - Maven Integration Test :: MNG-2591 - - Test aggregation of list configuration items for build plugins when using - 'combine.children=append' attribute. - - - - subproject - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - true - - - - PARENT-1 - PARENT-3 - PARENT-2 - PARENT-4 - - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - true - - - - PARENT-1 - PARENT-3 - PARENT-2 - PARENT-4 - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-append/no-profile/subproject/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-append/no-profile/subproject/pom.xml deleted file mode 100644 index cef53d32..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-append/no-profile/subproject/pom.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng2591 - parent - 1.0 - - - subproject - 1.0 - jar - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - target/config.properties - - - CHILD-1 - CHILD-3 - CHILD-2 - CHILD-4 - - - - CHILD-1 - CHILD-3 - CHILD-2 - CHILD-4 - - - - - test - validate - - config - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-append/with-profile/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-append/with-profile/pom.xml deleted file mode 100644 index 72ab3f45..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-append/with-profile/pom.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng2591 - parent - 1.0 - pom - - Maven Integration Test :: MNG-2591 - - Test aggregation of list configuration items for build plugins when using - 'combine.children=append' attribute. - - - - subproject - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - true - - - - PARENT-1 - PARENT-3 - PARENT-2 - PARENT-4 - - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - true - - - - PARENT-1 - PARENT-3 - PARENT-2 - PARENT-4 - - - - - - - - - - parent - - true - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-append/with-profile/subproject/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-append/with-profile/subproject/pom.xml deleted file mode 100644 index 70235030..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-append/with-profile/subproject/pom.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng2591 - parent - 1.0 - - - subproject - 1.0 - jar - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - target/config.properties - - - CHILD-1 - CHILD-3 - CHILD-2 - CHILD-4 - - - - CHILD-1 - CHILD-3 - CHILD-2 - CHILD-4 - - - - - test - validate - - config - - - - - - - - - - - child - - true - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-attributes/w-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-attributes/w-plugin-mngt/pom.xml deleted file mode 100644 index 2f350715..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-attributes/w-plugin-mngt/pom.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4053 - test2 - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-4053 - - Verify that attributes in plugin configuration elements are not erroneously duplicated to other elements when - plugin management is used. - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - target/config.properties - - - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-attributes/w-profile/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-attributes/w-profile/pom.xml deleted file mode 100644 index f2d8c6c0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-attributes/w-profile/pom.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4053 - test3 - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-4053 - - Verify that attributes in plugin configuration elements are not erroneously duplicated to other elements when - plugin management and a profile are used. - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - - - - - - - - maven-core-it - - true - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - target/config.properties - - - - - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-attributes/wo-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-attributes/wo-plugin-mngt/pom.xml deleted file mode 100644 index c844b447..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-attributes/wo-plugin-mngt/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4053 - test1 - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-4053 - - Verify that attributes in plugin configuration elements are not erroneously duplicated to other elements when - no plugin management is used. - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - target/config.properties - - - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-merging/child/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-merging/child/pom.xml deleted file mode 100644 index f8172448..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-merging/child/pom.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3836 - parent - 1.0-SNAPSHOT - - - org.apache.maven.its.mng3836 - child - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-3836 - - Verify that children can *override* inherited plugin configuration. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - - PASSED - - PASSED-1 - PASSED-3 - PASSED-2 - PASSED-4 - - - PASSED-1 - PASSED-3 - PASSED-2 - PASSED-4 - - - - - validate - - config - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-merging/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-merging/pom.xml deleted file mode 100644 index 12f2c2d6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-merging/pom.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3836 - parent - 1.0-SNAPSHOT - pom - - Maven Integration Test :: MNG-3836 - - Verify that children can *override* inherited plugin configuration. - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - FAILED - - FAILED-1 - FAILED-3 - FAILED-2 - FAILED-4 - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - FAILED - - FAILED-1 - FAILED-3 - FAILED-2 - FAILED-4 - - PASSED - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-order/w-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-order/w-plugin-mngt/pom.xml deleted file mode 100644 index 7d7dfd81..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-order/w-plugin-mngt/pom.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3827 - test2 - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-3827 - - Verify that plain plugin configuration works correctly. - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - - - one - two - three - four - - - - - validate - - config - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-order/wo-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-order/wo-plugin-mngt/pom.xml deleted file mode 100644 index e300fe1e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-order/wo-plugin-mngt/pom.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3827 - test1 - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-3827 - - Verify that plain plugin configuration works correctly. - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 1.0 - - - one - two - three - four - - - - - validate - - config - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-properties/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-properties/pom.xml deleted file mode 100644 index e5660391..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-config-properties/pom.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - 4.0.0 - a - b - 1.0 - - - - maven-surefire-plugin - - - - - - maven-surefire-plugin - 2.4 - - - - my.property - my.value - - - - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-config-order/w-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-config-order/w-plugin-mngt/pom.xml deleted file mode 100644 index 9f66b49e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-config-order/w-plugin-mngt/pom.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3827 - test2 - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-3864 - - Verify that plain per-execution plugin configuration works correctly. - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - - - validate - - config - - - - one - two - three - four - - - - key1 - value1 - - - key2 - value2 - - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-config-order/wo-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-config-order/wo-plugin-mngt/pom.xml deleted file mode 100644 index 4e1eafe3..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-config-order/wo-plugin-mngt/pom.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3827 - test1 - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-3864 - - Verify that plain per-execution plugin configuration works correctly. - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 1.0 - - - validate - - config - - - - one - two - three - four - - - - key1 - value1 - - - key2 - value2 - - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-goals-order/w-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-goals-order/w-plugin-mngt/pom.xml deleted file mode 100644 index d4ac3b0e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-goals-order/w-plugin-mngt/pom.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3886 - test - 0.1 - pom - - Maven Integration Test :: MNG-3886 - - Test that the goals from a plugin execution are executed in the order given by the POM, regardless whether - plugin management is present or not. - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - - b - a - d - c - e - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-goals-order/wo-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-goals-order/wo-plugin-mngt/pom.xml deleted file mode 100644 index 438d9d1a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-goals-order/wo-plugin-mngt/pom.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3886 - test - 0.1 - pom - - Maven Integration Test :: MNG-3886 - - Test that the goals from a plugin execution are executed in the order given by the POM, regardless whether - plugin management is present or not. - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - - b - a - d - c - e - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-inheritance/pom.xml deleted file mode 100644 index 2b534d76..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-inheritance/pom.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4129 - parent - 0.1 - pom - - Maven Integration Test :: MNG-4129 - - Verify that plugin executions defined in the parent with inherited=false are not executed in child modules. - - - - child-1 - child-2 - - - - - - org.apache.maven.its.plugins - maven-it-plugin-log-file - 2.1-SNAPSHOT - - - inherited-execution - true - validate - - log-string - - - target/executions.txt - inherited-execution - - - - non-inherited-execution - false - validate - - log-string - - - target/executions.txt - non-inherited-execution - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-inheritance/w-merge/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-inheritance/w-merge/pom.xml deleted file mode 100644 index f60cfd5c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-inheritance/w-merge/pom.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng4129 - parent - 0.1 - - - child-1 - - Maven Integration Test :: MNG-4129 :: Child-1 - - Verify that plugin executions defined in the parent with inherited=false are not executed in child modules. - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-log-file - 2.1-SNAPSHOT - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-inheritance/wo-merge/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-inheritance/wo-merge/pom.xml deleted file mode 100644 index 23cfc0c2..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-inheritance/wo-merge/pom.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng4129 - parent - 0.1 - - - child-2 - - Maven Integration Test :: MNG-4129 :: Child-2 - - Verify that plugin executions defined in the parent with inherited=false are not executed in child modules. - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging-version-insensitive/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging-version-insensitive/pom.xml deleted file mode 100644 index b64af3ae..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging-version-insensitive/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3916 - parent - 0.1 - pom - - Maven Integration Test :: MNG-3943 - - Test that plugin executions are properly merged during inheritance, even if the child uses a different - plugin version than the parent. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - - 1.0 - - - parent-1 - parent-1 - - - parent-2 - parent-2 - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging-version-insensitive/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging-version-insensitive/sub/pom.xml deleted file mode 100644 index f96116ad..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging-version-insensitive/sub/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3916 - parent - 0.1 - - - child - - Maven Integration Test :: MNG-3943 - - Test that plugin executions are properly merged during inheritance, even if the child uses a different - plugin version than the parent. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - - 2.0 - - - child-1 - child-1 - - - child-2 - child-2 - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging-wo-version/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging-wo-version/pom.xml deleted file mode 100644 index 127fa259..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging-wo-version/pom.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3916 - parent - 0.1 - pom - - Maven Integration Test :: MNG-3916 - - Test that plugin executions are properly merged during inheritance, even if the child plugin section has no - version. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0 - - - parent-1 - parent-1 - - - parent-2 - parent-2 - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging-wo-version/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging-wo-version/sub/pom.xml deleted file mode 100644 index 61841aec..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging-wo-version/sub/pom.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3916 - parent - 0.1 - - - child - - Maven Integration Test :: MNG-3916 - - Test that plugin executions are properly merged during inheritance, even if the child plugin section has no - version. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - - - - child-1 - child-1 - - - child-2 - child-2 - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging/w-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging/w-plugin-mngt/pom.xml deleted file mode 100644 index 6bcfee56..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging/w-plugin-mngt/pom.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3938 - parent - 0.1 - pom - - Maven Integration Test :: MNG-3938 - - Test that plugin executions with the same id are merged during inheritance, especially executions using the - default id, regardless whether the id is given explicitly by the user or implicitly assumed from defaults. - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 2.1-SNAPSHOT - - - - parent-default - - - non-default - parent-non-default - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging/w-plugin-mngt/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging/w-plugin-mngt/sub/pom.xml deleted file mode 100644 index 3129ad02..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging/w-plugin-mngt/sub/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3938 - parent - 0.1 - - - child - - Maven Integration Test :: MNG-3938 - - Test that plugin executions with the same id are merged during inheritance, especially executions using the - default id, regardless whether the id is given explicitly by the user or implicitly assumed from defaults. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 2.1-SNAPSHOT - - - - default - child-default - - - non-default - child-non-default - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging/wo-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging/wo-plugin-mngt/pom.xml deleted file mode 100644 index 63db85f6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging/wo-plugin-mngt/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3938 - parent - 0.1 - pom - - Maven Integration Test :: MNG-3938 - - Test that plugin executions with the same id are merged during inheritance, especially executions using the - default id, regardless whether the id is given explicitly by the user or implicitly assumed from defaults. - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 2.1-SNAPSHOT - - - - parent-default - - - non-default - parent-non-default - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging/wo-plugin-mngt/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging/wo-plugin-mngt/sub/pom.xml deleted file mode 100644 index 3129ad02..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-merging/wo-plugin-mngt/sub/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3938 - parent - 0.1 - - - child - - Maven Integration Test :: MNG-3938 - - Test that plugin executions with the same id are merged during inheritance, especially executions using the - default id, regardless whether the id is given explicitly by the user or implicitly assumed from defaults. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 2.1-SNAPSHOT - - - - default - child-default - - - non-default - child-non-default - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-order-and-default-exec/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-order-and-default-exec/pom.xml deleted file mode 100644 index 864fedb9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-order-and-default-exec/pom.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4332 - test - 0.1 - - JAR - - Maven Integration Test :: MNG-4332 - - Verify that default plugin executions contributed by the packaging are executed before user-defined - executions from the POM's build section, regardless whether the executions are defined in the regular - plugins section or the plugin management section. - - - - - - - maven-resources-plugin - 2.2 - - - test-1 - - resources - - - - - - - - - maven-resources-plugin - 2.2 - - - test-2 - - resources - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-order-with-lifecycle/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-order-with-lifecycle/pom.xml deleted file mode 100644 index 6035e816..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-order-with-lifecycle/pom.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4341 - test - 0.1 - - JAR - - Maven Integration Test :: MNG-4341 - - Test that plugins bound to the same phase get executed in POM order even if one of the plugins participates - in the default lifecycle bindings for the project's packaging. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-log-file - 2.1-SNAPSHOT - - - - org.apache.maven.plugins - maven-resources-plugin - 0.1-stub-SNAPSHOT - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-order/w-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-order/w-plugin-mngt/pom.xml deleted file mode 100644 index 2c552d4c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-order/w-plugin-mngt/pom.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3887 - test - 0.1 - pom - - Maven Integration Test :: MNG-3887 - - Test that multiple plugin executions bound to the same phase are executed in the order given by the POM. - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - b - validate - - - a - validate - - - d - validate - - - c - validate - - - e - validate - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-order/wo-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-order/wo-plugin-mngt/pom.xml deleted file mode 100644 index c4ceaae3..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-order/wo-plugin-mngt/pom.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3887 - test - 0.1 - pom - - Maven Integration Test :: MNG-3887 - - Test that multiple plugin executions bound to the same phase are executed in the order given by the POM. - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-a - 1.0-SNAPSHOT - - - b - validate - - - a - validate - - - d - validate - - - c - validate - - - e - validate - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-w-and-wo-id/w-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-w-and-wo-id/w-plugin-mngt/pom.xml deleted file mode 100644 index fbae181f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-w-and-wo-id/w-plugin-mngt/pom.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4000 - test2 - 0.1 - - Maven Integration Test :: MNG-4000 - - Test that plugin executions without id are not lost among other plugin executions. - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-log-file - 2.1-SNAPSHOT - - - - - - org.apache.maven.its.plugins - maven-it-plugin-log-file - - target/exec.log - exec - - - - exec-1 - validate - - log-string - - - - - validate - - log-string - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-w-and-wo-id/wo-plugin-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-w-and-wo-id/wo-plugin-mngt/pom.xml deleted file mode 100644 index 7910084f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-exec-w-and-wo-id/wo-plugin-mngt/pom.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4000 - test1 - 0.1 - - Maven Integration Test :: MNG-4000 - - Test that plugin executions without id are not lost among other plugin executions. - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-log-file - 2.1-SNAPSHOT - - target/exec.log - exec - - - - exec-1 - validate - - log-string - - - - - validate - - log-string - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-merge-order/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-merge-order/pom.xml deleted file mode 100644 index e42b0306..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-merge-order/pom.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4415 - parent - 0.1 - pom - - Maven Integration Test :: MNG-4415 - - Test that merging of plugins during inheritance follows these rules regarding ordering: - parent: X -> A -> B -> D -> E - child: Y -> A -> C -> D -> F - result: X -> Y -> A -> B -> C -> D -> E -> F - - - - - - org.apache.maven.its.plugins - maven-it-plugin-error - 2.1-SNAPSHOT - - - org.apache.maven.its.plugins - maven-it-plugin-dependency-resolution - 2.1-SNAPSHOT - - - org.apache.maven.its.plugins - maven-it-plugin-packaging - 2.1-SNAPSHOT - - - org.apache.maven.its.plugins - maven-it-plugin-expression - 2.1-SNAPSHOT - - - org.apache.maven.its.plugins - maven-it-plugin-fork - 2.1-SNAPSHOT - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-merge-order/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-merge-order/sub/pom.xml deleted file mode 100644 index 8d44b8cc..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-merge-order/sub/pom.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng4415 - parent - 0.1 - - - org.apache.maven.its.mng4415 - test - 0.1 - - Maven Integration Test :: MNG-4415 - - Test that merging of plugins during inheritance follows these rules regarding ordering: - parent: X -> A -> B -> D -> E - child: Y -> A -> C -> D -> F - result: X -> Y -> A -> B -> C -> D -> E -> F - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - - org.apache.maven.its.plugins - maven-it-plugin-dependency-resolution - 2.1-SNAPSHOT - - - org.apache.maven.its.plugins - maven-it-plugin-log-file - 2.1-SNAPSHOT - - - org.apache.maven.its.plugins - maven-it-plugin-expression - 2.1-SNAPSHOT - - - org.apache.maven.its.plugins - maven-it-plugin-touch - 2.1-SNAPSHOT - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-order/child/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-order/child/pom.xml deleted file mode 100644 index 5350fa87..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-order/child/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3808 - test - 0.1 - - child - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-order/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-order/pom.xml deleted file mode 100644 index f66ae25c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-order/pom.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3808 - test - 0.1 - pom - - Maven Integration Test :: MNG-3808 - - Test the reports are executeed in the order given in the POM. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-log-file - 2.1-SNAPSHOT - - - org.apache.maven.its.plugins - maven-it-plugin-expression - 2.1-SNAPSHOT - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-log-file - 2.1-SNAPSHOT - - - org.apache.maven.its.plugins - maven-it-plugin-expression - 2.1-SNAPSHOT - - - - - - child - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-simple/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-simple/pom.xml deleted file mode 100644 index b73bfce5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-simple/pom.xml +++ /dev/null @@ -1,17 +0,0 @@ - - 4.0.0 - gid - aid - 1.0 - pom - - - - org.codehaus.modello - modello-maven-plugin - 1.0-alpha-21 - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-simple/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-simple/sub/pom.xml deleted file mode 100644 index f6ed4dd4..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-inheritance-simple/sub/pom.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - gid - aid - 1.0 - - 4.0.0 - org.sonatype.nexus - nexus - 1.3.0-SNAPSHOT - - - - org.codehaus.modello - modello-maven-plugin2 - 1.0-alpha-21 - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-injection-merge-order/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-injection-merge-order/pom.xml deleted file mode 100644 index 76459e2d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-injection-merge-order/pom.xml +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4416 - test - 0.1 - - Maven Integration Test :: MNG-4416 - - Test that merging of plugins during profile injection follows these rules regarding ordering: - model: X -> A -> B -> D -> E - profile: Y -> A -> C -> D -> F - result: X -> Y -> A -> B -> C -> D -> E -> F - - - - - - org.apache.maven.its.plugins - maven-it-plugin-error - 2.1-SNAPSHOT - - - org.apache.maven.its.plugins - maven-it-plugin-dependency-resolution - 2.1-SNAPSHOT - - - org.apache.maven.its.plugins - maven-it-plugin-packaging - 2.1-SNAPSHOT - - - org.apache.maven.its.plugins - maven-it-plugin-expression - 2.1-SNAPSHOT - - - org.apache.maven.its.plugins - maven-it-plugin-fork - 2.1-SNAPSHOT - - - - - - - test - - - !skip-mng4416 - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - - org.apache.maven.its.plugins - maven-it-plugin-dependency-resolution - 2.1-SNAPSHOT - - - org.apache.maven.its.plugins - maven-it-plugin-log-file - 2.1-SNAPSHOT - - target/it.properties - - - - first - validate - - reset - - - - - - org.apache.maven.its.plugins - maven-it-plugin-expression - 2.1-SNAPSHOT - - target/it.properties - - project/build/plugins - - - - - second - validate - - eval - - - - - - org.apache.maven.its.plugins - maven-it-plugin-touch - 2.1-SNAPSHOT - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-dependencies/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-dependencies/pom.xml deleted file mode 100644 index bcdb05aa..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-dependencies/pom.xml +++ /dev/null @@ -1,25 +0,0 @@ - - 4.0.0 - gid - aid - 1.0 - pom - - - - - org.codehaus.modello - modello-maven-plugin - 1.0-alpha-21 - - - a - b - 1.0 - - - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-dependencies/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-dependencies/sub/pom.xml deleted file mode 100644 index 7f73423e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-dependencies/sub/pom.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - gid - aid - 1.0 - - 4.0.0 - org.sonatype.nexus - nexus - 1.3.0-SNAPSHOT - - - test - - - - org.codehaus.modello - modello-maven-plugin - 1.0-alpha-21 - - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-duplicate/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-duplicate/pom.xml deleted file mode 100644 index 37e7278a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-duplicate/pom.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - 4.0.0 - - gid - aid - 1.0 - pom - - - - - org.apache.maven.its.plugins - - maven-it-plugin-configuration - - 2.1-SNAPSHOT - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-duplicate/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-duplicate/sub/pom.xml deleted file mode 100644 index 5e844b79..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-duplicate/sub/pom.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - gid - aid - 1.0 - - 4.0.0 - - org.apache.maven.its.mng4053 - test2 - 1.0-SNAPSHOT - - - - - - maven-compiler-plugin - 0.1-stub-SNAPSHOT - - - maven-jar-plugin - 0.1-stub-SNAPSHOT - - - maven-javadoc-plugin - 0.1-stub-SNAPSHOT - - - maven-resources-plugin - 0.1-stub-SNAPSHOT - - - maven-source-plugin - 0.1-stub-SNAPSHOT - - - maven-surefire-plugin - 0.1-stub-SNAPSHOT - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-for-implicit-plugin/child/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-for-implicit-plugin/child/pom.xml deleted file mode 100644 index fce35882..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-for-implicit-plugin/child/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng0522 - parent - 1.0-SNAPSHOT - - - child-project - 1.0-SNAPSHOT - - JAR - - - - - org.apache.maven.its.plugins - maven-it-plugin-log-file - - - test - initialize - - reset - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-for-implicit-plugin/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-for-implicit-plugin/pom.xml deleted file mode 100644 index d9412769..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-for-implicit-plugin/pom.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng0522 - parent - 1.0-SNAPSHOT - pom - - Maven Integration Test :: MNG-522 - Test for pluginManagement injection of plugin configuration. - - - child - - - - - - - - org.apache.maven.plugins - maven-resources-plugin - 0.1-stub-SNAPSHOT - - passed.txt - - - - - org.apache.maven.its.plugins - maven-it-plugin-log-file - 2.1-SNAPSHOT - - passed.txt - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-inheritance/pom.xml deleted file mode 100644 index 85b7bd94..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-management-inheritance/pom.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.it0052 - maven-it-it0052 - 1.0 - jar - - Maven Integration Test :: it0052 - Test that source attachment doesn't take place when -DperformRelease=true is missing. - - - - - - - maven-compiler-plugin - 0.1-stub-SNAPSHOT - - - maven-jar-plugin - 0.1-stub-SNAPSHOT - - - maven-javadoc-plugin - 0.1-stub-SNAPSHOT - - - maven-resources-plugin - 0.1-stub-SNAPSHOT - - - maven-source-plugin - 0.1-stub-SNAPSHOT - - - maven-surefire-plugin - 0.1-stub-SNAPSHOT - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-merge-simple/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-merge-simple/pom.xml deleted file mode 100644 index 10eac25f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-merge-simple/pom.xml +++ /dev/null @@ -1,17 +0,0 @@ - - 4.0.0 - - org.sonatype.nexus - nexus-indexer - 1.1.3-SNAPSHOT - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-order/nexus-parent.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-order/nexus-parent.xml deleted file mode 100644 index 607da777..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-order/nexus-parent.xml +++ /dev/null @@ -1,19 +0,0 @@ - - 4.0.0 - - org.sonatype.nexus - nexus-parent - 8-SNAPSHOT - pom - - - - - org.codehaus.plexus - plexus-component-metadata - 1.4.0 - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-order/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-order/pom.xml deleted file mode 100644 index 408d17f0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/plugin-order/pom.xml +++ /dev/null @@ -1,28 +0,0 @@ - - 4.0.0 - - - org.sonatype.nexus - nexus-parent - 8-SNAPSHOT - nexus-parent.xml - - - org.sonatype.nexus - nexus-indexer - 1.1.3-SNAPSHOT - - - - - org.codehaus.plexus - plexus-component-metadata - - - - maven-surefire-plugin - 2.4.3 - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pluginmanagement-inherited/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pluginmanagement-inherited/pom.xml deleted file mode 100644 index 477451df..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pluginmanagement-inherited/pom.xml +++ /dev/null @@ -1,18 +0,0 @@ - - 4.0.0 - org.sonatype.nexus - nexus - 1.3.0-SNAPSHOT - pom - - - - - org.codehaus.modello - modello-maven-plugin - 1.0-alpha-21 - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pluginmanagement-inherited/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pluginmanagement-inherited/sub/pom.xml deleted file mode 100644 index 319e6adb..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pluginmanagement-inherited/sub/pom.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - org.sonatype.nexus - nexus - 1.3.0-SNAPSHOT - - 4.0.0 - a - - - - org.codehaus.modello - modello-maven-plugin - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pom-encoding/latin-1/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pom-encoding/latin-1/pom.xml deleted file mode 100644 index b338399f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pom-encoding/latin-1/pom.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - 4.0.0 - - org.apache.maven.its.mng2254 - latin-1 - 0.1-SNAPSHOT - pom - - Maven Integration Test :: MNG-2254 :: Latin-1 - TEST-CHARS: ÄÖÜäöüß - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pom-encoding/utf-8/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pom-encoding/utf-8/pom.xml deleted file mode 100644 index 4400aa70..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pom-encoding/utf-8/pom.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - 4.0.0 - - org.apache.maven.its.mng2254 - utf-8 - 0.1-SNAPSHOT - pom - - Maven Integration Test :: MNG-2254 :: UTF-8 - TEST-CHARS: ßıΣЯ×€ - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pom-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pom-inheritance/pom.xml deleted file mode 100644 index f96a9400..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pom-inheritance/pom.xml +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - 4.0.0 - - - - org.apache.maven.its.mng3843 - parent-1 - 0.1 - pom - - parent-name - parent-description - http://parent.url/ - 2008 - - parent-org - http://parent-org.url/ - - - - parent-license - http://parent.url/license - repo - - - - - - parent-developer - - - - - parent-contributor - - - - - - parent-mailing-list - - - - - 2.0 - - - - child-1 - child-2 - - - - http://parent.url/trunk - http://parent.url/scm - https://parent.url/scm - - - http://parent.url/issues - - - http://parent.url/ci - - - - http://parent.url/dist - parent.distros - - - http://parent.url/snaps - parent.snaps - - - http://parent.url/site - parent.site - - http://parent.url/download - - parent-reloc-msg - - - - - parent-property - parent-property - - - - - - org.apache.maven.its.mng3843 - parent-dep-a - 1 - test - - - - - - org.apache.maven.its.mng3843 - parent-dep-b - 1 - test - - - - - - parent-remote-repo - http://parent.url/remote - - - - - initialize - out - src/main - src/scripts - src/test - out/main - out/test - - - res/main - - - - - res/test - - - - - org.apache.maven.its.plugins - maven-it-plugin-expression - 2.1-SNAPSHOT - - - validate - - eval - - - target/pom.properties - - project - - - - - - - - - - true - site - - - - - parent-profile - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pom-inheritance/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pom-inheritance/sub/pom.xml deleted file mode 100644 index ae749028..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/pom-inheritance/sub/pom.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - 4.0.0 - - - - - org.apache.maven.its.mng3843 - parent-1 - 0.1 - - - child-1 - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/prerequisites-inheritance/child/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/prerequisites-inheritance/child/pom.xml deleted file mode 100644 index 349a0c38..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/prerequisites-inheritance/child/pom.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - 4.0.0 - - - - - org.apache.maven.its.mng3843 - parent-1 - 0.1 - - - child-1 - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/prerequisites-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/prerequisites-inheritance/pom.xml deleted file mode 100644 index 3e4d8a45..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/prerequisites-inheritance/pom.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3843 - parent-1 - 0.1 - pom - - - 2.0 - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-default-deactivation/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-default-deactivation/pom.xml deleted file mode 100644 index dfe19253..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-default-deactivation/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - 4.0.0 - org.apache.maven.its.mng3545 - test-artifact - 1.0-SNAPSHOT - - - profile1 - - true - - - - - org.apache.maven.its.plugins - maven-it-plugin-touch - 2.2 - - - - - - profile4 - - - - org.apache.maven.its.plugins - maven-it-plugin-touch - 2.1 - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-dependencies-multiple-profiles/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-dependencies-multiple-profiles/pom.xml deleted file mode 100644 index d7af4e27..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-dependencies-multiple-profiles/pom.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.it0021 - test - 1.0-SNAPSHOT - - Maven Integration Test :: it0021 - - Test pom-level profile inclusion (this one is activated by system property). - - - - - - org.apache.maven.its.plugins - maven-it-plugin-dependency-resolution - 2.1-SNAPSHOT - - - test - validate - - compile - - - - - - - - - - profile-1 - - - includeProfile - - - - - org.apache.maven.its.it0021 - a - 0.1 - - - - - profile-2 - - - - org.apache.maven.its.it0021 - b - 0.1 - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-injected-dependencies/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-injected-dependencies/pom.xml deleted file mode 100644 index 3fe02fbd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-injected-dependencies/pom.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng1412 - test - 0.1-SNAPSHOT - - Maven Integration Test :: MNG-1412 - - Check that dependencies are available in classpath in same order as declared in POM. - - - - - - org.apache.maven.its.mng1412 - a - 0.1 - - - org.apache.maven.its.mng1412 - c - 0.1 - - - org.apache.maven.its.mng1412 - b - 0.1 - - - - - - mng-1412 - - true - - - - - - org.apache.maven.its.mng1412 - a - 0.1 - - - org.apache.maven.its.mng1412 - d - 0.1 - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-injection-order/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-injection-order/pom.xml deleted file mode 100644 index daf4607f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-injection-order/pom.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng2309 - test - 1.0-SNAPSHOT - jar - - Maven Integration Test :: MNG-2309 - - Test that profiles are injected in declaration order, with the last profile being the most dominant. - - - - - - pom-a - - a - - - - pom-b - - b - - - - pom-c - - c - - - - pom-d - - d - - - - pom-e - - e - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-module-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-module-inheritance/pom.xml deleted file mode 100644 index 4e4c40b2..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-module-inheritance/pom.xml +++ /dev/null @@ -1,18 +0,0 @@ - - 4.0.0 - org.ops4j.pax - construct - 1.0 - pom - - - - dist - - maven-inherit-plugin - maven-pax-plugin - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-module-inheritance/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-module-inheritance/sub/pom.xml deleted file mode 100644 index 60f057cc..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-module-inheritance/sub/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - org.ops4j.pax - construct - 1.0 - - - 4.0.0 - org.ops4j - maven-inherit-plugin - 1.1 - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-module/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-module/pom.xml deleted file mode 100644 index b6336fd4..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-module/pom.xml +++ /dev/null @@ -1,24 +0,0 @@ - - 4.0.0 - gid - aid - 1.0 - pom - - module-2 - module-1 - module-3 - - - - a - - test-prop - - - module-1 - module-4 - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-plugin-mng-dependencies/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-plugin-mng-dependencies/pom.xml deleted file mode 100644 index e283bb09..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-plugin-mng-dependencies/pom.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng2174 - parent - 1.0-SNAPSHOT - pom - - Maven Integration Test :: MNG-2174 - - Verify that plugin dependencies defined by plugin management of a parent profile are not lost when the - parent's main plugin management section is also present. - - - - sub - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-class-loader - 2.1-SNAPSHOT - - - - - - - - maven-core-it - - true - - - - - - org.apache.maven.its.plugins - maven-it-plugin-class-loader - - - org.apache.maven.its.mng2174 - a - 0.1 - - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-plugin-mng-dependencies/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-plugin-mng-dependencies/sub/pom.xml deleted file mode 100644 index 3614e305..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-plugin-mng-dependencies/sub/pom.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng2174 - parent - 1.0-SNAPSHOT - - - org.apache.maven.its.mng2174 - child - 1.0-SNAPSHOT - - Maven Integration Test :: MNG-2174 - - Verify that plugin dependencies defined by plugin management of a parent profile are not lost when the - parent's main plugin management section is also present. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-class-loader - - - test - validate - - mng-2174.properties - target/pcl.properties - - - load - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-plugins/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-plugins/pom.xml deleted file mode 100644 index 32e94d73..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-plugins/pom.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven - maven - 3.0-SNAPSHOT - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.4.3 - - - - - - - standard - - true - - - - - org.apache.maven.plugins - maven-assembly2-plugin - 2.0 - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-properties-interpolation/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-properties-interpolation/pom.xml deleted file mode 100644 index a95e253b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/profile-properties-interpolation/pom.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3900 - test - 0.1 - jar - - Maven Integration Test :: MNG-3900 - - Test that build properties defined via active profiles are used for - interpolation. - - - - http://maven.apache.org/${test} - - - FAILED - ${test} - - - - - interpolation-profile - - - PASSED - PASSED - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/properties-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/properties-inheritance/pom.xml deleted file mode 100644 index 6d17dd3a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/properties-inheritance/pom.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3843 - parent-1 - 0.1 - pom - - - parent-property - parent-property - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/properties-inheritance/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/properties-inheritance/sub/pom.xml deleted file mode 100644 index c5394df5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/properties-inheritance/sub/pom.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3843 - parent-1 - 0.1 - - - org.apache.maven.its.mng3843.child - child-2 - 0.2 - jar - - - child-property - child-override - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/properties-no-duplication/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/properties-no-duplication/pom.xml deleted file mode 100644 index c74f4465..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/properties-no-duplication/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - 4.0.0 - org.apache.maven.its - test-parent - 1.0-SNAPSHOT - pom - - parent - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/properties-no-duplication/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/properties-no-duplication/sub/pom.xml deleted file mode 100644 index 9241b8bb..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/properties-no-duplication/sub/pom.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - 4.0.0 - - org.apache.maven.its - test-parent - 1.0-SNAPSHOT - - org.apache.maven.its - test - 1.0-SNAPSHOT - - child - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/repo-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/repo-inheritance/pom.xml deleted file mode 100644 index 5c1dacab..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/repo-inheritance/pom.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.it0043 - maven-it-it0043 - 1.0-SNAPSHOT - - Maven Integration Test :: it0043 - Test for repository inheritence - ensure using the same id overrides the defaults - - - - central - it0043 - file:///${basedir}/target/maven-core-it0043-repo - - - - - - central - it0043 - file:///${basedir}/target/maven-core-it0043-repo - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-expression - 2.1-SNAPSHOT - - target/expression.properties - - project/repositories - project/pluginRepositories - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/reporting-interpolation/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/reporting-interpolation/pom.xml deleted file mode 100644 index 49df00a8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/reporting-interpolation/pom.xml +++ /dev/null @@ -1,6 +0,0 @@ - - 4.0.0 - gid - aid - 1.0 - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/reporting-plugin-config/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/reporting-plugin-config/pom.xml deleted file mode 100644 index fdb455a0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/reporting-plugin-config/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3811 - test-parent - 1.0-SNAPSHOT - pom - - MNG-3811 :: Parent - Test inheritance of reporting plugin configuration - - - child - - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - true - - parentParam - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/reporting-plugin-config/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/reporting-plugin-config/sub/pom.xml deleted file mode 100644 index b0768271..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/reporting-plugin-config/sub/pom.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3811 - test-parent - 1.0-SNAPSHOT - - test-child - - MNG-3811 :: Child - - - - - org.apache.maven.its.plugins - maven-it-plugin-configuration - 2.1-SNAPSHOT - - - childParam - preserve space - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/single-configuration-inheritance/jetty-parent.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/single-configuration-inheritance/jetty-parent.xml deleted file mode 100644 index 40031e36..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/single-configuration-inheritance/jetty-parent.xml +++ /dev/null @@ -1,37 +0,0 @@ - - 4.0.0 - org.mortbay.jetty - jetty-parent - pom - Jetty :: Administrative Parent - 7 - - - - - - org.apache.maven.plugins - maven-enforcer-plugin - 1.0-alpha-3 - - - enforce-java - - enforce - - - - - [2.0.6,) - - - [1.5,) - - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/single-configuration-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/single-configuration-inheritance/pom.xml deleted file mode 100644 index 695ffaff..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/single-configuration-inheritance/pom.xml +++ /dev/null @@ -1,41 +0,0 @@ - - 4.0.0 - - org.mortbay.jetty - jetty-parent - 7 - jetty-parent.xml - - org.mortbay.jetty - project - pom - Jetty Server Project - 6.1.12 - - install - - - org.apache.maven.plugins - maven-enforcer-plugin - - - enforce-java - - enforce - - - - - 2.0.6 - - - [1.4,) - - - - - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/sytem-property-interpolation/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/sytem-property-interpolation/pom.xml deleted file mode 100644 index 7d48d903..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/sytem-property-interpolation/pom.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - 4.0.0 - - gid - aid - 1.0 - - ${system.property} - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unc-path/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unc-path/pom.xml deleted file mode 100644 index be2a825a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unc-path/pom.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3621 - test-parent - 1.0-SNAPSHOT - pom - - MNG-3621 :: Parent - Test inheritance of UNC paths - - - child - - - - - site - file:////host/site - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unc-path/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unc-path/sub/pom.xml deleted file mode 100644 index fddd8723..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unc-path/sub/pom.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3621 - test-parent - 1.0-SNAPSHOT - - test-child - - MNG-3621 :: Child - - - - - org.apache.maven.its.plugins - maven-it-plugin-expression - 2.1-SNAPSHOT - - target/pom.properties - - project/distributionManagement/site/url - - - - - test - validate - - eval - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-dependency-key/dep-mngt-in-profile/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-dependency-key/dep-mngt-in-profile/pom.xml deleted file mode 100644 index 38ad7f71..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-dependency-key/dep-mngt-in-profile/pom.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4005 - b - 0.1 - jar - - - - test - - - - org.apache.maven.its.mng4005 - a - 0.1 - - - org.apache.maven.its.mng4005 - a - 0.2 - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-dependency-key/dep-mngt/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-dependency-key/dep-mngt/pom.xml deleted file mode 100644 index de69bb4b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-dependency-key/dep-mngt/pom.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4005 - b - 0.1 - jar - - - - - org.apache.maven.its.mng4005 - a - 0.1 - - - org.apache.maven.its.mng4005 - a - 0.2 - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-dependency-key/deps-in-profile/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-dependency-key/deps-in-profile/pom.xml deleted file mode 100644 index 8d4ae56d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-dependency-key/deps-in-profile/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4005 - b - 0.1 - jar - - - - test - - - org.apache.maven.its.mng4005 - a - 0.1 - - - org.apache.maven.its.mng4005 - a - 0.2 - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-dependency-key/deps/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-dependency-key/deps/pom.xml deleted file mode 100644 index a629c9f5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-dependency-key/deps/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4005 - b - 0.1 - jar - - - - org.apache.maven.its.mng4005 - a - 0.1 - - - org.apache.maven.its.mng4005 - a - 0.2 - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-repo-id/artifact-repo-in-profile/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-repo-id/artifact-repo-in-profile/pom.xml deleted file mode 100644 index eb73c4e2..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-repo-id/artifact-repo-in-profile/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4193 - test - 0.1 - jar - - Maven Integration Test :: MNG-4193 - - Test that multiple artifact repository declarations with the same id cause a validation error even if the - repositories are defined within a (non-active) profile. - - - - - test - - - one - http://repo1.maven.org/maven2 - - - one - http://repository.codehaus.org/ - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-repo-id/artifact-repo/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-repo-id/artifact-repo/pom.xml deleted file mode 100644 index 76d4f74a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-repo-id/artifact-repo/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4193 - test - 0.1 - jar - - Maven Integration Test :: MNG-4193 - - Test that multiple artifact repository declarations with the same id cause a validation error. - - - - - one - http://repo1.maven.org/maven2 - - - one - http://repository.codehaus.org/ - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-repo-id/plugin-repo-in-profile/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-repo-id/plugin-repo-in-profile/pom.xml deleted file mode 100644 index ac1fada5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-repo-id/plugin-repo-in-profile/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4193 - test - 0.1 - jar - - Maven Integration Test :: MNG-4193 - - Test that multiple plugin repository declarations with the same id cause a validation error even if the - repositories are defined within a (non-active) profile. - - - - - test - - - one - http://repo1.maven.org/maven2 - - - one - http://repository.codehaus.org/ - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-repo-id/plugin-repo/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-repo-id/plugin-repo/pom.xml deleted file mode 100644 index 92fd1264..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unique-repo-id/plugin-repo/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4193 - test - 0.1 - jar - - Maven Integration Test :: MNG-4193 - - Test that multiple plugin repository declarations with the same id cause a validation error. - - - - - one - http://repo1.maven.org/maven2 - - - one - http://repository.codehaus.org/ - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unprefixed-expression-interpolation/child/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unprefixed-expression-interpolation/child/pom.xml deleted file mode 100644 index 9304f5d0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unprefixed-expression-interpolation/child/pom.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng3831 - parent - 1.0 - - - org.apache.maven.its.mng3831.child - child - 2.0-alpha-1 - jar - - child-name - child-desc - http://child.org/ - 2008 - - child-org-name - - - - 2.0.0 - - - - http://scm.org/ - - - http://issue.org/ - - - http://ci.org/ - - - - maven-core-it - child-dist-repo - http://dist.org/ - - - maven-core-it - child-site - http://site.org/ - - - - - - ${basedir} - ${groupId} - ${artifactId} - ${version} - ${packaging} - ${name} - ${description} - ${url} - ${inceptionYear} - ${organization.name} - ${prerequisites.maven} - ${scm.url} - ${issueManagement.url} - ${ciManagement.url} - ${distributionManagement.repository.name} - ${distributionManagement.repository.url} - ${distributionManagement.site.url} - ${build.outputDirectory} - ${reporting.outputDirectory} - ${parent.groupId} - ${parent.artifactId} - ${parent.version} - - - - target/bin - - - - target/doc - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unprefixed-expression-interpolation/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unprefixed-expression-interpolation/pom.xml deleted file mode 100644 index 768a5e98..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/unprefixed-expression-interpolation/pom.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3831 - parent - 1.0 - pom - - Maven Integration Test :: MNG-3831 - Test POM interpolation with expressions of the form $ { * } (ugly but real) - - - parent/child - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-append/child/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-append/child/pom.xml deleted file mode 100644 index 1f377df1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-append/child/pom.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - 4.0.0 - - - org.apache.maven.its.mng2006 - parent - 0.1 - ../parent/pom.xml - - - child - Child Project - - Test that inheritance of those URLs which automatically append the child's artifact id take the child's - relative location to the parent into account. - - - - - - org.apache.maven.its.plugins - maven-it-plugin-expression - 2.1-SNAPSHOT - - - validate - - eval - - - target/pom.properties - - project/url - project/scm - project/distributionManagement/site - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-append/parent/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-append/parent/pom.xml deleted file mode 100644 index f8b069f8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-append/parent/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng2006 - parent - 0.1 - pom - - Maven Integration Test :: MNG-2006 - - Test that inheritance of those URLs which automatically append the child's artifact id take the child's - relative location to the parent into account. - - - - ../child - - - http://project.url/parent - - - http://viewvc.project.url/parent - http://scm.project.url/parent - https://scm.project.url/parent - - - - http://site.project.url/parent - parent.site - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-inheritance/another-parent/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-inheritance/another-parent/pom.xml deleted file mode 100644 index 463772fe..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-inheritance/another-parent/pom.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - 4.0.0 - - - - - org.apache.maven.its.mng3846 - parent - 0.1 - - - ap - pom - Another Parent to test multi-level URL adjustment - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-inheritance/another-parent/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-inheritance/another-parent/sub/pom.xml deleted file mode 100644 index 128e63d1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-inheritance/another-parent/sub/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - 4.0.0 - - - - - org.apache.maven.its.mng3846 - ap - 0.1 - - - child - Child Project - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-inheritance/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-inheritance/pom.xml deleted file mode 100644 index ed4cdf08..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-inheritance/pom.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3846 - parent - 0.1 - pom - - Maven Integration Test :: MNG-3846 - - Test that inheritance of certain URLs automatically appends the child's artifact id. - - - http://parent.url - - parent-org - http://parent.url/org - - - - parent-license - http://parent.url/license.txt - repo - - - - - http://parent.url/viewvc - http://parent.url/scm - https://parent.url/scm - - - http://parent.url/issues - - - http://parent.url/ci - - - - http://parent.url/dist - parent.distros - - - http://parent.url/snaps - parent.snaps - - - http://parent.url/site - parent.site - - http://parent.url/download - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-inheritance/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-inheritance/sub/pom.xml deleted file mode 100644 index c8e9c108..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-inheritance/sub/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - 4.0.0 - - - - - org.apache.maven.its.mng3846 - parent - 0.1 - - - child - Child Project - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-no-decoding/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-no-decoding/pom.xml deleted file mode 100644 index 2dcceb93..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/url-no-decoding/pom.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4116 - test - 1.0-SNAPSHOT - jar - - Maven Integration Test :: MNG-4116 - - Test that the project builder does not decode URLs (which must be done by the transport layer instead). - - - - http://maven.apache.org/spacy%20path - - scm:svn:svn+ssh://svn.apache.org/spacy%20path - scm:svn:svn+ssh://svn.apache.org/spacy%20path - http://svn.apache.org/viewvc/spacy%20path - - - none - http://issues.apache.org/spacy%20path - - - none - http://ci.apache.org/spacy%20path - - - - dist - scm:svn:svn+ssh://dist.apache.org/spacy%20path - - - snap - scm:svn:svn+ssh://snap.apache.org/spacy%20path - - - site - scm:svn:svn+ssh://site.apache.org/spacy%20path - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/xml-coalesce-text/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/xml-coalesce-text/pom.xml deleted file mode 100644 index 5822d8d3..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/xml-coalesce-text/pom.xml +++ /dev/null @@ -1,567 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3839 - coreit - 0.1 - jar - - Maven Integration Test :: MNG-3839 - - Test that POM parsing properly coalesces text data. - - - - - A ProjectProperty - - - That's a test! - - - -00 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -01 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -02 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -03 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -04 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -05 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -06 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -07 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -08 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -09 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -10 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -11 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -12 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -13 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -14 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -15 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -16 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -17 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -18 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -19 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -20 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -21 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -22 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -23 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -24 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -25 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -26 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -27 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -28 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -29 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -30 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -31 KB 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X -0 1 2 3 4 5 6 X - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/xml-markup-interpolation/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/xml-markup-interpolation/pom.xml deleted file mode 100644 index 584712fd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/xml-markup-interpolation/pom.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng3924 - test - 0.1-SNAPSHOT - jar - - Maven Integration Test :: MNG-3924 - - Test that interpolation of properties that resolve to XML markup doesn't crash the project builder. - - - - - <?xml version='1.0'?>Tom&Jerry - - ${xmlMarkup} - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/xml-whitespace/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/xml-whitespace/pom.xml deleted file mode 100644 index 433dd522..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/xml-whitespace/pom.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - 4.0.0 - - - - org.apache.maven.its.mng4070 - - - parent - - - 1.0 - - - pom - - - Maven Integration Test :: MNG-4070 - - Test that whitespace around artifact coordinates does not change artifact identity. - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/xml-whitespace/sub/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/xml-whitespace/sub/pom.xml deleted file mode 100644 index f5ea684d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-project-builder/xml-whitespace/sub/pom.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - 4.0.0 - - - - org.apache.maven.its.mng4070 - parent - 1.0 - - - subproject - 1.0 - jar - - Maven Integration Test :: MNG-4070 :: Child - - Test that whitespace around artifact coordinates does not change artifact identity. - - - - - - org.apache.maven.its.mng4070 - a - 0.1 - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/repositories/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/repositories/pom.xml deleted file mode 100644 index 97023414..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/repositories/pom.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4107 - test - 1.0-SNAPSHOT - jar - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/repositories/settings.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/repositories/settings.xml deleted file mode 100644 index 6f96f0b6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/repositories/settings.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - maven-core-it-repo - - - maven-core-it-0 - @baseurl@/repo-0 - - ignore - - - false - - - - - - maven-core-it-1 - @baseurl@/repo-1 - - ignore - - - ignore - - - - - - - maven-core-it-repo - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/settings-no-pom/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/settings-no-pom/pom.xml deleted file mode 100644 index ee627826..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/settings-no-pom/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - 4.0.0 - - org.apache.maven.its.mng3099 - maven-mng3099-plugin - 1 - maven-plugin - - maven-mng3099-plugin - Tests properties injected as a result of active profiles in the user settings file. - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/settings-no-pom/settings.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/settings-no-pom/settings.xml deleted file mode 100644 index 964e0512..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/settings-no-pom/settings.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - local-profile - - local-profile-prop-value - - - - - - local-profile - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/test-pom-and-settings-interpolation/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/test-pom-and-settings-interpolation/pom.xml deleted file mode 100644 index 245349a6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/test-pom-and-settings-interpolation/pom.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.mng4107 - test - 1.0-SNAPSHOT - jar - - Maven Integration Test :: MNG-4107 - - Test that POM interpolation uses the property values from the dominant profile source (POM vs. profiles.xml - vs. settings.xml). This boils down to the proper order of profile injection and interpolation, i.e. - interpolate after profiles from all sources are injected. - - - - - ${pomVsSettings} - - - - - pom - - true - - - applied - pom - - - - - - - - org.apache.maven.its.plugins - maven-it-plugin-expression - 2.1-SNAPSHOT - - - validate - - eval - - - target/pom.properties - - project/properties - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/test-pom-and-settings-interpolation/settings.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/test-pom-and-settings-interpolation/settings.xml deleted file mode 100644 index 2d42d495..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources-settings/test-pom-and-settings-interpolation/settings.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - settings - - true - - - applied - settings - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties deleted file mode 100644 index ef45373a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties +++ /dev/null @@ -1 +0,0 @@ -version=2.1-SNAPSHOT \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/META-INF/plexus/components.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/META-INF/plexus/components.xml deleted file mode 100644 index 714cb36b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/META-INF/plexus/components.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - org.apache.maven.lifecycle.binding.LegacyLifecycleParsingTestComponent - default - org.apache.maven.lifecycle.binding.LegacyLifecycleParsingTestComponent - - - - default - - validate - initialize - generate-sources - process-sources - generate-resources - process-resources - compile - process-classes - generate-test-sources - process-test-sources - generate-test-resources - process-test-resources - test-compile - process-test-classes - test - prepare-package - package - pre-integration-test - integration-test - post-integration-test - verify - install - deploy - - - - clean - - pre-clean - clean - post-clean - - - org.apache.maven.plugins:maven-clean-plugin:clean - - - - site - - pre-site - site - post-site - site-deploy - - - org.apache.maven.plugins:maven-site-plugin:site - org.apache.maven.plugins:maven-site-plugin:deploy - - - - - - - org.apache.maven.lifecycle.mapping.LifecycleMapping - test-mapping - org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping - - - - default - - - - org.apache.maven.plugins:maven-site-plugin:attach-descriptor - org.apache.maven.plugins:maven-install-plugin:install - org.apache.maven.plugins:maven-deploy-plugin:deploy - - - org.apache.maven.plugins:maven-site-plugin:attach-descriptor - - - - - - - - org.apache.maven.lifecycle.mapping.LifecycleMapping - test-mapping2 - org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping - - - - default - - - - org.apache.maven.plugins:maven-site-plugin:attach-descriptor, - org.apache.maven.plugins:maven-clean-plugin:clean - - org.apache.maven.plugins:maven-install-plugin:install - org.apache.maven.plugins:maven-deploy-plugin:deploy - - - org.apache.maven.plugins:maven-site-plugin:attach-descriptor - - - - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/canonical-pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/canonical-pom.xml deleted file mode 100644 index 82bf8725..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/canonical-pom.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - 4.0.0 - - maven - maven-core - 2.0-SNAPSHOT - - Maven - - - - - maven-plexus-plugin - 1.0 - - src/conf/plexus.conf - src/conf/plexus.properties - Continuum - - - - - plexus:runtime - - - ContinuumPro - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/dependencyManagement-pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/dependencyManagement-pom.xml deleted file mode 100644 index 2accaca8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/dependencyManagement-pom.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - 4.0.0 - - maven - maven-core - 2.0-SNAPSHOT - - Maven - - - - - maven-test - maven-test-b - 1.0 - - - - - - - - maven-plexus-plugin - 1.0 - - src/conf/plexus.conf - src/conf/plexus.properties - Continuum - - - - - plexus:runtime - - - ContinuumPro - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/distributionManagement-pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/distributionManagement-pom.xml deleted file mode 100644 index 1a8ee7ff..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/distributionManagement-pom.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - 4.0.0 - - maven - maven-core - 2.0-SNAPSHOT - - Maven - - - - repo-id - my snapshot repository - file:///path/to/snapshot/repo - - - repo-id2 - my repository - file:///path/to/repo - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-a-1.0.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-a-1.0.jar deleted file mode 100644 index 257cc564..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-a-1.0.jar +++ /dev/null @@ -1 +0,0 @@ -foo diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-a-1.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-a-1.1.jar deleted file mode 100644 index 257cc564..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-a-1.1.jar +++ /dev/null @@ -1 +0,0 @@ -foo diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-b-1.0.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-b-1.0.jar deleted file mode 100644 index 257cc564..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-b-1.0.jar +++ /dev/null @@ -1 +0,0 @@ -foo diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-b-1.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-b-1.1.jar deleted file mode 100644 index 257cc564..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-b-1.1.jar +++ /dev/null @@ -1 +0,0 @@ -foo diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-c-1.0.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-c-1.0.jar deleted file mode 100644 index 257cc564..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-c-1.0.jar +++ /dev/null @@ -1 +0,0 @@ -foo diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-c-1.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-c-1.1.jar deleted file mode 100644 index 257cc564..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-c-1.1.jar +++ /dev/null @@ -1 +0,0 @@ -foo diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-d-1.0.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-d-1.0.jar deleted file mode 100644 index 257cc564..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-d-1.0.jar +++ /dev/null @@ -1 +0,0 @@ -foo diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-d-1.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-d-1.1.jar deleted file mode 100644 index 257cc564..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-d-1.1.jar +++ /dev/null @@ -1 +0,0 @@ -foo diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-d-1.2.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-d-1.2.jar deleted file mode 100644 index 257cc564..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/jars/maven-test-d-1.2.jar +++ /dev/null @@ -1 +0,0 @@ -foo diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-a-1.0.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-a-1.0.pom deleted file mode 100644 index 93fc0d0b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-a-1.0.pom +++ /dev/null @@ -1,14 +0,0 @@ - - 4.0.0 - maven-test - maven-test-a - jar - 1.0 - - - central - Fake Maven Central Repository - file://dummy - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-a-1.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-a-1.1.pom deleted file mode 100644 index a0830861..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-a-1.1.pom +++ /dev/null @@ -1,14 +0,0 @@ - - 4.0.0 - maven-test - maven-test-a - jar - 1.1 - - - central - Fake Maven Central Repository - file://dummy - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-b-1.0.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-b-1.0.pom deleted file mode 100644 index c173c663..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-b-1.0.pom +++ /dev/null @@ -1,7 +0,0 @@ - - 4.0.0 - maven-test - maven-test-b - jar - 1.0 - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-b-1.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-b-1.1.pom deleted file mode 100644 index fff241a1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-b-1.1.pom +++ /dev/null @@ -1,7 +0,0 @@ - - 4.0.0 - maven-test - maven-test-b - jar - 1.1 - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-c-1.0.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-c-1.0.pom deleted file mode 100644 index 1f049786..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-c-1.0.pom +++ /dev/null @@ -1,7 +0,0 @@ - - 4.0.0 - maven-test - maven-test-c - jar - 1.0 - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-c-1.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-c-1.1.pom deleted file mode 100644 index 8bd52514..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-c-1.1.pom +++ /dev/null @@ -1,7 +0,0 @@ - - 4.0.0 - maven-test - maven-test-c - jar - 1.1 - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-d-1.0.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-d-1.0.pom deleted file mode 100644 index ac6ef12e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-d-1.0.pom +++ /dev/null @@ -1,7 +0,0 @@ - - 4.0.0 - maven-test - maven-test-d - jar - 1.0 - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-d-1.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-d-1.1.pom deleted file mode 100644 index 6e22f608..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-d-1.1.pom +++ /dev/null @@ -1,7 +0,0 @@ - - 4.0.0 - maven-test - maven-test-d - jar - 1.1 - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-d-1.2.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-d-1.2.pom deleted file mode 100644 index 16f8d905..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/maven-test/poms/maven-test-d-1.2.pom +++ /dev/null @@ -1,7 +0,0 @@ - - 4.0.0 - maven-test - maven-test-d - jar - 1.2 - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/p1/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/p1/pom.xml deleted file mode 100644 index 7bfca342..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/p1/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - p0 - maven - 1.0 - - 4.0.0 - maven - p1 - pom - p1 - 1.0 - - scm-url - - - - - maven-test - maven-test-b - 1.0 - - - - - - maven-test - maven-test-a - - - maven-test - maven-test-b - - - - - - maven-antrun-plugin - - ${project.parent.basedir} - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/p2/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/p2/pom.xml deleted file mode 100644 index b45ce9c6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/p2/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - p0 - maven - 1.0 - - 4.0.0 - maven - p2 - pom - p2 - 1.0 - - scm-url - - - - - maven - p1 - 1.0 - pom - import - - - maven-test - maven-test-c - 1.0 - - - - - - maven-test - maven-test-a - - - maven-test - maven-test-b - - - maven-test - maven-test-c - - - - - - maven-antrun-plugin - - ${project.parent.basedir} - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/p3/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/p3/pom.xml deleted file mode 100644 index e9648e39..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/p3/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - p0 - maven - 1.0 - - 4.0.0 - maven - p3 - pom - p3 - 1.0 - - scm-url - - - - - maven-test - maven-test-a - 1.1 - - - maven-test - maven-test-c - 1.1 - - - maven-test - maven-test-d - 1.0 - - - - - - maven-test - maven-test-a - - - maven-test - maven-test-c - - - maven-test - maven-test-d - - - - - - maven-antrun-plugin - - ${project.parent.basedir} - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/p4/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/p4/pom.xml deleted file mode 100644 index 7ffef9d7..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/p4/pom.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - p0 - maven - 1.0 - - 4.0.0 - maven - p4 - pom - p4 - 1.0 - - scm-url - - - - - maven - p2 - 1.0 - pom - import - - - maven - p3 - 1.0 - pom - import - - - maven-test - maven-test-b - 1.1 - - - - - - maven-test - maven-test-a - - - maven-test - maven-test-b - - - maven-test - maven-test-c - - - maven-test - maven-test-d - - - - - - maven-antrun-plugin - - ${project.parent.basedir} - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/pom.xml deleted file mode 100644 index 3ccf7e63..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/imports-repo/t01/p0/pom.xml +++ /dev/null @@ -1,26 +0,0 @@ - - 4.0.0 - maven - p0 - pom - p0 - 1.0 - - Codehaus - - - - - maven-test - maven-test-a - 1.0 - - - - - p1 - p2 - p3 - p4 - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/marker.txt b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/marker.txt deleted file mode 100644 index d9bab060..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/marker.txt +++ /dev/null @@ -1 +0,0 @@ -this is just a marker file. \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/jars/maven-test-a-1.0.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/jars/maven-test-a-1.0.jar deleted file mode 100644 index 257cc564..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/jars/maven-test-a-1.0.jar +++ /dev/null @@ -1 +0,0 @@ -foo diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/jars/maven-test-b-1.0.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/jars/maven-test-b-1.0.jar deleted file mode 100644 index 257cc564..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/jars/maven-test-b-1.0.jar +++ /dev/null @@ -1 +0,0 @@ -foo diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/jars/maven-test-c-1.0.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/jars/maven-test-c-1.0.jar deleted file mode 100644 index 257cc564..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/jars/maven-test-c-1.0.jar +++ /dev/null @@ -1 +0,0 @@ -foo diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/jars/maven-test-d-1.0.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/jars/maven-test-d-1.0.jar deleted file mode 100644 index 257cc564..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/jars/maven-test-d-1.0.jar +++ /dev/null @@ -1 +0,0 @@ -foo diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-a-1.0.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-a-1.0.pom deleted file mode 100644 index 6905f6c8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-a-1.0.pom +++ /dev/null @@ -1,23 +0,0 @@ - - 4.0.0 - maven-test - maven-test-a - jar - 1.0 - - - central - Fake Maven Central Repository - file://dummy - - - - - maven-test - maven-test-b - 1.0 - jar - compile - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-b-1.0.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-b-1.0.pom deleted file mode 100644 index e814951a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-b-1.0.pom +++ /dev/null @@ -1,23 +0,0 @@ - - 4.0.0 - maven-test - maven-test-b - jar - 1.0 - - - maven-test - maven-test-c - 1.0 - jar - compile - - - maven-test - maven-test-d - 1.1 - jar - compile - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-c-1.0.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-c-1.0.pom deleted file mode 100644 index 4631b88f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-c-1.0.pom +++ /dev/null @@ -1,16 +0,0 @@ - - 4.0.0 - maven-test - maven-test-c - jar - 1.0 - - - maven-test - maven-test-d - 1.2 - jar - compile - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-d-1.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-d-1.1.pom deleted file mode 100644 index 6e22f608..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-d-1.1.pom +++ /dev/null @@ -1,7 +0,0 @@ - - 4.0.0 - maven-test - maven-test-d - jar - 1.1 - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-d-1.2.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-d-1.2.pom deleted file mode 100644 index 6e22f608..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/maven-test/poms/maven-test-d-1.2.pom +++ /dev/null @@ -1,7 +0,0 @@ - - 4.0.0 - maven-test - maven-test-d - jar - 1.1 - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-a-1.0-SNAPSHOT.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-a-1.0-SNAPSHOT.jar deleted file mode 100644 index c2c027fe..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-a-1.0-SNAPSHOT.jar +++ /dev/null @@ -1 +0,0 @@ -local \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-a-1.0-SNAPSHOT.jar.snapshot-version b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-a-1.0-SNAPSHOT.jar.snapshot-version deleted file mode 100644 index 09f9180f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-a-1.0-SNAPSHOT.jar.snapshot-version +++ /dev/null @@ -1 +0,0 @@ -20040101.101010 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-b-1.0-SNAPSHOT.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-b-1.0-SNAPSHOT.jar deleted file mode 100644 index c2c027fe..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-b-1.0-SNAPSHOT.jar +++ /dev/null @@ -1 +0,0 @@ -local \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-b-1.0-SNAPSHOT.jar.snapshot-version b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-b-1.0-SNAPSHOT.jar.snapshot-version deleted file mode 100644 index 09f9180f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-b-1.0-SNAPSHOT.jar.snapshot-version +++ /dev/null @@ -1 +0,0 @@ -20040101.101010 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-e-1.0-SNAPSHOT.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-e-1.0-SNAPSHOT.jar deleted file mode 100644 index c2c027fe..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-e-1.0-SNAPSHOT.jar +++ /dev/null @@ -1 +0,0 @@ -local \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-e-1.0-SNAPSHOT.jar.snapshot-version b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-e-1.0-SNAPSHOT.jar.snapshot-version deleted file mode 100644 index 09f9180f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/jars/maven-snapshot-e-1.0-SNAPSHOT.jar.snapshot-version +++ /dev/null @@ -1 +0,0 @@ -20040101.101010 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/poms/maven-test-snapshot-resolving-1.0.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/poms/maven-test-snapshot-resolving-1.0.pom deleted file mode 100644 index 64a075f4..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/local-repo/snapshot-test/poms/maven-test-snapshot-resolving-1.0.pom +++ /dev/null @@ -1,49 +0,0 @@ - - snapshot-test - maven-test-snapshot-resolving - jar - - - central - Fake Maven Central Repository - file://dummy - - - - - snapshot-test - maven-snapshot-a - 1.0-SNAPSHOT - jar - compile - - - snapshot-test - maven-snapshot-b - 1.0-SNAPSHOT - jar - compile - - - snapshot-test - maven-snapshot-c - 1.0-SNAPSHOT - jar - compile - - - snapshot-test - maven-snapshot-d - 1.0-SNAPSHOT - jar - compile - - - snapshot-test - maven-snapshot-e - 1.0-SNAPSHOT - jar - compile - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/MavenLifecycleParticipantTest.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/MavenLifecycleParticipantTest.xml deleted file mode 100644 index ebbbf791..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/MavenLifecycleParticipantTest.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - org.apache.maven.project.ProjectBuildingHelper - org.apache.maven.project.EmptyProjectBuildingHelper - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/execution/test-extension-1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/execution/test-extension-1.jar deleted file mode 100644 index 0272ee3c..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/execution/test-extension-1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.jar deleted file mode 100644 index 674d71e8..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.jar.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.jar.md5 deleted file mode 100644 index 92c6c765..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.jar.md5 +++ /dev/null @@ -1 +0,0 @@ -1f40fb782a4f2cf78f161d32670f7a3a \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.jar.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.jar.sha1 deleted file mode 100644 index ed10f030..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -99129f16442844f6a4a11ae22fbbee40b14d774f \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.pom deleted file mode 100644 index 2169a65d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.pom +++ /dev/null @@ -1,29 +0,0 @@ - - - 4.0.0 - junit - junit - 3.8.1 - JUnit - http://junit.org - - JUnit is a regression testing framework written by Erich Gamma and Kent Beck. It is used by the developer who implements unit tests in Java. - - - JUnit - http://www.junit.org - - - - Common Public License Version 1.0 - http://www.opensource.org/licenses/cpl1.0.txt - - - - http://junit.cvs.sourceforge.net/junit/ - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.pom.md5 deleted file mode 100644 index 51e102f6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -50b40cb7342f52b702e6337d5debf1ae \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.pom.sha1 deleted file mode 100644 index 82ac6705..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/junit/junit/3.8.1/junit-3.8.1.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -16d74791c801c89b0071b1680ea0bc85c93417bb \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/apache/3/apache-3.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/apache/3/apache-3.pom deleted file mode 100644 index 1fc7e406..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/apache/3/apache-3.pom +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - 4.0.0 - - - org.apache - apache - 3 - pom - The Apache Software Foundation - - The Apache Software Foundation provides support for the Apache community of open-source software projects. - The Apache projects are characterized by a collaborative, consensus based development process, an open and - pragmatic software license, and a desire to create high quality software that leads the way in its field. - We consider ourselves not simply a group of projects sharing a server, but rather a community of developers - and users. - - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - Apache Software Foundation - http://www.apache.org/ - - http://www.apache.org/ - - - apache.snapshots - Apache Snapshot Repository - http://people.apache.org/repo/m2-snapshot-repository - - false - - - - - - - apache.releases - Apache Release Distribution Repository - scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository - - - apache.snapshots - Apache Development Snapshot Repository - scp://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository - - - - - Apache Announce List - announce-subscribe@apache.org - announce-unsubscribe@apache.org - announce@apache.org - http://mail-archives.apache.org/mod_mbox/www-announce/ - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/apache/3/apache-3.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/apache/3/apache-3.pom.md5 deleted file mode 100644 index b9d0ea16..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/apache/3/apache-3.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -c857ebbb5f303f435495e40e6c9e45a2 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/apache/3/apache-3.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/apache/3/apache-3.pom.sha1 deleted file mode 100644 index ffb57bbc..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/apache/3/apache-3.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -1bc0010136a890e2fd38d901a0b7ecdf0e3f9871 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.jar deleted file mode 100644 index 5bc9c06c..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.jar.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.jar.md5 deleted file mode 100644 index 5ff89e83..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.jar.md5 +++ /dev/null @@ -1 +0,0 @@ -430da483dcfb2964a9dcd619c29a6c78 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.jar.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.jar.sha1 deleted file mode 100644 index a3418804..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -ea9e3f3fdc25f386d5f9ac861a55b6c3bb773d91 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.pom deleted file mode 100644 index 8de3ce6d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.pom +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - maven-parent - org.apache.maven - 5 - - 4.0.0 - org.apache.maven.artifact - maven-artifact - 3.0-SNAPSHOT - Maven Artifact - - scm:svn:http://svn.apache.org/repos/asf/maven/artifact/trunk - scm:svn:https://svn.apache.org/repos/asf/maven/artifact/trunk - http://svn.apache.org/viewcvs.cgi/maven/artifact/trunk - - - - org.codehaus.plexus - plexus-utils - 1.4.5 - - - org.codehaus.plexus - plexus-container-default - 1.0-alpha-32 - - - org.codehaus.plexus - plexus-active-collections - 1.0-beta-1 - - - org.apache.maven.wagon - wagon-provider-api - 1.0-beta-2 - - - org.apache.maven.wagon - wagon-file - 1.0-beta-2 - test - - - easymock - easymock - 1.2_Java1.3 - test - - - - - - org.codehaus.modello - modello-maven-plugin - 1.0-alpha-17 - - 1.0.0 - src/main/mdo/metadata.mdo - - - - site-docs - pre-site - - xdoc - xsd - - - - standard - - java - xpp3-reader - xpp3-writer - - - - - - maven-surefire-plugin - - - **/testutils/** - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.pom.md5 deleted file mode 100644 index 11e35363..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -794377b5385c68c660ee9ca26e6b5cf1 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.pom.sha1 deleted file mode 100644 index 4beb688d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -358254e73f075bcfb9d587d0da553083abd0cc45 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-extension/1/test-extension-1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-extension/1/test-extension-1.jar deleted file mode 100644 index 0272ee3c..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-extension/1/test-extension-1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-extension/1/test-extension-1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-extension/1/test-extension-1.pom deleted file mode 100644 index 70114e72..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-extension/1/test-extension-1.pom +++ /dev/null @@ -1,73 +0,0 @@ - - 4.0.0 - org.apache.maven.core.test - test-extension - jar - 1 - test-extension - - - - org.apache.maven.artifact - maven-artifact - 3.0-SNAPSHOT - - - org.codehaus.plexus - plexus-utils - 1.1 - - - org.codehaus.plexus - plexus - 1.0.11 - pom - - - org.codehaus.plexus - plexus-component-api - 1.0-alpha-16 - - - org.codehaus.plexus - plexus-container-default - 1.0-alpha-16 - - - - - - - maven-assembly-plugin - 2.2-beta-2-SNAPSHOT - - - repo-assembly - package - - single - - - - repo.xml - - test-extension - true - ${pom.basedir}/../../resources/org/apache/maven/extension - true - - - - - - - - - - dummy - file:///tmp/dummy-repo - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-extension/1/test-extension-1.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-extension/1/test-extension-1.pom.md5 deleted file mode 100644 index ad06718c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-extension/1/test-extension-1.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -e8f6e0f4ef9c2ed3fb185ef44165fb40 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-extension/1/test-extension-1.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-extension/1/test-extension-1.pom.sha1 deleted file mode 100644 index 6065ee04..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-extension/1/test-extension-1.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -88ace5d78ee32fa0ce59714a4a42a73af3b52bd3 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-lifecycle-and-artifactHandler/1/test-lifecycle-and-artifactHandler-1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-lifecycle-and-artifactHandler/1/test-lifecycle-and-artifactHandler-1.jar deleted file mode 100644 index 04fe3846..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-lifecycle-and-artifactHandler/1/test-lifecycle-and-artifactHandler-1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-lifecycle-and-artifactHandler/1/test-lifecycle-and-artifactHandler-1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-lifecycle-and-artifactHandler/1/test-lifecycle-and-artifactHandler-1.pom deleted file mode 100644 index d9e4cde9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-lifecycle-and-artifactHandler/1/test-lifecycle-and-artifactHandler-1.pom +++ /dev/null @@ -1,44 +0,0 @@ - - 4.0.0 - org.apache.maven.core.test - test-lifecycle-and-artifactHandler - jar - 1 - test-lifecycle-and-artifactHandler - - - - - maven-assembly-plugin - 2.2-beta-2-SNAPSHOT - - - repo-assembly - package - - single - - - - repo.xml - - test-extension - true - ${pom.basedir}/../../resources/org/apache/maven/extension - true - - - - - - - - - - dummy - file:///tmp/dummy-repo - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-lifecycle-and-artifactHandler/1/test-lifecycle-and-artifactHandler-1.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-lifecycle-and-artifactHandler/1/test-lifecycle-and-artifactHandler-1.pom.md5 deleted file mode 100644 index 01d51942..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-lifecycle-and-artifactHandler/1/test-lifecycle-and-artifactHandler-1.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -7f10427af029d20cbea57c21d1aec65e \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-lifecycle-and-artifactHandler/1/test-lifecycle-and-artifactHandler-1.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-lifecycle-and-artifactHandler/1/test-lifecycle-and-artifactHandler-1.pom.sha1 deleted file mode 100644 index dac1e45a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/core/test/test-lifecycle-and-artifactHandler/1/test-lifecycle-and-artifactHandler-1.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -ed98c808239aefb0ec51a8b9e96f191da7fd92e6 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/4/maven-parent-4.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/4/maven-parent-4.pom deleted file mode 100644 index 132d9d73..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/4/maven-parent-4.pom +++ /dev/null @@ -1,304 +0,0 @@ - - - - - - 4.0.0 - - org.apache - apache - 3 - ../asf/pom.xml - - org.apache.maven - maven-parent - 4 - pom - Apache Maven - - Maven is a software project management and comprehension tool. Based on the concept of a project object model - (POM), Maven can manage a project's build, reporting and documentation from a central piece of information. - - http://maven.apache.org/ - - jira - http://jira.codehaus.org/browse/MPA - - - continuum - http://maven.zones.apache.org:8080/continuum - - - mail - -
    notifications@maven.apache.org
    -
    -
    -
    -
    - 2002 - - - Maven Announcements List - announce@maven.apache.org - announce-subscribe@maven.apache.org - announce-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-announce/ - - - Maven Issues List - issues@maven.apache.org - issues-subscribe@maven.apache.org - issues-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-issues/ - - - Maven Notifications List - notifications@maven.apache.org - notifications-subscribe@maven.apache.org - notifications-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-notifications/ - - - - - - jvanzyl - Jason van Zyl - jason@maven.org - ASF - - PMC Chair - - -5 - - - brett - Brett Porter - brett@apache.org - ASF - - PMC Member - - +10 - - - evenisse - Emmanuel Venisse - evenisse@apache.org - ASF - - PMC Member - - +1 - - - kenney - Kenney Westerhof - kenney@apache.org - Neonics - - PMC Member - - - - snicoll - Stephane Nicoll - snicoll@apache.org - ASF - - PMC Member - - +1 - - - vmassol - Vincent Massol - vmassol@apache.org - ASF - - PMC Member - - +1 - - - fgiust - Fabrizio Giustina - fgiust@apache.org - openmind - - PMC Member - - +1 - - - epunzalan - Edwin Punzalan - epunzalan@mergere.com - Mergere - - Committer - - +8 - - - mperham - Mike Perham - mperham@gmail.com - IBM - - PMC Member - - -6 - - - jdcasey - John Casey - jdcasey@apache.org - ASF - - PMC Member - - -5 - - - trygvis - Trygve Laugstol - trygvis@apache.org - ASF - - PMC Member - - +1 - - - vsiveton - Vincent Siveton - vsiveton@apache.org - ASF - - PMC Member - - -5 - - - carlos - Carlos Sanchez - carlos@apache.org - ASF - - PMC Member - - +1 - - - dennisl - Dennis Lundberg - dennisl@apache.org - ASF - - PMC Member - - +1 - - - - - - apache.website - scp://people.apache.org/www/maven.apache.org - - - - - - - - - org.apache.maven.plugins - maven-surefire-report-plugin - - - org.apache.maven.plugins - maven-checkstyle-plugin - - http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/config/maven_checks.xml - http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/config/maven-header.txt - - - - org.apache.maven.plugins - maven-pmd-plugin - - - org.codehaus.mojo - cobertura-maven-plugin - - - org.codehaus.mojo - taglist-maven-plugin - - - org.apache.maven.plugins - maven-jxr-plugin - - - org.apache.maven.plugins - maven-javadoc-plugin - - - http://java.sun.com/j2ee/1.4/docs/api - http://java.sun.com/j2se/1.5.0/docs/api - http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/ - http://jakarta.apache.org/commons/dbcp/apidocs/ - http://jakarta.apache.org/commons/fileupload/apidocs/ - http://jakarta.apache.org/commons/httpclient/apidocs/ - http://jakarta.apache.org/commons/logging/apidocs/ - http://jakarta.apache.org/commons/pool/apidocs/ - http://www.junit.org/junit/javadoc/ - http://logging.apache.org/log4j/docs/api/ - http://jakarta.apache.org/regexp/apidocs/ - http://jakarta.apache.org/velocity/api/ - - - - - - - - scm:svn:http://svn.apache.org/repos/asf/maven/pom/maven/tags/maven-parent-4 - scm:svn:https://svn.apache.org/repos/asf/maven/pom/maven/tags/maven-parent-4 - http://svn.apache.org/viewvc/maven/pom/maven/tags/maven-parent-4 - -
    - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/4/maven-parent-4.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/4/maven-parent-4.pom.md5 deleted file mode 100644 index 9c417645..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/4/maven-parent-4.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -2a4e926f3a76c6e74b0b126f513ad4e7 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/4/maven-parent-4.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/4/maven-parent-4.pom.sha1 deleted file mode 100644 index b6caacf5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/4/maven-parent-4.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -0fc039b0bd4d17d7c147a30e1d83994629c5297c \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/5/maven-parent-5.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/5/maven-parent-5.pom deleted file mode 100644 index b3350401..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/5/maven-parent-5.pom +++ /dev/null @@ -1,466 +0,0 @@ - - - - - - 4.0.0 - - org.apache - apache - 3 - ../asf/pom.xml - - org.apache.maven - maven-parent - 5 - pom - Apache Maven - - Maven is a software project management and comprehension tool. Based on the concept of a project object model - (POM), Maven can manage a project's build, reporting and documentation from a central piece of information. - - http://maven.apache.org/ - - jira - http://jira.codehaus.org/browse/MPA - - - continuum - http://maven.zones.apache.org/continuum - - - mail - -
    notifications@maven.apache.org
    -
    -
    -
    -
    - 2002 - - - Maven Announcements List - announce@maven.apache.org - announce-subscribe@maven.apache.org - announce-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-announce/ - - - Maven Issues List - issues@maven.apache.org - issues-subscribe@maven.apache.org - issues-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-issues/ - - - Maven Notifications List - notifications@maven.apache.org - notifications-subscribe@maven.apache.org - notifications-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-notifications/ - - - - - - jvanzyl - Jason van Zyl - jason@maven.org - ASF - - PMC Chair - - -5 - - - brett - Brett Porter - brett@apache.org - ASF - - PMC Member - - +10 - - - evenisse - Emmanuel Venisse - evenisse@apache.org - ASF - - PMC Member - - +1 - - - kenney - Kenney Westerhof - kenney@apache.org - Neonics - - PMC Member - - +1 - - - snicoll - Stephane Nicoll - snicoll@apache.org - ASF - - PMC Member - - +1 - - - vmassol - Vincent Massol - vmassol@apache.org - ASF - - PMC Member - - +1 - - - fgiust - Fabrizio Giustina - fgiust@apache.org - openmind - - PMC Member - - +1 - - - epunzalan - Edwin Punzalan - epunzalan@mergere.com - Mergere - - Committer - - +8 - - - mperham - Mike Perham - mperham@gmail.com - IBM - - PMC Member - - -6 - - - jdcasey - John Casey - jdcasey@apache.org - ASF - - PMC Member - - -5 - - - trygvis - Trygve Laugstol - trygvis@apache.org - ASF - - PMC Member - - +1 - - - vsiveton - Vincent Siveton - vsiveton@apache.org - ASF - - PMC Member - - -5 - - - carlos - Carlos Sanchez - carlos@apache.org - ASF - - PMC Member - - +1 - - - dennisl - Dennis Lundberg - dennisl@apache.org - ASF - - PMC Member - - +1 - - - aheritier - Arnaud Heritier - aheritier@apache.org - ASF - - PMC Member - - +1 - - - handyande - Andrew Williams - handyande@apache.org - - Committer - - 0 - - - jtolentino - Ernesto Tolentino Jr. - jtolentino@apache.org - ASF - - PMC Member - - +8 - - - joakime - Joakim Erdfelt - joakime@apache.org - ASF - - PMC Member - - -5 - - - jmcconnell - Jesse McConnell - jmcconnell@apache.org - ASF - - PMC Member - - -6 - - - wsmoak - Wendy Smoak - wsmoak@apache.org - - Committer - - -7 - - - - - - - apache.website - scp://people.apache.org/www/maven.apache.org - - - - - - - - org.apache.maven.plugins - maven-release-plugin - 2.0-beta-4 - - - https://svn.apache.org/repos/asf/maven/pom/tags - false - deploy - -Prelease - - - - - - - - - ci - - - - org.apache.maven.plugins - maven-pmd-plugin - - - - cpd-check - - - - - - - - - reporting - - - - org.apache.maven.plugins - maven-surefire-report-plugin - - - org.apache.maven.plugins - maven-checkstyle-plugin - - http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/config/maven_checks.xml - http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/config/maven-header.txt - - - - org.apache.maven.plugins - maven-pmd-plugin - - - org.codehaus.mojo - cobertura-maven-plugin - - - org.codehaus.mojo - taglist-maven-plugin - - - org.apache.maven.plugins - maven-jxr-plugin - - - org.apache.maven.plugins - maven-javadoc-plugin - - - http://java.sun.com/j2ee/1.4/docs/api - http://java.sun.com/j2se/1.5.0/docs/api - http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/ - http://jakarta.apache.org/commons/dbcp/apidocs/ - http://jakarta.apache.org/commons/fileupload/apidocs/ - http://jakarta.apache.org/commons/httpclient/apidocs/ - http://jakarta.apache.org/commons/logging/apidocs/ - http://jakarta.apache.org/commons/pool/apidocs/ - http://www.junit.org/junit/javadoc/ - http://logging.apache.org/log4j/docs/api/ - http://jakarta.apache.org/regexp/apidocs/ - http://jakarta.apache.org/velocity/api/ - - - - - - - - release - - - - - maven-gpg-plugin - 1.0-alpha-1 - - ${gpg.passphrase} - - - - - sign - - - - - - - true - maven-deploy-plugin - 2.3 - - ${deploy.altRepository} - true - - - - - maven-remote-resources-plugin - 1.0-alpha-1 - - - - process - - - - org.apache:apache-jar-resource-bundle:1.0 - - - - - - - org.apache.maven.plugins - maven-source-plugin - 2.0.2 - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.2 - - - attach-javadocs - - jar - - - - - - - - - - - scm:svn:https://svn.apache.org/repos/asf/maven/pom/tags/maven-parent-5 - scm:svn:https://svn.apache.org/repos/asf/maven/pom/tags/maven-parent-5 - https://svn.apache.org/repos/asf/maven/pom/tags/maven-parent-5 - -
    - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/5/maven-parent-5.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/5/maven-parent-5.pom.md5 deleted file mode 100644 index 27ba3aaf..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/5/maven-parent-5.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -4da85635ce64dbec5b00232d5bb26453 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/5/maven-parent-5.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/5/maven-parent-5.pom.sha1 deleted file mode 100644 index 5d7a3eba..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/maven-parent/5/maven-parent-5.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -5c1ab38decaca1ccd08294aeab135047ebbae00d \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.jar deleted file mode 100644 index 79fcf226..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.jar.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.jar.md5 deleted file mode 100644 index 60aecbcd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.jar.md5 +++ /dev/null @@ -1 +0,0 @@ -f41eb4e07a725eea3332743a29057855 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.jar.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.jar.sha1 deleted file mode 100644 index e3f05109..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -abd1c9ace6e87c94a4b91f5176aeb09d954b23a3 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.pom deleted file mode 100644 index dca027b2..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.pom +++ /dev/null @@ -1,21 +0,0 @@ - - - wagon - org.apache.maven.wagon - 1.0-beta-2 - - 4.0.0 - wagon-provider-api - Maven Wagon API - 1.0-beta-2 - Maven Wagon API that defines the contract between different Wagon implementations - - - org.codehaus.plexus - plexus-utils - - - - deployed - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.pom.md5 deleted file mode 100644 index 0f10b3fd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -97f0a0bd0b81520ccccf8736b1fe380c \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.pom.sha1 deleted file mode 100644 index 56b9559d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -8b3013d0754edbeb694831ddf1c5d1a0019ee042 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon/1.0-beta-2/wagon-1.0-beta-2.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon/1.0-beta-2/wagon-1.0-beta-2.pom deleted file mode 100644 index 27faa8ef..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon/1.0-beta-2/wagon-1.0-beta-2.pom +++ /dev/null @@ -1,170 +0,0 @@ - - - 4.0.0 - - maven-parent - org.apache.maven - 4 - ../pom/maven/pom.xml - - org.apache.maven.wagon - wagon - pom - Maven Wagon - 1.0-beta-2 - Tools to manage artifacts and deployment - http://maven.apache.org/wagon - - - jira - http://jira.codehaus.org/browse/WAGON - - 2003 - - - Maven Wagon User List - wagon-users-subscribe@maven.apache.org - wagon-users-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-wagon-users/ - - - Maven Wagon Developer List - wagon-dev-subscribe@maven.apache.org - wagon-dev-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-wagon-dev/ - - - Maven Commits List - wagon-commits-subscribe@maven.apache.org - wagon-commits-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-wagon-commits/ - - - - - michal - Michal Maczka - michal@codehaus.org - Codehaus - - Developer - - - - - scm:svn:https://svn.apache.org/repos/asf/maven/wagon/tags/wagon-1.0-beta-2 - scm:svn:https://svn.apache.org/repos/asf/maven/wagon/tags/wagon-1.0-beta-2 - https://svn.apache.org/repos/asf/maven/wagon/tags/wagon-1.0-beta-2 - - - - - - maven-release-plugin - - https://svn.apache.org/repos/asf/maven/wagon/tags - - - - - - - wagon-provider-api - wagon-provider-test - wagon-providers - - - - junit - junit - test - - - - - - org.apache.maven.wagon - wagon-provider-api - 1.0-beta-2 - - - org.apache.maven.wagon - wagon-provider-test - 1.0-beta-2 - - - org.apache.maven.wagon - wagon-ssh-common-test - 1.0-beta-2 - - - org.apache.maven.wagon - wagon-ssh-common - 1.0-beta-2 - - - junit - junit - 3.8.1 - - - org.codehaus.plexus - plexus-interactivity-api - 1.0-alpha-4 - - - org.codehaus.plexus - plexus-container-default - 1.0-alpha-8 - - - org.codehaus.plexus - plexus-utils - 1.0.4 - - - - - - - sharedResources - - - people.apache.org - http://people.apache.org/repo/m2-snapshot-repository - - true - - - - - - - org.apache.maven.plugins - maven-remote-resources-plugin - 1.0-alpha-1 - - - - process - - - - org.apache:apache-jar-resource-bundle:1.0 - - - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon/1.0-beta-2/wagon-1.0-beta-2.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon/1.0-beta-2/wagon-1.0-beta-2.pom.md5 deleted file mode 100644 index 45e066d7..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon/1.0-beta-2/wagon-1.0-beta-2.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -e739bffedc84a18c6e10a0958e2006ad \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon/1.0-beta-2/wagon-1.0-beta-2.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon/1.0-beta-2/wagon-1.0-beta-2.pom.sha1 deleted file mode 100644 index 5f82f766..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/wagon/wagon/1.0-beta-2/wagon-1.0-beta-2.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -6cf8a47018be792d2b1774d2bacd7541c888ae50 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.jar deleted file mode 100644 index d3232758..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.jar.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.jar.md5 deleted file mode 100644 index 1a9a2b6f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.jar.md5 +++ /dev/null @@ -1 +0,0 @@ -1078ac2103fe666952a3cbcbff19ec71 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.jar.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.jar.sha1 deleted file mode 100644 index 17dbef2e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -c76ce4f9f1a3d04ef849c1d067519b77f07e01f3 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.pom deleted file mode 100644 index 80ac6d90..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.pom +++ /dev/null @@ -1,51 +0,0 @@ - - 4.0.0 - - plexus-components - org.codehaus.plexus - 1.1.6 - - - plexus-active-collections - 1.0-beta-1 - Plexus Container-Backed Active Collections - - - - org.codehaus.plexus - plexus-component-api - 1.0-alpha-16 - - - org.codehaus.plexus - plexus-container-default - 1.0-alpha-16 - - - junit - junit - 3.8.1 - test - - - - - - - maven-surefire-plugin - - - **/TestComponent.java - **/TestBadComponent.java - **/*TCK.java - - - - - - - - scm:svn:https://svn.codehaus.org/plexus/tags/plexus-active-collections-1.0-beta-1 - scm:svn:https://svn.codehaus.org/plexus/tags/plexus-active-collections-1.0-beta-1 - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.pom.md5 deleted file mode 100644 index 14519126..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -d844f3e1934a76cefc25342bf02f3bff \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.pom.sha1 deleted file mode 100644 index 5442cbcd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -cf6a9d40df4ca79c210b2b8a90ce28fffb202769 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.jar deleted file mode 100644 index e2143250..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.jar.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.jar.md5 deleted file mode 100644 index c7dfa1ea..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.jar.md5 +++ /dev/null @@ -1 +0,0 @@ -f55402879506f435a386f2c002ed5001 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.jar.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.jar.sha1 deleted file mode 100644 index a333efb8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -fc41205635dab152bf794785be80a0a70fda686e \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.pom deleted file mode 100644 index be71f49f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.pom +++ /dev/null @@ -1,94 +0,0 @@ - - - - - plexus - org.codehaus.plexus - 1.0.10 - - 4.0.0 - org.codehaus.plexus - plexus-classworlds - jar - Plexus Classworlds - 1.2-alpha-10 - - 2002 - - - junit - junit - 3.8.1 - jar - compile - - - - - - maven-surefire-plugin - - once - - - - maven-compiler-plugin - - - org/codehaus/plexus/classworlds/event/* - - - - - - - - debug - - - aspectj - aspectjrt - 1.5.0 - - - - - - org.codehaus.mojo - aspectj-maven-plugin - - - - compile - - - - - 1.4 - - - - - - - - scm:svn:http://svn.codehaus.org/plexus/plexus-classworlds/tags/plexus-classworlds-1.2-alpha-10 - scm:svn:https://svn.codehaus.org/plexus/plexus-classworlds/tags/plexus-classworlds-1.2-alpha-10 - http://fisheye.codehaus.org/browse/plexus/plexus-classworlds/tags/plexus-classworlds-1.2-alpha-10 - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.pom.md5 deleted file mode 100644 index 47dbce55..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -1a7177f5992983aeb393089af67e51dc \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.pom.sha1 deleted file mode 100644 index eafd9a79..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -11215912b045533ec9aaba9f63ea27acf6da850e \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.jar deleted file mode 100644 index a8f6a7d3..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.jar.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.jar.md5 deleted file mode 100644 index 09c3bbad..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.jar.md5 +++ /dev/null @@ -1 +0,0 @@ -b00a4521e82cd7cdf502039dd59a1ffb \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.jar.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.jar.sha1 deleted file mode 100644 index 9a43138c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -ed03d1eeb9b2576747df0d2883d9006fa5e1febe \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.pom deleted file mode 100644 index 6e29cd26..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.pom +++ /dev/null @@ -1,78 +0,0 @@ - - - plexus - org.codehaus.plexus - 1.0.9 - - 4.0.0 - org.codehaus.plexus - plexus-classworlds - Plexus Classworlds - 1.2-alpha-7 - - 2002 - - scm:svn:http://svn.codehaus.org/plexus/plexus-classworlds/tags/plexus-classworlds-1.2-alpha-7 - scm:svn:https://svn.codehaus.org/plexus/plexus-classworlds/tags/plexus-classworlds-1.2-alpha-7 - http://fisheye.codehaus.org/browse/plexus/plexus-classworlds/tags/plexus-classworlds-1.2-alpha-7 - - - - - maven-surefire-plugin - - once - - - - maven-compiler-plugin - - - org/codehaus/plexus/classworlds/event/* - - - - - - - - debug - - - - org.codehaus.mojo - aspectj-maven-plugin - - - - compile - - - - - 1.4 - - - - - - - aspectj - aspectjrt - 1.5.0 - - - - - - - junit - junit - 3.8.1 - compile - - - - deployed - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.pom.md5 deleted file mode 100644 index e9083e79..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -80962d09b250824806ca66b0bd0ad4c1 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.pom.sha1 deleted file mode 100644 index 4b9e8a40..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -6944ec0d0cab19adf167332f7197e045d64a577c \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.jar deleted file mode 100644 index 85669fdd..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.jar.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.jar.md5 deleted file mode 100644 index 1830fc9e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.jar.md5 +++ /dev/null @@ -1 +0,0 @@ -4fe3c03b97ff12905d0fb10fc5b36766 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.jar.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.jar.sha1 deleted file mode 100644 index 7456120d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -5a2100a1c6a37804b1abfc70000b0ea33b83b7f9 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.pom deleted file mode 100644 index b1511640..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.pom +++ /dev/null @@ -1,63 +0,0 @@ - - - plexus-containers - org.codehaus.plexus - 1.0-alpha-16 - - 4.0.0 - plexus-component-api - Plexus Component API - 1.0-alpha-16 - - - - maven-surefire-plugin - 2.2 - - - **/Test*.java - **/Abstract*.java - - - - - - - - org.codehaus.plexus - plexus-classworlds - - - - - - maven-surefire-report-plugin - - - maven-pmd-plugin - - - maven-javadoc-plugin - - - http://java.sun.com/j2ee/1.4/docs/api - http://java.sun.com/j2se/1.5.0/docs/api - http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/ - http://jakarta.apache.org/commons/dbcp/apidocs/ - http://jakarta.apache.org/commons/fileupload/apidocs/ - http://jakarta.apache.org/commons/httpclient/apidocs/ - http://jakarta.apache.org/commons/logging/apidocs/ - http://jakarta.apache.org/commons/pool/apidocs/ - http://www.junit.org/junit/javadoc/ - http://logging.apache.org/log4j/docs/api/ - http://jakarta.apache.org/regexp/apidocs/ - http://jakarta.apache.org/velocity/api/ - - - - - - - deployed - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.pom.md5 deleted file mode 100644 index 78fc8ace..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -751ea77f1e617aea90f36d7156762bf5 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.pom.sha1 deleted file mode 100644 index dea60884..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -53ad54acd9589c497ba54740f0455fec55db64d7 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.jar deleted file mode 100644 index 5e3a919c..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.jar.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.jar.md5 deleted file mode 100644 index beb51a4f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.jar.md5 +++ /dev/null @@ -1 +0,0 @@ -7146edcc3412c2b54df27edaf66b00a6 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.jar.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.jar.sha1 deleted file mode 100644 index 4a7df6b7..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -b226de4eb8db939dff4e14eb5aa1be045c39f6f4 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.pom deleted file mode 100644 index 6369d8ec..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.pom +++ /dev/null @@ -1,61 +0,0 @@ - - 4.0.0 - - org.codehaus.plexus - plexus-containers - 1.0-alpha-32 - - plexus-component-api - Plexus Component API - 1.0-alpha-32 - - - - maven-surefire-plugin - 2.2 - - - **/Test*.java - **/Abstract*.java - - - - - - - - org.codehaus.plexus - plexus-classworlds - - - - - - - maven-surefire-report-plugin - - - maven-pmd-plugin - - - maven-javadoc-plugin - - - http://java.sun.com/j2ee/1.4/docs/api - http://java.sun.com/j2se/1.5.0/docs/api - http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/ - http://jakarta.apache.org/commons/dbcp/apidocs/ - http://jakarta.apache.org/commons/fileupload/apidocs/ - http://jakarta.apache.org/commons/httpclient/apidocs/ - http://jakarta.apache.org/commons/logging/apidocs/ - http://jakarta.apache.org/commons/pool/apidocs/ - http://www.junit.org/junit/javadoc/ - http://logging.apache.org/log4j/docs/api/ - http://jakarta.apache.org/regexp/apidocs/ - http://jakarta.apache.org/velocity/api/ - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.pom.md5 deleted file mode 100644 index 40890b2c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -a181ee89516009cff7658eec175ccb23 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.pom.sha1 deleted file mode 100644 index f854c7a1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -e214782e714b87b38d5605cb8da53b7d98efde06 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom deleted file mode 100644 index 0afa8021..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom +++ /dev/null @@ -1,60 +0,0 @@ - - - - 4.0.0 - - plexus - org.codehaus.plexus - 1.0.8 - - org.codehaus.plexus - plexus-components - pom - 1.1.6 - Plexus Components Parent Project - - - - org.codehaus.plexus - plexus-container-default - 1.0-alpha-8 - - - - plexus-action - plexus-archiver - plexus-bayesian - plexus-command - plexus-compiler - plexus-drools - plexus-formica - plexus-formica-web - plexus-hibernate - plexus-i18n - plexus-interactivity - plexus-ircbot - plexus-jdo - plexus-jetty-httpd - plexus-jetty - plexus-mimetyper - plexus-notification - plexus-resource - plexus-security - plexus-summit - plexus-taskqueue - plexus-velocity - plexus-xmlrpc - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom.md5 deleted file mode 100644 index cf57067b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -b76cb94eb4ade475f4743d3656c40899 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom.sha1 deleted file mode 100644 index b9f0aa79..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -682713aa402653d0ea5e224870dc899803734519 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.jar deleted file mode 100644 index ef2bd907..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.jar.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.jar.md5 deleted file mode 100644 index fc1ee0b6..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.jar.md5 +++ /dev/null @@ -1 +0,0 @@ -00b4ce443fa584a1998cd6f991ea6514 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.jar.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.jar.sha1 deleted file mode 100644 index 879c8890..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -dcad8d44306c5ecc109b9449f292fb28b75d37ef \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.pom deleted file mode 100644 index f5ae5489..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.pom +++ /dev/null @@ -1,56 +0,0 @@ - - - plexus-containers - org.codehaus.plexus - 1.0-alpha-16 - - 4.0.0 - plexus-container-default - Default Plexus Container - 1.0-alpha-16 - - - - maven-surefire-plugin - - once - - **/Test*.java - **/Abstract*.java - - - - - maven-assembly-plugin - - - jar-with-dependencies - - - - - - - - org.codehaus.plexus - plexus-component-api - - - org.codehaus.plexus - plexus-utils - - - org.codehaus.plexus - plexus-classworlds - - - jmock - jmock - 1.0.1 - test - - - - deployed - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.pom.md5 deleted file mode 100644 index 611807a8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -883b6e1e40cccb06c1d1ce93728b0a9d \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.pom.sha1 deleted file mode 100644 index ea4d6dc0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-16/plexus-container-default-1.0-alpha-16.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -435f5d09ea241e93acaecd4b6680ddb13a36837d \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.jar deleted file mode 100644 index 308893f6..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.jar.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.jar.md5 deleted file mode 100644 index 291ffea0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.jar.md5 +++ /dev/null @@ -1 +0,0 @@ -556231599b5413a7c1f16a5fd15be574 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.jar.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.jar.sha1 deleted file mode 100644 index b8ef047d..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -91410b971f9659f76b0ff26a97b9fbac5de2f69e \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.pom deleted file mode 100644 index fbfdb2ba..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.pom +++ /dev/null @@ -1,98 +0,0 @@ - - 4.0.0 - - org.codehaus.plexus - plexus-containers - 1.0-alpha-32 - - plexus-container-default - Default Plexus Container - 1.0-alpha-32 - - - - maven-surefire-plugin - - once - - **/Test*.java - **/Abstract*.java - - - - - shade-maven-plugin - org.codehaus.mojo - 1.0-alpha-9 - - - package - - shade - - - - - classworlds:classworlds - junit:junit - jmock:jmock - org.codehaus.plexus:plexus-classworlds - org.codehaus.plexus:plexus-utils - - - - - - - - - - - org.codehaus.plexus - plexus-component-api - - - org.codehaus.plexus - plexus-utils - - - org.codehaus.plexus - plexus-classworlds - - - jmock - jmock - 1.0.1 - test - - - - - - - maven-pmd-plugin - - - maven-javadoc-plugin - - - http://java.sun.com/j2ee/1.4/docs/api - http://java.sun.com/j2se/1.5.0/docs/api - http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/ - http://jakarta.apache.org/commons/dbcp/apidocs/ - http://jakarta.apache.org/commons/fileupload/apidocs/ - http://jakarta.apache.org/commons/httpclient/apidocs/ - http://jakarta.apache.org/commons/logging/apidocs/ - http://jakarta.apache.org/commons/pool/apidocs/ - http://www.junit.org/junit/javadoc/ - http://logging.apache.org/log4j/docs/api/ - http://jakarta.apache.org/regexp/apidocs/ - http://jakarta.apache.org/velocity/api/ - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.pom.md5 deleted file mode 100644 index 3b237719..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -af4ca0022b674405556b3f397e375adc \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.pom.sha1 deleted file mode 100644 index 00b60872..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-32/plexus-container-default-1.0-alpha-32.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -8f4d09d36a2345a39301dbd77ef9906c795887f7 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-16/plexus-containers-1.0-alpha-16.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-16/plexus-containers-1.0-alpha-16.pom deleted file mode 100644 index 5800d75b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-16/plexus-containers-1.0-alpha-16.pom +++ /dev/null @@ -1,49 +0,0 @@ - - 4.0.0 - - org.codehaus.plexus - plexus - 1.0.9 - - org.codehaus.plexus - plexus-containers - pom - Parent Plexus Container POM - 1.0-alpha-16 - - plexus-component-api - plexus-container-default - - - scm:svn:http://svn.codehaus.org/plexus/plexus-containers/tags/plexus-containers-1.0-alpha-16 - scm:svn:https://svn.codehaus.org/plexus/plexus-containers/tags/plexus-containers-1.0-alpha-16 - http://fisheye.codehaus.org/browse/plexus/plexus-containers/tags/plexus-containers-1.0-alpha-16 - - - - junit - junit - 3.8.1 - compile - - - - - - org.codehaus.plexus - plexus-classworlds - 1.2-alpha-7 - - - org.codehaus.plexus - plexus-component-api - 1.0-alpha-16 - - - org.codehaus.plexus - plexus-utils - 1.3 - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-16/plexus-containers-1.0-alpha-16.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-16/plexus-containers-1.0-alpha-16.pom.md5 deleted file mode 100644 index 3db22e20..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-16/plexus-containers-1.0-alpha-16.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -3eee2016e3e307618048e30f088b546e \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-16/plexus-containers-1.0-alpha-16.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-16/plexus-containers-1.0-alpha-16.pom.sha1 deleted file mode 100644 index 3eb36271..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-16/plexus-containers-1.0-alpha-16.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -46b79dd7d6a8130d2fa81c80b16b695d491548fe \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-32/plexus-containers-1.0-alpha-32.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-32/plexus-containers-1.0-alpha-32.pom deleted file mode 100644 index 4678bd87..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-32/plexus-containers-1.0-alpha-32.pom +++ /dev/null @@ -1,49 +0,0 @@ - - 4.0.0 - - org.codehaus.plexus - plexus - 1.0.11 - - org.codehaus.plexus - plexus-containers - pom - Parent Plexus Container POM - 1.0-alpha-32 - - plexus-component-api - plexus-container-default - - - scm:svn:http://svn.codehaus.org/plexus/plexus-containers/tags/plexus-containers-1.0-alpha-32 - scm:svn:https://svn.codehaus.org/plexus/plexus-containers/tags/plexus-containers-1.0-alpha-32 - http://fisheye.codehaus.org/browse/plexus/plexus-containers/tags/plexus-containers-1.0-alpha-32 - - - - junit - junit - 3.8.1 - compile - - - - - - org.codehaus.plexus - plexus-classworlds - 1.2-alpha-10 - - - org.codehaus.plexus - plexus-utils - 1.4.5 - - - org.codehaus.plexus - plexus-component-api - 1.0-alpha-32 - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-32/plexus-containers-1.0-alpha-32.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-32/plexus-containers-1.0-alpha-32.pom.md5 deleted file mode 100644 index 41815f08..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-32/plexus-containers-1.0-alpha-32.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -8ac33e07134648d37e2b1253286889a7 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-32/plexus-containers-1.0-alpha-32.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-32/plexus-containers-1.0-alpha-32.pom.sha1 deleted file mode 100644 index 41260716..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-containers/1.0-alpha-32/plexus-containers-1.0-alpha-32.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -8486ff9b37d1ade2a4524c6fee72d394f88fbe08 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar deleted file mode 100644 index 5c50e177..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar.md5 deleted file mode 100644 index a7ca769a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar.md5 +++ /dev/null @@ -1 +0,0 @@ -49e112a6c1ad24962643ef9494f9cbe1 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar.sha1 deleted file mode 100644 index 28f6dbb5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -fa632b7f1cb7c50963d0fb7d818ca93c75c10127 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom deleted file mode 100644 index 6cf90799..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom +++ /dev/null @@ -1,27 +0,0 @@ - - - plexus - org.codehaus.plexus - 1.0.4 - - 4.0.0 - plexus-utils - Plexus Common Utilities - 1.1 - - - - maven-surefire-plugin - - - org/codehaus/plexus/util/FileBasedTestCase.java - **/Test*.java - - - - - - - deployed - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom.md5 deleted file mode 100644 index 6de9bf47..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -6e902bab552ae52fef5875d27c4cf0a0 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom.sha1 deleted file mode 100644 index 4dc64d4a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -15492ecd00920daca9ec15f6acd695b626621e5b \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar deleted file mode 100644 index 449afb9c..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar.md5 deleted file mode 100644 index eff56f28..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar.md5 +++ /dev/null @@ -1 +0,0 @@ -e158df8d1a539cc6482567f9689cc36f \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar.sha1 deleted file mode 100644 index 953f76d8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -56559396674aacd498c298964b691db0177027c0 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.pom deleted file mode 100644 index bc634a6f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.pom +++ /dev/null @@ -1,61 +0,0 @@ - - - plexus - org.codehaus.plexus - 1.0.11 - ../pom/pom.xml - - 4.0.0 - plexus-utils - Plexus Common Utilities - 1.4.5 - http://plexus.codehaus.org/plexus-utils - - - - maven-compiler-plugin - - - 1.3 - 1.3 - - - - maven-surefire-plugin - - - true - - org/codehaus/plexus/util/FileBasedTestCase.java - **/Test*.java - - - - JAVA_HOME - ${JAVA_HOME} - - - M2_HOME - ${M2_HOME} - - - - - - - - scm:svn:http://svn.codehaus.org/plexus/plexus-utils/tags/plexus-utils-1.4.5 - scm:svn:https://svn.codehaus.org/plexus/plexus-utils/tags/plexus-utils-1.4.5 - http://fisheye.codehaus.org/browse/plexus/plexus-utils/tags/plexus-utils-1.4.5 - - - - - maven-javadoc-plugin - - - maven-jxr-plugin - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.pom.md5 deleted file mode 100644 index 905f70a9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -fccab705018ed5559df9f8e815b79aaa \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.pom.sha1 deleted file mode 100644 index 247cd943..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -0bdc8a7fbce7d9007a93d289a029b43e1196d85c \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.10/plexus-1.0.10.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.10/plexus-1.0.10.pom deleted file mode 100644 index bc94e24b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.10/plexus-1.0.10.pom +++ /dev/null @@ -1,273 +0,0 @@ - - 4.0.0 - org.codehaus.plexus - plexus - pom - Plexus - 1.0.10 - - - - mail - -
    dev@plexus.codehaus.org
    -
    -
    - - irc - - irc.codehaus.org - 6667 - #plexus - - -
    -
    - 2001 - - - Plexus User List - http://xircles.codehaus.org/manage_email/user%40plexus.codehaus.org - http://xircles.codehaus.org/manage_email/user%40plexus.codehaus.org - http://archive.plexus.codehaus.org/user - - - Plexus Developer List - http://xircles.codehaus.org/manage_email/dev%40plexus.codehaus.org - http://xircles.codehaus.org/manage_email/dev%40plexus.codehaus.org - http://archive.plexus.codehaus.org/dev - - - Plexus Announce List - http://xircles.codehaus.org/manage_email/announce%40plexus.codehaus.org - http://xircles.codehaus.org/manage_email/announce%40plexus.codehaus.org - http://archive.plexus.codehaus.org/announce - - - Plexus Commit List - http://xircles.codehaus.org/manage_email/scm%40plexus.codehaus.org - http://xircles.codehaus.org/manage_email/scm%40plexus.codehaus.org - http://archive.plexus.codehaus.org/scm - - - - JIRA - http://jira.codehaus.org/browse/PLX - - - - - codehaus.org - Plexus Central Repository - dav:https://dav.codehaus.org/repository/plexus - - - codehaus.org - Plexus Central Development Repository - dav:https://dav.codehaus.org/snapshots.repository/plexus - - - codehaus.org - dav:https://dav.codehaus.org/plexus - - - - - codehaus.snapshots - Codehaus Snapshot Development Repository - http://snapshots.repository.codehaus.org - - false - - - - - - - jvanzyl - Jason van Zyl - jason@maven.org - - Developer - Release Manager - - - - kaz - Pete Kazmier - - - - Developer - - - - jtaylor - James Taylor - james@jamestaylor.org - - - Developer - - - - dandiep - Dan Diephouse - dan@envoisolutions.com - Envoi solutions - - Developer - - - - kasper - Kasper Nielsen - apache@kav.dk - - - Developer - - - - bwalding - Ben Walding - bwalding@codehaus.org - Walding Consulting Services - - Developer - - - - mhw - Mark Wilkinson - mhw@kremvax.net - - Developer - - - - michal - Michal Maczka - mmaczka@interia.pl - - Developer - - - - evenisse - Emmanuel Venisse - evenisse@codehaus.org - - Developer - - - - Trygve Laugstol - trygvis - trygvis@codehaus.org - - Developer - - - - Kenney Westerhof - kenney - kenney@codehaus.org - - Developer - - - - Carlos Sanchez - carlos - carlos@codehaus.org - - Developer - - - - Brett Porter - brett - brett@codehaus.org - - Developer - - - - John Casey - jdcasey - jdcasey@codehaus.org - - Developer - - - - Andrew Williams - handyande - andy@handyande.co.uk - - Developer - - - - Rahul Thakur - rahul - rahul.thakur.xdev@gmail.com - - Developer - - - - Joakim Erdfelt - joakime - joakim@erdfelt.com - - Developer - - - - Olivier Lamy - olamy - olamy@codehaus.org - - Developer - - - - - - junit - junit - 3.8.1 - test - - - - scm:svn:http://svn.codehaus.org/plexus/pom/tags/plexus-1.0.10 - scm:svn:https://svn.codehaus.org/plexus/pom/tags/plexus-1.0.10 - http://fisheye.codehaus.org/browse/plexus/pom/tags/plexus-1.0.10 - - - Codehaus - http://www.codehaus.org/ - - - - - org.apache.maven.plugins - maven-compiler-plugin - - 1.4 - 1.4 - - - - - - org.apache.maven.wagon - wagon-webdav - 1.0-beta-2 - - - -
    diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.10/plexus-1.0.10.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.10/plexus-1.0.10.pom.md5 deleted file mode 100644 index 7ae43d7e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.10/plexus-1.0.10.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -6ab958c91424c0d7c3a2cc861867905e \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.10/plexus-1.0.10.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.10/plexus-1.0.10.pom.sha1 deleted file mode 100644 index 8ed366f9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.10/plexus-1.0.10.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -039c3f6a3cbe1f9e7b4a3309d9d7062b6e390fa7 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.11/plexus-1.0.11.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.11/plexus-1.0.11.pom deleted file mode 100644 index 28ee5744..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.11/plexus-1.0.11.pom +++ /dev/null @@ -1,308 +0,0 @@ - - 4.0.0 - org.codehaus.plexus - plexus - pom - Plexus - 1.0.11 - - - - mail - -
    dev@plexus.codehaus.org
    -
    -
    - - irc - - irc.codehaus.org - 6667 - #plexus - - -
    -
    - 2001 - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - Plexus User List - http://xircles.codehaus.org/manage_email/user%40plexus.codehaus.org - http://xircles.codehaus.org/manage_email/user%40plexus.codehaus.org - http://archive.plexus.codehaus.org/user - - - Plexus Developer List - http://xircles.codehaus.org/manage_email/dev%40plexus.codehaus.org - http://xircles.codehaus.org/manage_email/dev%40plexus.codehaus.org - http://archive.plexus.codehaus.org/dev - - - Plexus Announce List - http://xircles.codehaus.org/manage_email/announce%40plexus.codehaus.org - http://xircles.codehaus.org/manage_email/announce%40plexus.codehaus.org - http://archive.plexus.codehaus.org/announce - - - Plexus Commit List - http://xircles.codehaus.org/manage_email/scm%40plexus.codehaus.org - http://xircles.codehaus.org/manage_email/scm%40plexus.codehaus.org - http://archive.plexus.codehaus.org/scm - - - - JIRA - http://jira.codehaus.org/browse/PLX - - - - - codehaus.org - Plexus Central Repository - dav:https://dav.codehaus.org/repository/plexus - - - codehaus.org - Plexus Central Development Repository - dav:https://dav.codehaus.org/snapshots.repository/plexus - - - codehaus.org - dav:https://dav.codehaus.org/plexus - - - - - codehaus.snapshots - Codehaus Snapshot Development Repository - http://snapshots.repository.codehaus.org - - false - - - - - - - jvanzyl - Jason van Zyl - jason@maven.org - - Developer - Release Manager - - - - kaz - Pete Kazmier - - - - Developer - - - - jtaylor - James Taylor - james@jamestaylor.org - - - Developer - - - - dandiep - Dan Diephouse - dan@envoisolutions.com - Envoi solutions - - Developer - - - - kasper - Kasper Nielsen - apache@kav.dk - - - Developer - - - - bwalding - Ben Walding - bwalding@codehaus.org - Walding Consulting Services - - Developer - - - - mhw - Mark Wilkinson - mhw@kremvax.net - - Developer - - - - michal - Michal Maczka - mmaczka@interia.pl - - Developer - - - - evenisse - Emmanuel Venisse - evenisse@codehaus.org - - Developer - - - - Trygve Laugstol - trygvis - trygvis@codehaus.org - - Developer - - - - Kenney Westerhof - kenney - kenney@codehaus.org - - Developer - - - - Carlos Sanchez - carlos - carlos@codehaus.org - - Developer - - - - Brett Porter - brett - brett@codehaus.org - - Developer - - - - John Casey - jdcasey - jdcasey@codehaus.org - - Developer - - - - Andrew Williams - handyande - andy@handyande.co.uk - - Developer - - - - Rahul Thakur - rahul - rahul.thakur.xdev@gmail.com - - Developer - - - - Joakim Erdfelt - joakime - joakim@erdfelt.com - - Developer - - - - Olivier Lamy - olamy - olamy@codehaus.org - - Developer - - - - - - junit - junit - 3.8.1 - test - - - - scm:svn:http://svn.codehaus.org/plexus/pom/trunk/ - scm:svn:https://svn.codehaus.org/plexus/pom/trunk/ - http://fisheye.codehaus.org/browse/plexus/pom/trunk/ - - - Codehaus - http://www.codehaus.org/ - - - - - org.apache.maven.plugins - maven-compiler-plugin - - 1.4 - 1.4 - - - - - - - org.apache.maven.wagon - wagon-webdav - 1.0-beta-2 - - - - - - maven-release-plugin - - deploy - - - - - -
    diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.11/plexus-1.0.11.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.11/plexus-1.0.11.pom.md5 deleted file mode 100644 index 2cabbba0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.11/plexus-1.0.11.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -bdf8dcfe0877af604f7e19e9ffdf260b \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.11/plexus-1.0.11.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.11/plexus-1.0.11.pom.sha1 deleted file mode 100644 index 1ba2b3af..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.11/plexus-1.0.11.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -4693d4512d50c5159bef1c49def1d2690a327c30 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom deleted file mode 100644 index 2cf5d569..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom +++ /dev/null @@ -1,205 +0,0 @@ - - 4.0.0 - org.codehaus.plexus - plexus - pom - Plexus - 1.0.4 - - - - mail - -
    dev@plexus.codehaus.org
    -
    -
    - - irc - - irc.codehaus.org - 6667 - #plexus - - -
    -
    - 2001 - - - Plexus Developer List - http://lists.codehaus.org/mailman/listinfo/plexus-dev - http://lists.codehaus.org/mailman/listinfo/plexus-dev - http://lists.codehaus.org/pipermail/plexus-dev/ - - - - - - repo1 - Maven Central Repository - scp://repo1.maven.org/home/projects/maven/repository-staging/to-ibiblio/maven2 - - - snapshots - Maven Central Development Repository - scp://repo1.maven.org/home/projects/maven/repository-staging/snapshots/maven2 - - - - - snapshots - Maven Snapshot Development Repository - http://snapshots.maven.codehaus.org/maven2 - - false - - - - - - snapshots-plugins - Maven Snapshot Plugins Development Repository - http://snapshots.maven.codehaus.org/maven2 - - false - - - - - - - jvanzyl - Jason van Zyl - jason@zenplex.com - Zenplex - - Developer - Release Manager - - - - kaz - Pete Kazmier - - - - Developer - - - - jtaylor - James Taylor - james@jamestaylor.org - - - Developer - - - - dandiep - Dan Diephouse - dan@envoisolutions.com - Envoi solutions - - Developer - - - - kasper - Kasper Nielsen - apache@kav.dk - - - Developer - - - - bwalding - Ben Walding - bwalding@codehaus.org - Walding Consulting Services - - Developer - - - - mhw - Mark Wilkinson - mhw@kremvax.net - - Developer - - - - michal - Michal Maczka - mmaczka@interia.pl - - Developer - - - - evenisse - Emmanuel Venisse - evenisse@codehaus.org - - Developer - - - - Trygve Laugstøl - trygvis - trygvis@codehaus.org - - Developer - - - - Kenney Westerhof - kenney - kenney@codehaus.org - - Developer - - - - - - junit - junit - 3.8.1 - test - - - - scm:svn:svn://svn.codehaus.org/plexus/scm/trunk/ - scm:svn:https://svn.codehaus.org/plexus/trunk - - - Codehaus - http://www.codehaus.org/ - - - plexus-appserver - plexus-archetypes - plexus-components - plexus-component-factories - plexus-containers - plexus-logging - plexus-maven-plugin - plexus-services - plexus-tools - plexus-utils - - - - - org.apache.maven.plugins - maven-release-plugin - - https://svn.codehaus.org/plexus/tags - - - - -
    diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.md5 deleted file mode 100644 index ec5562d8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -2e97f3a7666e337ce5d2d98b9c384cae \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.sha1 deleted file mode 100644 index 456d5347..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -06f66b2f7d2eef1d805c11bca91c89984cda4137 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.8/plexus-1.0.8.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.8/plexus-1.0.8.pom deleted file mode 100644 index cba2014f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.8/plexus-1.0.8.pom +++ /dev/null @@ -1,259 +0,0 @@ - - - 4.0.0 - org.codehaus.plexus - plexus - pom - Plexus - 1.0.8 - - - - mail - -
    dev@plexus.codehaus.org
    -
    -
    - - irc - - irc.codehaus.org - 6667 - #plexus - - -
    -
    - 2001 - - - Plexus Developer List - http://lists.codehaus.org/mailman/listinfo/plexus-dev - http://lists.codehaus.org/mailman/listinfo/plexus-dev - http://lists.codehaus.org/pipermail/plexus-dev/ - - - - JIRA - http://jira.codehaus.org/browse/PLX - - - - - codehaus.org - Plexus Central Repository - dav:https://dav.codehaus.org/repository/plexus - - - codehaus.org - Plexus Central Development Repository - dav:https://dav.codehaus.org/snapshots.repository/plexus - - - codehaus.org - dav:https://dav.codehaus.org/plexus - - - - - apache-snapshots - Snapshot repository - http://people.apache.org/maven-snapshot-repository - - false - - - - codehaus-snapshots - Codehaus Snapshot Development Repository - http://snapshots.repository.codehaus.org - - false - - - - - - codehaus-snapshots - Codehaus Snapshot Development Repository - http://snapshots.repository.codehaus.org - - false - - - - - - - jvanzyl - Jason van Zyl - jason@maven.org - - Developer - Release Manager - - - - kaz - Pete Kazmier - - - - Developer - - - - jtaylor - James Taylor - james@jamestaylor.org - - - Developer - - - - dandiep - Dan Diephouse - dan@envoisolutions.com - Envoi solutions - - Developer - - - - kasper - Kasper Nielsen - apache@kav.dk - - - Developer - - - - bwalding - Ben Walding - bwalding@codehaus.org - Walding Consulting Services - - Developer - - - - mhw - Mark Wilkinson - mhw@kremvax.net - - Developer - - - - michal - Michal Maczka - mmaczka@interia.pl - - Developer - - - - evenisse - Emmanuel Venisse - evenisse@codehaus.org - - Developer - - - - Trygve Laugstol - trygvis - trygvis@codehaus.org - - Developer - - - - Kenney Westerhof - kenney - kenney@codehaus.org - - Developer - - - - Carlos Sanchez - carlos - carlos@codehaus.org - - Developer - - - - Brett Porter - brett - brett@codehaus.org - - Developer - - - - John Casey - jdcasey - jdcasey@codehaus.org - - Developer - - - - - - junit - junit - 3.8.1 - test - - - - scm:svn:http://svn.codehaus.org/plexus/trunk/ - scm:svn:https://svn.codehaus.org/plexus/trunk - - - Codehaus - http://www.codehaus.org/ - - - - plexus-archetypes - plexus-examples - plexus-components - plexus-component-factories - plexus-containers - plexus-logging - plexus-maven-plugin - plexus-tools - plexus-utils - - - - - org.apache.maven.wagon - wagon-webdav - 1.0-beta-1 - - - - - org.apache.maven.plugins - maven-release-plugin - - https://svn.codehaus.org/plexus/tags - - - - -
    diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.8/plexus-1.0.8.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.8/plexus-1.0.8.pom.md5 deleted file mode 100644 index e0d40fcd..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.8/plexus-1.0.8.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -2da4039a1c4c959c75d3e6126f2029cf \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.8/plexus-1.0.8.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.8/plexus-1.0.8.pom.sha1 deleted file mode 100644 index 5234d563..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.8/plexus-1.0.8.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -9e7c8432829962afe796b32587c1bfa841a317d5 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.9/plexus-1.0.9.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.9/plexus-1.0.9.pom deleted file mode 100644 index f6fca7c8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.9/plexus-1.0.9.pom +++ /dev/null @@ -1,257 +0,0 @@ - - 4.0.0 - org.codehaus.plexus - plexus - pom - Plexus - 1.0.9 - - - - mail - -
    dev@plexus.codehaus.org
    -
    -
    - - irc - - irc.codehaus.org - 6667 - #plexus - - -
    -
    - 2001 - - - Plexus User List - http://xircles.codehaus.org/manage_email/user%40plexus.codehaus.org - http://xircles.codehaus.org/manage_email/user%40plexus.codehaus.org - http://archive.plexus.codehaus.org/user - - - Plexus Developer List - http://xircles.codehaus.org/manage_email/dev%40plexus.codehaus.org - http://xircles.codehaus.org/manage_email/dev%40plexus.codehaus.org - http://archive.plexus.codehaus.org/dev - - - Plexus Announce List - http://xircles.codehaus.org/manage_email/announce%40plexus.codehaus.org - http://xircles.codehaus.org/manage_email/announce%40plexus.codehaus.org - http://archive.plexus.codehaus.org/announce - - - Plexus Commit List - http://xircles.codehaus.org/manage_email/scm%40plexus.codehaus.org - http://xircles.codehaus.org/manage_email/scm%40plexus.codehaus.org - http://archive.plexus.codehaus.org/scm - - - - JIRA - http://jira.codehaus.org/browse/PLX - - - - - codehaus.org - Plexus Central Repository - dav:https://dav.codehaus.org/repository/plexus - - - codehaus.org - Plexus Central Development Repository - dav:https://dav.codehaus.org/snapshots.repository/plexus - - - codehaus.org - dav:https://dav.codehaus.org/plexus - - - - - apache-snapshots - Snapshot repository - http://people.apache.org/maven-snapshot-repository - - false - - - - codehaus-snapshots - Codehaus Snapshot Development Repository - http://snapshots.repository.codehaus.org - - false - - - - - - codehaus-snapshots - Codehaus Snapshot Development Repository - http://snapshots.repository.codehaus.org - - false - - - - - - - jvanzyl - Jason van Zyl - jason@maven.org - - Developer - Release Manager - - - - kaz - Pete Kazmier - - - - Developer - - - - jtaylor - James Taylor - james@jamestaylor.org - - - Developer - - - - dandiep - Dan Diephouse - dan@envoisolutions.com - Envoi solutions - - Developer - - - - kasper - Kasper Nielsen - apache@kav.dk - - - Developer - - - - bwalding - Ben Walding - bwalding@codehaus.org - Walding Consulting Services - - Developer - - - - mhw - Mark Wilkinson - mhw@kremvax.net - - Developer - - - - michal - Michal Maczka - mmaczka@interia.pl - - Developer - - - - evenisse - Emmanuel Venisse - evenisse@codehaus.org - - Developer - - - - Trygve Laugstol - trygvis - trygvis@codehaus.org - - Developer - - - - Kenney Westerhof - kenney - kenney@codehaus.org - - Developer - - - - Carlos Sanchez - carlos - carlos@codehaus.org - - Developer - - - - Brett Porter - brett - brett@codehaus.org - - Developer - - - - John Casey - jdcasey - jdcasey@codehaus.org - - Developer - - - - Andrew Williams - handyande - andy@handyande.co.uk - - Developer - - - - - - junit - junit - 3.8.1 - test - - - - scm:svn:http://svn.codehaus.org/plexus/pom/tags/plexus-1.0.9 - scm:svn:https://svn.codehaus.org/plexus/pom/tags/plexus-1.0.9 - http://fisheye.codehaus.org/browse/plexus/pom/tags/plexus-1.0.9 - - - Codehaus - http://www.codehaus.org/ - - - - - org.apache.maven.wagon - wagon-webdav - 1.0-beta-1 - - - -
    diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.9/plexus-1.0.9.pom.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.9/plexus-1.0.9.pom.md5 deleted file mode 100644 index 3910bf8b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.9/plexus-1.0.9.pom.md5 +++ /dev/null @@ -1 +0,0 @@ -acf338e422e5c0d9c6242e4f21e63dc9 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.9/plexus-1.0.9.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.9/plexus-1.0.9.pom.sha1 deleted file mode 100644 index df40a701..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus/1.0.9/plexus-1.0.9.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -89d241b1e5ee6a72d3dd95d9eb90f635deebcdb2 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/repo-marker.txt b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/repo-marker.txt deleted file mode 100644 index 14a481e1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/repo-marker.txt +++ /dev/null @@ -1 +0,0 @@ -This is a marker file to allow the repository to be found in the classpath. \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/lifecycle/LifecycleExecutorTest.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/lifecycle/LifecycleExecutorTest.xml deleted file mode 100644 index ebbbf791..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/lifecycle/LifecycleExecutorTest.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - org.apache.maven.project.ProjectBuildingHelper - org.apache.maven.project.EmptyProjectBuildingHelper - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/lifecycle/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/lifecycle/pom.xml deleted file mode 100644 index fb2f91c3..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/lifecycle/pom.xml +++ /dev/null @@ -1,628 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven - maven-parent - 11 - ../pom/maven/pom.xml - - org.apache.maven - maven - 3.0-SNAPSHOT - pom - Apache Maven - Maven is a project development management and - comprehension tool. Based on the concept of a project object model: - builds, dependency management, documentation creation, site - publication, and distribution publication are all controlled from - the declarative file. Maven can be extended by plugins to utilise a - number of other development tools for reporting or the build - process. - - http://maven.apache.org/ - 2001 - - 1.3 - 1.0 - - 1.0-alpha-9 - 1.2_Java1.3 - 3.8.1 - 1.0-beta-3.0.7-SNAPSHOT - 1.0-alpha-6 - 1.1 - 1.0-alpha-1 - 1.5.8 - 1.6 - 1.0 - 1.0-beta-4 - 1.7-SNAPSHOT - 1.0-alpha-6-SNAPSHOT - 1.0-alpha-1 - 1.2 - 3.2.6 - 1.0.1-SNAPSHOT - 1.3 - - - jira - http://jira.codehaus.org/browse/MNG - - - - Maven Developer List - dev-subscribe@maven.apache.org - dev-unsubscribe@maven.apache.org - dev@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-dev - - http://www.mail-archive.com/dev@maven.apache.org/ - http://www.nabble.com/Maven-Developers-f179.html - http://maven.dev.markmail.org/ - - - - Maven User List - users-subscribe@maven.apache.org - users-unsubscribe@maven.apache.org - users@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-users - - http://www.mail-archive.com/users@maven.apache.org/ - http://www.nabble.com/Maven---Users-f178.html - http://maven.users.markmail.org/ - - - - Maven Issues List - issues-subscribe@maven.apache.org - issues-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-issues/ - - http://www.mail-archive.com/issues@maven.apache.org - http://www.nabble.com/Maven---Issues-f15573.html - http://maven.issues.markmail.org/ - - - - Maven Commits List - commits-subscribe@maven.apache.org - commits-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-commits - - http://www.mail-archive.com/commits@maven.apache.org - http://www.nabble.com/Maven---Commits-f15575.html - http://maven.commits.markmail.org/ - - - - - Maven Announcements List - announce@maven.apache.org - announce-subscribe@maven.apache.org - announce-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-announce/ - - http://www.mail-archive.com/announce@maven.apache.org - http://www.nabble.com/Maven-Announcements-f15617.html - http://maven.announce.markmail.org/ - - - - Maven Notifications List - notifications-subscribe@maven.apache.org - notifications-unsubscribe@maven.apache.org - http://mail-archives.apache.org/mod_mbox/maven-notifications/ - - http://www.mail-archive.com/notifications@maven.apache.org - http://www.nabble.com/Maven---Notifications-f15574.html - http://maven.notifications.markmail.org/ - - - - - scm:svn:http://svn.apache.org/repos/asf/maven/components/trunk - scm:svn:https://svn.apache.org/repos/asf/maven/components/trunk - http://svn.apache.org/viewcvs.cgi/maven/components/trunk - - - - - - org.codehaus.plexus - plexus-component-metadata - ${plexusVersion} - - - - generate-metadata - generate-test-metadata - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 2.0.2 - - 1.5 - 1.5 - - - - maven-release-plugin - - https://svn.apache.org/repos/asf/maven/components/tags - - - - org.codehaus.modello - modello-maven-plugin - ${modelloVersion} - - true - - - - site-docs - pre-site - - xdoc - xsd - - - - standard - - java - xpp3-reader - xpp3-writer - - - - - - org.apache.felix - maven-bundle-plugin - 1.0.0 - - - org.apache.maven.plugins - maven-surefire-plugin - 2.4.2 - - - org.apache.maven.plugins - maven-assembly-plugin - 2.2-beta-2 - - - org.apache.maven.plugins - maven-resources-plugin - 2.4-SNAPSHOT - - - - - - maven-core - apache-maven - maven-model - maven-plugin-api - maven-project - maven-reporting-api - maven-project-builder - maven-mercury - maven-embedder - maven-toolchain - maven-compat - maven-repository - maven-repository-mercury - - - - - junit - junit - ${junitVersion} - test - - - - - - - - - org.apache.maven - maven-mercury - ${project.version} - - - org.apache.maven - maven-lifecycle - ${project.version} - - - org.apache.maven - maven-reporting-api - ${project.version} - - - org.apache.maven - maven-profile - ${project.version} - - - org.apache.maven - maven-model - ${project.version} - - - org.apache.maven - maven-project - ${project.version} - - - org.apache.maven - maven-plugin-api - ${project.version} - - - org.apache.maven - maven-toolchain - ${project.version} - - - org.apache.maven - maven-embedder - ${project.version} - - - org.apache.maven - maven-core - ${project.version} - - - org.apache.maven - maven-project-builder - ${project.version} - - - org.apache.maven - maven-repository - ${project.version} - - - org.apache.maven - maven-compat - ${project.version} - - - - - org.codehaus.plexus - plexus-utils - ${plexusUtilsVersion} - - - org.codehaus.plexus - plexus-container-default - ${plexusVersion} - - - org.codehaus.plexus - plexus-component-annotations - ${plexusVersion} - - - org.codehaus.plexus - plexus-classworlds - ${classWorldsVersion} - - - org.codehaus.plexus - plexus-interpolation - ${plexusInterpolationVersion} - - - org.codehaus.plexus - plexus-interactivity-api - ${plexusInteractivityVersion} - - - org.codehaus.plexus - plexus-component-api - - - - - - - org.sonatype.plexus - plexus-jetty6 - ${plexusJetty6Version} - test - - - org.sonatype.spice - plexus-webdav - ${plexusWebdavVersion} - test - - - - - org.apache.maven.wagon - wagon-provider-api - ${wagonVersion} - - - org.apache.maven.wagon - wagon-file - ${wagonVersion} - - - org.apache.maven.wagon - wagon-http - ${wagonVersion} - - - org.apache.maven.wagon - wagon-ssh - ${wagonVersion} - - - org.apache.maven.wagon - wagon-ssh-external - ${wagonVersion} - - - - org.apache.maven.doxia - doxia-sink-api - ${doxiaVersion} - - - - org.sonatype.spice - model-builder - ${modelBuilderVersion} - - - org.codehaus.woodstox - wstx-asl - ${woodstoxVersion} - - - - commons-cli - commons-cli - ${commonsCliVersion} - - - commons-lang - commons-lang - - - commons-logging - commons-logging - - - - - commons-jxpath - commons-jxpath - ${jxpathVersion} - - - - - org.apache.maven.mercury - mercury-artifact - ${mercuryVersion} - - - org.apache.maven.mercury - mercury-external - ${mercuryVersion} - - - org.apache.maven.mercury - mercury-plexus - ${mercuryVersion} - - - org.apache.maven.mercury - mercury-repo-virtual - ${mercuryVersion} - - - org.sonatype.mercury - mercury-mp3-cli - ${mercuryMp3Version} - - - org.sonatype.plexus - plexus-sec-dispatcher - ${securityDispatcherVersion} - - - - - - org.apache.maven.mercury - mercury-repo-local-m2 - ${mercuryVersion} - test - - - org.apache.maven.mercury - mercury-repo-remote-m2 - ${mercuryVersion} - test - - - org.apache.maven.mercury - mercury-md-sat - ${mercuryVersion} - test - - - org.apache.maven.mercury - mercury-util - ${mercuryVersion} - test - - - org.apache.maven.mercury - mercury-transport-http - ${mercuryVersion} - test - - - org.apache.maven.mercury - mercury-transport-http - ${mercuryVersion} - test-jar - test - - - org.sonatype.plexus - plexus-plugin-manager - ${plexusPluginManagerVersion} - - - - easymock - easymock - ${easyMockVersion} - test - - - - - - - - - apache.website - scp://people.apache.org/www/maven.apache.org/ref/${project.version}/ - - - - - osgi - - - - org.apache.felix - maven-bundle-plugin - - - - manifest - - - - - - - org.apache.maven.plugins - maven-jar-plugin - 2.1 - - - ${project.build.outputDirectory}/META-INF/MANIFEST.MF - - - - - - - - release - - - - maven-assembly-plugin - false - - - src/main/assembly/src.xml - - gnu - maven-${project.version}-src - - - - make-assembly - package - - single - - - - - - - - - strict - - - - org.apache.maven.plugins - maven-enforcer-plugin - 1.0-alpha-3 - - - enforce-jdk-15 - - enforce - - - - - 1.5 - - - - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/plugin/PluginManagerTest.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/plugin/PluginManagerTest.xml deleted file mode 100644 index ebbbf791..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/plugin/PluginManagerTest.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - org.apache.maven.project.ProjectBuildingHelper - org.apache.maven.project.EmptyProjectBuildingHelper - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/AbstractMavenProjectTestCase.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/AbstractMavenProjectTestCase.xml deleted file mode 100644 index e052489b..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/AbstractMavenProjectTestCase.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - org.apache.maven.lifecycle.LifeCyclePluginAnalyzer - org.apache.maven.lifecycle.EmptyLifecyclePluginAnalyzer - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/PomConstructionTest.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/PomConstructionTest.xml deleted file mode 100644 index e3c3ab34..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/PomConstructionTest.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - org.apache.maven.lifecycle.LifeCyclePluginAnalyzer - org.apache.maven.lifecycle.EmptyLifecyclePluginAnalyzer - - - org.apache.maven.project.ProjectBuildingHelper - org.apache.maven.project.EmptyProjectBuildingHelper - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/buildFromFile/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/buildFromFile/pom.xml deleted file mode 100644 index c8a8b85f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/buildFromFile/pom.xml +++ /dev/null @@ -1,8 +0,0 @@ - - 4.0.0 - - org.apache.maven.tests - build-from-file - 1 - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/buildFromRepo/tests/project-caching/1/project-caching-1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/buildFromRepo/tests/project-caching/1/project-caching-1.pom deleted file mode 100644 index d4211765..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/buildFromRepo/tests/project-caching/1/project-caching-1.pom +++ /dev/null @@ -1,8 +0,0 @@ - - 4.0.0 - - tests - project-caching - 1 - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/buildFromRepo/tests/project-caching/maven-metadata-local.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/buildFromRepo/tests/project-caching/maven-metadata-local.xml deleted file mode 100644 index a608b4f8..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/buildFromRepo/tests/project-caching/maven-metadata-local.xml +++ /dev/null @@ -1,11 +0,0 @@ - - tests - project-caching - - 1 - 1 - - 1 - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/buildModelLineage/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/buildModelLineage/pom.xml deleted file mode 100644 index 8f5154fc..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/buildModelLineage/pom.xml +++ /dev/null @@ -1,7 +0,0 @@ - - 4.0.0 - - tests - build-model-lineage - 1 - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/resolveParentPom/childAndParent/child/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/resolveParentPom/childAndParent/child/pom.xml deleted file mode 100644 index 4d1d23ee..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/resolveParentPom/childAndParent/child/pom.xml +++ /dev/null @@ -1,10 +0,0 @@ - - 4.0.0 - - tests - childAndParent-parent - 1 - - - childAndParent-child - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/resolveParentPom/childAndParent/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/resolveParentPom/childAndParent/pom.xml deleted file mode 100644 index 164506fe..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/resolveParentPom/childAndParent/pom.xml +++ /dev/null @@ -1,7 +0,0 @@ - - 4.0.0 - - tests - childAndParent-parent - 1 - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/resolveParentPom/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/resolveParentPom/pom.xml deleted file mode 100644 index 9633029a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/project/workspace/resolveParentPom/pom.xml +++ /dev/null @@ -1,10 +0,0 @@ - - 4.0.0 - - tests - resolve-parent-pom-parent - 1 - - - resolve-parent-pom - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/settings/PomConstructionWithSettingsTest.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/settings/PomConstructionWithSettingsTest.xml deleted file mode 100644 index c6769290..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/settings/PomConstructionWithSettingsTest.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - org.apache.maven.lifecycle.LifecycleExecutor - org.apache.maven.project.EmptyLifecycleExecutor - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/global.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/global.xml deleted file mode 100644 index cd9be74c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/global.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - basic - - true - - - - rare - - true - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/model/toolchains-jdks-extend.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/model/toolchains-jdks-extend.xml deleted file mode 100644 index 4fb00930..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/model/toolchains-jdks-extend.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - jdk - - 1.5 - sun - - - ${env.JAVA_HOME} - lib/tools.jar - - - - jdk - - 1.6 - sun - - - ${env.JAVA_HOME} - lib/classes.jar - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/model/toolchains-jdks-extra.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/model/toolchains-jdks-extra.xml deleted file mode 100644 index 35c32172..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/model/toolchains-jdks-extra.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - jdk - - 1.4 - sun - - - - ${env.JAVA_HOME} - - - - jdk - - 1.7 - ibm - ibm_17 - - - ${env.JAVA_HOME} - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/model/toolchains-jdks.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/model/toolchains-jdks.xml deleted file mode 100644 index 5233a338..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/model/toolchains-jdks.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - jdk - - 1.5 - sun - - - ${env.JAVA_HOME} - - - - jdk - - 1.6 - sun - - - ${env.JAVA_HOME} - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/user.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/user.xml deleted file mode 100644 index d11181fc..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/apache/maven/toolchain/user.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - basic - - true - - - - rare - - true - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar deleted file mode 100644 index 5c50e177..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar.sha1 deleted file mode 100644 index 28f6dbb5..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -fa632b7f1cb7c50963d0fb7d818ca93c75c10127 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom deleted file mode 100644 index 6cf90799..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom +++ /dev/null @@ -1,27 +0,0 @@ - - - plexus - org.codehaus.plexus - 1.0.4 - - 4.0.0 - plexus-utils - Plexus Common Utilities - 1.1 - - - - maven-surefire-plugin - - - org/codehaus/plexus/util/FileBasedTestCase.java - **/Test*.java - - - - - - - deployed - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom.sha1 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom.sha1 deleted file mode 100644 index 4dc64d4a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom.sha1 +++ /dev/null @@ -1 +0,0 @@ -15492ecd00920daca9ec15f6acd695b626621e5b \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/pom.xml deleted file mode 100644 index cf4c29c0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/pom.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - 4.0.0 - - org.apache.maven - maven-core - 2.0-SNAPSHOT - jar - - Maven - 2001 - - - - org.apache.maven - maven-model - 2.0-SNAPSHOT - jar - compile - - - org.apache.maven - maven-plugin - 2.0-SNAPSHOT - jar - compile - - - - - scm-connection - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/project-dynamism/plugin-level-dep.pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/project-dynamism/plugin-level-dep.pom.xml deleted file mode 100644 index 98873675..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/project-dynamism/plugin-level-dep.pom.xml +++ /dev/null @@ -1,24 +0,0 @@ - - 4.0.0 - testing - plugin-level-dep - jar - 3.8.1 - - - - - maven-compiler-plugin - 2.0.2 - - - junit - junit - ${pom.version} - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/project-dynamism/pom-interp.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/project-dynamism/pom-interp.xml deleted file mode 100644 index 40fdb414..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/project-dynamism/pom-interp.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - 4.0.0 - - org.test - test-build-dynamism - 1 - - - /${project.groupId}/src/main/java - /${pom.groupId}/src/test/java - /${groupId}/src/main/scripts - - - - my-plugin - - ${project.groupId} - ${pom.groupId} - ${groupId} - - - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/project-dynamism/pom-relative.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/project-dynamism/pom-relative.xml deleted file mode 100644 index bb22b3d0..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/project-dynamism/pom-relative.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - 4.0.0 - - org.test - test-build-dynamism - 1 - - - ${pom.build.directory} - - - - - - ${pom.build.directory}/generated-resources/plexus - - - - - ${pom.build.directory}/generated-filters.properties - - - target - - src/main/java - src/test/java - src/main/scripts - - ${pom.build.directory}/classes - ${pom.build.directory}/test-classes - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/project-dynamism/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/project-dynamism/pom.xml deleted file mode 100644 index 37797f2e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/project-dynamism/pom.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - 4.0.0 - - org.test - test-build-dynamism - 1 - - - ${pom.build.directory} - - - - - - ${pom.build.directory}/generated-resources/plexus - - - - - ${pom.build.directory}/generated-filters.properties - - - target - - ${pom.basedir}/src/main/java - ${pom.basedir}/src/test/java - ${pom.basedir}/src/main/scripts - - ${pom.build.directory}/classes - ${pom.build.directory}/test-classes - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/bad-dependency.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/bad-dependency.xml deleted file mode 100644 index 4b5424ae..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/bad-dependency.xml +++ /dev/null @@ -1,27 +0,0 @@ - - 4.0.0 - - test - invalid - 0.0.1-SNAPSHOT - - - - central - file:src/test/remote-repo - - - - - - - b - 0.1 - - - org.apache.maven.its - a - 0.1 - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/bad-project.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/bad-project.xml deleted file mode 100644 index e415318c..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/bad-project.xml +++ /dev/null @@ -1,20 +0,0 @@ -i want to be a - -POM! \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/base-directory-alignment/project-which-needs-directory-alignment-child.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/base-directory-alignment/project-which-needs-directory-alignment-child.xml deleted file mode 100644 index ee2207ee..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/base-directory-alignment/project-which-needs-directory-alignment-child.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - project-which-needs-directory-alignment.xml - - - maven - project-which-needs-directory-alignment.xml - 1.0-beta-9 - - - maven - maven-foo - 1.0 - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/base-directory-alignment/project-which-needs-directory-alignment.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/base-directory-alignment/project-which-needs-directory-alignment.xml deleted file mode 100644 index cefbcb04..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/base-directory-alignment/project-which-needs-directory-alignment.xml +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - 4.0.0 - maven - project-which-needs-directory-alignment - Maven - 1.0-beta-9 - 2001 - Description - http://maven.apache.org/ - - - Apache Software Foundation - http://apache.org/ - - - - anon-connection - developer-connection - repository-url - - - - - Maven User List - subscribe - unsubscribe - archive - - - - - - Jason van Zyl - jvanzyl - jason@maven.org - Zenplex - - Founder - Release Manager - - - - - - - Martin van dem Bemt - mvdb@mvdb.com - - - - - - - g1 - d1 - 1.0 - - - - g2 - d2 - 2.0 - - - - g3 - d3 - - - - - - - - g3 - d3 - 3.0 - - - - - - sourceDirectory - unitTestSourceDirectory - - - src/test - - **/*.xml - - - - - - src/conf - - *.xsd - *.dtd - *.mod - log4j.properties - driver.jelly - driver.properties - - - - src/messages - org/apache/maven/messages - - messages*.properties - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/base-directory-alignment/subproject/project-which-needs-directory-alignment-child.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/base-directory-alignment/subproject/project-which-needs-directory-alignment-child.xml deleted file mode 100644 index 68775efc..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/base-directory-alignment/subproject/project-which-needs-directory-alignment-child.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - ../project-which-needs-directory-alignment.xml - - - maven - project-which-needs-directory-alignment - 1.0-beta-9 - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/build-path-expression-pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/build-path-expression-pom.xml deleted file mode 100644 index d7e296f4..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/build-path-expression-pom.xml +++ /dev/null @@ -1,14 +0,0 @@ - - 4.0.0 - org.apache.maven.project.tests - build-path-expression - 1 - - sources - - - ${project.build.sourceDirectory} - - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/build.properties b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/build.properties deleted file mode 100644 index 01626c39..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/build.properties +++ /dev/null @@ -1,18 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -name = sarel diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/child-which-inherits-from-super-model.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/child-which-inherits-from-super-model.xml deleted file mode 100644 index 58cae23e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/child-which-inherits-from-super-model.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - foo - bar - Babar - 4.5 - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/child-with-bogus-parent.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/child-with-bogus-parent.xml deleted file mode 100644 index a072fc74..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/child-with-bogus-parent.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - ${basedir}/bogus.xml - - - maven - bogus - 1.0-beta-9 - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/child.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/child.xml deleted file mode 100644 index a6d702ce..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/child.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - project.xml - - - maven - maven-project-test - 1.0-beta-9 - - - child-artifact - maven - 1.0-beta-9 - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/duplicate-plugins-merged-pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/duplicate-plugins-merged-pom.xml deleted file mode 100644 index 7383109f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/duplicate-plugins-merged-pom.xml +++ /dev/null @@ -1,48 +0,0 @@ - - 4.0.0 - tests.project - duplicate-plugin-defs-merged - 1 - - - - - maven-compiler-plugin - - - group - first - 1 - - - - - first - - compile - - - - - - maven-compiler-plugin - - - group - second - 1 - - - - - second - - compile - - - - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/fully-populated-child.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/fully-populated-child.xml deleted file mode 100644 index 61d6b672..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/fully-populated-child.xml +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - project.xml - - maven - maven-project-test - 1.0-beta-9 - - 3 - maven - maven - Maven - 1.0-beta-9 - 2001 - org.apache.maven - Description - shortDescription - http://maven.apache.org/ - issueTrackingUrl - - - childDistributionRepositoryId - childDistributionRepositoryName - childDistributionRepository - - - childSiteDistributionId - childSiteDistributionName - childSiteDistributionUrl - - - - - Apache Software Foundation - http://apache.org/ - /images/jakarta-logo-blue.gif - - - - anon-connection - developer-connection - repository-url - - - - - Maven User List - subscribe - unsubscribe - archive - - - - - - Jason van Zyl - jvanzyl - jason@maven.org - Zenplex - - Founder - Release Manager - - - - - - - Martin van dem Bemt - mvdb@mvdb.com - - - - - - - g1 - d1 - 1.0 - d1-url - - - - g2 - d2 - 2.0 - d2-url - - - - - - jason@maven.org - /sourceDirectory - /unitTestSourceDirectory - - - **/*Test.java - - - **/RepositoryTest.java - **/JAXPTest.java - - - - ${basedir}/src/test - - **/*.xml - - - - - - - /src/conf - - *.xsd - *.dtd - *.mod - log4j.properties - driver.jelly - driver.properties - - - - /src/messages - org/apache/maven/messages - - messages*.properties - - - - - - - maven-jdepend-plugin - maven-checkstyle-plugin - maven-changelog-plugin - maven-file-activity-plugin - maven-developer-activity-plugin - maven-javadoc-plugin - maven-jxr-plugin - maven-junit-report-plugin - maven-tasklist-plugin - maven-jellydoc-plugin - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/grandchild-check/child/grandchild/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/grandchild-check/child/grandchild/pom.xml deleted file mode 100644 index 56bed2c9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/grandchild-check/child/grandchild/pom.xml +++ /dev/null @@ -1,10 +0,0 @@ - - 4.0.0 - - grandchildtest - child - 1 - - grandchild - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/grandchild-check/child/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/grandchild-check/child/pom.xml deleted file mode 100644 index 0858c6d1..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/grandchild-check/child/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ - - 4.0.0 - - grandchildtest - root-pom - 1 - - child - pom - - grandchild - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/grandchild-check/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/grandchild-check/pom.xml deleted file mode 100644 index 3b1ebd0e..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/grandchild-check/pom.xml +++ /dev/null @@ -1,7 +0,0 @@ - - 4.0.0 - grandchildtest - root-pom - 1 - pom - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/import-scope-pom-resolves-from-property-based-repository.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/import-scope-pom-resolves-from-property-based-repository.xml deleted file mode 100644 index 4c29a3b9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/import-scope-pom-resolves-from-property-based-repository.xml +++ /dev/null @@ -1,31 +0,0 @@ - - 4.0.0 - - test - imported-pom-found - 0.0.1-SNAPSHOT - - - file:src/test/remote-repo - - - - - central - ${repo.url} - - - - - - - org.apache.maven.its - a - 0.1 - pom - import - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/modelsource/module01/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/modelsource/module01/pom.xml deleted file mode 100644 index cfaf9e8f..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/modelsource/module01/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ - - 4.0.0 - - - test.readparent - local-parent - 1.0 - - - module01 - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/modelsource/pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/modelsource/pom.xml deleted file mode 100644 index 0fe29370..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/modelsource/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ - - 4.0.0 - test.readparent - local-parent - pom - 1.0 - - - module - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/project.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/project.xml deleted file mode 100644 index a9119714..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/project.xml +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - 3 - maven - maven-project-test - Maven - 1.0-beta-9 - 2001 - org.apache.maven - Description - shortDescription - http://maven.apache.org/ - issueTrackingUrl - - - distributionRepositoryId - distributionRepositoryName - distributionRepository - - - siteDistributionId - siteDistributionName - siteDistributionUrl - - - - - Apache Software Foundation - http://apache.org/ - /images/jakarta-logo-blue.gif - - - - anon-connection - developer-connection - repository-url - - - - - Maven User List - subscribe - unsubscribe - archive - - - - - - Jason van Zyl - jvanzyl - jason@maven.org - Zenplex - - Founder - Release Manager - - - - - - - Martin van dem Bemt - mvdb@mvdb.com - - - - - - - g1 - d1 - 1.0 - d1-url - - - - g2 - d2 - 2.0 - d2-url - - - - - - jason@maven.org - /sourceDirectory - /unitTestSourceDirectory - - - **/*Test.java - - - **/RepositoryTest.java - **/JAXPTest.java - - - - ${basedir}/src/test - - **/*.xml - - - - - - - /src/conf - - *.xsd - *.dtd - *.mod - log4j.properties - driver.jelly - driver.properties - - - - /src/messages - org/apache/maven/messages - - messages*.properties - - - - - - - maven-jdepend-plugin - maven-checkstyle-plugin - maven-changelog-plugin - maven-file-activity-plugin - maven-developer-activity-plugin - maven-javadoc-plugin - maven-jxr-plugin - maven-junit-report-plugin - maven-tasklist-plugin - maven-jellydoc-plugin - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/versionless-managed-dependency.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/versionless-managed-dependency.xml deleted file mode 100644 index 40bf2955..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/projects/versionless-managed-dependency.xml +++ /dev/null @@ -1,24 +0,0 @@ - - 4.0.0 - - test - versionless-managed-dependency.xml - 0.0.1-SNAPSHOT - - - - org.apache.maven.its - a - - - - - - - org.apache.maven.its - a - - - - - diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/maven-test/jars/maven-test-b-1.0.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/maven-test/jars/maven-test-b-1.0.jar deleted file mode 100644 index 9ff33b6d..00000000 Binary files a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/maven-test/jars/maven-test-b-1.0.jar and /dev/null differ diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/maven-test/jars/maven-test-b-1.0.jar.md5 b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/maven-test/jars/maven-test-b-1.0.jar.md5 deleted file mode 100644 index a8406fd7..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/maven-test/jars/maven-test-b-1.0.jar.md5 +++ /dev/null @@ -1 +0,0 @@ -a5c3b5cd0605bb7331d1846cdc14b13b diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/maven-test/poms/maven-test-b-1.0.pom b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/maven-test/poms/maven-test-b-1.0.pom deleted file mode 100644 index ed5c2693..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/maven-test/poms/maven-test-b-1.0.pom +++ /dev/null @@ -1,21 +0,0 @@ - - maven-test - maven-test-a - jar - - - maven-test - maven-test-b - 1.0 - jar - compile - - - maven-test - maven-test-z - 1.0 - jar - compile - - - \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-a-1.0-SNAPSHOT.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-a-1.0-SNAPSHOT.jar deleted file mode 100644 index b3da0186..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-a-1.0-SNAPSHOT.jar +++ /dev/null @@ -1 +0,0 @@ -remote \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-a-1.0-SNAPSHOT.jar.snapshot-version b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-a-1.0-SNAPSHOT.jar.snapshot-version deleted file mode 100644 index c1c3c3e3..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-a-1.0-SNAPSHOT.jar.snapshot-version +++ /dev/null @@ -1 +0,0 @@ -20050101.101010 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-b-1.0-SNAPSHOT.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-b-1.0-SNAPSHOT.jar deleted file mode 100644 index c2c027fe..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-b-1.0-SNAPSHOT.jar +++ /dev/null @@ -1 +0,0 @@ -local \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-b-1.0-SNAPSHOT.jar.snapshot-version b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-b-1.0-SNAPSHOT.jar.snapshot-version deleted file mode 100644 index b2954fe9..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-b-1.0-SNAPSHOT.jar.snapshot-version +++ /dev/null @@ -1 +0,0 @@ -20030101.101010 \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-c-1.0-SNAPSHOT.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-c-1.0-SNAPSHOT.jar deleted file mode 100644 index b3da0186..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-c-1.0-SNAPSHOT.jar +++ /dev/null @@ -1 +0,0 @@ -remote \ No newline at end of file diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-c-1.0-SNAPSHOT.jar.snapshot-version b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-c-1.0-SNAPSHOT.jar.snapshot-version deleted file mode 100644 index 7c5f8a57..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-1/snapshot-test/jars/maven-snapshot-c-1.0-SNAPSHOT.jar.snapshot-version +++ /dev/null @@ -1 +0,0 @@ -20040101.101010 diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-2/maven-test/jars/maven-test-z-1.0.jar b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-2/maven-test/jars/maven-test-z-1.0.jar deleted file mode 100644 index 257cc564..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/remote-repo-2/maven-test/jars/maven-test-z-1.0.jar +++ /dev/null @@ -1 +0,0 @@ -foo diff --git a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/withActiveByDefaultProfile-pom.xml b/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/withActiveByDefaultProfile-pom.xml deleted file mode 100644 index 95ee353a..00000000 --- a/framework/src/maven/apache-maven-3.3.3/maven-core/src/test/resources/withActiveByDefaultProfile-pom.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - 4.0.0 - - maven - maven-core - 2.0-SNAPSHOT - - Maven - - - - - true - - test - - - -- cgit 1.2.3-korg