htrace-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colin McCabe <cmcc...@apache.org>
Subject Re: Infinite Loop generating Dependency-reduced POM
Date Wed, 14 Sep 2016 20:47:26 GMT
I believe this is one reason why projects sometimes wrap Maven in
downloader scripts-- to ensure that they get the right version of Maven,
and avoid having to think about the quirks of any other version.  For
example, OpenZipkin has this:
https://github.com/openzipkin/zipkin/blob/master/mvnw

As much as I hate to add any more complexity to the build system, if new
contributors keep stumbling on problems like HTRACE-234, we might have
to.

I really wish someone would figure out a fix for HTRACE-234. 
Unfortunately, it's pretty darn difficult...



On Wed, Sep 14, 2016, at 13:40, Mike Drob wrote:
> Thanks, Colin. Switching to maven 3.0.4 solved it for me.
> 
> On Wed, Sep 14, 2016 at 3:02 PM, Colin McCabe <cmccabe@apache.org> wrote:
> 
> > Hi Mike,
> >
> > I believe this is HTRACE-234.
> >
> > https://issues.apache.org/jira/browse/HTRACE-234
> >
> > The workaround is to use Maven 3.0.4 rather than a later version.  :(
> >
> > Unfortunately, this appears to result from a bug in the maven-shade
> > plugin.  I wish we had a better workaround, but right now we don't...
> >
> > best,
> > Colin
> >
> >
> > On Wed, Sep 14, 2016, at 12:59, Mike Drob wrote:
> > > Hey folks,
> > >
> > > I've run into an issue where when I am building htrace the process gets
> > > stuck creating a dep-reduced pom for htrace-hbase module over and over
> > > again. I'm not sure which plugin is even asking for this pom file, or
> > > what
> > > it gets used for/how it is generated. If anybody has seen anything like
> > > this, or has any advice, I'd be very appreciative.
> > >
> > > I can reproduce it consistently with
> > > mvn clean package -pl htrace-hbase -am -DskipTests
> > >
> > > My default maven/java details are here. Switching to java 7 did not
> > > change
> > > things.
> > >
> > > Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
> > > 2015-11-10T10:41:47-06:00)
> > > Maven home: /opt/apache-maven-3.3.9
> > > Java version: 1.8.0_101, vendor: Oracle Corporation
> > > Java home: /usr/lib/jvm/java-8-oracle/jre
> > > Default locale: en_US, platform encoding: UTF-8
> > > OS name: "linux", version: "3.13.0-95-generic", arch: "amd64", family:
> > > "unix"
> > >
> > > When running with debug logging turned on, I see the following set of
> > > lines
> > > printed:
> > >
> > > [DEBUG] Extension realms for project
> > > org.apache.htrace:htrace-hbase:jar:4.2.0-incubating-SNAPSHOT: (none)
> > > [DEBUG] Looking up lifecyle mappings for packaging jar from
> > > ClassRealm[plexus.core, parent: null]
> > > [DEBUG] Extension realms for project
> > > org.apache.htrace:htrace:pom:4.2.0-incubating-SNAPSHOT: (none)
> > > [DEBUG] Looking up lifecyle mappings for packaging pom from
> > > ClassRealm[plexus.core, parent: null]
> > > [DEBUG] Extension realms for project org.apache:apache:pom:17: (none)
> > > [DEBUG] Looking up lifecyle mappings for packaging pom from
> > > ClassRealm[plexus.core, parent: null]
> > > [DEBUG] building maven31 dependency graph for
> > > org.apache.htrace:htrace-hbase:jar:4.2.0-incubating-SNAPSHOT
> > > [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=0,
> > > ConflictMarker.markTime=0, ConflictMarker.nodeCount=48,
> > > ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=0,
> > > ConflictIdSorter.conflictIdCount=28,
> > > ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=0,
> > > ConflictResolver.conflictItemCount=21,
> > > DefaultDependencyCollector.collectTime=1,
> > > DefaultDependencyCollector.transformTime=0}
> > > [DEBUG] org.apache.htrace:htrace-hbase:jar:4.2.0-incubating-SNAPSHOT
> > > [DEBUG]
> > > org.apache.htrace:htrace-core4:jar:4.2.0-incubating-SNAPSHOT:provided
> > > [DEBUG]       commons-logging:commons-logging:jar:1.1.1:provided
> > > [DEBUG]
> > > org.apache.htrace:htrace-core4:jar:tests:4.2.0-incubating-SNAPSHOT:test
> > > [DEBUG]       com.fasterxml.jackson.core:jackson-core:jar:2.4.0:test
> > > [DEBUG]       com.fasterxml.jackson.core:jackson-databind:jar:2.4.0:test
> > > [DEBUG]
> > > com.fasterxml.jackson.core:jackson-annotations:jar:2.4.0:test
> > > [DEBUG]    junit:junit:jar:4.11:test
> > > [DEBUG]    org.apache.hbase:hbase-common:jar:1.1.2:provided
> > > [DEBUG]       com.google.protobuf:protobuf-java:jar:2.5.0:provided
> > > [DEBUG]    org.apache.hbase:hbase-client:jar:1.1.2:provided
> > > [DEBUG]    org.apache.hbase:hbase-testing-util:jar:1.1.2:test
> > > [INFO] Dependency-reduced POM written at:
> > > /home/mdrob/workspace/htrace/htrace-hbase/dependency-reduced-pom.xml
> > >
> > >
> > > Thanks,
> > > Mike
> >

Mime
View raw message