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 6087503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:52:40+00:00 2026-05-23T11:52:40+00:00

I have a maven project in which the some xlsx files get generated after

  • 0

I have a maven project in which the some xlsx files get generated after the project run phase. These excel sheets are used by some other projects also. So I need to publish these excel sheet artifacts to remote|local repository.

I tried with the deploy plugin’s deploy-file goal. But after deploying the excel sheet as a jar in repo, I tried extracting the jar and I could see the excel sheet got corrupted. Excel sheet converted to several XML files. ( Sheet1.xml, Sheet2.xml ..)

Maven command :-

mvn clean deploy:deploy-file -Durl=file:///C:\repository -Dfile=Series.xlsx -DpomFile=seriesXL.pom

SeriesXL.pom:-

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.test.pjt</groupId>
  <artifactId>seriesXL</artifactId>
  <version>1.0</version>
  <packaging>jar</packaging>

 <build>
  <plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-jar-plugin</artifactId>
    <version>2.3.1</version>
    <configuration>
        <includes>
            <include>*.xlsx</include>
        </includes>
    </configuration>
</plugin>
  </plugins>

</build> 


    <dependencies>
        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi</artifactId>
            <version>3.6</version>
        </dependency>
        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-ooxml</artifactId>
            <version>3.6</version>
        </dependency>
    </dependencies>

</project>

Please help me to resolve this issue. All inputs are appreciated.

  • 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-23T11:52:40+00:00Added an answer on May 23, 2026 at 11:52 am

    Microsoft is trying to push new file formats that are using ZIP and XML in their office suites. This method reduces the size of the file by around 50%.

    Reference

    That means the excel file is actually a packed file of different xmls and other metadata informations.

    I have done a work around to resolve the issue:

    1. After excel sheet generation, I have added that file to a zip (SeriesXL.zip), using java.util.zip.ZipEntry.

    2. Then deploy the zip file using the command

      mvn clean deploy:deploy-file -Durl=file:///C:\repository -Dfile=SeriesXL.zip -DgroupId=com.test.pjt -DartifactId=seriesXL -Dversion=1.0 -Dpackaging=jar
      

    I am able to successfully deploy the SeriesXL.jar in local repository and while extracting the jar, I could see the original version of the Excel sheet, not just a bundle of XML files.

    BTW Thanks Dunni for your support.

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

Sidebar

Related Questions

I have a maven project built in '/some/where' which I wish to run/execute from
I have a Java Maven project with about 800 source files (some generated by
So I have a maven project which produces a jar package containing some ant
Currently, I have a Maven project which inherits from a parent pom defining two
I have a maven multiple-module project, which is giving me headaches in the assembly:assembly
I have a maven project that was generated by Spring Roo. Now I am
I have a Maven project which generates a 413.06 KB jar file. I have
I have maven-gwt project. It has lots of dependencies which is usual by a
I have a project which is build through maven. Each module is built as
I have a Maven project within which I need execute two code generation steps.

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.