Przeglądaj źródła

pom dependency updates and attribution plugin reorg

jrivard@gmail.com 6 lat temu
rodzic
commit
dfa3f9b0aa

+ 2 - 2
pom.xml

@@ -188,7 +188,7 @@
                     <dependency>
                     <dependency>
                         <groupId>com.puppycrawl.tools</groupId>
                         <groupId>com.puppycrawl.tools</groupId>
                         <artifactId>checkstyle</artifactId>
                         <artifactId>checkstyle</artifactId>
-                        <version>8.13</version>
+                        <version>8.14</version>
                     </dependency>
                     </dependency>
                 </dependencies>
                 </dependencies>
                 <executions>
                 <executions>
@@ -283,7 +283,7 @@
         <dependency>
         <dependency>
             <groupId>org.projectlombok</groupId>
             <groupId>org.projectlombok</groupId>
             <artifactId>lombok</artifactId>
             <artifactId>lombok</artifactId>
-            <version>1.18.2</version>
+            <version>1.18.4</version>
             <scope>provided</scope>
             <scope>provided</scope>
         </dependency>
         </dependency>
         <dependency>
         <dependency>

+ 1 - 90
server/pom.xml

@@ -48,95 +48,6 @@
                     </execution>
                     </execution>
                 </executions>
                 </executions>
             </plugin>
             </plugin>
-            <plugin>
-                <!-- creates the classes directory early in the build so the attribution plugin doesn't fail -->
-                <artifactId>maven-antrun-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <id>generate-sources</id>
-                        <phase>generate-sources</phase>
-                        <configuration>
-                            <tasks>
-                                <mkdir dir="${project.build.directory}/classes"/>
-                            </tasks>
-                        </configuration>
-                        <goals>
-                            <goal>run</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
-            <plugin>
-                <!-- builds xml file of dependencies and licenses for use in about page -->
-                <groupId>com.github.jinnovations</groupId>
-                <artifactId>attribution-maven-plugin</artifactId>
-                <version>0.9.5</version>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>generate-attribution-file</goal>
-                        </goals>
-                        <phase>generate-resources</phase>
-                    </execution>
-                </executions>
-                <configuration>
-                    <outputFile>${project.build.directory}/classes/server-attribution.xml</outputFile>
-                    <dependencyOverrides>
-                        <dependencyOverride>
-                            <forDependency>jaxen:jaxen</forDependency>
-                            <license>
-                                <name>Custom</name>
-                                <url>http://jaxen.codehaus.org/license.html</url>
-                            </license>
-                        </dependencyOverride>
-                        <dependencyOverride>
-                            <forDependency>com.novell.security.nmas:ChallengeResponseLCM</forDependency>
-                            <projectUrl>https://www.novell.com/developer/ndk/novell_modular_authentication_service.html</projectUrl>
-                            <downloadUrl>ftp://sdk.provo.novell.com/ndk/nmas/builds/cross_platform/novell-nmas-devel-2009.11.11-cross_platform.zip</downloadUrl>
-                            <license>
-                                <name>Novell Developer License Agreement</name>
-                                <url>https://www.novell.com/developer/novell_developer_license_agreement.html</url>
-                            </license>
-                        </dependencyOverride>
-                        <dependencyOverride>
-                            <forDependency>com.novell.security.nmas:nmasclient</forDependency>
-                            <projectUrl>https://www.novell.com/developer/ndk/novell_modular_authentication_service.html</projectUrl>
-                            <downloadUrl>ftp://sdk.provo.novell.com/ndk/nmas/builds/cross_platform/novell-nmas-devel-2009.11.11-cross_platform.zip</downloadUrl>
-                            <license>
-                                <name>Novell Developer License Agreement</name>
-                                <url>https://www.novell.com/developer/novell_developer_license_agreement.html</url>
-                            </license>
-                        </dependencyOverride>
-                        <dependencyOverride>
-                            <forDependency>com.novell.security.nmas:NMASToolkit</forDependency>
-                            <projectUrl>https://www.novell.com/developer/ndk/novell_modular_authentication_service.html</projectUrl>
-                            <downloadUrl>ftp://sdk.provo.novell.com/ndk/nmas/builds/cross_platform/novell-nmas-devel-2009.11.11-cross_platform.zip</downloadUrl>
-                            <license>
-                                <name>Novell Developer License Agreement</name>
-                                <url>https://www.novell.com/developer/novell_developer_license_agreement.html</url>
-                            </license>
-                        </dependencyOverride>
-                        <dependencyOverride>
-                            <forDependency>com.novell.security.nmas:jsso</forDependency>
-                            <projectUrl>https://www.novell.com/developer/ndk/novell_secretstore_developer_kit_for_java.html</projectUrl>
-                            <downloadUrl>ftp://sdk.provo.novell.com/ndk/nssoj/builds/cross_platform/novell-nssoj-devel-2006.02.17-1cross_platform.zip</downloadUrl>
-                            <license>
-                                <name>Novell Developer License Agreement</name>
-                                <url>https://www.novell.com/developer/novell_developer_license_agreement.html</url>
-                            </license>
-                        </dependencyOverride>
-                        <dependencyOverride>
-                            <forDependency>com.novell.security.nmas:ldap</forDependency>
-                            <projectUrl>https://www.novell.com/developer/ndk/ldap_classes_for_java.html</projectUrl>
-                            <downloadUrl>https://www.novell.com/developer/ndk/ldap_classes_for_java/novell-jldap-devel-2013.08.30.1433-xplat.zip</downloadUrl>
-                            <license>
-                                <name>Novell Developer License Agreement</name>
-                                <url>https://www.novell.com/developer/novell_developer_license_agreement.html</url>
-                            </license>
-                        </dependencyOverride>
-                    </dependencyOverrides>
-                </configuration>
-            </plugin>
             <plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-jar-plugin</artifactId>
                 <artifactId>maven-jar-plugin</artifactId>
