--- title: "Compiling IntelliJ Designer Forms with Maven" date: 2021-02-23T03:59:59+01:00 categories: - software tags: - hacking - english - software engineering - maven keywords: - intellij forms - maven - intellij gui - designer - forms - swing - compile summary: Ever wanted to compile IntelliJ IDEA GUI-Designer forms with maven? I've found a 2021 solution. showTOC: false --- In 2021 I worked in a small team of students on an old fashioned Java swing application. To design our forms rather fast, we chose to opt for the IJ-GUI designer. That turned out to be a rather annoying mistake, trying to package the Software just hours before the deadline.We were unable to come up with a solution to compile the forms on our build server in that short time. So, we then opted to just let IntelliJ compile the .forms into .java directly, which then cluttered our version control. Today I present you the fix: A minimal `pom.xml` compiling forms on the fly. A complete minimal working example can be found on my private git: [git.tobiasmanske.de](https://git.tobiasmanske.de/user/rad4day/public/intellij-forms-maven-example/tree/) ```xml 4.0.0 de.tobiasmanske example 1.0-SNAPSHOT 11 11 203.7148.57 jetbrains.releases https://www.jetbrains.com/intellij-repository/releases jetbrains.3rdparty https://dl.bintray.com/jetbrains/intellij-third-party-dependencies maven-antrun-plugin 3.0.0 compile run com.jetbrains.intellij.java java-gui-forms-rt ${intellij.version} com.jetbrains.intellij.java java-compiler-ant-tasks ${intellij.version} ``` That's all for today, I hope this helped you, so that you don't struggle with it for as long.