Build « plugin « Maven/Ant Q&A

Home
Maven/Ant Q&A
1.Ant
2.artifact
3.dependency
4.deploy
5.Development
6.eclipse
7.glassfish
8.hudson
9.integration
10.jetty
11.junit
12.m2eclipse
13.module
14.netbeans
15.package
16.plugin
17.POM
18.repository
19.svn
Maven/Ant Q&A » plugin » Build 

1. Using Maven 1.x without extra plugins, how does someone build an executable jar?    stackoverflow.com

Using Maven 1.x with just the bundled/standard plugins, what configuration is necessary to build an executable Jar? Answers should cover:

  • including dependencies in target Jar
  • proper classpath configuration to make dependency Jars accessible

2. Maven assembly plugin fails with NullPointerException?    stackoverflow.com

I get a NullPointerException and I don't like it. It is a larger build with several submodules (which differ in their maven config only slightly), for most of the modules it ...

3. Can the Maven shade plugin fail the build when there are duplicate classes?    stackoverflow.com

The Maven shade plugin coalesces your project's Java classes along with its dependencies into a single über JAR file. If there is any overlap (e.g. two dependencies contain a ...

4. Declarative maven syntax/language, I don't understand duplicate build tags    stackoverflow.com

I don't understand the duplicate grouping of tags that maven uses. I am more used to ant where the action or tasks are more explicit. With a maven pom ...

5. Maven: plugin to fail a build if a string is found    stackoverflow.com

During development, I have an habit of wrapping code that should not be in production inside "TODEL" tag. For example:

//TODEL - START

//used to test the crashing behavior
String s = null;
int i ...

6. Automatically build maven plugins    stackoverflow.com

Can Maven automatically build the required plugins from my source? Instead of having to build and upload them manually before I build the application, I would like to build everything from ...

7. Maven build number plugin, how to save the build number in a file?    stackoverflow.com

I've a Java project using Spring Framework and Git and I wanted to display a build number. I found the Build Number Maven plugin. With Git the build number ...

8. Dynamically add projects to maven build reactor?    stackoverflow.com

I wrote a maven plugin that generates Java source code based on some definition language.
The generated source code should be split up into several jar files (interfaces, implementation, etc.).
I would like ...

9. Maven plugin executes multiple times during build    stackoverflow.com

I have a Maven project with multiple overlapping profiles. I want to display the active profiles at the beginning of every build. So I put the following into the ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.