[GRADLE-704] Cannot deploy artifacts with classifier to a maven repository Created: 15/Oct/09  Updated: 04/Jan/13  Resolved: 24/Nov/10

Status: Resolved
Project: Gradle
Affects Version/s: 0.8
Fix Version/s: 0.9-rc-1

Type: Bug
Reporter: Adam Murdoch Assignee: Hans Dockter
Resolution: Fixed Votes: 0


 Comments   
Comment by Adam Murdoch [ 15/Oct/09 ]

For example, a javadocs jar or source jar cannot be deployed to a maven repository

Comment by Steve Ebersole [ 15/Oct/09 ]

Here's the pertinent part of the stack trace if that helps:

Caused by: org.gradle.api.InvalidUserDataException: There can be only one artifact per pom. Artifact jpa-api with file /home/steve/projects/hibernate/jpa-api/trunk/target/libs/jpa-api-2.0-testtesttest-javadoc.jar can't be assigned to pom default
at org.gradle.api.internal.artifacts.publish.maven.deploy.DefaultArtifactPomContainer.throwExceptionIfMultipleArtifactsPerPom(DefaultArtifactPomContainer.java:62)
at org.gradle.api.internal.artifacts.publish.maven.deploy.DefaultArtifactPomContainer.addArtifact(DefaultArtifactPomContainer.java:54)
at org.gradle.api.internal.artifacts.publish.maven.deploy.AbstractMavenResolver.publish(AbstractMavenResolver.java:158)
at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:282)
at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:261)
at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyDependencyPublisher.publish(DefaultIvyDependencyPublisher.java:62)
at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyService.publish(DefaultIvyService.java:127)
at org.gradle.api.internal.artifacts.ivyservice.ShortcircuitEmptyConfigsIvyService.publish(ShortcircuitEmptyConfigsIvyService.java:61)
at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService.publish(ErrorHandlingIvyService.java:42)
... 19 common frames omitted

Generated at Wed Jun 30 11:36:42 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.