Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jvm-sandbox/pom.xml WARNING修复建议 #128

Closed
jiyujie880621 opened this issue Jan 9, 2019 · 2 comments
Closed

jvm-sandbox/pom.xml WARNING修复建议 #128

jiyujie880621 opened this issue Jan 9, 2019 · 2 comments

Comments

@jiyujie880621
Copy link

强迫症患者表示每次打包会有sandbox的pom的warning消除不掉很难受。
具体如下:

[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.codehaus.mojo:cobertura-maven-plugin @ com.alibaba.jvm.sandbox:sandbox:1.1.2, /Users/{此处已打码}/.m2/repository/com/alibaba/jvm/sandbox/sandbox/1.1.2/sandbox-1.1.2.pom, line 103, column 21

根据提示,找到问题出在jvm-sandbox/pom.xml 这个文件的71-75行以及103-115行:
71-75:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>cobertura-maven-plugin</artifactId>
    <version>2.7</version>
</plugin>

103-115:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>cobertura-maven-plugin</artifactId>
    <configuration>
        <outputDirectory>./target/tmpCobertura</outputDirectory>
        <aggregate>true</aggregate>
        <check/>
        <formats>
            <format>html</format>
            <format>xml</format>
        </formats>
    </configuration>
</plugin>

直观的看,就是定义重复了,前面定义了版本,后面没有定义版本,多了一些配置。
感觉合并一下就好了。

@oldmanpushcart
Copy link
Collaborator

哈哈,方便的话提交下PR,我们会非常开心

@dongchenxu
Copy link
Collaborator

已经在1.2.0修复

oldmanpushcart pushed a commit that referenced this issue Feb 1, 2019
2. 完善测试用例sandbox-spy-1.2.0-for-qatest.jar
3. 完善JavaDoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants