Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
Add build resources module for arquillian config and code style
Browse files Browse the repository at this point in the history
  • Loading branch information
kenfinnigan committed Oct 21, 2013
1 parent 0753f31 commit a742556
Show file tree
Hide file tree
Showing 7 changed files with 606 additions and 0 deletions.
129 changes: 129 additions & 0 deletions build-resources/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<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">
<modelVersion>4.0.0</modelVersion>

<groupId>org.jboss.arquillian.extension</groupId>
<artifactId>arquillian-portal-build-resources</artifactId>
<version>1.1.0.Final-SNAPSHOT</version>
<name>Arquillian Portal Extension Build Resources</name>

<description>Resources that are necessary for building Arquillian Portal Extension (used by plugins, tests, etc)</description>

<properties>
<jboss.releases.repo.url>https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/</jboss.releases.repo.url>
<jboss.snapshots.repo.url>https://repository.jboss.org/nexus/content/repositories/snapshots/</jboss.snapshots.repo.url>
</properties>

<url>http://www.jboss.org/portletbridge/</url>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>

<developers>
<developer>
<id>kenfinnigan</id>
<name>Ken Finnigan</name>
</developer>
</developers>

<scm>
<connection>scm:git:git@github.com:arquillian/arquillian-extension-portal.git</connection>
<developerConnection>scm:git:git@github.com:arquillian/arquillian-extension-portal.git</developerConnection>
<url>https://github.com/arquillian/arquillian-extension-portal</url>
<tag>HEAD</tag>
</scm>

<build>
<plugins>
<!-- Checkstyle -->
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.10</version>
<configuration>
<configLocation>src/main/resources/code-style/checkstyle.xml</configLocation>
<logViolationsToConsole>true</logViolationsToConsole>
<violationSeverity>error</violationSeverity>
</configuration>
<executions>
<execution>
<id>checkstyle</id>
<phase>compile</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.4.1</version>
</plugin>

<!-- Compiler -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<inherited>true</inherited>
<configuration>
<source>1.7</source>
<target>1.7</target>
<showDeprecation>false</showDeprecation>
<showWarnings>true</showWarnings>
<optimize>true</optimize>
<compilerVersion>1.7</compilerVersion>
<fork>true</fork>
<compilerArguments>
<source>1.6</source>
<target>1.6</target>
</compilerArguments>
<argLine>-Xmx512M</argLine>
<executable>${JAVA_HOME}/bin/javac</executable>
</configuration>
</plugin>

<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<localCheckout>true</localCheckout>
<pushChanges>false</pushChanges>
</configuration>
</plugin>

<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.5</version>
</plugin>
</plugins>
</build>

<distributionManagement>
<repository>
<id>jboss-releases-repository</id>
<name>JBoss Releases Repository</name>
<url>${jboss.releases.repo.url}</url>
</repository>
<snapshotRepository>
<id>jboss-snapshots-repository</id>
<name>JBoss Snapshots Repository</name>
<url>${jboss.snapshots.repo.url}</url>
</snapshotRepository>
</distributionManagement>
</project>
64 changes: 64 additions & 0 deletions build-resources/src/main/resources/arquillian.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2013, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

<!--Uncomment to have test archives exported to the file system for inspection -->
<!--
<engine>
<property name="deploymentExportPath">target/</property>
</engine>
-->

<defaultProtocol type="Servlet 3.0" />

<extension qualifier="webdriver">
<property name="browser">${arquillian.drone.browser}</property>
<property name="remoteReusable">${arquillian.drone.reusable}</property>
</extension>

<extension qualifier="graphene">
<!-- Increase default wait intervals -->
<property name="waitGuiInterval">5</property>
<property name="waitAjaxInterval">10</property>
<property name="waitModelInterval">25</property>
</extension>

<container qualifier="jbossas71" default="${arquillian.launch.jbossas71}">
<configuration>
<property name="jbossHome">${project.build.directory}/jboss-as-${version.jbossas7}</property>
<property name="javaVmArguments">${arquillian.container.vmargs}</property>
</configuration>
</container>

<container qualifier="wildfly8" default="${arquillian.launch.wildfly8}">
<configuration>
<property name="jbossHome">${project.build.directory}/wildfly-${version.wildfly8}</property>
<property name="javaVmArguments">${arquillian.container.vmargs}</property>
</configuration>
</container>

<container qualifier="jetty8" default="${arquillian.launch.jetty8}">
</container>

</arquillian>
60 changes: 60 additions & 0 deletions build-resources/src/main/resources/code-style/checkstyle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">

<module name="Checker">

<module name="FileTabCharacter">
<property name="eachLine" value="true" />
</module>

<module name="RegexpSingleline">
<!-- \s matches whitespace character, $ matches end of line. -->
<property name="format" value="\s+$" />
<property name="message" value="Line has trailing spaces." />
</module>

<module name="TreeWalker">

<property name="cacheFile" value="${checkstyle.cache.file}" />

<!-- Checks for imports -->
<module name="AvoidStarImport" />
<module name="IllegalImport" />
<module name="RedundantImport" />
<!-- Disabled until checkstyle can recognize imports which are used only by javadoc -->
<!--<module name="UnusedImports"/>-->

