手机银行余额宝里放钱安全吗吗

maven不想继承父项目的某个plugin,怎么设置 - 开源中国社区
当前访客身份:游客 [
当前位置:
maven父项目配置了
spring-boot-maven-plugin
子项目默认会继承,其中一个子项目不想继承这个plugin,怎么设置
共有7个答案
<span class="a_vote_num" id="a_vote_num_
用extensions属性
&extensions&
&exclusion&
&groupId&org.springframework.boot&/groupId&
&artifactId&spring-boot-maven-plugin&/artifactId&
&/extension&
&/extensions&
具体参照xsd文件:&http://maven.apache.org/xsd/maven-4.0.0.xsd
<span class="a_vote_num" id="a_vote_num_
父项目的pom.xml中,使用&pluginManagement&&/pluginManagement&,内部声明的plugin如果不在子项目声明相同的groupId、artifactId是不会被继承的
<span class="a_vote_num" id="a_vote_num_
引用来自“飘逸的逸”的评论
用extensions属性
&extensions&
&exclusion&
&groupId&org.springframework.boot&/groupId&
&artifactId&spring-boot-maven-plugin&/artifactId&
&/extension&
&/extensions&
具体参照xsd文件:&http://maven.apache.org/xsd/maven-4.0.0.xsd
是放到build里吗?
&extensions&
&extension&
&groupId&org.springframework.boot&/groupId&
&artifactId&spring-boot-maven-plugin&/artifactId&
&/extension&
&/extensions&
执行mvn package时还是调用了那个插件,好像没生效啊
<span class="a_vote_num" id="a_vote_num_
引用来自“飘逸的逸”的评论
用extensions属性
&extensions&
&exclusion&
&groupId&org.springframework.boot&/groupId&
&artifactId&spring-boot-maven-plugin&/artifactId&
&/extension&
&/extensions&
具体参照xsd文件:&http://maven.apache.org/xsd/maven-4.0.0.xsd
引用来自“jack_jones”的评论 是放到build里吗?
&extensions&
&extension&
&groupId&org.springframework.boot&/groupId&
&artifactId&spring-boot-maven-plugin&/artifactId&
&/extension&
&/extensions&
执行mvn package时还是调用了那个插件,好像没生效啊
&groupId&org.apache.maven.plugins&/groupId&
&artifactId&maven-jar-plugin&/artifactId&
&extensions&
&exclusion&
&groupId&org.springframework.boot&/groupId&
&artifactId&spring-boot-maven-plugin&/artifactId&
&/extension&
&/extensions&
&/plugins&
<span class="a_vote_num" id="a_vote_num_
引用来自“飘逸的逸”的评论
用extensions属性
&extensions&
&exclusion&
&groupId&org.springframework.boot&/groupId&
&artifactId&spring-boot-maven-plugin&/artifactId&
&/extension&
&/extensions&
具体参照xsd文件:&http://maven.apache.org/xsd/maven-4.0.0.xsd
引用来自“jack_jones”的评论 是放到build里吗?
&extensions&
&extension&
&groupId&org.springframework.boot&/groupId&
&artifactId&spring-boot-maven-plugin&/artifactId&
&/extension&
&/extensions&
执行mvn package时还是调用了那个插件,好像没生效啊
引用来自“飘逸的逸”的评论 这样写
&groupId&org.apache.maven.plugins&/groupId&
&artifactId&maven-jar-plugin&/artifactId&
&extensions&
&exclusion&
&groupId&org.springframework.boot&/groupId&
&artifactId&spring-boot-maven-plugin&/artifactId&
&/extension&
&/extensions&
&/plugins&
--- 共有 1 条评论 ---
报错提示有特殊字符.你找个文本编辑器格式化一下再粘贴进去.肯定不会错的.
(5个月前)&nbsp&
<span class="a_vote_num" id="a_vote_num_
引用来自“飘逸的逸”的评论
用extensions属性
&extensions&
&exclusion&
&groupId&org.springframework.boot&/groupId&
&artifactId&spring-boot-maven-plugin&/artifactId&
&/extension&
&/extensions&
具体参照xsd文件:&http://maven.apache.org/xsd/maven-4.0.0.xsd
引用来自“jack_jones”的评论 是放到build里吗?
&extensions&
&extension&
&groupId&org.springframework.boot&/groupId&
&artifactId&spring-boot-maven-plugin&/artifactId&
&/extension&
&/extensions&
执行mvn package时还是调用了那个插件,好像没生效啊
引用来自“飘逸的逸”的评论 这样写
&groupId&org.apache.maven.plugins&/groupId&
&artifactId&maven-jar-plugin&/artifactId&
&extensions&
&exclusion&
&groupId&org.springframework.boot&/groupId&
&artifactId&spring-boot-maven-plugin&/artifactId&
&/extension&
&/extensions&
&/plugins&
引用来自“jack_jones”的评论
它是boolean类型的啊
<span class="a_vote_num" id="a_vote_num_
http://maven.apache.org/xsd/maven-4.0.0.xsd
&xs:complexType name="Plugin"&
&xs:annotation&
&xs:documentation source="version"&4.0.0+&/xs:documentation&
&xs:documentation source="description"&
The &code&&plugin&&/code& element contains informations required for a plugin.
&/xs:documentation&
&/xs:annotation&
&xs:element minOccurs="0" name="groupId" type="xs:string" default="org.apache.maven.plugins"&
&xs:annotation&
&xs:documentation source="version"&4.0.0+&/xs:documentation&
&xs:documentation source="description"&The group ID of the plugin in the repository.&/xs:documentation&
&/xs:annotation&
&/xs:element&
&xs:element minOccurs="0" name="artifactId" type="xs:string"&
&xs:annotation&
&xs:documentation source="version"&4.0.0+&/xs:documentation&
&xs:documentation source="description"&The artifact ID of the plugin in the repository.&/xs:documentation&
&/xs:annotation&
&/xs:element&
&xs:element minOccurs="0" name="version" type="xs:string"&
&xs:annotation&
&xs:documentation source="version"&4.0.0+&/xs:documentation&
&xs:documentation source="description"&The version (or valid range of versions) of the plugin to be used.&/xs:documentation&
&/xs:annotation&
&/xs:element&
&xs:element minOccurs="0" name="extensions" type="xs:string"&
&xs:annotation&
&xs:documentation source="version"&4.0.0+&/xs:documentation&
&xs:documentation source="description"&
Whether to load Maven extensions (such as packaging and type handlers) from
this plugin. For performance reasons, this should only be enabled when necessary. Note: While the type
of this field is &code&String&/code& for technical reasons, the semantic type is actually
&code&Boolean&/code&. Default value is &code&false&/code&.
&/xs:documentation&
&/xs:annotation&
&/xs:element&
&xs:element minOccurs="0" name="executions"&
&xs:annotation&
&xs:documentation source="version"&4.0.0+&/xs:documentation&
&xs:documentation source="description"&Multiple specifications of a set of goals to execute during the build
lifecycle, each having (possibly) a different configuration.&/xs:documentation&
&/xs:annotation&
&xs:complexType&
&xs:sequence&
&xs:element name="execution" minOccurs="0" maxOccurs="unbounded" type="PluginExecution"/&
&/xs:sequence&
&/xs:complexType&
&/xs:element&
&xs:element minOccurs="0" name="dependencies"&
&xs:annotation&
&xs:documentation source="version"&4.0.0+&/xs:documentation&
&xs:documentation source="description"&Additional dependencies that this project needs to introduce to the plugin&s
classloader.&/xs:documentation&
&/xs:annotation&
&xs:complexType&
&xs:sequence&
&xs:element name="dependency" minOccurs="0" maxOccurs="unbounded" type="Dependency"/&
&/xs:sequence&
&/xs:complexType&
&/xs:element&
&xs:element minOccurs="0" name="goals"&
&xs:annotation&
&xs:documentation source="version"&4.0.0+&/xs:documentation&
&xs:documentation source="description"&
&b&Deprecated&/b&. Unused by Maven.
&/xs:documentation&
&/xs:annotation&
&xs:complexType&
&xs:sequence&
&xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/&
&/xs:sequence&
&/xs:complexType&
&/xs:element&
&xs:element minOccurs="0" name="inherited" type="xs:string"&
&xs:annotation&
&xs:documentation source="version"&4.0.0+&/xs:documentation&
&xs:documentation source="description"&
Whether any configuration should be propagated to child POMs. Note: While the type
of this field is &code&String&/code& for technical reasons, the semantic type is actually
&code&Boolean&/code&. Default value is &code&true&/code&.
&/xs:documentation&
&/xs:annotation&
&/xs:element&
&xs:element minOccurs="0" name="configuration"&
&xs:annotation&
&xs:documentation source="version"&0.0.0+&/xs:documentation&
&xs:documentation source="description"&
&p&The configuration as DOM object.&/p&
&p&By default, every element content is trimmed, but starting with Maven 3.1.0, you can add
&code&xml:space=&preserve&&/code& to elements you want to preserve whitespace.&/p&
&p&You can control how child POMs inherit configuration from parent POMs by adding &code&combine.children&/code&
or &code&combine.self&/code& attributes to the children of the configuration element:&/p&
&li&&code&combine.children&/code&: available values are &code&merge&/code& (default) and &code&append&/code&,&/li&
&li&&code&combine.self&/code&: available values are &code&merge&/code& (default) and &code&override&/code&.&/li&
&p&See &a href=&http://maven.apache.org/pom.html#Plugins&&POM Reference documentation&/a& and
&a href=&http://plexus.codehaus.org/plexus-utils/apidocs/org/codehaus/plexus/util/xml/Xpp3DomUtils.html&&Xpp3DomUtils&/a&
for more information.&/p&
&/xs:documentation&
&/xs:annotation&
&xs:complexType&
&xs:sequence&
&xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/&
&/xs:sequence&
&/xs:complexType&
&/xs:element&
&/xs:complexType&
更多开发者职位上
有什么技术问题吗?
jack_jo...的其它问题
类似的话题

我要回帖

更多关于 如何查询银行余额 的文章

 

随机推荐