ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petr Ivanov <mr.wei...@gmail.com>
Subject Re: Maven. Issues with flatten plugin
Date Thu, 01 Mar 2018 08:49:58 GMT
Nikolay,


Can you describe your problem and desired behaviour more thoroughly, please?



> On 28 Feb 2018, at 21:16, Nikolay Izhikov <nizhikov@apache.org> wrote:
> 
> Hello, Igniters.
> 
> We have `flatten-maven-plugin` in `parent/pom.xml` [1]
> As far as I can understand it minimize pom.xml before it installed in repository.
> 
> It introduce some strange behavior in modules:
> 
> I must to enlist all test dependencies in my module to get tests work.
> Otherwise tests fails with ClassNoDefFoundError for transitive dependencies.
> It happens in `spark` [2] and `spark_2.10` [3] modules.
> Now, when I want to enable testing of Spark Examples I has to enlist same dependencies
in `examples/pom.xml`
> 
> It looks like a mess for me.
> 
> Please, help me:
> 
> 1. Am I miss something and can make pom.xml much clearer?
> 
> 2. Why we need to minimize pom.xml? It looks like other Apache project doesn't do it
[5].
> 
> [1] https://github.com/apache/ignite/blob/master/parent/pom.xml#L612
> [2] https://github.com/apache/ignite/blob/master/modules/spark/pom.xml#L144
> [3] https://github.com/apache/ignite/blob/master/modules/spark-2.10/pom.xml#L150 
> [4] https://github.com/apache/ignite/pull/3590/files#diff-08740066c64337d38cccd84991ac0912R155
> [5] http://central.maven.org/maven2/org/apache/kafka/kafka_2.12/1.0.0/kafka_2.12-1.0.0.pom


Mime
View raw message