Kaynağa Gözat

fix offline build

Mariusz Czarnowski 3 yıl önce
ebeveyn
işleme
982a2cbc41
2 değiştirilmiş dosya ile 21 ekleme ve 20 silme
  1. 0 19
      assira.core/pom.xml
  2. 21 1
      pom.xml

+ 0 - 19
assira.core/pom.xml

@@ -42,25 +42,6 @@
 	
     <build>
         <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <configuration>
-                    <source>${maven.compiler.source}</source>
-                    <target>${maven.compiler.target}</target>
-                    <compilerArgs>
-                        <argument>-Xlint:unchecked</argument>
-                        <argument>-parameters</argument>
-                    </compilerArgs>
-                </configuration>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-surefire-plugin</artifactId>
-                <configuration>
-                    <excludedGroups>net.ranides.assira.junit.JCategories$Slow,net.ranides.assira.junit.JCategories$UnstableTest</excludedGroups>
-                </configuration>
-            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-jar-plugin</artifactId>

+ 21 - 1
pom.xml

@@ -150,7 +150,26 @@
                 </plugins>
             </build>
         </profile>
-    </profiles>
+        <profile>
+            <id>offline</id>
+            <activation>
+                <property>
+                    <name>net.ranides.offline</name>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-surefire-plugin</artifactId>
+                        <configuration>
+                            <excludedGroups>net.ranides.assira.junit.JCategories$Slow,net.ranides.assira.junit.JCategories$UnstableTest,net.ranides.assira.junit.JCategories$Online</excludedGroups>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+        </profiles>
 
     <build>
         <extensions>
@@ -185,6 +204,7 @@
                     </systemPropertyVariables>
                     <testFailureIgnore>false</testFailureIgnore>
                     <skip>false</skip>
+                    <excludedGroups>net.ranides.assira.junit.JCategories$Slow,net.ranides.assira.junit.JCategories$UnstableTest</excludedGroups>
                 </configuration>
             </plugin>
             <plugin>