Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<plugin>
  <description>Maven plugin for jboss retro</description>
  <groupId>org.jboss.maven.plugins</groupId>
  <artifactId>maven-jboss-retro-plugin</artifactId>
  <version>1.0-beta-1</version>
  <goalPrefix>jboss-retro</goalPrefix>
  <isolatedRealm>false</isolatedRealm>
  <inheritedByDefault>true</inheritedByDefault>
  <mojos>
    <mojo>
      <goal>weave</goal>
      <description>Maven plugin for JBoss Retro Weaver. This can be used to
do byte code weaving on classes in jars and directories.
By default the weaver will weave the main classes
and output the result to a jar with the specified classifier.</description>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <phase>process-classes</phase>
      <implementation>org.jboss.maven.plugins.retro.WeaveMojo</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <parameters>
        <parameter>
          <name>attachJar</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Attach a jar of the weaved classes to the build lifecycle. This will
allow the weaved jar to be deployed with the other build artifacts.</description>
        </parameter>
        <parameter>
          <name>classesDirectory</name>
          <type>java.io.File</type>
          <required>true</required>
          <editable>true</editable>
          <description>The directory for compiled classes.</description>
        </parameter>
        <parameter>
          <name>classifier</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Classifier to append to the weaved output file (artifact).
Defaults to null. If the classifier is null, then the jar
of the weaved classes will replace the main artifact.</description>
        </parameter>
        <parameter>
          <name>classpathElements</name>
          <type>java.util.List</type>
          <required>true</required>
          <editable>true</editable>
          <description>Project classpath.</description>
        </parameter>
        <parameter>
          <name>fork</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Fork the process to a separate jvm</description>
        </parameter>
        <parameter>
          <name>jvm</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Path to Java virtual machine to use when forking</description>
        </parameter>
        <parameter>
          <name>outputDirectory</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The directory where the weaved classes
should be written.</description>
        </parameter>
        <parameter>
          <name>pluginArtifacts</name>
          <type>java.util.List</type>
          <required>true</required>
          <editable>false</editable>
          <description>The plugin dependencies.</description>
        </parameter>
        <parameter>
          <name>project</name>
          <type>org.apache.maven.project.MavenProject</type>
          <required>true</required>
          <editable>false</editable>
          <description>The Maven Project Object</description>
        </parameter>
        <parameter>
          <name>suppress</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Suppress output information.</description>
        </parameter>
        <parameter>
          <name>useSystemClasspath</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Use the system classpath.</description>
        </parameter>
        <parameter>
          <name>verbose</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Include verbose output.</description>
        </parameter>
        <parameter>
          <name>weaverClass</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The Weaver class to use for weaving the classes.
Defaults to org.jboss.weaver.Weaver
Any subclass of org.jboss.weaver.Weaver can be used.
To compile from jdk1.5 to jdk1.4, set this to &quot;org.jboss.weaver.retro.WeaverRetroJdk14&quot;.</description>
        </parameter>
      </parameters>
      <configuration>
        <useSystemClasspath implementation="boolean" default-value="false"/>
        <classesDirectory implementation="java.io.File">${project.build.outputDirectory}</classesDirectory>
        <weaverClass implementation="java.lang.String" default-value="org.jboss.weaver.Weaver"/>
        <suppress implementation="boolean" default-value="false"/>
        <outputDirectory implementation="java.io.File">${project.build.directory}/classes-weaved</outputDirectory>
        <classpathElements implementation="java.util.List">${project.compileClasspathElements}</classpathElements>
        <verbose implementation="boolean" default-value="false"/>
        <project implementation="org.apache.maven.project.MavenProject">${project}</project>
        <pluginArtifacts implementation="java.util.List">${plugin.artifacts}</pluginArtifacts>
      </configuration>
      <requirements>
        <requirement>
          <role>org.apache.maven.project.MavenProjectHelper</role>
          <field-name>projectHelper</field-name>
        </requirement>
      </requirements>
    </mojo>
    <mojo>
      <goal>weave-tests</goal>
      <description>Maven plugin for JBoss Retro Weaver. This mojo is set up
