Netbeans and Maven, Clean and Build with dependent projects

I have a maven project in Netbeans that depends on other maven projects, when I clean and build only the current project, which becomes clean and builds - can I somehow make netbeans execute clean and build for each dependent project?

the reason I often need to do clean and build is because for some reason netbeans doesn’t do annotation processing on a regular build, and when I change my annotation handler, I need all my projects to be clean and build ...

+4
source share
2 answers

, , . , , .

Aggreator, pom.xml, pom . pom , .

<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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>BuildAggregator</groupId>
    <artifactId>BuildAggregator</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>pom</packaging>
    <name>aggregator Project</name>
    <description>All module aggregator Project</description>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                    <showWarnings>true</showWarnings>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <modules>
        <module>../DependentProject1-jar</module>
        <module>../CoreProject-jar</module>
    </modules>
</project>

, pom.

, . , BuildAggregator, ( , pom - , .)

0

call mvn, :

call mvn clean build install -U

.

help call
0

Source: https://habr.com/ru/post/1533940/


All Articles