You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2019/05/08 16:16:06 UTC

[sling-whiteboard] 02/09: Fix build and ignore out directory

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git

commit 49c79ae90a797063408433a7e709c829a7be78b5
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Mon May 6 16:30:39 2019 +0200

    Fix build and ignore out directory
---
 maven-sources-report-aggregator/.gitignore         |  1 +
 maven-sources-report-aggregator/pom.xml            | 30 +++++++++++++++++++++-
 .../org/apache/sling/tooling/msra/impl/Main.java   |  6 ++++-
 3 files changed, 35 insertions(+), 2 deletions(-)

diff --git a/maven-sources-report-aggregator/.gitignore b/maven-sources-report-aggregator/.gitignore
new file mode 100644
index 0000000..6a3417b
--- /dev/null
+++ b/maven-sources-report-aggregator/.gitignore
@@ -0,0 +1 @@
+/out/
diff --git a/maven-sources-report-aggregator/pom.xml b/maven-sources-report-aggregator/pom.xml
index 3399ccd..1b91e4a 100644
--- a/maven-sources-report-aggregator/pom.xml
+++ b/maven-sources-report-aggregator/pom.xml
@@ -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.
+-->
 <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">
@@ -31,7 +49,7 @@
             <artifactId>slf4j-simple</artifactId>
             <scope>compile</scope>
         </dependency>
-        
+
         <!-- ensure javax.inject ends up in the fat jar -->
         <dependency>
             <groupId>javax.inject</groupId>
@@ -82,6 +100,16 @@
                     </execution>
                 </executions>
             </plugin>
+            <!-- exclude local state files. not stored in target since they're expensive to regenerate -->
+            <plugin>
+                <groupId>org.apache.rat</groupId>
+                <artifactId>apache-rat-plugin</artifactId>
+                <configuration>
+                    <excludes>
+                        <exclude>out/**</exclude>
+                    </excludes>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
 </project>
\ No newline at end of file
diff --git a/maven-sources-report-aggregator/src/main/java/org/apache/sling/tooling/msra/impl/Main.java b/maven-sources-report-aggregator/src/main/java/org/apache/sling/tooling/msra/impl/Main.java
index ce9d4a4..2165203 100644
--- a/maven-sources-report-aggregator/src/main/java/org/apache/sling/tooling/msra/impl/Main.java
+++ b/maven-sources-report-aggregator/src/main/java/org/apache/sling/tooling/msra/impl/Main.java
@@ -63,7 +63,11 @@ public class Main {
 
     public static void main(String[] args) throws Exception {
         
-        Main main = new Main("org.apache.sling*");
+        if ( args.length == 0 ) {
+            throw new IllegalArgumentException("Please specify groupId to look for, e.g. org.apache*");
+        }
+        
+        Main main = new Main(args[0]);
         main.loadIndex();
         main.querySlingApiArtifacts();
     }