Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
  <name>Externals Maven Plugin</name>
  <description>Tooling for integrating Maven with Subversion externals</description>
  <groupId>org.kuali.maven.plugins</groupId>
  <artifactId>externals-maven-plugin</artifactId>
  <version>1.0.0</version>
  <goalPrefix>externals</goalPrefix>
  <isolatedRealm>false</isolatedRealm>
  <inheritedByDefault>true</inheritedByDefault>
  <mojos>
    <mojo>
      <goal>commit</goal>
      <description>Examine the local working copy of a project for any svn:externals definitions. Commit any local changes including any changes under the svn:externals directories.</description>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>true</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <implementation>org.kuali.maven.plugins.externals.CommitMojo</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <threadSafe>false</threadSafe>
      <parameters>
        <parameter>
          <name>commitMessage</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The message to associate with the commit</description>
        </parameter>
        <parameter>
          <name>project</name>
          <type>org.apache.maven.project.MavenProject</type>
          <required>false</required>
          <editable>false</editable>
          <description>The Maven project object</description>
        </parameter>
        <parameter>
          <name>workingCopy</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The directory where a local working copy of the project is checked out</description>
        </parameter>
      </parameters>
      <configuration>
        <commitMessage implementation="java.lang.String" default-value="[externals-maven-plugin] Commit changes">${externals.commitMessage}</commitMessage>
        <project implementation="org.apache.maven.project.MavenProject">${project}</project>
        <workingCopy implementation="java.io.File" default-value="${project.basedir}">${externals.workingCopy}</workingCopy>
      </configuration>
    </mojo>
    <mojo>
      <goal>tag</goal>
      <description>Connect svn:externals definitions with a multi-module Maven build in an intelligent manner. This mojo creates a tag from a Subversion checkout containing svn:externals
