appassembler-maven-plugin
来源:互联网 发布:行知实验学校怎么样 编辑:程序博客网 时间:2024/06/16 07:22
http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/assemble-mojo.html#extraJvmArguments
appassembler:assemble
Full name:
org.codehaus.mojo:appassembler-maven-plugin:1.3:assemble
Description:
Attributes:
- Requires a Maven project to be executed.
- Requires dependency resolution of artifacts in scope: runtime.
- Binds by default to the lifecycle phase: package.
Required Parameters
Default value is: ${project.build.directory}/appassembler.programsSet-The set of Programs that bin files will be generated for.
Optional Parameters
<binFileExtensions> <unix>.sh</unix> </binFileExtensions>
Default value is: bin.configurationDirectoryString-The name of the target directory for configuration files.
Default value is: etc.configurationSourceDirectoryFile1.1The name of the source directory for configuration files.
Default value is: src/main/config.copyConfigurationDirectoryboolean1.1If the source configuration directory should be copied to the configured configurationDirectory.
Default value is: false.environmentSetupFileNameString-Setup file in $BASEDIR/bin to be called prior to execution.extraJvmArgumentsString-Extra arguments that will be given to the JVM verbatim. If you define JvmSettings on theProgram.setJvmSettings() level this part will be overwritten by the given parameters on program level. Otherwise ifProgram.setJvmSettings() is not given these settings will be used instead. This can be used to define some default values whereas by using theProgram.setJvmSettings() to overwrite the default settings. This is only valid for the extraJvmArguments not for the rest of theJvmSettings. Since 1.2 it's possible to use place holder @BASEDIR@ and@REPO@ which will be expanded based on the platform for which the appropriate script will generated.generateRepositoryboolean-Set to false to skip repository generation.
Default value is: true.includeConfigurationDirectoryInClasspathboolean-If the configurationDirectory (etc by default) should be included in the beginning of the classpath in the generated bin files.
Default value is: true.licenseHeaderFileFile1.2You can define a license header file which will be used instead the default header in the generated scripts.platformsSet-The default platforms the plugin will generate bin files for. Configure with string values - "all"(default/empty) | "windows" | "unix".projectArtifactFirstInClassPathboolean1.2.1This can be used to put the project artifact as the first entry in the classpath after the configuration folder (etc by default). The default behavior is to have the project artifact at the last position in classpath.
Default value is: false.repositoryLayoutString-The layout of the generated Maven repository. Supported types - "default" (Maven2) | "legacy" (Maven1) | "flat" (flatlib/ style). The style "legacy" is only supported if you are running under Maven 2.2.1 and before.
Default value is: default.repositoryNameString-Path (relative to assembleDirectory) of the desired output repository.
Default value is: repo.showConsoleWindowboolean-Show console window when execute this application. When false, the generated java command runs in background. This works best for Swing application where the command line invocation is not blocked.
Default value is: true.unixScriptTemplateString1.3The unix template of the generated script. It can be a file or resource path. If not given, an internal one is used. Use with case since it not guaranteed to be compatible with new plugin releaseuseAllDependenciesboolean1.2.1Deprecated. Use useallProjectDependencies instead.
Default value is: false.useAllProjectDependenciesboolean1.2.3The following can be used to use all project dependencies instead of the default behavior which representsruntime dependencies only.
Default value is: false.useAsterikClassPathboolean1.2.2Deprecated. Use useWildcardClassPath instead.
Default value is: false.useTimestampInSnapshotFileNameboolean1.3For those snapshots download from remote repo, replace the timestamp part with "SNAPSHOT" instead
Default value is: true.useWildcardClassPathboolean1.2.3Sometimes it happens that you have many dependencies which means in other words having a very long classpath. And sometimes the classpath becomes too long (in particular on Windows based platforms). This option can help in such situation. If you activate that your classpath contains only a classpath wildcard (REPO/*). But be aware that this works only in combination with Java 1.6 and above and withrepositoryLayoutflat. Otherwise this configuration will not work.
Default value is: false.windowsScriptTemplateString1.3The windows template of the generated script. It can be a file or resource path. If not given, an internal one is used. Use with case since it is not guaranteed to be compatible with new plugin release
Parameter Details
assembleDirectory:
- Type: java.io.File
- Required: Yes
- Expression: ${assembleDirectory}
- Default: ${project.build.directory}/appassembler
binFileExtensions:
<binFileExtensions> <unix>.sh</unix> </binFileExtensions>
- Type: java.util.Map
- Since: 1.1
- Required: No
binFolder:
- Type: java.lang.String
- Since: 1.2
- Required: No
- Default: bin
configurationDirectory:
- Type: java.lang.String
- Required: No
- Default: etc
configurationSourceDirectory:
- Type: java.io.File
- Since: 1.1
- Required: No
- Default: src/main/config
copyConfigurationDirectory:
- Type: boolean
- Since: 1.1
- Required: No
- Default: false
environmentSetupFileName:
- Type: java.lang.String
- Required: No
extraJvmArguments:
- Type: java.lang.String
- Required: No
generateRepository:
- Type: boolean
- Required: No
- Default: true
includeConfigurationDirectoryInClasspath:
- Type: boolean
- Required: No
- Default: true
licenseHeaderFile:
- Type: java.io.File
- Since: 1.2
- Required: No
platforms:
- Type: java.util.Set
- Required: No
programs:
- Type: java.util.Set
- Required: Yes
projectArtifactFirstInClassPath:
- Type: boolean
- Since: 1.2.1
- Required: No
- Default: false
repositoryLayout:
- Type: java.lang.String
- Required: No
- Default: default
repositoryName:
- Type: java.lang.String
- Required: No
- Default: repo
showConsoleWindow:
- Type: boolean
- Required: No
- Default: true
unixScriptTemplate:
- Type: java.lang.String
- Since: 1.3
- Required: No
- Expression: ${unixScriptTemplate}
useAllDependencies:
- Type: boolean
- Since: 1.2.1
- Required: No
- Default: false
useAllProjectDependencies:
- Type: boolean
- Since: 1.2.3
- Required: No
- Default: false
useAsterikClassPath:
- Type: boolean
- Since: 1.2.2
- Required: No
- Default: false
useTimestampInSnapshotFileName:
- Type: boolean
- Since: 1.3
- Required: No
- Default: true
useWildcardClassPath:
- Type: boolean
- Since: 1.2.3
- Required: No
- Default: false
windowsScriptTemplate:
- Type: java.lang.String
- Since: 1.3
- Required: No
- Expression: ${unixScriptTemplate}
================example
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<!-- new gateway start script -->
<id>new-start-script</id>
<phase>prepare-package</phase>
<configuration>
<assembleDirectory>${project.build.directory}</assembleDirectory>
<extraJvmArguments>-Xms256m -Xmx512m -Dapp.name=${SERVER_NAME}_svr -Dlogfile=$LOGFILE
</extraJvmArguments>
<repositoryName>lib</repositoryName>
<repositoryLayout>flat</repositoryLayout>
<configurationDirectory>config</configurationDirectory>
<copyConfigurationDirectory>false</copyConfigurationDirectory>
<includeConfigurationDirectoryInClasspath>true</includeConfigurationDirectoryInClasspath>
<binFileExtensions>
<unix>.sh</unix>
</binFileExtensions>
<platforms>
<platform>unix</platform>
</platforms>
<programs>
<program>
<name>start0</name>
<mainClass>gravity.framework.core.ApplicationContextGateway</mainClass>
<platforms>
<platform>windows</platform>
<platform>unix</platform>
</platforms>
</program>
</programs>
</configuration>
<goals>
<goal>assemble</goal>
</goals>
</execution>
</executions>
</plugin>
- maven appassembler-maven-plugin
- appassembler-maven-plugin
- appassembler-maven-plugin
- appassembler-maven-plugin useAllDependencies
- 使用appassembler-maven-plugin插件生成启动脚本
- maven打包插件:appassembler
- Maven Plugin
- maven:maven-assembly-plugin
- maven native2ascii-maven-plugin 例子
- cobertura-maven-plugin插件 maven
- maven搭配android-maven-plugin
- MAVEN ERROR maven-resources-plugin
- maven插件 buildnumber-maven-plugin
- Maven配置maven-compiler-plugin
- Maven插件:maven-javadoc-plugin
- maven配置tomcat-maven-plugin
- maven-plugins---maven-assembly-plugin
- [Maven]maven-shade-plugin使用指南
- Spring-Data-Jpa
- 关于 UIImage ImageNamed的内存释放。
- html 页面部门打印
- 遮罩层DEMO
- War3快捷键大全—常用的键
- appassembler-maven-plugin
- priority_queue(优先队列)用法总结
- Android 资源文件中@、@android:type、@*、?、@+含义和区别
- JGTM'2004 [MVP] 对MarshalByRefObject的讲解 (zz.is2120)
- 还在为自己的将来幻想
- RHEL5 安装序列号
- 解决XP系统下"HTTP 错误 403.9 - 禁止访问:连接的用户过多"的问题
- Extjs---HBox的使用
- C#读、写、删除注册表