[ http://jira.codehaus.org/browse/MANT-10?page=all ]
Vincent Siveton closed MANT-10. ------------------------------- Resolution: Fixed Fixed > error with build.classpath in build.xml > --------------------------------------- > > Key: MANT-10 > URL: http://jira.codehaus.org/browse/MANT-10 > Project: Maven 2.x Ant Plugin > Issue Type: Bug > Affects Versions: 2.0-beta-1 > Environment: WinXP, JDK 1.5 > Reporter: Martynov Sergey > Assigned To: Vincent Siveton > Priority: Blocker > > I used 'mvn ant:ant' to create build file, > after that I try 'ant' to compile the project and get the following error: > compile: > [javac] Compiling 1 source file to D:\Projects\test-app\target\classes > [javac] error: error reading > ...\.m2\repository\classworlds\classworlds\1.1-alpha-1\classworlds-1.1-alpha-1.pom; > java.util.zip.ZipException: error in opening zip file > [javac] 1 error > in the build.xml file there are the following lines: > ... > <path id="build.classpath"> > <fileset dir="${maven.repo.local}"/> > </path> > ... > this leads to problems when classpath contains files other than .jar > the problem disappears when I change the above lines to: > <path id="build.classpath"> > <fileset dir="${maven.repo.local}"> > <include name="**/*.jar"/> > </fielset> > </path> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira