Skip to content

Warning when using maven with handlerbars as dependency #724

@davinkevin

Description

@davinkevin

Hi,

I think there is a problem with the maven packaging of the handlebars because when I define the following pom.xml I have some WARNING in the maven output:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<groupId>com.example</groupId>
	<artifactId>demo</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>demo</name>

	<properties>
		<java.version>1.8</java.version>
	</properties>

	<dependencies>

    <dependency>
      <groupId>com.github.jknack</groupId>
      <artifactId>handlebars</artifactId>
      <version>4.1.2</version>
    </dependency>
    <dependency>
      <groupId>com.github.jknack</groupId>
      <artifactId>handlebars-helpers</artifactId>
      <version>4.1.2</version>
    </dependency>
	</dependencies>

</project>

When running mvn dependency:tree and any other commands, I have the WARNING you see in the log.

[INFO] Scanning for projects...
[INFO]
[INFO] --------------------------< com.example:demo >--------------------------
[INFO] Building demo 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.github.jknack:handlebars:jar:4.1.2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for com.github.jknack:handlebars-helpers:jar:4.1.2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ demo ---
[INFO] com.example:demo:jar:0.0.1-SNAPSHOT
[INFO] +- com.github.jknack:handlebars:jar:4.1.2:compile
[INFO] \- com.github.jknack:handlebars-helpers:jar:4.1.2:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.763 s
[INFO] Finished at: 2020-01-19T19:56:12+01:00
[INFO] ------------------------------------------------------------------------

