Scala build problem: artifact:dependencies doesn't support the "versionsId" attribute

160 views
Skip to first unread message

George Leontiev

unread,
Jul 22, 2013, 3:09:53 PM7/22/13
to scala-i...@googlegroups.com
Hello,

I'm having a problem compiling scala since this commit. Here's the output on the newly installed environment, with ant 1.9.2: https://gist.github.com/folone/93e79d9cfd3f844c7a58. The same thing manifests on a machine that I used to build scala before. I've searched this mailing list, but it seems like no one has this problem. I tried all the things I found on this (including running ant with -nouserlib flag, and substituting lib/ant/maven-ant-tasks-2.1.1.jar with the latest version), did not help. Did I miss something obvious? Did anyone encounter this problem?

Thanks a lot!

Adriaan Moors

unread,
Jul 22, 2013, 5:07:23 PM7/22/13
to scala-i...@googlegroups.com
Hi,

Never seen this problem before, sorry. I'm on ant 1.9.0.

cheers
adriaan



--
You received this message because you are subscribed to the Google Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-interna...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Grzegorz Kossakowski

unread,
Jul 22, 2013, 5:24:03 PM7/22/13
to scala-internals
On 22 July 2013 08:09, George Leontiev <fol...@gmail.com> wrote:
Hello,

I'm having a problem compiling scala since this commit. Here's the output on the newly installed environment, with ant 1.9.2: https://gist.github.com/folone/93e79d9cfd3f844c7a58. The same thing manifests on a machine that I used to build scala before. I've searched this mailing list, but it seems like no one has this problem. I tried all the things I found on this (including running ant with -nouserlib flag, and substituting lib/ant/maven-ant-tasks-2.1.1.jar with the latest version), did not help. Did I miss something obvious? Did anyone encounter this problem?

Hi George,

You must have outdated version of 'maven-ant-tasks' jar on your classpath so I suggest debugging ant with `ant -debug` or debugging ant launcher script with `bash -x`.

--
Grzegorz Kossakowski
Scalac hacker at Typesafe
twitter: @gkossakowski

George Leontiev

unread,
Jul 22, 2013, 5:44:27 PM7/22/13
to scala-i...@googlegroups.com
Grzegorz, thanks for your reply.

Here's what I get when running ant -debug | grep maven-ant-task:
 [uptodate] lib/ant/maven-ant-tasks-2.1.1.jar.desired.sha1 omitted as /home/folone/workspace/scala/lib/ant/maven-ant-tasks-2.1.1.jar is up to date.
Adding reference: maven-ant-tasks.classpath
parsing buildfile jar:file:/home/folone/workspace/scala/lib/ant/maven-ant-tasks-2.1.1.jar!/org/apache/maven/artifact/ant/antlib.xml with URI = jar:file:/home/folone/workspace/scala/lib/ant/maven-ant-tasks-2.1.1.jar!/org/apache/maven/artifact/ant/antlib.xml from a zip file
Loaded from /home/folone/workspace/scala/lib/ant/maven-ant-tasks-2.1.1.jar org/apache/maven/artifact/ant/Mvn.class
Loaded from /home/folone/workspace/scala/lib/ant/maven-ant-tasks-2.1.1.jar org/apache/maven/artifact/ant/WritePomTask.class
Loaded from /home/folone/workspace/scala/lib/ant/maven-ant-tasks-2.1.1.jar org/apache/maven/artifact/ant/shaded/xml/XmlStreamWriter.class

BUILD FAILED
/home/folone/workspace/scala/build.xml:237: artifact:dependencies doesn't support the "versionsId" attribute
at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:497)
at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:429)
at org.apache.tools.ant.Task.maybeConfigure(Task.java:202)
at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:199)
at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:163)
at org.apache.tools.ant.Task.perform(Task.java:347)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: The <urn:maven-artifact-ant:dependencies> type doesn't support the "versionsId" attribute.
at org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:408)
at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:489)
... 29 more

Total time: 1 second

Here's what I get when I search everywhere for maven-ant-tasks:
$ sudo find / -name "maven-ant-tasks*.jar"
[sudo] password for folone: 
/home/folone/.sbt/cache/scala/7e50e3e227d834695f1e0bf018a7326e06ee4c86/lib/ant/maven-ant-tasks-2.1.1.jar
/home/folone/workspace/scala/lib/ant/maven-ant-tasks-2.1.1.jar

I have no idea where else an older version can come from. Especially considering that I'm doing this on a freshly installed system.

понедельник, 22 июля 2013 г., 19:24:03 UTC+2 пользователь Grzegorz Kossakowski написал:

George Leontiev

unread,
Jul 22, 2013, 6:00:06 PM7/22/13
to scala-i...@googlegroups.com
I also removed ~/.sbt/cache/scala/7e50e3e227d834695f1e0bf018a7326e06ee4c86/lib/ant/maven-ant-tasks-2.1.1.jar, just in case: so that the jar in scala/lib is the only one existing. Did not help.

понедельник, 22 июля 2013 г., 19:44:27 UTC+2 пользователь George Leontiev написал:

Grzegorz Kossakowski

unread,
Jul 22, 2013, 6:17:25 PM7/22/13
to scala-internals
On 22 July 2013 11:00, George Leontiev <fol...@gmail.com> wrote:
I also removed ~/.sbt/cache/scala/7e50e3e227d834695f1e0bf018a7326e06ee4c86/lib/ant/maven-ant-tasks-2.1.1.jar, just in case: so that the jar in scala/lib is the only one existing. Did not help.

It is very strange. I cannot spot any obvious mistake. What Java version are you using?

George Leontiev

unread,
Jul 22, 2013, 6:27:41 PM7/22/13
to scala-i...@googlegroups.com
java -version says:
java version "1.7.0_40"
OpenJDK Runtime Environment (IcedTea 2.4.1) (ArchLinux build 7.u40_2.4.1-1-x86_64)
OpenJDK 64-Bit Server VM (build 24.0-b50, mixed mode)

Everything is installed from the packages via pacman, no manual installs. Here's the dump from ant -diagnosticshttps://gist.github.com/folone/76b00f06219fc38da25d
It says something about maven-artifact-ant-2.0.4-dep.jar. Can this be the culprit?

понедельник, 22 июля 2013 г., 20:17:25 UTC+2 пользователь Grzegorz Kossakowski написал:

Grzegorz Kossakowski

unread,
Jul 22, 2013, 6:53:35 PM7/22/13
to scala-internals
On 22 July 2013 11:27, George Leontiev <fol...@gmail.com> wrote:
java -version says:
java version "1.7.0_40"
OpenJDK Runtime Environment (IcedTea 2.4.1) (ArchLinux build 7.u40_2.4.1-1-x86_64)
OpenJDK 64-Bit Server VM (build 24.0-b50, mixed mode)

Everything is installed from the packages via pacman, no manual installs. Here's the dump from ant -diagnosticshttps://gist.github.com/folone/76b00f06219fc38da25d
It says something about maven-artifact-ant-2.0.4-dep.jar. Can this be the culprit?

Yes. Most likely that's the problem. I cannot help much more. You could try just deleting that jar.

George Leontiev

unread,
Jul 22, 2013, 7:28:15 PM7/22/13
to scala-i...@googlegroups.com
Alright, this actually worked. Thanks a lot!

понедельник, 22 июля 2013 г., 20:53:35 UTC+2 пользователь Grzegorz Kossakowski написал:
Reply all
Reply to author
Forward
0 new messages