You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/11/29 21:14:59 UTC

[jira] [Commented] (METRON-596) Eliminate Maven warnings from build

    [ https://issues.apache.org/jira/browse/METRON-596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15706548#comment-15706548 ] 

ASF GitHub Bot commented on METRON-596:
---------------------------------------

GitHub user justinleet opened a pull request:

    https://github.com/apache/incubator-metron/pull/378

    METRON-596 Eliminate Maven warnings from build

    Moving the maven-jar-plugin to a global variable and updating it.
    
    Removing a duplicate dependency that had both 'provided' and 'test' scope (dropped 'test', because it's already covered by 'provided').
    
    Changed ```${parent.version}``` to ```${project.parent.version}```
    
    Ran ```mvn clean install``` to test.
    
    Does anybody know if there's a way to force Maven to break the build if new warnings are introduced?  I'm not sure we'd actually want to do it, but at the same time I do like having these sorts of things enforced.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/justinleet/incubator-metron METRON-596

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-metron/pull/378.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #378
    
----
commit 1c3c400611a6ccd0a9b5f10649f2adde8b792126
Author: justinjleet <ju...@gmail.com>
Date:   2016-11-29T20:26:31Z

    Updating poms to eliminate warnings

----


> Eliminate Maven warnings from build
> -----------------------------------
>
>                 Key: METRON-596
>                 URL: https://issues.apache.org/jira/browse/METRON-596
>             Project: Metron
>          Issue Type: Improvement
>    Affects Versions: 0.3.0
>            Reporter: Justin Leet
>            Assignee: Justin Leet
>            Priority: Minor
>
> Right now our builds throw some warnings in Maven. Things like not specifying a version for plugins, etc. These should be cleaned up.
> Current Build warnings:
> {code}
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for org.apache.metron:metron-common:jar:0.3.0
> [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ org.apache.metron:metron-common:[unknown-version], /Users/jleet/Documents/workspace/incubator-metron/metron-platform/metron-common/pom.xml, line 360, column 21
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for org.apache.metron:metron-enrichment:jar:0.3.0
> [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ org.apache.metron:metron-enrichment:[unknown-version], /Users/jleet/Documents/workspace/incubator-metron/metron-platform/metron-enrichment/pom.xml, line 287, column 21
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for org.apache.metron:metron-parsers:jar:0.3.0
> [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ org.apache.metron:metron-parsers:[unknown-version], /Users/jleet/Documents/workspace/incubator-metron/metron-platform/metron-parsers/pom.xml, line 250, column 21
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for org.apache.metron:metron-indexing:jar:0.3.0
> [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ org.apache.metron:metron-indexing:[unknown-version], /Users/jleet/Documents/workspace/incubator-metron/metron-platform/metron-indexing/pom.xml, line 183, column 21
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for org.apache.metron:metron-management:jar:0.3.0
> [WARNING] The expression ${parent.version} is deprecated. Please use ${project.parent.version} instead.
> [WARNING] The expression ${parent.version} is deprecated. Please use ${project.parent.version} instead.
> [WARNING] The expression ${parent.version} is deprecated. Please use ${project.parent.version} instead.
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for org.apache.metron:metron-hbase:jar:0.3.0
> [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.hadoop:hadoop-hdfs:jar:tests -> duplicate declaration of version ${global_hadoop_version} @ org.apache.metron:metron-hbase:[unknown-version], /Users/jleet/Documents/workspace/incubator-metron/metron-platform/metron-hbase/pom.xml, line 166, column 21
> [WARNING] 
> [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
> [WARNING] 
> [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
> [WARNING] 
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)