Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dream21st
jenkins
提交
b02f9cc6
J
jenkins
项目概览
dream21st
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jenkins
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b02f9cc6
编写于
1月 10, 2011
作者:
O
Olivier Lamy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[HUDSON-8406] Add more options to configure maven project building
processPlugins and resolveDependencies are now configurable
上级
2637f6b6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
48 addition
and
4 deletion
+48
-4
maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java
maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java
+36
-1
maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
...lugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
+8
-3
maven-plugin/src/main/resources/hudson/maven/MavenModuleSet/configure-entries.jelly
...urces/hudson/maven/MavenModuleSet/configure-entries.jelly
+4
-0
未找到文件。
maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java
浏览文件 @
b02f9cc6
...
...
@@ -181,6 +181,18 @@ public final class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,Ma
* If true, do not archive artifacts to the master.
*/
private
boolean
archivingDisabled
=
false
;
/**
* parameter for pom parsing by default <code>false</code> to be faster
* @since 1.394
*/
private
boolean
resolveDependencies
=
false
;
/**
* parameter for pom parsing by default <code>false</code> to be faster
* @since 1.394
*/
private
boolean
processPlugins
=
false
;
/**
* Reporters configured at {@link MavenModuleSet} level. Applies to all {@link MavenModule} builds.
...
...
@@ -358,6 +370,26 @@ public final class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,Ma
public
void
setIsArchivingDisabled
(
boolean
archivingDisabled
)
{
this
.
archivingDisabled
=
archivingDisabled
;
}
public
boolean
isResolveDependencies
()
{
return
resolveDependencies
;
}
public
void
setResolveDependencies
(
boolean
resolveDependencies
)
{
this
.
resolveDependencies
=
resolveDependencies
;
}
public
boolean
isProcessPlugins
()
{
return
processPlugins
;
}
public
void
setProcessPlugins
(
boolean
processPlugins
)
{
this
.
processPlugins
=
processPlugins
;
}
/**
* List of active {@link MavenReporter}s that should be applied to all module builds.
...
...
@@ -764,7 +796,8 @@ public final class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,Ma
ignoreUpstremChanges
=
!
json
.
has
(
"triggerByDependency"
);
incrementalBuild
=
req
.
hasParameter
(
"maven.incrementalBuild"
);
archivingDisabled
=
req
.
hasParameter
(
"maven.archivingDisabled"
);
resolveDependencies
=
req
.
hasParameter
(
"maven.resolveDependencies"
);
processPlugins
=
req
.
hasParameter
(
"maven.processPlugins"
);
reporters
.
rebuild
(
req
,
json
,
MavenReporters
.
getConfigurableList
());
publishers
.
rebuild
(
req
,
json
,
BuildStepDescriptor
.
filter
(
Publisher
.
all
(),
this
.
getClass
()));
buildWrappers
.
rebuild
(
req
,
json
,
BuildWrappers
.
getFor
(
this
));
...
...
@@ -876,4 +909,6 @@ public final class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,Ma
}
}
maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
浏览文件 @
b02f9cc6
...
...
@@ -1003,6 +1003,10 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
private
final
String
workspaceProper
;
private
final
String
mavenVersion
;
private
boolean
resolveDependencies
=
false
;
private
boolean
processPlugins
=
false
;
String
rootPOMRelPrefix
;
public
PomParser
(
BuildListener
listener
,
MavenInstallation
mavenHome
,
MavenModuleSet
project
,
String
mavenVersion
)
{
...
...
@@ -1030,6 +1034,8 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
}
this
.
alternateSettings
=
project
.
getAlternateSettings
();
this
.
mavenVersion
=
mavenVersion
;
this
.
resolveDependencies
=
project
.
isResolveDependencies
();
this
.
processPlugins
=
project
.
isProcessPlugins
();
}
...
...
@@ -1099,9 +1105,8 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
privateRepository
,
settingsLoc
);
mavenEmbedderRequest
.
setTransferListener
(
new
SimpleTransferListener
(
listener
)
);
// FIXME must be configurable tru the ui !!
mavenEmbedderRequest
.
setProcessPlugins
(
true
);
mavenEmbedderRequest
.
setResolveDependencies
(
true
);
mavenEmbedderRequest
.
setProcessPlugins
(
this
.
processPlugins
);
mavenEmbedderRequest
.
setResolveDependencies
(
this
.
resolveDependencies
);
// FIXME handle 3.1 level when version will be here : no rush :-)
// or made something configurable tru the ui ?
...
...
maven-plugin/src/main/resources/hudson/maven/MavenModuleSet/configure-entries.jelly
浏览文件 @
b02f9cc6
...
...
@@ -88,6 +88,10 @@ THE SOFTWARE.
checked="${!it.aggregatorStyleBuild}" />
<f:optionalBlock name="maven.usePrivateRepository" title="${%Use private Maven repository}" help="/plugin/maven-plugin/private-repository.html"
checked="${it.usesPrivateRepository()}" />
<f:optionalBlock name="maven.resolveDependencies" title="${%Resolve Dependencies during Pom parsing}"
checked="${it.isResolveDependencies()}" />
<f:optionalBlock name="maven.processPlugins" title="${%Process Plugins during Pom parsing}"
checked="${it.isProcessPlugins()}" />
</f:advanced>
</f:section>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录