Building multiple component zips for a multi-module Maven projectHow to add local jar files to a Maven project?IntelliJ - Convert a Java project/module into a Maven project/modulemaven package doesn't compileBuild order of Maven multimodule project?How to pack switchyard application with mavenMaven: why does it contain a seemingly broken schemaLocation?download the repositories in mavenmaven-compiler-plugin in parent pomMigrating existing jersey postgres app to spring bootFailed to read artifact descriptor for org.apac he.maven.plugins
How is the casino term "a high roller" commonly expressed in German?
How to save money by shopping at a variety of grocery stores?
How can I portray a character with no fear of death, without them sounding utterly bored?
Should we run PBKDF2 for every plaintext to be protected or should we run PBKDF2 only once?
What is the motivation behind designing a control stick that does not move?
Why wasn't Linda Hamilton in T3?
Single vs Multiple Try Catch
Is Borg adaptation only temporary?
meaning of "educating the ice"?
Quick Slitherlink Puzzles: KPK and 123
Ideas behind the 8.Bd3 line in the 4.Ng5 Two Knights Defense
Is there anything in the universe that cannot be compressed?
What is the practical impact of using System.Random which is not cryptographically random?
Why do modes sound so different, although they are basically the same as a mode of another scale?
'spazieren' - walking in a silly and affected manner?
An alternative to "two column" geometry proofs
Can I leave a large suitcase at TPE during a 4-hour layover, and pick it up 4.5 days later when I come back to TPE on my way to Taipei downtown?
Underbrace in equation
German equivalent to "going down the rabbit hole"
Why didn't Thatcher give Hong Kong to Taiwan?
LED lights on 1.2 V battery
Is it good practice to speed up and slow down where not written in a song?
Why are CEOs generally fired rather being demoted?
Can a system of three stars exist?
Building multiple component zips for a multi-module Maven project
How to add local jar files to a Maven project?IntelliJ - Convert a Java project/module into a Maven project/modulemaven package doesn't compileBuild order of Maven multimodule project?How to pack switchyard application with mavenMaven: why does it contain a seemingly broken schemaLocation?download the repositories in mavenmaven-compiler-plugin in parent pomMigrating existing jersey postgres app to spring bootFailed to read artifact descriptor for org.apac he.maven.plugins
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am trying to find a good example on how you would build multiple zip files for a multi-module project with several runnable components using the maven-assembly-plugin.
My end result would hopefully have a single "dist" component that is capable of building all the necessary zip files.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>xyz.exampleproject</groupId>
<artifactId>parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<name>Project Distribution</name>
<artifactId>dist</artifactId>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>$project.groupId</groupId>
<artifactId>component1-core</artifactId>
<version>$project.version</version>
</dependency>
<dependency>
<groupId>$project.groupId</groupId>
<artifactId>component2-core</artifactId>
<version>$project.version</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-bundles</id>
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
java maven pom.xml maven-assembly-plugin parent-pom
add a comment |
I am trying to find a good example on how you would build multiple zip files for a multi-module project with several runnable components using the maven-assembly-plugin.
My end result would hopefully have a single "dist" component that is capable of building all the necessary zip files.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>xyz.exampleproject</groupId>
<artifactId>parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<name>Project Distribution</name>
<artifactId>dist</artifactId>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>$project.groupId</groupId>
<artifactId>component1-core</artifactId>
<version>$project.version</version>
</dependency>
<dependency>
<groupId>$project.groupId</groupId>
<artifactId>component2-core</artifactId>
<version>$project.version</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-bundles</id>
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
java maven pom.xml maven-assembly-plugin parent-pom
add a comment |
I am trying to find a good example on how you would build multiple zip files for a multi-module project with several runnable components using the maven-assembly-plugin.
My end result would hopefully have a single "dist" component that is capable of building all the necessary zip files.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>xyz.exampleproject</groupId>
<artifactId>parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<name>Project Distribution</name>
<artifactId>dist</artifactId>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>$project.groupId</groupId>
<artifactId>component1-core</artifactId>
<version>$project.version</version>
</dependency>
<dependency>
<groupId>$project.groupId</groupId>
<artifactId>component2-core</artifactId>
<version>$project.version</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-bundles</id>
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
java maven pom.xml maven-assembly-plugin parent-pom
I am trying to find a good example on how you would build multiple zip files for a multi-module project with several runnable components using the maven-assembly-plugin.
My end result would hopefully have a single "dist" component that is capable of building all the necessary zip files.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>xyz.exampleproject</groupId>
<artifactId>parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<name>Project Distribution</name>
<artifactId>dist</artifactId>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>$project.groupId</groupId>
<artifactId>component1-core</artifactId>
<version>$project.version</version>
</dependency>
<dependency>
<groupId>$project.groupId</groupId>
<artifactId>component2-core</artifactId>
<version>$project.version</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-bundles</id>
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
java maven pom.xml maven-assembly-plugin parent-pom
java maven pom.xml maven-assembly-plugin parent-pom
asked Mar 28 at 0:38
user0000001user0000001
9002 gold badges7 silver badges26 bronze badges
9002 gold badges7 silver badges26 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I would add one extra module per zip file that you want to create and configure the assembly plugin in there.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55388527%2fbuilding-multiple-component-zips-for-a-multi-module-maven-project%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I would add one extra module per zip file that you want to create and configure the assembly plugin in there.
add a comment |
I would add one extra module per zip file that you want to create and configure the assembly plugin in there.
add a comment |
I would add one extra module per zip file that you want to create and configure the assembly plugin in there.
I would add one extra module per zip file that you want to create and configure the assembly plugin in there.
answered Mar 28 at 10:55
JF MeierJF Meier
12.2k5 gold badges33 silver badges71 bronze badges
12.2k5 gold badges33 silver badges71 bronze badges
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55388527%2fbuilding-multiple-component-zips-for-a-multi-module-maven-project%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown