jade-native:resource-compile

Compile Windows resource files @author Dan T. Tran @version $Id: NativeResourceCompileMojo.java 2464 2006-10-02 00:45:47Z dantran $

Mojo Attributes:

  • Requires a Maven 2.0 project to execute.
  • Automatically executes within the lifecycle phase: generate-sources

Required Parameters

Name Type Description
compilerProvider String Compiler Provider Type Default value is generic.
provider String Compiler Provider Type Default value is msvc.

Optional Parameters

Name Type Description
projectHelper MavenProjectHelper project-helper instance, used to make addition of resources simpler
artifactResolver ArtifactResolver Used to look up Artifacts in the local or remote repository.
artifactFactory ArtifactFactory Used to look up Artifacts in the local or remote repository.
localRepository ArtifactRepository The local repository
pluginArtifacts Artifact> The plugin dependency artifacts
maven2AntManager Maven2AntManager The manager to link maven project with an Ant project.
nameProvider ProjectNameProvider No description.
envFactoryName String Specifies a fully qualified class name implementing the org.codehaus.mojo.natives.EnvFactory interface. The class creates a set environment variables to be used with the command line.
versionNameNoSnapshot boolean Flag to tell if the "-SNAPSHOT" in library name should be removed. True by default Default value is true.
skipTest boolean Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, but quite convenient on occasion.
sharedOptions String A flag to use the shared options during compilation and link. If left null, the automatic behavior is based on the packaging type. It means all library modules (.a, .so, .dll) will return true. If set to true the plugin will always inlcude the shared options.
includePackagingTypes String> List of packaging types you want the plugin to work on. If a module (project POM) has a packaging that is not listed here, the plugin will do nothing (skip all phases). This is very useful for RPM pack, static analysis and other tools.
excludePackagingTypes String> List of packaging types you DON'T want the plugin to work on. If a module (project POM) has a packaging that is listed here, the plugin will do nothing (skip all phases). This is very useful for RPM pack, static analysis and other tools.
groupDefinitions GroupDefinition> Definition of group to name mapping.
resourceCompilerExecutable String Use this field to override provider specific resource compiler executable
resourceCompilerOptions String> Resource compiler options
sources NativeSources> Array of NativeSources containing include directories and source files

Parameter Details

projectHelper

project-helper instance, used to make addition of resources simpler

  • Type: org.apache.maven.project.MavenProjectHelper
  • Required: No

artifactResolver Used to look up Artifacts in the local or remote repository.
  • Type: org.apache.maven.artifact.resolver.ArtifactResolver
  • Required: No

artifactFactory Used to look up Artifacts in the local or remote repository.
  • Type: org.apache.maven.artifact.factory.ArtifactFactory
  • Required: No

localRepository The local repository
  • Type: org.apache.maven.artifact.repository.ArtifactRepository
  • Required: No
  • Expression: ${localRepository}

pluginArtifacts The plugin dependency artifacts
  • Type: java.util.List<org.apache.maven.artifact.Artifact>
  • Required: No
  • Expression: ${plugin.artifacts}

maven2AntManager The manager to link maven project with an Ant project.
  • Type: org.jfrog.jade.plugins.common.ant.Maven2AntManager
  • Required: No

nameProvider No Description.
  • Type: org.jfrog.jade.plugins.common.naming.ProjectNameProvider
  • Required: No

envFactoryName Specifies a fully qualified class name implementing the org.codehaus.mojo.natives.EnvFactory interface. The class creates a set environment variables to be used with the command line.
  • Type: java.lang.String
  • Required: No

versionNameNoSnapshot Flag to tell if the "-SNAPSHOT" in library name should be removed. True by default
  • Type: boolean
  • Required: No
  • Default: true

compilerProvider Compiler Provider Type
  • Type: java.lang.String
  • Required: Yes
  • Default: generic

skipTest Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, but quite convenient on occasion.
  • Type: boolean
  • Required: No
  • Expression: ${maven.test.skip}

sharedOptions A flag to use the shared options during compilation and link. If left null, the automatic behavior is based on the packaging type. It means all library modules (.a, .so, .dll) will return true. If set to true the plugin will always inlcude the shared options.
  • Type: java.lang.String
  • Required: No

includePackagingTypes List of packaging types you want the plugin to work on. If a module (project POM) has a packaging that is not listed here, the plugin will do nothing (skip all phases). This is very useful for RPM pack, static analysis and other tools.
  • Type: java.util.List<java.lang.String>
  • Required: No

excludePackagingTypes List of packaging types you DON'T want the plugin to work on. If a module (project POM) has a packaging that is listed here, the plugin will do nothing (skip all phases). This is very useful for RPM pack, static analysis and other tools.
  • Type: java.util.List<java.lang.String>
  • Required: No

groupDefinitions Definition of group to name mapping.
  • Type: java.util.Set<org.jfrog.jade.plugins.common.naming.GroupDefinition>
  • Required: No

provider Compiler Provider Type
  • Type: java.lang.String
  • Required: Yes
  • Default: msvc

resourceCompilerExecutable Use this field to override provider specific resource compiler executable
  • Type: java.lang.String
  • Required: No

resourceCompilerOptions Resource compiler options
  • Type: java.util.List<java.lang.String>
  • Required: No

sources Array of NativeSources containing include directories and source files
  • Type: java.util.List<org.codehaus.mojo.natives.NativeSources>
  • Required: No