to weave the test classes and optionally generate a jar of
the weaved classes.</description>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <phase>process-test-classes</phase>
      <implementation>org.jboss.maven.plugins.retro.WeaveTestsMojo</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <parameters>
        <parameter>
          <name>attachJar</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Attach a jar of the weaved classes to the build lifecycle. This will
allow the weaved jar to be deployed with the other build artifacts.</description>
        </parameter>
        <parameter>
          <name>classesDirectory</name>
          <type>java.io.File</type>
          <required>true</required>
          <editable>true</editable>
          <description>The directory containing the classes to be weaved.</description>
        </parameter>
        <parameter>
          <name>classifier</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Classifier to append to the weaved output file (artifact).
Defaults to null. If the classifier is null, then the jar
of the weaved classes will replace the main artifact.</description>
        </parameter>
        <parameter>
          <name>classpathElements</name>
          <type>java.util.List</type>
          <required>true</required>
          <editable>true</editable>
          <description>Project classpath.</description>
        </parameter>
        <parameter>
          <name>fork</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Fork the process to a separate jvm</description>
        </parameter>
        <parameter>
          <name>jvm</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Path to Java virtual machine to use when forking</description>
        </parameter>
        <parameter>
          <name>outputDirectory</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The jar file or directory where the weaved classes
should be written. Defaults to &quot;target/test-classes-weaved&quot;</description>
        </parameter>
        <parameter>
          <name>pluginArtifacts</name>
          <type>java.util.List</type>
          <required>true</required>
          <editable>false</editable>
          <description>The plugin dependencies.</description>
        </parameter>
        <parameter>
          <name>project</name>
          <type>org.apache.maven.project.MavenProject</type>
          <required>true</required>
          <editable>false</editable>
          <description>The Maven Project Object</description>
        </parameter>
        <parameter>
          <name>suppress</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Suppress output information.</description>
        </parameter>
        <parameter>
          <name>useSystemClasspath</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Use the system classpath.</description>
        </parameter>
        <parameter>
          <name>verbose</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Include verbose output.</description>
        </parameter>
        <parameter>
          <name>weaverClass</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The Weaver class to use for weaving the classes.
Defaults to org.jboss.weaver.Weaver
Any subclass of org.jboss.weaver.Weaver can be used.
To compile from jdk1.5 to jdk1.4, set this to &quot;org.jboss.weaver.retro.WeaverRetroJdk14&quot;.</description>
        </parameter>
      </parameters>
      <configuration>
        <useSystemClasspath implementation="boolean" default-value="false"/>
        <classesDirectory implementation="java.io.File">${project.build.testOutputDirectory}</classesDirectory>
        <weaverClass implementation="java.lang.String" default-value="org.jboss.weaver.Weaver"/>
        <suppress implementation="boolean" default-value="false"/>
        <outputDirectory implementation="java.io.File">${project.build.directory}/test-classes-weaved</outputDirectory>
        <classpathElements implementation="java.util.List">${project.testClasspathElements}</classpathElements>
        <verbose implementation="boolean" default-value="false"/>
        <project implementation="org.apache.maven.project.MavenProject">${project}</project>
        <pluginArtifacts implementation="java.util.List">${plugin.artifacts}</pluginArtifacts>
      </configuration>
      <requirements>
        <requirement>
          <role>org.apache.maven.project.MavenProjectHelper</role>
          <field-name>projectHelper</field-name>
        </requirement>
      </requirements>
    </mojo>
    <mojo>
      <goal>weave-dependencies</goal>
      <description>This Mojo can be used to weave project dependencies.</description>
      <requiresDependencyResolution>runtime</requiresDependencyResolution>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <implementation>org.jboss.maven.plugins.retro.WeaveDependenciesMojo</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <parameters>
        <parameter>
          <name>classifier</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Classifier to append to the weaved output file (artifact).
Defaults to null. If the classifier is null, then the jar
of the weaved classes will replace the main artifact.</description>
        </parameter>
        <parameter>
          <name>deployDependencies</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Deploy weaved dependencies to a repository.</description>
        </parameter>
        <parameter>
          <name>deployUrl</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>URL where the artifact will be deployed. &lt;br/&gt;
