Saturday, December 28, 2024

RE: Compile multiple modules in one project

<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.4</version>
<relativePath/>
</parent>
<groupId>com.3dmathpuzzles</groupId>
<artifactId>3DMathPuzzlesWeb</artifactId>
<version>2.1.0</version>
<name>3DMathPuzzlesWeb</name>
<description>Web site for 3DMathPuzzles.com</description>
<properties>
<gwt_ver>2.12.1</gwt_ver>
<jme3_group>org.jmonkeyengine</jme3_group>
<jme3_ver>3.6.1-stable</jme3_ver>
<pflib_ver>6.0.0</pflib_ver>
</properties>
<dependencies>
<dependency>
<groupId>com.isomorphic.smartgwt.lgpl</groupId>
<artifactId>smartgwt-lgpl</artifactId>
<version>13.1-p20241221</version>
</dependency>
<dependency>
<groupId>com.propfinancing</groupId>
<artifactId>pflib</artifactId>
<version>${pflib_ver}</version>
</dependency>
<dependency>
<groupId>com.propfinancing</groupId>
<artifactId>pflib</artifactId>
<version>${pflib_ver}</version>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>com.simsilica</groupId>
<artifactId>lemur</artifactId>
<version>1.16.0</version>
</dependency>
<dependency>
<groupId>com.simsilica</groupId>
<artifactId>sio2</artifactId>
<version>1.8.0</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
<version>1.10.0</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>org.gwtproject</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwt_ver}</version>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.gwtproject</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt_ver}</version>
</dependency>
<dependency>
<groupId>org.gwtproject</groupId>
<artifactId>gwt-servlet-jakarta</artifactId>
<version>${gwt_ver}</version>
</dependency>
<dependency>
<groupId>${jme3_group}</groupId>
<artifactId>jme3-core</artifactId>
<version>${jme3_ver}</version>
</dependency>
<dependency>
<groupId>${jme3_group}</groupId>
<artifactId>jme3-desktop</artifactId>
<version>${jme3_ver}</version>
</dependency>
<dependency>
<groupId>${jme3_group}</groupId>
<artifactId>jme3-lwjgl3</artifactId>
<version>${jme3_ver}</version>
</dependency>
<dependency>
<groupId>${jme3_group}</groupId>
<artifactId>jme3-jogg</artifactId>
<version>${jme3_ver}</version>
</dependency>
<dependency>
<groupId>${jme3_group}</groupId>
<artifactId>jme3-plugins</artifactId>
<version>${jme3_ver}</version>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.15.4</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
<exclusions>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<exclusions>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
</exclusion>
</exclusions>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>nz.net.ultraq.thymeleaf</groupId>
<artifactId>thymeleaf-layout-dialect</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.1.0</version>
<extensions>true</extensions>
<executions>
<execution>
<id>DiagonalSlitherlink</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<failOnError>true</failOnError>
<logLevel>INFO</logLevel>
<moduleName>com._3dmathpuzzles.gwt.DiagonalSlitherlink</moduleName>
</configuration>
</execution>
<execution>
<id>DiagonalSlitherlink2</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<failOnError>true</failOnError>
<logLevel>INFO</logLevel>
<moduleName>com._3dmathpuzzles.gwt.DiagonalSlitherlink2</moduleName>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
</plugins>
<finalName>3dmp</finalName>
</build>
<packaging>war</packaging>
</project>

> I can't see what you've edited to fix it - do you now have three entries for <moduleName>? Or did you remove gwt-app as the packaging?

 

I am attaching my full pom.xml file.

 

Thank you,

 Neil

 

--

Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com

We offer 30 year loans on single family houses!

No comments:

Post a Comment