@@ -374,7 +285,7 @@
         <dependency>
         <dependency>
             <groupId>org.webjars</groupId>
             <groupId>org.webjars</groupId>
             <artifactId>webjars-locator-core</artifactId>
             <artifactId>webjars-locator-core</artifactId>
-            <version>0.35</version>
+            <version>0.36</version>
         </dependency>
         </dependency>
         <dependency>
         <dependency>
             <groupId>com.github.ben-manes.caffeine</groupId>
             <groupId>com.github.ben-manes.caffeine</groupId>

+ 1 - 1
server/src/main/java/password/pwm/util/java/XmlUtil.java

@@ -120,7 +120,7 @@ public class XmlUtil
 
 
     public static List<DependencyInfo> getLicenseInfos( ) throws PwmUnrecoverableException
     public static List<DependencyInfo> getLicenseInfos( ) throws PwmUnrecoverableException
     {
     {
-        final List<String> attributionFiles = Arrays.asList( "/server-attribution.xml", "/webapp-attribution.xml" );
+        final List<String> attributionFiles = Arrays.asList( "/attribution.xml" );
         final List<DependencyInfo> returnList = new ArrayList<>();
         final List<DependencyInfo> returnList = new ArrayList<>();
 
 
         for ( final String attributionFile : attributionFiles )
         for ( final String attributionFile : attributionFiles )

+ 58 - 4
webapp/pom.xml

@@ -188,7 +188,61 @@
                     </execution>
                     </execution>
                 </executions>
                 </executions>
                 <configuration>
                 <configuration>
-                    <outputFile>${project.build.directory}/classes/webapp-attribution.xml</outputFile>
+                    <outputFile>${project.build.directory}/classes/attribution.xml</outputFile>
+                    <dependencyOverrides>
+                        <dependencyOverride>
+                            <forDependency>jaxen:jaxen</forDependency>
+                            <license>
+                                <name>Custom</name>
+                                <url>http://jaxen.codehaus.org/license.html</url>
+                            </license>
+                        </dependencyOverride>
+                        <dependencyOverride>
+                            <forDependency>com.novell.security.nmas:ChallengeResponseLCM</forDependency>
+                            <projectUrl>https://www.novell.com/developer/ndk/novell_modular_authentication_service.html</projectUrl>
+                            <downloadUrl>ftp://sdk.provo.novell.com/ndk/nmas/builds/cross_platform/novell-nmas-devel-2009.11.11-cross_platform.zip</downloadUrl>
+                            <license>
+                                <name>Novell Developer License Agreement</name>
+                                <url>https://www.novell.com/developer/novell_developer_license_agreement.html</url>
+                            </license>
+                        </dependencyOverride>
+                        <dependencyOverride>
+                            <forDependency>com.novell.security.nmas:nmasclient</forDependency>
+                            <projectUrl>https://www.novell.com/developer/ndk/novell_modular_authentication_service.html</projectUrl>
+                            <downloadUrl>ftp://sdk.provo.novell.com/ndk/nmas/builds/cross_platform/novell-nmas-devel-2009.11.11-cross_platform.zip</downloadUrl>
+                            <license>
+                                <name>Novell Developer License Agreement</name>
+                                <url>https://www.novell.com/developer/novell_developer_license_agreement.html</url>
+                            </license>
+                        </dependencyOverride>
+                        <dependencyOverride>
+                            <forDependency>com.novell.security.nmas:NMASToolkit</forDependency>
+                            <projectUrl>https://www.novell.com/developer/ndk/novell_modular_authentication_service.html</projectUrl>
+                            <downloadUrl>ftp://sdk.provo.novell.com/ndk/nmas/builds/cross_platform/novell-nmas-devel-2009.11.11-cross_platform.zip</downloadUrl>
+                            <license>
+                                <name>Novell Developer License Agreement</name>
+                                <url>https://www.novell.com/developer/novell_developer_license_agreement.html</url>
+                            </license>
+                        </dependencyOverride>
+                        <dependencyOverride>
+                            <forDependency>com.novell.security.nmas:jsso</forDependency>
+                            <projectUrl>https://www.novell.com/developer/ndk/novell_secretstore_developer_kit_for_java.html</projectUrl>
+                            <downloadUrl>ftp://sdk.provo.novell.com/ndk/nssoj/builds/cross_platform/novell-nssoj-devel-2006.02.17-1cross_platform.zip</downloadUrl>
+                            <license>
+                                <name>Novell Developer License Agreement</name>
+                                <url>https://www.novell.com/developer/novell_developer_license_agreement.html</url>
+                            </license>
+                        </dependencyOverride>
+                        <dependencyOverride>
+                            <forDependency>com.novell.security.nmas:ldap</forDependency>
+                            <projectUrl>https://www.novell.com/developer/ndk/ldap_classes_for_java.html</projectUrl>
+                            <downloadUrl>https://www.novell.com/developer/ndk/ldap_classes_for_java/novell-jldap-devel-2013.08.30.1433-xplat.zip</downloadUrl>
+                            <license>
+                                <name>Novell Developer License Agreement</name>
+                                <url>https://www.novell.com/developer/novell_developer_license_agreement.html</url>
+                            </license>
+                        </dependencyOverride>
+                    </dependencyOverrides>
                 </configuration>
                 </configuration>
             </plugin>
             </plugin>
         </plugins>
         </plugins>
@@ -228,17 +282,17 @@
         <dependency>
         <dependency>
             <groupId>org.webjars.npm</groupId>
             <groupId>org.webjars.npm</groupId>
             <artifactId>dojo</artifactId>
             <artifactId>dojo</artifactId>
-            <version>1.14.1</version>
+            <version>1.14.2</version>
         </dependency>
         </dependency>
         <dependency>
         <dependency>
             <groupId>org.webjars.npm</groupId>
             <groupId>org.webjars.npm</groupId>
             <artifactId>dijit</artifactId>
             <artifactId>dijit</artifactId>
-            <version>1.14.1</version>
+            <version>1.14.2</version>
         </dependency>
         </dependency>
         <dependency>
         <dependency>
             <groupId>org.webjars.npm</groupId>
             <groupId>org.webjars.npm</groupId>
             <artifactId>dojox</artifactId>
             <artifactId>dojox</artifactId>
-            <version>1.14.1</version>
+            <version>1.14.2</version>
         </dependency>
         </dependency>
         <dependency>
         <dependency>
             <groupId>org.webjars.bower</groupId>
             <groupId>org.webjars.bower</groupId>