Multiple artifacts resolved error with ivy-maven-plugin -
i'm trying use ivy-maven-plugin in order execute sbt launcher scala program builds maven. (side note: i'm not looking answers like: use sbt...)
my ivyconf.xml looks this:
<ivysettings> <property name='ivy.checksums' value=''/> <resolvers> <url name='typesafe-repo' alwayscheckexactrevision='yes' checkmodified='true'> <ivy pattern='http://repo.typesafe.com/typesafe/releases/[organization]/[module]/[revision]/ivys/ivy.xml'/> <artifact pattern='http://repo.typesafe.com/typesafe/releases/[organization]/[module]/[revision]/jars/[artifact](.[ext])'/> </url> <ibiblio name="maven2-repo" m2compatible="true"/> </resolvers> <modules> <module organisation='com.jcraft' matcher='regexp' resolver='maven2-repo'/> <module organisation='jline' matcher='regexp' resolver='maven2-repo'/> <module organisation='org.apache.ivy' matcher='regexp' resolver='maven2-repo'/> <module organisation='org.scalacheck' matcher='regexp' resolver='maven2-repo'/> <module organisation='org.scala-lang' matcher='regexp' resolver='maven2-repo'/> <module organisation='org.scala-sbt' name='test-interface' matcher='regexp' resolver='maven2-repo'/> <module organisation='org.scala-sbt' matcher='regexp' resolver='typesafe-repo'/> <module organisation='org.scala-tools.sbinary' matcher='regexp' resolver='typesafe-repo'/> <module organisation='org.scala-tools.testing' matcher='regexp' resolver='maven2-repo'/> <module organisation='org.sonatype.oss' matcher='regexp' resolver='maven2-repo'/> <module organisation='org.specs2' matcher='regexp' resolver='maven2-repo'/> </modules> </ivysettings>
and maven plugin definition this:
<plugin> <groupid>com.github.goldin</groupid> <artifactid>ivy-maven-plugin</artifactid> <version>0.2.5</version> <executions> <execution> <id>add-idea-artifacts-compile-scope</id> <goals> <goal>ivy</goal> </goals> <phase>generate-resources</phase> <configuration> <ivyconf>${project.basedir}/src/main/resources/ivyconf.xml</ivyconf> <scope>compile</scope> <dependencies> <dependency> <groupid>ivy.org.scala-sbt</groupid> <artifactid>launcher</artifactid> <version>0.13.0-rc4</version> <!--<classifier>???</classifier>--> </dependency> </dependencies> </configuration> </execution> </executions> </plugin>
when execute build, get:
[error] failed execute goal com.github.goldin:ivy-maven-plugin:0.2.5:ivy (add-idea-artifacts-compile-scope) on project escalante-play: execution add-idea-artifacts-compile-scope of goal com.github.goldin:ivy-maven-plugin:0.2.5:ivy failed: multiple artifacts resolved [org.scala-sbt:launcher:0.13.0-rc4:jar] - [ivy.org.scala-sbt:launcher:jar:launcher:0.13.0-rc4:compile, ivy.org.scala-sbt:launcher-interface:jar:launcher-interface:0.13.0-rc4:compile, ivy.org.apache.ivy:ivy:jar:ivy:2.3.0-rc1:compile, ivy.org.scala-sbt:io:jar:io:0.13.0-rc4:compile, ivy.org.scala-sbt:control:jar:control:0.13.0-rc4:compile, ivy.org.scalacheck:scalacheck_2.10:jar:scalacheck_2.10:1.10.0:compile, ivy.org.scala-tools.testing:test-interface:jar:test-interface:0.5:compile, ivy.org.scala-lang:scala-actors:jar:scala-actors:2.10.1:compile, ivy.org.specs2:specs2_2.10:jar:specs2_2.10:1.12.3:compile, ivy.org.specs2:specs2-scalaz-core_2.10.0-rc3:jar:specs2-scalaz-core_2.10.0-rc3:6.0.1:compile, ivy.org.scala-lang:scala-reflect:jar:scala-reflect:2.10.2:compile, ivy.org.scala-sbt:interface:jar:interface:0.13.0-rc4:compile], specify <classifier> 1 artifact resolved. -> [help 1]
i assume need use classified
i've no idea classifier should contain. tried launcher
did not work, other ideas?
cheers, galder
Comments
Post a Comment