definitions that correspond to Maven modules. The version numbers in the respective poms are modified to reflect the current build. This allows the tag to be used to create
reproducible builds. The binaries Maven produces off the tag, correspond exactly to the version numbers in the Maven pom&apos;s.</description>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <implementation>org.kuali.maven.plugins.externals.TagMojo</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <threadSafe>false</threadSafe>
      <parameters>
        <parameter>
          <name>buildNumberProperty</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The property where the current build number is stored. Jenkins automatically sets an environment variable called &lt;code&gt;BUILD_NUMBER&lt;/code&gt; each time a job is run</description>
        </parameter>
        <parameter>
          <name>checkoutDir</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The directory where the new tag is checked out to</description>
        </parameter>
        <parameter>
          <name>createTagMessage</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The commit message for when the new tag is first created</description>
        </parameter>
        <parameter>
          <name>externalsMessage</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The commit message for when the &lt;code&gt;svn propset&lt;/code&gt; command is used to set externals on the tag</description>
        </parameter>
        <parameter>
          <name>file</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The location of a text file that contains the svn:externals definitions</description>
        </parameter>
        <parameter>
          <name>ignoreDirectories</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Directores to ignore when examining the file system for Maven pom&apos;s</description>
        </parameter>
        <parameter>
          <name>mappings</name>
          <type>java.util.List</type>
          <required>false</required>
          <editable>true</editable>
          <description>These mappings connect the svn:externals definitions with a property inside the root pom that controls what version each external is set to</description>
        </parameter>
        <parameter>
          <name>pom</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Filename pattern used to discover Maven pom&apos;s</description>
        </parameter>
        <parameter>
          <name>project</name>
          <type>org.apache.maven.project.MavenProject</type>
          <required>false</required>
          <editable>false</editable>
          <description>The Maven project object</description>
        </parameter>
        <parameter>
          <name>scmUrlPrefix</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The prefix Maven needs in front of the real SCM url</description>
        </parameter>
        <parameter>
          <name>tagStyle</name>
          <type>org.kuali.maven.plugins.externals.TagStyle</type>
          <required>false</required>
          <editable>true</editable>
          <description>Either &lt;code&gt;BUILDNUMBER&lt;/code&gt; or &lt;code&gt;REVISION&lt;/code&gt;</description>
        </parameter>
        <parameter>
          <name>updateTagMessage</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The commit message for when the updated pom&apos;s and svn.external file is committed to the tag</description>
        </parameter>
      </parameters>
      <configuration>
        <buildNumberProperty implementation="java.lang.String" default-value="env.BUILD_NUMBER">${externals.buildNumberProperty}</buildNumberProperty>
        <checkoutDir implementation="java.io.File" default-value="${project.build.directory}/checkout">${externals.checkoutDir}</checkoutDir>
        <createTagMessage implementation="java.lang.String" default-value="[externals-maven-plugin] Create tag">${externals.createTagMessage}</createTagMessage>
        <externalsMessage implementation="java.lang.String" default-value="[externals-maven-plugin] Set svn:externals">${externals.externalsMessage}</externalsMessage>
        <file implementation="java.io.File" default-value="${project.build.directory}/checkout/svn.externals">${externals.file}</file>
        <ignoreDirectories implementation="java.lang.String" default-value="src,target,.svn,.git">${externals.ignoreDirectories}</ignoreDirectories>
        <pom implementation="java.lang.String" default-value="pom.xml">${externals.pom}</pom>
        <project implementation="org.apache.maven.project.MavenProject">${project}</project>
        <scmUrlPrefix implementation="java.lang.String" default-value="scm:svn:">${externals.scmUrlPrefix}</scmUrlPrefix>
        <tagStyle implementation="org.kuali.maven.plugins.externals.TagStyle" default-value="BUILDNUMBER">${externals.tagStyle}</tagStyle>
        <updateTagMessage implementation="java.lang.String" default-value="[externals-maven-plugin] Tag maintenance">${externals.updateTagMessage}</updateTagMessage>
      </configuration>
    </mojo>
    <mojo>
      <goal>formatpoms</goal>
      <description>Recursively examine the file system for Maven poms starting at &lt;code&gt;basedir&lt;/code&gt;. Any pom.xml files located have formatting applied to them.</description>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>true</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <implementation>org.kuali.maven.plugins.externals.FormatPomsMojo</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <threadSafe>false</threadSafe>
      <parameters>
        <parameter>
          <name>basedir</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>Directories to ignore when examining the file system</description>
        </parameter>
        <parameter>
          <name>ignoreDirectories</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Directories to ignore when examining the file system</description>
        </parameter>
        <parameter>
          <name>pom</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The filename to include when examining the file system for Maven pom&apos;s</description>
        </parameter>
        <parameter>
          <name>project</name>
          <type>org.apache.maven.project.MavenProject</type>
          <required>false</required>
          <editable>false</editable>
          <description>The Maven project object</description>
        </parameter>
      </parameters>
      <configuration>
        <basedir implementation="java.io.File" default-value="${project.basedir}">${externals.basedir}</basedir>
        <ignoreDirectories implementation="java.lang.String" default-value="src,target,.svn,.git">${externals.ignoreDirectories}</ignoreDirectories>
        <pom implementation="java.lang.String" default-value="pom.xml">${externals.pom}</pom>
        <project implementation="org.apache.maven.project.MavenProject">${project}</project>
      </configuration>
    </mojo>
  </mojos>
  <dependencies>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-core</artifactId>
      <type>jar</type>
      <version>3.1.1.RELEASE</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-asm</artifactId>
      <type>jar</type>
      <version>3.1.1.RELEASE</version>
    </dependency>
    <dependency>
      <groupId>org.kuali.maven.common</groupId>
      <artifactId>maven-kuali-common</artifactId>
      <type>jar</type>
      <version>1.2.11</version>
    </dependency>
    <dependency>
      <groupId>org.apache.ant</groupId>
      <artifactId>ant</artifactId>
      <type>jar</type>
      <version>1.8.2</version>
    </dependency>
    <dependency>
      <groupId>org.apache.ant</groupId>
      <artifactId>ant-launcher</artifactId>
      <type>jar</type>
      <version>1.8.2</version>
    </dependency>
    <dependency>
      <groupId>org.codehaus.plexus</groupId>
      <artifactId>plexus-utils</artifactId>
      <type>jar</type>
      <version>3.0</version>
    </dependency>
    <dependency>
      <groupId>org.codehaus.plexus</groupId>
      <artifactId>plexus-interpolation</artifactId>
      <type>jar</type>
      <version>1.15</version>
    </dependency>
    <dependency>
      <groupId>org.tmatesoft.svnkit</groupId>
      <artifactId>svnkit</artifactId>
      <type>jar</type>
      <version>1.7.5-v1</version>
    </dependency>
    <dependency>
      <groupId>de.regnis.q.sequence</groupId>
      <artifactId>sequence-library</artifactId>
      <type>jar</type>
      <version>1.0.2</version>
    </dependency>
    <dependency>
      <groupId>net.java.dev.jna</groupId>
      <artifactId>jna</artifactId>
      <type>jar</type>
      <version>3.4.0</version>
    </dependency>
    <dependency>
      <groupId>org.tmatesoft.sqljet</groupId>
      <artifactId>sqljet</artifactId>
      <type>jar</type>
      <version>1.1.4</version>
    </dependency>
    <dependency>
      <groupId>org.antlr</groupId>
      <artifactId>antlr-runtime</artifactId>
      <type>jar</type>
      <version>3.4</version>
    </dependency>
    <dependency>
      <groupId>com.trilead</groupId>
      <artifactId>trilead-ssh2</artifactId>
      <type>jar</type>
      <version>1.0.0-build215</version>
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <type>jar</type>
      <version>2.3</version>
    </dependency>
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <type>jar</type>
      <version>2.6</version>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <type>jar</type>
      <version>1.6.4</version>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>jcl-over-slf4j</artifactId>
      <type>jar</type>
      <version>1.6.4</version>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
      <type>jar</type>
      <version>1.6.4</version>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <type>jar</type>
      <version>1.2.16</version>
    </dependency>
  </dependencies>
</plugin>
New to GrepCode? Check out our FAQ X