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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:56:09+00:00 2026-05-31T10:56:09+00:00

When using the assembly plugin, it seems like there should be a property exposed,

  • 0

When using the assembly plugin, it seems like there should be a property exposed, such as ${assembly.directory}, by which you could reference the assembly output directory. By assembly output directory, I mean the directory in which the assembly plugin puts the assembly it creates for you; in my case, I’m creating a “dir” type assembly so the output directory is the assembly itself. In my usage of the assembly plugin, the “directory output assembly” turns out to be something like:

${project.build.directory}/${artifactId}-${project.version}/${artifactId}-${project.version}

But that is obviously kind of a nasty thing to write out in all of the places I need to reference the assembly output location. I would prefer something like

${project.assembly.outputDirectory}

Here’s my assembly plugin config:

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.2-beta-5</version>
                <executions>
                    <execution>
                        <id>assemble-myStuff</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                        <configuration>
                            <appendAssemblyId>false</appendAssemblyId>
                            <descriptors>
                                <descriptor>src/main/assemble/myAssembly.xml</descriptor>
                            </descriptors>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
  • 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-31T10:56:11+00:00Added an answer on May 31, 2026 at 10:56 am

    But that is obviously kind of a nasty thing to write out in all of the places I need to reference the assembly output location.

    True, but I don’t think the plugin will provide it for you. I had a similar issue and solved it this way (not ideal, but hey):

    <properties>
       <myAssemblyOutput>${project.build.directory}/${artifactId}-${project.version}/${artifactId}-${project.version}</myAssemblyOutput>
    </properties>
    

    And use ${myAssemblyOutput} throughout.

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

Sidebar

Related Questions

I'm using Maven with the Assembly plugin and would like to set the user
I have got method which is using Assembly.LoadFrom(...) statement and returns the supported cultures
There are instructions here to create a C# assembly using the SimMetrics library. The
I have a project which has several custom descriptors written for the assembly plugin.
I'm trying to filter my shell scripts using maven assembly plugin. Other properties and
I am creating an executable jar using the jar-with-dependencies component of the maven-assembly-plugin during
I'm trying to use ILMerge to merge multiple assemblies into one plugin assembly, which
I'm using the maven-assembly-plugin to produce a zip file for some database scripts. I
This is plugin configuration I am using: <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <archive> <manifest> <mainClass>com.mycompany.changepasswd</mainClass> </manifest>
I'm generating a dynamic assembly using Reflection.Emit which includes a single class. I have

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.