Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getNonThreadSafePlugins (0.31 sec)

  1. maven-core/src/test/java/org/apache/maven/lifecycle/MavenExecutionPlanTest.java

        }
    
        @Test
        void testThreadSafeMojos() throws Exception {
            MavenExecutionPlan plan = LifecycleExecutionPlanCalculatorStub.getProjectAExecutionPlan();
            final Set<Plugin> unSafePlugins = plan.getNonThreadSafePlugins();
            // There is only a single threadsafe plugin here...
            assertEquals(plan.size() - 1, unSafePlugins.size());
        }
    
        @Test
        void testFindLastWhenFirst() throws Exception {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/lifecycle/MavenExecutionPlan.java

        /**
         * 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<Plugin> getNonThreadSafePlugins() {
            Set<Plugin> plugins = new HashSet<>();
            for (ExecutionPlanItem executionPlanItem : planItem) {
                final MojoExecution mojoExecution = executionPlanItem.getMojoExecution();
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Jan 10 12:55:54 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderCommon.java

            if (session.getRequest().getDegreeOfConcurrency() > 1
                    && session.getProjects().size() > 1) {
                final Set<Plugin> unsafePlugins = executionPlan.getNonThreadSafePlugins();
                if (!unsafePlugins.isEmpty()) {
                    for (String s : MultilineMessageHelper.format(
                            "Your build is requesting parallel execution, but this project contains the following "
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 10.2K bytes
    - Viewed (0)
Back to top