<!-- Modifier Checks -->
<module name="ModifierOrder" />
<module name="RedundantModifier" />

<!-- Checks for blocks. You know, those {}'s -->
<module name="LeftCurly" />

<!-- Checks for common coding problems -->
<!-- Disabled until http://sourceforge.net/tracker/?func=detail&aid=2843447&group_id=29721&atid=397078 is fixed-->
<!--<module name="DoubleCheckedLocking"/>-->
<module name="EmptyStatement" />
<module name="EqualsHashCode" />
<module name="DefaultComesLast" />
<module name="IllegalInstantiation" />
<module name="MissingSwitchDefault" />
<module name="RedundantThrows">
<property name="allowUnchecked" value="true" />
</module>

<!-- Miscellaneous other checks. -->
<module name="UpperEll" />
<module name="PackageAnnotation" />
<module name="HideUtilityClassConstructor" />
<module name="MissingOverride" />
<module name="CovariantEquals" />
<module name="InnerTypeLast" />
<module name="EqualsAvoidNull" />
<module name="ArrayTypeStyle" />

</module>

</module>
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="1">
<profile kind="CleanUpProfile" name="ArqPortal" version="1">
<setting id="cleanup.remove_unused_private_fields" value="true"/>
<setting id="cleanup.always_use_parentheses_in_expressions" value="false"/>
<setting id="cleanup.never_use_blocks" value="false"/>
<setting id="cleanup.remove_unused_private_methods" value="true"/>
<setting id="cleanup.add_missing_deprecated_annotations" value="true"/>
<setting id="cleanup.convert_to_enhanced_for_loop" value="false"/>
<setting id="cleanup.remove_unnecessary_nls_tags" value="false"/>
<setting id="cleanup.sort_members" value="false"/>
<setting id="cleanup.remove_unused_local_variables" value="false"/>
<setting id="cleanup.never_use_parentheses_in_expressions" value="true"/>
<setting id="cleanup.remove_unused_private_members" value="false"/>
<setting id="cleanup.remove_unnecessary_casts" value="false"/>
<setting id="cleanup.make_parameters_final" value="false"/>
<setting id="cleanup.use_this_for_non_static_field_access" value="false"/>
<setting id="cleanup.remove_private_constructors" value="true"/>
<setting id="cleanup.use_blocks" value="false"/>
<setting id="cleanup.always_use_this_for_non_static_method_access" value="false"/>
<setting id="cleanup.remove_trailing_whitespaces_all" value="true"/>
<setting id="cleanup.always_use_this_for_non_static_field_access" value="false"/>
<setting id="cleanup.use_this_for_non_static_field_access_only_if_necessary" value="true"/>
<setting id="cleanup.add_default_serial_version_id" value="true"/>
<setting id="cleanup.make_type_abstract_if_missing_method" value="false"/>
<setting id="cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class" value="true"/>
<setting id="cleanup.make_variable_declarations_final" value="false"/>
<setting id="cleanup.add_missing_nls_tags" value="false"/>
<setting id="cleanup.format_source_code" value="false"/>
<setting id="cleanup.qualify_static_method_accesses_with_declaring_class" value="false"/>
<setting id="cleanup.add_missing_override_annotations" value="true"/>
<setting id="cleanup.remove_unused_private_types" value="true"/>
<setting id="cleanup.add_missing_methods" value="false"/>
<setting id="cleanup.make_local_variable_final" value="true"/>
<setting id="cleanup.correct_indentation" value="false"/>
<setting id="cleanup.add_missing_override_annotations_interface_methods" value="true"/>
<setting id="cleanup.remove_unused_imports" value="true"/>
<setting id="cleanup.remove_trailing_whitespaces_ignore_empty" value="false"/>
<setting id="cleanup.make_private_fields_final" value="true"/>
<setting id="cleanup.add_generated_serial_version_id" value="false"/>
<setting id="cleanup.organize_imports" value="false"/>
<setting id="cleanup.remove_trailing_whitespaces" value="true"/>
<setting id="cleanup.sort_members_all" value="false"/>
<setting id="cleanup.use_blocks_only_for_return_and_throw" value="false"/>
<setting id="cleanup.add_missing_annotations" value="false"/>
<setting id="cleanup.use_parentheses_in_expressions" value="false"/>
<setting id="cleanup.qualify_static_field_accesses_with_declaring_class" value="false"/>
<setting id="cleanup.use_this_for_non_static_method_access_only_if_necessary" value="true"/>
<setting id="cleanup.use_this_for_non_static_method_access" value="false"/>
<setting id="cleanup.qualify_static_member_accesses_through_instances_with_declaring_class" value="true"/>
<setting id="cleanup.add_serial_version_id" value="false"/>
<setting id="cleanup.format_source_code_changes_only" value="false"/>
<setting id="cleanup.qualify_static_member_accesses_with_declaring_class" value="false"/>
<setting id="cleanup.always_use_blocks" value="true"/>
</profile>
</profiles>

0 comments on commit a742556

Please sign in to comment.