home  |  suche  |  kontakt/johner  |  institut 
studierende  |  tech-docs  |  mindmailer 
HTML rendering of a XML instance
<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/maven-v4_0_0.xsd">
<modelVersion>
4.0.0
</modelVersion>
<groupId>
de.htwg.sote
</groupId>
<artifactId>
example
</artifactId>
<packaging>
jar
</packaging>
<name>
Project to demonstrate Maven and Hibernate
</name>
<version>
0.0.1-SNAPSHOT
</version>
<description>
The Project is just to demonstrate Maven and Hibernate
</description>
<url>
http://www.johner.org
</url>
<organization>
<name>
HTWG Konstanz
</name>
<url>
http://www.htwg-konstanz.de
</url>
</organization>
<properties>
<maven.compiler.source>
1.6
</maven.compiler.source>
<maven.compiler.target>
1.6
</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>
org.hibernate
</groupId>
<artifactId>
hibernate
</artifactId>
<version>
3.2.7.ga
</version>
</dependency>
<dependency>
<groupId>
org.hibernate
</groupId>
<artifactId>
hibernate-annotations
</artifactId>
<version>
3.4.0.GA
</version>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-log4j12
</artifactId>
<version>
1.4.0
</version>
</dependency>
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
4.8.1
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
5.1.16
</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Execution of unit tests Generates output for reporting plugin -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
2.5
</version>
</plugin>
<!-- Compile Java Code -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
2.0.2
</version>
<configuration>
<source>
${maven.compiler.source}
</source>
<target>
${maven.compiler.target}
</target>
</configuration>
</plugin>
<plugin>
<artifactId>
maven-resources-plugin
</artifactId>
<version>
2.3
</version>
<executions>
<execution>
<id>
copy-hibernate-config-file
</id>
<phase>
process-resources
</phase>
<goals>
<goal>
copy-resources
</goal>
</goals>
<configuration>
<overwrite>
true
</overwrite>
<outputDirectory>
${basedir}/target/classes
</outputDirectory>
<resources>
<resource>
<directory>
src/main/java
</directory>
<includes>
<include>
hibernate.cfg.xml
</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-site-plugin
</artifactId>
<version>
3.0-beta-3
</version>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<!-- JavaDoc -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-javadoc-plugin
</artifactId>
<version>
2.7
</version>
</plugin>
<!-- JXR Plugin produces a cross-reference of the project's sources. The generated reports make it easier for the user to reference or find specific lines of code. It is also handy when used with the PMD Plugin for referencing errors found in the code -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-jxr-plugin
</artifactId>
<version>
2.2
</version>
</plugin>
<!-- PMD scans Java source code and looks for potential problems like: - Possible bugs - empty try/catch/finally/switch statements - Dead code - unused local variables, parameters and private methods - Suboptimal code - wasteful String/StringBuffer usage - Overcomplicated expressions - unnecessary if statements, for loops that could be while loops - Duplicate code - copied/pasted code means copied/pasted bugs -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-pmd-plugin
</artifactId>
<version>
2.5
</version>
<configuration>
<linkXref>
true
</linkXref>
<targetJdk>
1.5
</targetJdk>
</configuration>
</plugin>
<!-- creates the web interface version of the test results -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-report-plugin
</artifactId>
<version>
2.6
</version>
</plugin>
<!-- JDepend determines architecture metrics as (cyclic) dependencies of packages -->
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
jdepend-maven-plugin
</artifactId>
<version>
2.0-beta-2
</version>
</plugin>
<!-- Cobertura determines statement and branch coverage -->
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
cobertura-maven-plugin
</artifactId>
<version>
2.3
</version>
<configuration>
<formats>
<format>
xml
</format>
<format>
html
</format>
</formats>
</configuration>
</plugin>
<!-- Checkstyle verifies compliance with coding stanards/guidelines -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-checkstyle-plugin
</artifactId>
<version>
2.1
</version>
<configuration>
<configLocation>
${basedir}/src/main/resources/checkstyle/protege.xml
</configLocation>
</configuration>
</plugin>
<!-- Findbugs -->
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
findbugs-maven-plugin
</artifactId>
<version>
2.3.1
</version>
</plugin>
<!-- source measurement suite for Java which produces quantity & complexity metrics -->
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
javancss-maven-plugin
</artifactId>
<version>
2.0-beta-2
</version>
</plugin>
<!-- XRadar summarizing/consolidating reports -->
<plugin>
<groupId>
net.sf.xradar
</groupId>
<artifactId>
maven-xradar-plugin
</artifactId>
<version>
1.2.2
</version>
<configuration>
<autoRadar>
false
</autoRadar>
<!-- false to execute only the plugins declared -->
</configuration>
</plugin>
</plugins>
</reporting>
</project>