Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6721429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:19:46+00:00 2026-05-26T09:19:46+00:00

I am trying to run an Maven Ant Task with plugin version 2.1.3 and

  • 0

I am trying to run an Maven Ant Task with plugin version 2.1.3 and for some reason running into this error:

[javac] Compiling 101 source files to /home/raido/Workspace2/foobar/classes
[javac] error: error reading /home/raido/.m2/repository/foobar/1.0/foobar-1.0.pom; error in opening zip file
[javac] 1 error

Why is it trying to read a xml file as an zip file and how can I avoid this? The file itself is perfectly fine and readable.

That part from the build.xml file:

<target name="compile" depends="init">
    <mkdir dir="${build.dir}" />
    <mkdir dir="${classes.dir}" />
    <javac classpathref="compile.dependency.path" debug="on"
        encoding="UTF-8" 
        deprecation="on" destdir="${classes.dir}"
        includes="bar/**/*.java" optimize="off"
        srcdir="${src.dir}" />
</target>

The error is targeted to the closing sign > on the srcdir row i.e. the whole tag.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:19:46+00:00Added an answer on May 26, 2026 at 9:19 am

    I finally figured it out. The problem was that the main ant file had a specific task that produced JAR-s of the modules but I hadn’t done it. This shows how important documentation sometimes is which this project doesn’t have at all!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to run junitreport task in Ant in Ant in Maven: <plugin> <groupId>org.apache.maven.plugins</groupId>
I'm trying to write a simple task using Maven: <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.3</version> <executions> <execution>
I'm trying to do something really simple: run an Ant task from Maven. Foolproof,
I'm trying to execute with Maven some test written using Ant tasks. I generated
This is related to . I'm trying to dynamically add the maven-ant-tasks jars with
I am trying to automate pde tests, using pde-maven-plugin, maven calls, or ant tasks.
i am trying to run selenium tests as part of maven build, and this
I'm trying to use Maven to start an application prior to running some integration
I am trying to run a build file using Ant. I am using Maven
I'm trying to use Maven release plugin 2.0 to tag the version and hopefully

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.