Browse Source

fix issue with missing target/classes dir during build.

Jason Rivard 7 years ago
parent
commit
0da727116c
1 changed files with 19 additions and 1 deletions
  1. 19 1
      server/pom.xml

+ 19 - 1
server/pom.xml

@@ -332,6 +332,24 @@
                     </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>
             <plugin>
                 <!-- builds xml file of dependencies and licenses for use in about page -->
                 <!-- builds xml file of dependencies and licenses for use in about page -->
                 <groupId>com.github.jinnovations</groupId>
                 <groupId>com.github.jinnovations</groupId>
@@ -342,7 +360,7 @@
                         <goals>
                         <goals>
                             <goal>generate-attribution-file</goal>
                             <goal>generate-attribution-file</goal>
                         </goals>
                         </goals>
-                        <phase>process-resources</phase>
+                        <phase>generate-resources</phase>
                     </execution>
                     </execution>
                 </executions>
                 </executions>
                 <configuration>
                 <configuration>