If I run it in debug mode, I have the following output:

Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/Cellar/maven/3.6.3/libexec
Java version: 11, vendor: Oracle Corporation, runtime: /Users/kevin/.jabba/jdk/[email protected]/Contents/Home
Default locale: fr_FR, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.2", arch: "x86_64", family: "mac"
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG]   Imported: javax.annotation.* < plexus.core
[DEBUG]   Imported: javax.annotation.security.* < plexus.core
[DEBUG]   Imported: javax.enterprise.inject.* < plexus.core
[DEBUG]   Imported: javax.enterprise.util.* < plexus.core
[DEBUG]   Imported: javax.inject.* < plexus.core
[DEBUG]   Imported: org.apache.maven.* < plexus.core
[DEBUG]   Imported: org.apache.maven.artifact < plexus.core
[DEBUG]   Imported: org.apache.maven.classrealm < plexus.core
[DEBUG]   Imported: org.apache.maven.cli < plexus.core
[DEBUG]   Imported: org.apache.maven.configuration < plexus.core
[DEBUG]   Imported: org.apache.maven.exception < plexus.core
[DEBUG]   Imported: org.apache.maven.execution < plexus.core
[DEBUG]   Imported: org.apache.maven.execution.scope < plexus.core
[DEBUG]   Imported: org.apache.maven.lifecycle < plexus.core
[DEBUG]   Imported: org.apache.maven.model < plexus.core
[DEBUG]   Imported: org.apache.maven.monitor < plexus.core
[DEBUG]   Imported: org.apache.maven.plugin < plexus.core
[DEBUG]   Imported: org.apache.maven.profiles < plexus.core
[DEBUG]   Imported: org.apache.maven.project < plexus.core
[DEBUG]   Imported: org.apache.maven.reporting < plexus.core
[DEBUG]   Imported: org.apache.maven.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.rtinfo < plexus.core
[DEBUG]   Imported: org.apache.maven.settings < plexus.core
[DEBUG]   Imported: org.apache.maven.toolchain < plexus.core
[DEBUG]   Imported: org.apache.maven.usability < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.* < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authentication < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authorization < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.events < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.observers < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.proxy < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.resource < plexus.core
[DEBUG]   Imported: org.codehaus.classworlds < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.* < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.classworlds < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.component < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.configuration < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.container < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.context < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.lifecycle < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.logging < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.personality < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core
[DEBUG]   Imported: org.eclipse.aether.* < plexus.core
[DEBUG]   Imported: org.eclipse.aether.artifact < plexus.core
[DEBUG]   Imported: org.eclipse.aether.collection < plexus.core
[DEBUG]   Imported: org.eclipse.aether.deployment < plexus.core
[DEBUG]   Imported: org.eclipse.aether.graph < plexus.core
[DEBUG]   Imported: org.eclipse.aether.impl < plexus.core
[DEBUG]   Imported: org.eclipse.aether.installation < plexus.core
[DEBUG]   Imported: org.eclipse.aether.internal.impl < plexus.core
[DEBUG]   Imported: org.eclipse.aether.metadata < plexus.core
[DEBUG]   Imported: org.eclipse.aether.repository < plexus.core
[DEBUG]   Imported: org.eclipse.aether.resolution < plexus.core
[DEBUG]   Imported: org.eclipse.aether.spi < plexus.core
[DEBUG]   Imported: org.eclipse.aether.transfer < plexus.core
[DEBUG]   Imported: org.eclipse.aether.version < plexus.core
[DEBUG]   Imported: org.fusesource.jansi.* < plexus.core
[DEBUG]   Imported: org.slf4j.* < plexus.core
[DEBUG]   Imported: org.slf4j.event.* < plexus.core
[DEBUG]   Imported: org.slf4j.helpers.* < plexus.core
[DEBUG]   Imported: org.slf4j.spi.* < plexus.core
[DEBUG] Populating class realm maven.api
[INFO] Error stacktraces are turned on.
[DEBUG] Message scheme: color
[DEBUG] Message styles: debug info warning error success failure strong mojo project
[DEBUG] Reading global settings from /usr/local/Cellar/maven/3.6.3/libexec/conf/settings.xml
[DEBUG] Reading user settings from /Users/kevin/.m2/settings.xml
[DEBUG] Reading global toolchains from /usr/local/Cellar/maven/3.6.3/libexec/conf/toolchains.xml
[DEBUG] Reading user toolchains from /Users/kevin/.m2/toolchains.xml
[DEBUG] Using local repository at /Users/kevin/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /Users/kevin/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project com.example:demo:jar:0.0.1-SNAPSHOT: (none)
[DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[DEBUG] Resolving plugin prefix dependency from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Resolved plugin prefix dependency to org.apache.maven.plugins:maven-dependency-plugin from POM com.example:demo:jar:0.0.1-SNAPSHOT
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: com.example:demo:jar:0.0.1-SNAPSHOT
[DEBUG] Tasks:   [dependency:tree]
[DEBUG] Style:   Regular
[DEBUG] =======================================================================
[INFO]
[INFO] --------------------------< com.example:demo >--------------------------
[INFO] Building demo 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[DEBUG] Resolving plugin prefix dependency from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Resolved plugin prefix dependency to org.apache.maven.plugins:maven-dependency-plugin from POM com.example:demo:jar:0.0.1-SNAPSHOT
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project:       com.example:demo:0.0.1-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [test]
[DEBUG] Repositories (dependencies): [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Repositories (plugins)     : [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-dependency-plugin:2.8:tree (default-cli)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <appendOutput default-value="false">${appendOutput}</appendOutput>
  <excludes>${excludes}</excludes>
  <includes>${includes}</includes>
  <localRepository default-value="${localRepository}"/>
  <output>${output}</output>
  <outputFile>${outputFile}</outputFile>
  <outputType default-value="text">${outputType}</outputType>
  <scope>${scope}</scope>
  <skip default-value="false">${skip}</skip>
  <tokens default-value="standard">${tokens}</tokens>
  <verbose default-value="false">${verbose}</verbose>
  <project default-value="${project}"/>
</configuration>
[DEBUG] =======================================================================
[WARNING] The POM for com.github.jknack:handlebars:jar:4.1.2 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for com.github.jknack:handlebars:4.1.2
[ERROR] Invalid packaging for parent POM com.github.jknack:handlebars.java:4.1.2, must be "pom" but is "jar" @ com.github.jknack:handlebars.java:4.1.2

[WARNING] The POM for com.github.jknack:handlebars-helpers:jar:4.1.2 is invalid, transitive dependencies (if any) will not be available: 7 problems were encountered while building the effective model for com.github.jknack:handlebars-helpers:4.1.2
[ERROR] Invalid packaging for parent POM com.github.jknack:handlebars.java:4.1.2, must be "pom" but is "jar" @
[ERROR] 'dependencies.dependency.version' for org.apache.commons:commons-lang3:jar is missing. @
[ERROR] 'dependencies.dependency.version' for javax.servlet:servlet-api:jar is missing. @
[ERROR] 'dependencies.dependency.version' for ch.qos.logback:logback-classic:jar is missing. @
[ERROR] 'dependencies.dependency.version' for junit:junit:jar is missing. @
[ERROR] 'dependencies.dependency.version' for org.easymock:easymock:jar is missing. @
[ERROR] 'dependencies.dependency.version' for org.yaml:snakeyaml:jar is missing. @

[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=526194, ConflictMarker.markTime=193962, ConflictMarker.nodeCount=3, ConflictIdSorter.graphTime=236212, ConflictIdSorter.topsortTime=184976, ConflictIdSorter.conflictIdCount=2, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=1572249, ConflictResolver.conflictItemCount=2, DefaultDependencyCollector.collectTime=15206819, DefaultDependencyCollector.transformTime=4438557}
[DEBUG] com.example:demo:jar:0.0.1-SNAPSHOT
[DEBUG]    com.github.jknack:handlebars:jar:4.1.2:compile
[DEBUG]    com.github.jknack:handlebars-helpers:jar:4.1.2:compile
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ demo ---
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=673075, ConflictMarker.markTime=268544, ConflictMarker.nodeCount=297, ConflictIdSorter.graphTime=236620, ConflictIdSorter.topsortTime=43042, ConflictIdSorter.conflictIdCount=63, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=3527818, ConflictResolver.conflictItemCount=167, DefaultDependencyCollector.collectTime=222777465, DefaultDependencyCollector.transformTime=4815242}
[DEBUG] org.apache.maven.plugins:maven-dependency-plugin:jar:2.8
[DEBUG]    org.apache.maven:maven-artifact:jar:2.0.9:compile
[DEBUG]    org.apache.maven:maven-plugin-api:jar:2.0.9:compile
[DEBUG]    org.apache.maven:maven-project:jar:2.0.9:compile
[DEBUG]       org.apache.maven:maven-settings:jar:2.0.9:compile
[DEBUG]       org.apache.maven:maven-profile:jar:2.0.9:compile
[DEBUG]       org.apache.maven:maven-plugin-registry:jar:2.0.9:compile
[DEBUG]    org.apache.maven:maven-model:jar:2.0.9:compile
[DEBUG]    org.apache.maven:maven-core:jar:2.0.9:compile
[DEBUG]       org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9:compile
[DEBUG]       org.apache.maven:maven-error-diagnostics:jar:2.0.9:compile
[DEBUG]       commons-cli:commons-cli:jar:1.0:compile
[DEBUG]       org.apache.maven:maven-plugin-descriptor:jar:2.0.9:compile
[DEBUG]       org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG]       org.apache.maven:maven-monitor:jar:2.0.9:compile
[DEBUG]    org.apache.maven:maven-artifact-manager:jar:2.0.9:compile
[DEBUG]    org.apache.maven:maven-repository-metadata:jar:2.0.9:compile
[DEBUG]    org.apache.maven.reporting:maven-reporting-api:jar:3.0:compile
[DEBUG]    org.apache.maven.reporting:maven-reporting-impl:jar:2.0.5:compile
[DEBUG]       org.apache.maven.doxia:doxia-core:jar:1.0:compile
[DEBUG]       org.apache.maven.shared:maven-doxia-tools:jar:1.0.2:compile
[DEBUG]          commons-io:commons-io:jar:1.4:compile
[DEBUG]       commons-validator:commons-validator:jar:1.2.0:compile
[DEBUG]          commons-beanutils:commons-beanutils:jar:1.7.0:compile
[DEBUG]          commons-digester:commons-digester:jar:1.6:compile
[DEBUG]          commons-logging:commons-logging:jar:1.0.4:compile
[DEBUG]          oro:oro:jar:2.0.8:compile
[DEBUG]          xml-apis:xml-apis:jar:1.0.b2:compile
[DEBUG]    org.apache.maven.doxia:doxia-sink-api:jar:1.0:compile
[DEBUG]    org.apache.maven.doxia:doxia-site-renderer:jar:1.0:compile
[DEBUG]       org.codehaus.plexus:plexus-i18n:jar:1.0-beta-7:compile
[DEBUG]       org.codehaus.plexus:plexus-velocity:jar:1.1.7:compile
[DEBUG]       org.apache.velocity:velocity:jar:1.5:compile
[DEBUG]       org.apache.maven.doxia:doxia-decoration-model:jar:1.0:compile
[DEBUG]       org.apache.maven.doxia:doxia-module-apt:jar:1.0:compile
[DEBUG]       org.apache.maven.doxia:doxia-module-fml:jar:1.0:compile
[DEBUG]       org.apache.maven.doxia:doxia-module-xdoc:jar:1.0:compile
[DEBUG]       org.apache.maven.doxia:doxia-module-xhtml:jar:1.0:compile
[DEBUG]    org.codehaus.plexus:plexus-archiver:jar:2.3:compile
[DEBUG]    org.codehaus.plexus:plexus-utils:jar:3.0.9:compile
[DEBUG]    org.apache.maven.shared:file-management:jar:1.2.1:compile
[DEBUG]       org.apache.maven.shared:maven-shared-io:jar:1.1:compile
[DEBUG]          org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-6:compile
[DEBUG]    org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG]       junit:junit:jar:3.8.1:compile
[DEBUG]    org.codehaus.plexus:plexus-io:jar:2.0.6:compile
[DEBUG]    org.apache.maven.shared:maven-dependency-analyzer:jar:1.4:compile
[DEBUG]       asm:asm:jar:3.3.1:compile
[DEBUG]       org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile (version managed from default)
[DEBUG]    org.apache.maven.shared:maven-dependency-tree:jar:2.1:compile
[DEBUG]       org.eclipse.aether:aether-util:jar:0.9.0.M2:compile
[DEBUG]    org.apache.maven.shared:maven-common-artifact-filters:jar:1.4:compile
[DEBUG]    org.apache.maven.shared:maven-invoker:jar:2.0.11:compile
[DEBUG]    commons-lang:commons-lang:jar:2.6:compile
[DEBUG]    commons-collections:commons-collections:jar:3.2.1:compile
[DEBUG]    classworlds:classworlds:jar:1.1:compile
[DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-dependency-plugin:2.8
[DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-dependency-plugin:2.8
[DEBUG]   Imported:  < maven.api
[DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-dependency-plugin:2.8
[DEBUG]   Included: org.apache.maven.plugins:maven-dependency-plugin:jar:2.8
[DEBUG]   Included: commons-cli:commons-cli:jar:1.0
[DEBUG]   Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4
[DEBUG]   Included: org.apache.maven.reporting:maven-reporting-api:jar:3.0
[DEBUG]   Included: org.apache.maven.reporting:maven-reporting-impl:jar:2.0.5
[DEBUG]   Included: org.apache.maven.doxia:doxia-core:jar:1.0
[DEBUG]   Included: org.apache.maven.shared:maven-doxia-tools:jar:1.0.2
[DEBUG]   Included: commons-io:commons-io:jar:1.4
[DEBUG]   Included: commons-validator:commons-validator:jar:1.2.0
[DEBUG]   Included: commons-beanutils:commons-beanutils:jar:1.7.0
[DEBUG]   Included: commons-digester:commons-digester:jar:1.6
[DEBUG]   Included: commons-logging:commons-logging:jar:1.0.4
[DEBUG]   Included: oro:oro:jar:2.0.8
[DEBUG]   Included: xml-apis:xml-apis:jar:1.0.b2
[DEBUG]   Included: org.apache.maven.doxia:doxia-sink-api:jar:1.0
[DEBUG]   Included: org.apache.maven.doxia:doxia-site-renderer:jar:1.0
[DEBUG]   Included: org.codehaus.plexus:plexus-i18n:jar:1.0-beta-7
[DEBUG]   Included: org.codehaus.plexus:plexus-velocity:jar:1.1.7
[DEBUG]   Included: org.apache.velocity:velocity:jar:1.5
[DEBUG]   Included: org.apache.maven.doxia:doxia-decoration-model:jar:1.0
[DEBUG]   Included: org.apache.maven.doxia:doxia-module-apt:jar:1.0
[DEBUG]   Included: org.apache.maven.doxia:doxia-module-fml:jar:1.0
[DEBUG]   Included: org.apache.maven.doxia:doxia-module-xdoc:jar:1.0
[DEBUG]   Included: org.apache.maven.doxia:doxia-module-xhtml:jar:1.0
[DEBUG]   Included: org.codehaus.plexus:plexus-archiver:jar:2.3
[DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:3.0.9
[DEBUG]   Included: org.apache.maven.shared:file-management:jar:1.2.1
[DEBUG]   Included: org.apache.maven.shared:maven-shared-io:jar:1.1
[DEBUG]   Included: junit:junit:jar:3.8.1
[DEBUG]   Included: org.codehaus.plexus:plexus-io:jar:2.0.6
[DEBUG]   Included: org.apache.maven.shared:maven-dependency-analyzer:jar:1.4
[DEBUG]   Included: asm:asm:jar:3.3.1
[DEBUG]   Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
[DEBUG]   Included: org.apache.maven.shared:maven-dependency-tree:jar:2.1
[DEBUG]   Included: org.eclipse.aether:aether-util:jar:0.9.0.M2
[DEBUG]   Included: org.apache.maven.shared:maven-common-artifact-filters:jar:1.4
[DEBUG]   Included: org.apache.maven.shared:maven-invoker:jar:2.0.11
[DEBUG]   Included: commons-lang:commons-lang:jar:2.6
[DEBUG]   Included: commons-collections:commons-collections:jar:3.2.1
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-dependency-plugin:2.8:tree from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-dependency-plugin:2.8, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@799f7e29]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-dependency-plugin:2.8:tree' with basic configurator -->
[DEBUG]   (f) appendOutput = false
[DEBUG]   (f) localRepository =       id: local
      url: file:///Users/kevin/.m2/repository/
   layout: default
snapshots: [enabled => true, update => always]
 releases: [enabled => true, update => always]

[DEBUG]   (f) outputType = text
[DEBUG]   (s) skip = false
[DEBUG]   (f) tokens = standard
[DEBUG]   (f) verbose = false
[DEBUG]   (f) project = MavenProject: com.example:demo:0.0.1-SNAPSHOT @ /Users/kevin/Desktop/demo/pom.xml
[DEBUG] -- end configuration --
[DEBUG] building maven31 dependency graph for com.example:demo:jar:0.0.1-SNAPSHOT
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=87728, ConflictMarker.markTime=76349, ConflictMarker.nodeCount=3, ConflictIdSorter.graphTime=8382, ConflictIdSorter.topsortTime=7131, ConflictIdSorter.conflictIdCount=2, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=152817, ConflictResolver.conflictItemCount=2, DefaultDependencyCollector.collectTime=175235, DefaultDependencyCollector.transformTime=346976}
[DEBUG] com.example:demo:jar:0.0.1-SNAPSHOT
[DEBUG]    com.github.jknack:handlebars:jar:4.1.2:compile
[DEBUG]    com.github.jknack:handlebars-helpers:jar:4.1.2:compile
[INFO] com.example:demo:jar:0.0.1-SNAPSHOT
[INFO] +- com.github.jknack:handlebars:jar:4.1.2:compile
[INFO] \- com.github.jknack:handlebars-helpers:jar:4.1.2:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.692 s
[INFO] Finished at: 2020-01-19T19:58:11+01:00
[INFO] ------------------------------------------------------------------------

The interesting part is here:

[WARNING] The POM for com.github.jknack:handlebars:jar:4.1.2 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for com.github.jknack:handlebars:4.1.2
[ERROR] Invalid packaging for parent POM com.github.jknack:handlebars.java:4.1.2, must be "pom" but is "jar" @ com.github.jknack:handlebars.java:4.1.2

[WARNING] The POM for com.github.jknack:handlebars-helpers:jar:4.1.2 is invalid, transitive dependencies (if any) will not be available: 7 problems were encountered while building the effective model for com.github.jknack:handlebars-helpers:4.1.2
[ERROR] Invalid packaging for parent POM com.github.jknack:handlebars.java:4.1.2, must be "pom" but is "jar" @
[ERROR] 'dependencies.dependency.version' for org.apache.commons:commons-lang3:jar is missing. @
[ERROR] 'dependencies.dependency.version' for javax.servlet:servlet-api:jar is missing. @
[ERROR] 'dependencies.dependency.version' for ch.qos.logback:logback-classic:jar is missing. @
[ERROR] 'dependencies.dependency.version' for junit:junit:jar is missing. @
[ERROR] 'dependencies.dependency.version' for org.easymock:easymock:jar is missing. @
[ERROR] 'dependencies.dependency.version' for org.yaml:snakeyaml:jar is missing. @

This is very annoying to have this kind of WARNING or ERROR in every project with handlebars as a dependencies or transitive dependencies (in my case, with wiremock).

Thanks for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions