How to create multi module pom to build all projects at time

How to create multi module pom to build all projects at time. Is there way to specify modules in order based on the dependency and complete build for all modules.

Maven
 

is there way to run multiple commands from command prompt

I want to run multiple commands at time,like finishing one and start another. is there way to do. especially I need this while running mvn commands.

mvn clean install , mvn eclipse:clean, mvn eclipse:eclipse

Maven
 

Configure Maven not to run tests if nothing changed

We have a large application consisting of many modules and full build (with integration tests) takes up to hour. Is there a way to configure maven in the way that it will skip tests on modules (or even classes), where nothing has been changed? Probably some plugin exists for that or this plugin can be written?

Maven
 

what is uber jar?

I am reading Maven documentation and came across the name 'uber-jar'.

What does an uber-jar mean and what are its features/advantages?

Maven
 

How to skip Maven enforce plugin?

How to skip Maven enforce plugin while doing maven build. It is creating issue with version specification.

Maven
 

Multiple versions of the same dependency in Maven

Is it possible to declare multiple versions of the same dependency in a Maven repo?
I need these dependencies all at once:


    <dependency>
        <groupId>org.bukkit</groupId>
        <artifactId>craftbukkit</artifactId>
        <version>1.7.9-R0.2</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>org.bukkit</groupId>
        <artifactId>craftbukkit</artifactId>
        <version>1.7.2-R0.3</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>org.bukkit</groupId>
        <artifactId>craftbukkit</artifactId>
        <version>1.6.4-R2.0</version>
        <scope>compile</scope>
    </dependency>



Because each of them contains a different package I care about:

    org.bukkit.craftbukkit.v1_6_R3

    org.bukkit.craftbukkit.v1_7_R1

    org.bukkit.craftbukkit.v1_7_R3



If I declare dependencies as shown in the first snippet, only the last one will take effect. Is there any way to achieve this in Maven?

Maven
 

How to edit M2_REPO for class path variable in eclipse

I am unable to edit the class path variable for maven repo in eclipse.

Maven
 

How do I cure release project due to non released dependencies when releasing a child module?

I'm using Maven 3.1.1 and trying to use the Maven release plugin to release a child module of a multi-module project. The parent module was released and this child module is not in the parent's child module list. In my child module pom.xml file

    <parent>
            <artifactId>subco</artifactId>
            <groupId>org.mainco.subco</groupId>
            <version>52.0.0-SNAPSHOT</version>
    </parent>
    <name>myproject</name>
    <url>http://maven.apache.org</url>
 
    <dependencyManagement>
            <dependencies>
                    <dependency>
                            <groupId>org.mainco.subco</groupId>
                            <artifactId>core</artifactId>
                            <version>${project.version}</version>
                    </dependency>
   </dependencyManagement>
 
    <dependencies>
            ...
            <dependency>
                    <groupId>org.mainco.subco</groupId>
                    <artifactId>core</artifactId>
            </dependency>
I'm not able to change any properties in the parent pom.xml file … is there anything I can do in the child module to get the above command to run successfully?

Maven
 

How to override Nexus Repository location to upload artifacts into other location for maven release or snapshot?

I have a question with how to override Nexus Repository location to upload artifacts into specified location. We specified nexus location details in parent pom.xml. Here My problem is I can't edit these details because we have 2 jenkins setup. In that one is client specific and other one is what we are using for us. So without changing parent pom and I want override these location details using maven setting.xml.

Whatever we have local setup everything is locally configured nothing but maven installation , Java and Jenkins. Only we are using same CVS setup for both jenkins.

So I can able to change the values in maven settings.xml, not in parent pom which is there in CVS.
Please tell me how to ovverride repository location details for Maven release or snapshot

Maven
 

How to exclude folder from mvn clean install

I have one folder which has information about some templates. But that is not required in builds, because only for infomration we are maintaing.
On top that mvn clean install is taking more time to get complete.

Can you tell me How to exclude this folder from mvn clean install.

Maven
Prev      2   Next