You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by st...@apache.org on 2012/06/14 13:15:58 UTC
git commit: DELTASPIKE-145 enable apache-rat via profile
Updated Branches:
refs/heads/master 3cb358161 -> b8a5f2cee
DELTASPIKE-145 enable apache-rat via profile
usage:
$> mvn clean install -Prat
Project: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/commit/b8a5f2ce
Tree: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/tree/b8a5f2ce
Diff: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/diff/b8a5f2ce
Branch: refs/heads/master
Commit: b8a5f2ceedb5126a7927272bd0164ffef35181b8
Parents: 3cb3581
Author: Mark Struberg <st...@apache.org>
Authored: Thu Jun 14 13:15:00 2012 +0200
Committer: Mark Struberg <st...@apache.org>
Committed: Thu Jun 14 13:15:00 2012 +0200
----------------------------------------------------------------------
.../TransactionScopedEntityManagerProducer.java | 18 ++++++++
deltaspike/pom.xml | 35 +++++++++++++++
2 files changed, 53 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/b8a5f2ce/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/transactional/transactionhelper/TransactionScopedEntityManagerProducer.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/transactional/transactionhelper/TransactionScopedEntityManagerProducer.java b/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/transactional/transactionhelper/TransactionScopedEntityManagerProducer.java
index e0642fb..51da0d9 100644
--- a/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/transactional/transactionhelper/TransactionScopedEntityManagerProducer.java
+++ b/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/transactional/transactionhelper/TransactionScopedEntityManagerProducer.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
package org.apache.deltaspike.test.jpa.api.transactional.transactionhelper;
import org.apache.deltaspike.jpa.api.TransactionScoped;
http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/b8a5f2ce/deltaspike/pom.xml
----------------------------------------------------------------------
diff --git a/deltaspike/pom.xml b/deltaspike/pom.xml
index d4346d6..9f951ce 100644
--- a/deltaspike/pom.xml
+++ b/deltaspike/pom.xml
@@ -65,6 +65,19 @@
<pluginManagement>
<plugins>
<plugin>
+ <groupId>org.apache.rat</groupId>
+ <artifactId>apache-rat-plugin</artifactId>
+ <version>0.8</version>
+ <configuration>
+ <excludes>
+ <exclude>.idea/**/*</exclude>
+ <exclude>readme/**/*</exclude>
+ <exclude>**/*.log</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.3.1</version>
@@ -96,4 +109,26 @@
</pluginManagement>
</build>
+ <profiles>
+ <profile>
+ <id>rat</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.rat</groupId>
+ <artifactId>apache-rat-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
</project>