Package org.apache.maven.model

Examples of org.apache.maven.model.PluginExecution.addGoal()


        pChild.setArtifactId( aid );
        pChild.setVersion( ver );

        PluginExecution eChild = new PluginExecution();
        eChild.setId( "normal" );
        eChild.addGoal( "run" );

        pChild.addExecution( eChild );

        Build bChild = new Build();
        bChild.addPlugin( pChild );
View Full Code Here


        pParent.setInherited( Boolean.toString( true ) );

        PluginExecution eParent = new PluginExecution();
        eParent.setId( testId );
        eParent.addGoal( "test" );
        eParent.setInherited( Boolean.toString( false ) );

        pParent.addExecution( eParent );

        Build bParent = new Build();
View Full Code Here

        pChild.setArtifactId( aid );
        pChild.setVersion( ver );

        PluginExecution eChild = new PluginExecution();
        eChild.setId( "normal" );
        eChild.addGoal( "run" );

        pChild.addExecution( eChild );

        Build bChild = new Build();
        bChild.addPlugin( pChild );
View Full Code Here

        pParent.setArtifactId( aid );
        pParent.setVersion( ver );

        PluginExecution eParent = new PluginExecution();
        eParent.setId( testId );
        eParent.addGoal( "test" );
        eParent.setInherited( Boolean.toString( false ) );

        pParent.addExecution( eParent );

        Build bParent = new Build();
View Full Code Here

               "UTF-8");

      List<PluginExecution> executions = plugin.getExecutions();
      PluginExecution execution = new PluginExecution();
      execution.setPhase("package");
      execution.addGoal("shade");
      execution.setConfiguration(dom);
      executions.add(execution);

      pom.getBuild().getPlugins().add(plugin);
      mvn.setPOM(pom);
View Full Code Here

         }
         // Goals
         Map<String, Boolean> hasGoals = new HashMap<>();
         for (String goal : pluginExecution.getGoals())
         {
            mergedPluginExecution.addGoal(goal);
            hasGoals.put(goal, new Boolean(true));
         }
         if (recessive.containsKey(entry.getKey()))
         {
            for (String goal : recessive.get(entry.getKey()).getGoals())
View Full Code Here

         {
            for (String goal : recessive.get(entry.getKey()).getGoals())
            {
               if (!hasGoals.containsKey(goal))
               {
                  mergedPluginExecution.addGoal(goal);
               }
            }
         }
         // Configurations
         if (pluginExecution.getConfiguration() != null)
View Full Code Here

            mergedPluginExecution.setId(pluginExecution.getId());
            mergedPluginExecution.setPhase(pluginExecution.getPhase());
            // Goals
            for (String goal : pluginExecution.getGoals())
            {
               mergedPluginExecution.addGoal(goal);
            }
            // Configuration
            if (pluginExecution.getConfiguration() != null)
            {
               mergedPluginExecution.setConfiguration(pluginExecution.getConfiguration());
View Full Code Here

         }
         // Goals
         Map<String, Boolean> hasGoals = new HashMap<>();
         for (String goal : pluginExecution.getGoals())
         {
            mergedPluginExecution.addGoal(goal);
            hasGoals.put(goal, new Boolean(true));
         }
         if (recessive.containsKey(entry.getKey()))
         {
            for (String goal : recessive.get(entry.getKey()).getGoals())
View Full Code Here

         {
            for (String goal : recessive.get(entry.getKey()).getGoals())
            {
               if (!hasGoals.containsKey(goal))
               {
                  mergedPluginExecution.addGoal(goal);
               }
            }
         }
         // Configurations
         if (pluginExecution.getConfiguration() != null)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.