I have a project which has several custom descriptors written for the assembly plugin. Is there a way to run only one of those descriptors at a time instead of the whole bunch? I tried using the descriptors switch as documented here, passing in the full path to the one descriptor that I wanted to run, but instead it's running all of the descriptors in my app's main pom file, seeming to ignore the switch I specified.
Maven assembly plugin: run only one descriptor
2.9k Views Asked by UrLicht At
1
There are 1 best solutions below
Related Questions in PLUGINS
- How to specify SonarQube rule description as a markdown/html resource file instead of using annotation?
- JENKINS Maven Build Failure
- disable update for wordpress plugin named Dropbox Folder Share
- Fancytree: implementing bootstrap skin
- Send information to Maya node instance in cpp
- Which plugin is used to show the data in front end of socrata
- Reuse jquery plugin without conflict
- how can i use require(""); in javascript
- Phonegap VideoPlayer Plugin Sample Code
- How to resolve java.lang.StringIndexOutOfBoundsException: String index out of range: -325 while deploying Liferay Ext plugin 6.1
- Wordpress plugin: How to depend on other plugins?
- Notification.alert not working cordova version 4+
- FindBugs in Intellij - Possible to reuse .fbpref file?
- ACF Gallery thumbnails (image included)
- Cordova plugin development - adding aar
Related Questions in MAVEN-2
- Maven profile dependency with another profile
- Maven implicit profile Activation
- Get the whole index of Maven Central
- Apache IVY Unable to resolve dependencies for MAVEN Projects
- Java application using Maven Build
- maven 2.2.1 build error : Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory
- How to deal with checksum issue in maven 2.2.1
- Add external jar to the project and build process using maven
- Is it possible to declare multiple artifactIDs per dependency?
- Maven 2 works but Maven 3 gives authentication error with same settings and server
- get sca module bindings in EAR before deploying
- Maven <mirror> tag, meaning of external:* parameter
- Multiple maven project with different package
- how to get eclipse neon to work with maven 2
- How to stop IntelliJ IDEA from creating new annotation processor profiles when a pom file is changed
Related Questions in ASSEMBLIES
- Distribute msvcr90.dll without the rest of Microsoft.VC90.CRT?
- How to add a reference to C:\Windows\Microsoft.NET\assembly
- Could Not Load File or Assembly - Incorrect Format - Partial Binding
- .NET Framework compatibility issue
- .NET MEF: part versioning
- Possible to set absolute path for references in CSharpCodeProvider?
- Relation between IsAssembly / IsFamily and IsFamilyOrAssembly
- Deploying an external assembly (DevExpress) to an azure app service
- Showing that c = |a - b | using assambly with limited operations
- Why does R# tell me "Cannot resolve assembly System.Drawing" when I am referencing System.Drawing?
- Get from .dll executors assembly
- Application.Designer.cs Errors - Can't find assembly properties
- NDepend TypeInitializationExceptions when Testing with NUnit
- Issue with InternalsVisibleTo attribute
- ILMerge : predefined type defined in multiples assemblies
Related Questions in MAVEN-DESCRIPTOR
- Cannot resolve dependencies with maven
- Build maven Artifacts for different environments via Jenkins
- Maven assembly plugin: run only one descriptor
- Maven descriptor (META-INF/maven) duplicate entry in archive
- Maven assembly - Error reading assemblies
- why is my maven plugin descriptor not being generated automatically?
- Property Replacement in Maven Site Content
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Probably the easiest way to do so, is by using Maven Profiles.
Define some profiles in your pom.xml:
Then you use that particular property for the configuration of the assembly plugin:
Then run your maven build with the -P option:
mvn -P profile-1 compileSo, summarized, if you choose a profile at buildtime, the property assembly-config will be set depending on the defined profile. The assembly configuration depends in that case on the chosen profile.
Hope this helps!