ie ( file://C:\m2-repo or scp://host.com/path/to/repo )
Note: this parameter is required if deployDependencies is set
to true.</description>
        </parameter>
        <parameter>
          <name>fork</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Fork the process to a separate jvm</description>
        </parameter>
        <parameter>
          <name>installDependencies</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Install weaved dependencies to a local repository.</description>
        </parameter>
        <parameter>
          <name>jvm</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Path to Java virtual machine to use when forking</description>
        </parameter>
        <parameter>
          <name>localRepository</name>
          <type>org.apache.maven.artifact.repository.ArtifactRepository</type>
          <required>true</required>
          <editable>false</editable>
          <description>INTERNAL : Local maven repository.</description>
        </parameter>
        <parameter>
          <name>localRepositoryId</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The &lt;code&gt;id&lt;/code&gt; for the &lt;code&gt;localRepo&lt;/code&gt;</description>
        </parameter>
        <parameter>
          <name>localRepositoryPath</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The path for a specific local repository directory. It will wrap into an &lt;code&gt;ArtifactRepository&lt;/code&gt;
with &lt;code&gt;localRepoId&lt;/code&gt; as &lt;code&gt;id&lt;/code&gt; and with default &lt;code&gt;repositoryLayout&lt;/code&gt;</description>
        </parameter>
        <parameter>
          <name>outputDirectory</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The directory where the weaved jar files should be written.
should be written.</description>
        </parameter>
        <parameter>
          <name>pluginArtifacts</name>
          <type>java.util.List</type>
          <required>true</required>
          <editable>false</editable>
          <description>The plugin dependencies.</description>
        </parameter>
        <parameter>
          <name>project</name>
          <type>org.apache.maven.project.MavenProject</type>
          <required>true</required>
          <editable>false</editable>
          <description>The Maven Project Object</description>
        </parameter>
        <parameter>
          <name>repositoryId</name>
          <type>java.lang.String</type>
          <required>true</required>
          <editable>true</editable>
          <description>Server Id to map on the &amp;lt;id&amp;gt; under &amp;lt;server&amp;gt; section of settings.xml
In most cases, this parameter will be required for authentication.</description>
        </parameter>
        <parameter>
          <name>repositoryLayout</name>
          <type>java.lang.String</type>
          <required>true</required>
          <editable>true</editable>
          <description>The type of remote repository layout to deploy to. Try &lt;i&gt;legacy&lt;/i&gt; for
a Maven 1.x-style repository layout.</description>
        </parameter>
        <parameter>
          <name>suppress</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Suppress output information.</description>
        </parameter>
        <parameter>
          <name>uniqueVersion</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Whether to deploy snapshots with a unique version or not.</description>
        </parameter>
        <parameter>
          <name>useSystemClasspath</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Use the system classpath.</description>
        </parameter>
        <parameter>
          <name>verbose</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Include verbose output.</description>
        </parameter>
        <parameter>
          <name>weaverClass</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The Weaver class to use for weaving the classes.
Defaults to org.jboss.weaver.Weaver
Any subclass of org.jboss.weaver.Weaver can be used.
To compile from jdk1.5 to jdk1.4, set this to &quot;org.jboss.weaver.retro.WeaverRetroJdk14&quot;.</description>
        </parameter>
      </parameters>
      <configuration>
        <useSystemClasspath implementation="boolean" default-value="false"/>
        <installDependencies implementation="boolean" default-value="false"/>
        <weaverClass implementation="java.lang.String" default-value="org.jboss.weaver.Weaver"/>
        <repositoryLayout implementation="java.lang.String" default-value="default">${repositoryLayout}</repositoryLayout>
        <localRepository implementation="org.apache.maven.artifact.repository.ArtifactRepository">${localRepository}</localRepository>
        <pluginArtifacts implementation="java.util.List">${plugin.artifacts}</pluginArtifacts>
        <uniqueVersion implementation="boolean" default-value="true">${uniqueVersion}</uniqueVersion>
        <localRepositoryPath implementation="java.io.File">${localRepositoryPath}</localRepositoryPath>
        <outputDirectory implementation="java.lang.String">${project.build.directory}/weaved-dependencies</outputDirectory>
        <suppress implementation="boolean" default-value="false"/>
        <repositoryId implementation="java.lang.String" default-value="remote-repository">${repositoryId}</repositoryId>
        <verbose implementation="boolean" default-value="false"/>
        <project implementation="org.apache.maven.project.MavenProject">${project}</project>
        <deployDependencies implementation="boolean" default-value="false"/>
        <localRepositoryId implementation="java.lang.String">${localRepositoryId}</localRepositoryId>
      </configuration>
      <requirements>
        <requirement>
          <role>org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout</role>
          <field-name>repositoryLayouts</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.project.MavenProjectHelper</role>
          <field-name>projectHelper</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.artifact.deployer.ArtifactDeployer</role>
          <field-name>deployer</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.artifact.repository.ArtifactRepositoryFactory</role>
          <field-name>repositoryFactory</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.artifact.installer.ArtifactInstaller</role>
          <field-name>installer</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.artifact.resolver.ArtifactResolver</role>
          <field-name>artifactResolver</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.artifact.metadata.ArtifactMetadataSource</role>
          <field-name>artifactMetadataSource</field-name>
        </requirement>
      </requirements>
    </mojo>
    <mojo>
      <goal>retro-check</goal>
      <description>Mojo for running the retro check test.
NOTE: The retro check functionality is meant to be used with
the jdk1.5 to 1.4 conversion. Other types of class weaving do
not need to use this mojo. This mojo should be run using
a java1.4 jvm, which can be set using the jvm configuration
parameter.</description>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <phase>test</phase>
      <implementation>org.jboss.maven.plugins.retro.RetroCheckMojo</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <parameters>
        <parameter>
          <name>checkDirectory</name>
          <type>java.lang.String</type>
          <required>true</required>
          <editable>true</editable>
          <description>The path to the classes to be checked, relative to
the build directory. Defaults to a value of
&quot;classes-weaved&quot; which means that classes in the direcotry
target/classes-weaved will be checked.</description>
        </parameter>
        <parameter>
          <name>ignoreErrors</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Ignore check errors. If set to true, the build will continue
regardless of whether there are check errors.
Default is false.</description>
        </parameter>
        <parameter>
          <name>jvm</name>
          <type>java.lang.String</type>
          <required>true</required>
          <editable>true</editable>
          <description>Option to specify the jvm (or path to the java executable) to use with the forking options. For the default, the
jvm will be the same as the one used to run Maven.</description>
        </parameter>
        <parameter>
          <name>localRepository</name>
          <type>org.apache.maven.artifact.repository.ArtifactRepository</type>
          <required>true</required>
          <editable>false</editable>
          <description>INTERNAL : Local maven repository.</description>
        </parameter>
        <parameter>
          <name>pluginArtifacts</name>
          <type>java.util.List</type>
          <required>true</required>
          <editable>false</editable>
          <description>The plugin artifacts.</description>
        </parameter>
        <parameter>
          <name>pluginComponents</name>
          <type>java.util.List</type>
          <required>true</required>
          <editable>false</editable>
          <description>The Maven Plugin components</description>
        </parameter>
        <parameter>
          <name>project</name>
          <type>org.apache.maven.project.MavenProject</type>
          <required>true</required>
          <editable>true</editable>
          <description>The Maven Project Object</description>
        </parameter>
        <parameter>
          <name>suppress</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Suppress output</description>
        </parameter>
        <parameter>
          <name>verbose</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>Enable verbose output</description>
        </parameter>
      </parameters>
      <configuration>
        <pluginComponents implementation="java.util.List">${plugin.components}</pluginComponents>
        <localRepository implementation="org.apache.maven.artifact.repository.ArtifactRepository">${localRepository}</localRepository>
        <project implementation="org.apache.maven.project.MavenProject">${project}</project>
        <pluginArtifacts implementation="java.util.List">${plugin.artifacts}</pluginArtifacts>
      </configuration>
      <requirements>
        <requirement>
          <role>org.apache.maven.project.MavenProjectHelper</role>
          <field-name>projectHelper</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.artifact.resolver.ArtifactResolver</role>
          <field-name>artifactResolver</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.artifact.factory.ArtifactFactory</role>
          <field-name>artifactFactory</field-name>
        </requirement>
      </requirements>
    </mojo>
  </mojos>
  <dependencies/>
</plugin>
New to GrepCode? Check out our FAQ X