dev-aspectj / aspectj-maven-plugin

AspectJ Maven Plugin
MIT License
48 stars 12 forks source link

How to configure a multi-module Maven project? #103

Closed HantaoCai closed 2 years ago

HantaoCai commented 2 years ago
image

here is my plugins config

`

dev.aspectj aspectj-maven-plugin 1.13.1 17 17 17 true true ignore UTF-8 **/*.java true default-compile process-classes compile ${project.build.directory}/classes default-testCompile process-test-classes test-compile ${project.build.directory}/test-classes org.aspectj aspectjtools ${aspectj.version}
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.1</version>
            <configuration>
                <source>17</source>
                <target>17</target>
                <annotationProcessorPaths>
                    <path>
                        <groupId>org.mapstruct</groupId>
                        <artifactId>mapstruct-processor</artifactId>
                        <version>${org.mapstruct.version}</version>
                    </path>
                    <path>
                        <groupId>org.projectlombok</groupId>
                        <artifactId>lombok</artifactId>
                        <version>${org.projectlombok.version}</version>
                    </path>
                    <path>
                        <groupId>org.projectlombok</groupId>
                        <artifactId>lombok-mapstruct-binding</artifactId>
                        <version>0.1.0</version>
                    </path>
                    <!-- other annotation processors -->
                </annotationProcessorPaths>
            </configuration>
        </plugin>
    </plugins>`

I want to compile the classes in common to the server module and web module, how should I configure it? Please give me some advice, thank you~