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

  • Home
  • SEARCH
  • 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 7989969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:53:00+00:00 2026-06-04T12:53:00+00:00

I try to create an EAR with the maven assembly plugin but I got

  • 0

I try to create an EAR with the maven assembly plugin but I got an error message instead of EAR file…

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.3:
single (assembly:package) on project business-serviceability-ear: Failed to create assembly:
Error creating assembly archive bin: Failed to configure archiver: org.codehaus.plexus.archiver.dir.DirectoryArchiver:
Cannot find setter, adder nor field in org.codehaus.plexus.archiver.dir.DirectoryArchiver for ‘appxml’ -> [Help 1]

The interesting part of my pom.xml:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.3</version>
<executions>
    <execution>
        <id>assembly:package</id>
        <phase>package</phase>
        <goals>
            <goal>single</goal>
        </goals>
        <configuration>
            <archiverConfig>
                <appxml>src/main/resources/META-INF/application.xml</appxml>
            </archiverConfig>
            <descriptors>
                <descriptor>src/main/assembly/bin.xml</descriptor>
            </descriptors>
        </configuration>
    </execution>
</executions>

Could you please help where I should put the element in the pom.xml?
I have to put somehwere otherwise I get this error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.3:single (assembly:package) on project business-serviceability-ear: Fail
ed to create assembly: Error creating assembly archive bin: appxml attribute is required -> [Help 1]

Thank you,
Viktor

  • 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-06-04T12:53:01+00:00Added an answer on June 4, 2026 at 12:53 pm

    Sorry, I made a mistake in the bin.xml.
    I defined more format element not just one… this is the working solution.

        <formats>
    <!--        <format>dir</format> -->
    <!--        <format>war</format> -->
            <format>ear</format>
        </formats>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try create custom format for maven assembly plugin. I use following instruction how
I'll try create a controler in towerjs, but I have an error while updating
I try to create a new file inside a JSP and try to save
I try to upload an ear created by maven to an application server using
At the moment I have this: try{ // Create file FileWriter fstream = new
try { // Create an appending file handler boolean append = true; FileHandler handler
I try create delegate type using an Expression class, but when I try create
I try create method for get the connection string value but without value for
I try to read a text file on a server. But i don't have
I want to try create something like Zend's Server Pagecache. What I want to

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.