You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Guido Serra aka Zeph (JIRA)" <ji...@apache.org> on 2012/12/18 15:06:13 UTC

[jira] [Comment Edited] (SQOOP-526) Unable to resolve maven-scm-providers-standard

    [ https://issues.apache.org/jira/browse/SQOOP-526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13534896#comment-13534896 ] 

Guido Serra aka Zeph edited comment on SQOOP-526 at 12/18/12 2:04 PM:
----------------------------------------------------------------------

it seems related to the way junit is getting instrumented: 
 - http://stackoverflow.com/questions/461417/configuring-ant-to-run-unit-tests-where-should-libraries-be-how-should-classpa
 - http://stackoverflow.com/questions/6015092/zipexception-when-running-junit-tests
 - http://stackoverflow.com/questions/8655193/not-able-to-run-test-through-ant

I'm looking into this section of the build.xml on how to change it to avoid this

{code:xml}
...
      <formatter type="${test.junit.output.format}" />
      <batchtest todir="${build.test}" unless="testcase">
        <fileset dir="${test.dir}"
                 includes="**/${test.pattern}.java"
                 excludes="**/${test.exclude}.java" />
      </batchtest>
      <batchtest todir="${build.test}" if="testcase">
        <fileset dir="${test.dir}" includes="**/${testcase}.java"/>
      </batchtest>
    </junit>
  </target>
{code}
                
      was (Author: zeph):
    it seems related to the way junit is getting instrumented: 
 - http://stackoverflow.com/questions/461417/configuring-ant-to-run-unit-tests-where-should-libraries-be-how-should-classpa
 - http://stackoverflow.com/questions/6015092/zipexception-when-running-junit-tests

I'm looking into this section of the build.xml on how to change it to avoid this

{code:xml}
...
      <formatter type="${test.junit.output.format}" />
      <batchtest todir="${build.test}" unless="testcase">
        <fileset dir="${test.dir}"
                 includes="**/${test.pattern}.java"
                 excludes="**/${test.exclude}.java" />
      </batchtest>
      <batchtest todir="${build.test}" if="testcase">
        <fileset dir="${test.dir}" includes="**/${testcase}.java"/>
      </batchtest>
    </junit>
  </target>
{code}
                  
> Unable to resolve maven-scm-providers-standard
> ----------------------------------------------
>
>                 Key: SQOOP-526
>                 URL: https://issues.apache.org/jira/browse/SQOOP-526
>             Project: Sqoop
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.4.1-incubating
>         Environment: ubuntu 11
>            Reporter: Rajesh Koilpillai
>            Priority: Trivial
>
> Not sure why it is unable to resolve this POM while running "ant test", tried removing the folder and re-tried but it didn't seem to make any difference.
> Unable to obtain resource from /home/rajesh/.ivy2/cache/org.apache.maven.scm/maven-scm-providers-standard/poms/maven-scm-providers-standard-1.6.pom: java.util.zip.ZipException: error in opening zip file
>     [junit] Unable to obtain resource from /home/rajesh/.ivy2/cache/org.apache.maven.scm/maven-scm-providers-standard/poms/maven-scm-providers-standard-1.6.pom: 
>     [junit] java.util.zip.ZipException: error in opening zip file
>     [junit]  at java.util.zip.ZipFile.open(Native Method)
>     [junit]  at java.util.zip.ZipFile.<init>(ZipFile.java:127)
>     [junit]  at java.util.jar.JarFile.<init>(JarFile.java:135)
>     [junit]  at java.util.jar.JarFile.<init>(JarFile.java:99)
>     [junit]  at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:1002)
>     [junit]  at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:145)
>     [junit]  at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.<init>(AntClassLoader.java:109)
>     [junit]  at org.apache.tools.ant.AntClassLoader.findResources(AntClassLoader.java:949)
>     [junit]  at org.apache.tools.ant.AntClassLoader.getNamedResources(AntClassLoader.java:918)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira