gwt-validation
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.googlecode.gwt-validation</groupId> <artifactId>gwt-validation</artifactId> <version>2.1</version> </dependency>
<!-- GWT Validation Framework - A JSR-303 validation framework for GWT (c) 2008 gwt-validation contributors (http://code.google.com/p/gwt-validation/) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <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/xsd/maven-4.0.0.xsd"> <!-- updated model --> <modelVersion>4.0.0</modelVersion> <!-- project info --> <artifactId>gwt-validation</artifactId> <name>gwt-validation</name> <description>gwt validation framework based on JSR-303</description> <!-- gwt-validation parent --> <parent> <groupId>com.googlecode.gwt-validation</groupId> <artifactId>gwt-validation-parent</artifactId> <version>2.1</version> <relativePath>..</relativePath> </parent> <properties> <!-- exclude emulated paths from sonar --> <sonar.exclusions>**/emul/**</sonar.exclusions> </properties> <dependencies> <dependency> <groupId>javax.validation</groupId> <artifactId>validation-api</artifactId> <type>jar</type> <classifier>sources</classifier> </dependency> <dependency> <groupId>javax.validation</groupId> <artifactId>validation-api</artifactId> <type>jar</type> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> </dependency> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-dev</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-user</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-servlet</artifactId> <version>${gwt.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.reflections</groupId> <artifactId>reflections</artifactId> </dependency> <dependency> <groupId>org.freemarker</groupId> <artifactId>freemarker</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> </dependency> </dependencies> <build> <resources> <resource> <directory>${project.basedir}/src/main/java</directory> </resource> </resources> <testResources> <testResource> <directory>${project.basedir}/src/test/java</directory> </testResource> </testResources> <plugins> <!-- sync with eclipse --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.8</version> <configuration> <downloadSources>true</downloadSources> <downloadJavadocs>true</downloadJavadocs> </configuration> </plugin> <!-- compile for java 6 and ignore the emulated directories --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.6</source> <target>1.6</target> <excludes> <excludes>**/emul/**</excludes> </excludes> <testExcludes> <excludes>**/emul/**</excludes> </testExcludes> </configuration> </plugin> <!-- do testing, but be sure to include the source directories on the classpath --> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.7.2</version> <configuration> <test>**/FullTestSuite.java</test> <!-- -Dgwt.args = gwtc arguments for JUnit that behvaes like production and produces pretty (readable) output -Dgwt.validation.included.ModelPackages = arguments to gwt-validation's processor that specify the model packages to scan (comma separated list) (as of r331 javax.validation.constraints and com.em.validation.client.constraints are added automatically when other packages are specified) --> <argLine>-Dgwt.args="-prod -gen target/testgen -style PRETTY" -Dgwt.validation.included.ModelPackages=com.em.validation.client.model</argLine> <additionalClasspathElements> <additionalClasspathElement>${project.build.sourceDirectory}</additionalClasspathElement> <additionalClasspathElement>${project.build.testSourceDirectory}</additionalClasspathElement> </additionalClasspathElements> <useSystemClassLoader>true</useSystemClassLoader> <useManifestOnlyJar>false</useManifestOnlyJar> <forkMode>always</forkMode> </configuration> </plugin> <!-- generate javadoc jar --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.8</version> <configuration> <show>private</show> <nohelp>true</nohelp> </configuration> <executions> <execution> <id>attach-javadoc</id> <phase>verify</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <!-- generate source jar --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>2.1.2</version> <executions> <execution> <id>attach-sources</id> <phase>verify</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <!-- cobertura exclusions, to allow compatibility with sonar out of the box --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.5.1</version> <configuration> <instrumentation> <excludes> <exclude>**/emul/**/*.class</exclude> </excludes> </instrumentation> </configuration> <executions> <execution> <goals> <goal>clean</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <!-- building full jar with dependencies is now a profiled action --> <profiles> <profile> <id>fulldeps</id> <build> <plugins> <!-- create assembly, jar with dependencies, if needed --> <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>make-assembly</id> <phase>verify</phase> <goals> <goal>single</goal> </goals> </execution> </executions> <configuration> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project>