logo run-maven-plugin

Maven plugin for running main methods of projects from the command line. This plugin generates the necessary classpath for the project from its runtime classpath in the pom, and creates a script to invoke the projects main methods with.

homepage: github.com/rupertlssmith/lojix
fresh index:
last release: 2 years ago, first release: 4 years ago
packaging: maven-plugin
get this artifact from: central
see this artifact on: search.maven.org




This chart shows how much is this artifact used as a dependency in other Maven artifacts in Central repository and GitHub:


select version:

Add this snippet into pom.xml inside tag <project><build><plugins>:




Switch to artifact.
goals:
run:prod-script (phase: package)

CRC Card Responsibilities Collaborations

run:script (phase: package)

CRC Card Responsibilities Collaborations

Often used code snippets:

<plugin>
  <groupId>com.thesett</groupId>
  <artifactId>run-maven-plugin</artifactId>
  <configuration>
    <scriptOutDirectory>target</scriptOutDirectory>
    <systemproperties>
      <property>
        <name>log4j.configuration</name>
        <value>${log4j.configuration}</value>
      </property>
    </systemproperties>
    <commands>
      <wamdebug>com.thesett.aima.logic.fol.wam.debugger.Main</wamdebug>
    </commands>
  </configuration>
  <executions>
    <execution>
      <phase>package</phase>
      <goals>
        <goal>script</goal>
      </goals>
    </execution>
  </executions>
</plugin>
<plugin>
  <groupId>com.thesett</groupId>
  <artifactId>run-maven-plugin</artifactId>
  <configuration>
    <scriptOutDirectory>target</scriptOutDirectory>
    <systemproperties>
      <property>
        <name>log4j.configuration</name>
        <value>${log4j.configuration}</value>
      </property>
    </systemproperties>
    <commands>
      <checker>com.thesett.catalogue.checker.ModelChecker</checker>
    </commands>
  </configuration>
  <executions>
    <execution>
      <phase>package</phase>
      <goals>
        <goal>script</goal>
      </goals>
    </execution>
  </executions>
</plugin>
<plugin>
  <groupId>com.thesett</groupId>
  <artifactId>run-maven-plugin</artifactId>
  <configuration>
    <scriptOutDirectory>target</scriptOutDirectory>
    <systemproperties>
      <property>
        <name>log4j.configuration</name>
        <value>${log4j.configuration}</value>
      </property>
    </systemproperties>
    <commands>
      <generator>com.thesett.catalogue.generator.GeneratorTool</generator>
    </commands>
  </configuration>
  <executions>
    <execution>
      <phase>package</phase>
      <goals>
        <goal>script</goal>
      </goals>
    </execution>
  </executions>
</plugin>
<plugin>
  <groupId>com.thesett</groupId>
  <artifactId>run-maven-plugin</artifactId>
  <configuration>
    <scriptOutDirectory>target</scriptOutDirectory>
    <systemproperties>
      <property>
        <name>log4j.configuration</name>
        <value>${log4j.configuration}</value>
      </property>
    </systemproperties>
    <commands>
      <prolog>com.thesett.aima.logic.fol.prolog.PrologInterpreter</prolog>
            &gt;
                    
    
    </commands>
  </configuration>
  <executions>
    <execution>
      <phase>package</phase>
      <goals>
        <goal>script</goal>
      </goals>
    </execution>
  </executions>
</plugin>
<plugin>
  <groupId>com.thesett</groupId>
  <artifactId>run-maven-plugin</artifactId>
  <configuration>
    <scriptOutDirectory>target</scriptOutDirectory>
    <systemproperties>
      <property>
        <name>log4j.configuration</name>
        <value>${log4j.configuration}</value>
      </property>
    </systemproperties>
    <commands>
      <prolog>com.thesett.aima.logic.fol.prolog.PrologInterpreter</prolog>
    </commands>
  </configuration>
  <executions>
    <execution>
      <phase>package</phase>
      <goals>
        <goal>script</goal>
      </goals>
    </execution>
  </executions>
</plugin>

© Jiri Pinkas 2015 - 2018. All rights reserved. Admin login To submit bugs / feature requests please use this github page
related: JavaVids | Top Java Blogs | Java školení | 4npm - npm search | monitored using: sitemonitoring
Apache and Apache Maven are trademarks of the Apache Software Foundation. The Central Repository is a service mark of Sonatype, Inc.