[GRADLE-399] artifact in upload via mavenDeployer with classifier throws script exception Created: 12/Feb/09 Updated: 04/Jan/13 Resolved: 24/Nov/10 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 0.5.2 |
Fix Version/s: | 0.9-rc-1 |
Type: | Bug | ||
Reporter: | George Ianuzzi | Assignee: | Hans Dockter |
Resolution: | Fixed | Votes: | 1 |
Description |
I'm sure there is a workaround? usePlugin("java") dependencies { addConfiguration("deployerJars") uploadLibs { libs { zip(classifier: 'debug').fileSet(dir: 'build') { include('**/*.dll') } 13:20:20.505 [main] INFO org.gradle.api.logging.LogLevel - [ant:null] An error has occurred while processing the Maven artifact tasks. Diagnosis: Error parsing pom: Unrecognised tag: 'classifier' (position: START_TAG seen ...</packaging>\r\n <classifier>... @14:15) 13:20:20.505 [main] ERROR org.gradle.Main - Build failed with an exception. Build file '\path\to\build.gradle' Execution failed for task :uploadLibs. Cause: Error parsing pom: Unrecognised tag: 'classifier' (position: START_TAG seen ...</packaging>\r\n <classifier>... @14:15) Exception is: org.gradle.api.GradleScriptException: Build file '\path\to\build.gradle' Execution failed for task :uploadLibs. at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:185) at org.gradle.execution.DefaultTaskExecuter.executeTask(DefaultTaskExecuter.java:161) at org.gradle.execution.DefaultTaskExecuter.execute(DefaultTaskExecuter.java:148) at org.gradle.execution.DefaultTaskExecuter.execute(DefaultTaskExecuter.java:77) at org.gradle.execution.DefaultTaskExecuter.execute(DefaultTaskExecuter.java:88) at org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:104) at org.gradle.Gradle.runInternal(Gradle.java:123) at org.gradle.Gradle.run(Gradle.java:93) at org.gradle.Main.execute(Main.java:232) at org.gradle.Main.main(Main.java:77) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.gradle.BootstrapMain.main(BootstrapMain.java:53) Caused by: org.apache.tools.ant.BuildException: Error parsing pom: Unrecognised tag: 'classifier' (position: START_TAG seen ...</p ackaging>\r\n <classifier>... @14:15) at org.apache.maven.artifact.ant.Pom.checkParentPom(Pom.java:196) at org.apache.maven.artifact.ant.Pom.initialise(Pom.java:165) at org.apache.maven.artifact.ant.AbstractArtifactTask.buildPom(AbstractArtifactTask.java:526) at org.apache.maven.artifact.ant.InstallDeployTaskSupport.buildPom(InstallDeployTaskSupport.java:54) at org.apache.maven.artifact.ant.DeployTask.doExecute(DeployTask.java:92) at org.gradle.api.internal.dependencies.maven.deploy.CustomDeployTask.doExecute(CustomDeployTask.java:42) at org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractArtifactTask.java:665) at org.gradle.api.internal.dependencies.maven.deploy.AbstractMavenResolver.execute(AbstractMavenResolver.java:189) at org.gradle.api.internal.dependencies.maven.deploy.AbstractMavenResolver.commitPublishTransaction(AbstractMavenResolver. java:181) at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:263) at org.gradle.api.internal.dependencies.DefaultDependencyPublisher.publish(DefaultDependencyPublisher.java:64) at org.gradle.api.internal.dependencies.BaseDependencyManager.publish(BaseDependencyManager.java:140) at org.gradle.api.tasks.Upload.upload(Upload.java:67) at org.gradle.api.tasks.Upload.access$000(Upload.java:37) at org.gradle.api.tasks.Upload$1.execute(Upload.java:60) at org.gradle.api.internal.AbstractTask.doExecute(AbstractTask.java:221) at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:175) ... 14 common frames omitted Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unrecognised tag: 'classifier' (position: START_TAG seen ...< /packaging>\r\n <classifier>... @14:15) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:2389) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:4422) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:4433) at org.apache.maven.artifact.ant.Pom.checkParentPom(Pom.java:188) ... 30 common frames omitted 13:20:20.521 [main] ERROR org.gradle.Main - BUILD FAILED |