mbknor / deptools

Maven 2 and Maven 3 plugin which gives build error if maven resolves transient dependencies in such a way that the none-newest version is chosen
http://wiki.github.com/mbknor/deptools/
7 stars 0 forks source link

Version 1.1 parsing error #2

Closed ebaxt closed 13 years ago

ebaxt commented 13 years ago

We tried version 1.1 today, and it failed on two different projects one using Maven2 and one with Maven3.

[ERROR] ' 'ava.lang.Exception: Error parsing first line: 'com.nordea.nlp.cic:CiC-UlmSyncService:war:1.4.2-SNAPSHOT at deptools.plugin.scala.parser.DepTreeOutputParser.parseFirstLine(DepTreeOutputParser.scala:82) at deptools.plugin.scala.parser.DepTreeOutputParser.parseLines(DepTreeOutputParser.scala:69) at deptools.plugin.scala.parser.DepTreeOutputParser.parse(DepTreeOutputParser.scala:56) at deptools.plugin.scala.ScalaMojo.execute(ScalaMojo.scala:75) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168) at org.apache.maven.cli.MavenCli.main(MavenCli.java:132) 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [ERROR]

mbknor commented 13 years ago

deptools uses the maven dependency plugin internaly.

can you try this command in one of the projects that fail and send me both the generated deptree.txt file:

mvn dependency:tree -DoutputFile=deptree.txt -Dverbose=true

mbknor commented 13 years ago

The problem is related to newlines on windows. I'll fix it right away and release 1.2