From a207207b5240adbd4dd9de5667fb82384f34912e Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Sun, 2 Nov 2014 16:06:31 +0100 Subject: [PATCH] Build path corrected --- Sda2/P/forum_1/_Readme.first | 6 ++++ Sda2/P/forum_1/pom.xml | 32 +++++++++++++------ .../hdm_stuttgart/mi/sda2/forum/Register.java | 1 - 3 files changed, 29 insertions(+), 10 deletions(-) create mode 100644 Sda2/P/forum_1/_Readme.first diff --git a/Sda2/P/forum_1/_Readme.first b/Sda2/P/forum_1/_Readme.first new file mode 100644 index 000000000..8193b2d34 --- /dev/null +++ b/Sda2/P/forum_1/_Readme.first @@ -0,0 +1,6 @@ +In order to keep eclipse happy you +have to add target/generated-sources/metamodel +manually to your build path. + +This step has to be repeated whenever changes +to pom.xml are being made. \ No newline at end of file diff --git a/Sda2/P/forum_1/pom.xml b/Sda2/P/forum_1/pom.xml index df966b6e1..7d51f5e1e 100644 --- a/Sda2/P/forum_1/pom.xml +++ b/Sda2/P/forum_1/pom.xml @@ -138,6 +138,13 @@ <target>1.8</target> </configuration> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>2.10.1</version> + <configuration/> + </plugin> + <!-- Eclipse link JPA Metamodel --> <plugin> <groupId>org.bsc.maven</groupId> @@ -155,16 +162,21 @@ <eclipselink.persistencexml>${basedir}/src/main/resources/META-INF/persistence.xml</eclipselink.persistencexml> <eclipselink.canonicalmodel.subpackage>jpametamodel</eclipselink.canonicalmodel.subpackage> </options> - <outputDirectory>${basedir}/src/main/java</outputDirectory> - <sources> - <source>${project.build.directory}/generated-sources/metamodel</source> - </sources> - <!-- <compilerArguments> -Aeclipselink.persistencexml=${basedir}/src/main/resources/META-INF/persistence.xml - </compilerArguments> --> + <outputDirectory>${project.build.directory}/generated-sources/metamodel</outputDirectory> + <!-- + <sources> + <source>${project.build.directory}/generated-sources/metamodel</source> + </sources> + + + <compilerArguments> + -Aeclipselink.persistencexml=${basedir}/src/main/resources/META-INF/persistence.xml + </compilerArguments> + --> <processors> <processor>org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor</processor> </processors> - + </configuration> </execution> </executions> @@ -172,9 +184,11 @@ <dependency> <groupId>org.eclipse.persistence</groupId> <artifactId>org.eclipse.persistence.jpa.modelgen.processor</artifactId> - + <version>2.6.0-M3</version> - <!-- <version>${eclipse.link.version}</version> --> + <!-- + <version>${eclipse.link.version}</version> + --> </dependency> </dependencies> </plugin> diff --git a/Sda2/P/forum_1/src/main/java/de/hdm_stuttgart/mi/sda2/forum/Register.java b/Sda2/P/forum_1/src/main/java/de/hdm_stuttgart/mi/sda2/forum/Register.java index d7bce1137..bf38556c5 100644 --- a/Sda2/P/forum_1/src/main/java/de/hdm_stuttgart/mi/sda2/forum/Register.java +++ b/Sda2/P/forum_1/src/main/java/de/hdm_stuttgart/mi/sda2/forum/Register.java @@ -50,7 +50,6 @@ public class Register extends CustomComponent implements View, ValidateGlobal { * Create a registration instance allowing to navigate to other views. * * @param navigator - * @throws SQLException */ public Register(Navigator navigator) { -- GitLab