WIP
authorKai Moritz <kai@coolibri.de>
Tue, 27 Nov 2012 14:31:41 +0000 (15:31 +0100)
committerKai Moritz <kai@coolibri.de>
Tue, 27 Nov 2012 14:31:41 +0000 (15:31 +0100)
pom.xml
src/main/java/de/juplo/fixswf/FixSwfServlet.java
src/site/apt/usage.apt [new file with mode: 0644]
src/site/site.xml [new file with mode: 0644]

diff --git a/pom.xml b/pom.xml
index 7546531..53778ae 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -1,17 +1,42 @@
 <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/maven-v4_0_0.xsd">
+
   <modelVersion>4.0.0</modelVersion>
+
   <groupId>de.juplo</groupId>
   <artifactId>fix-swf</artifactId>
-  <packaging>war</packaging>
+  <name>Juplo - fix-swf</name>
   <version>1.0</version>
-  <name>fix-swf</name>
-  <url>http://juplo.de/fix-swf</url>
+  <packaging>war</packaging>
+  <url>http://www.juplo.de/fix-swf</url>
+
+  <prerequisites>
+    <maven>2.0.6</maven>
+  </prerequisites>
+
+  <scm>
+    <connection>scm:git:http://juplo.de/git/fix-swf</connection>
+    <developerConnection>scm:git:ssh://juplo.de:/var/cache/git/juplo/fix-swf</developerConnection>
+    <url>http://juplo.de/gitweb/?p=fix-swf;a=summary</url>
+  </scm>
+
+  <developers>
+    <developer>
+      <id>kai</id>
+      <name>Kai Moritz</name>
+      <email>kai@juplo.de</email>
+    </developer>
+  </developers>
+
   <properties>
+    <!-- Zeichensatz -->
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <!-- Verwendete Versionen -->
     <commons-fileupload.version>1.2.2</commons-fileupload.version>
     <commons-lang.version>2.6</commons-lang.version>
     <servlet-api.version>2.5</servlet-api.version>
   </properties>
+
   <dependencies>
     <dependency>
       <groupId>commons-fileupload</groupId>
       <scope>provided</scope>
     </dependency>
   </dependencies>
+
+  <distributionManagement>
+    <repository>
+      <id>juplo.internal</id>
+      <name>Internal Release Repository</name>
+      <url>http://juplo.de/archiva/repository/internal/</url>
+    </repository>
+    <snapshotRepository>
+      <id>juplo.snapshots</id>
+      <name>Internal Snapshot Repository</name>
+      <url>http://juplo.de/archiva/repository/snapshots/</url>
+    </snapshotRepository>
+  </distributionManagement>
+
   <build>
     <finalName>fix-swf</finalName>
     <plugins>
           <showWarnings>true</showWarnings>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-source-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>attach-sources</id>
+            <phase>verify</phase>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
       <plugin>
         <groupId>org.mortbay.jetty</groupId>
         <artifactId>jetty-maven-plugin</artifactId>
       </plugin>
     </plugins>
   </build>
+
+  <reporting>
+    <plugins>
+      <plugin>
+        <artifactId>maven-changes-plugin</artifactId>
+      </plugin>
+      <plugin>
+        <artifactId>maven-javadoc-plugin</artifactId>
+      </plugin>
+      <plugin>
+        <artifactId>maven-jxr-plugin</artifactId>
+      </plugin>
+      <plugin>
+        <artifactId>maven-surefire-report-plugin</artifactId>
+      </plugin>
+      <plugin>
+        <artifactId>maven-scm-plugin</artifactId>
+        <configuration>
+          <goals>install</goals>
+        </configuration>
+      </plugin>
+    </plugins>
+  </reporting>
+
 </project>
index ada8eb0..9099ada 100644 (file)
@@ -96,7 +96,7 @@ public class FixSwfServlet extends HttpServlet
         out.println("<p>" + StringEscapeUtils.escapeHtml((String)request.getAttribute(MESSAGE_ATTRIBUTE)) + "</p>");
       }
       out.println("<h1>Choose SWF-File to check/fix</h1>");
-      out.println("<p>If the file has to be fixed, the fixed version will be presented to you as a download.</p>");
+      out.println("<p>If the file has to be fixed, the fixed version will be presented to you as a download immediately.</p>");
       out.println("<form action=\"\" method=\"post\" enctype=\"multipart/form-data\">");
       out.println("<input type=\"file\" name=\"swf\" />");
       out.println("<input type=\"submit\" name=\"submit\" value=\"Start Upload\" />");
diff --git a/src/site/apt/usage.apt b/src/site/apt/usage.apt
new file mode 100644 (file)
index 0000000..57906fd
--- /dev/null
@@ -0,0 +1,3 @@
+Hello World
+
+I don't know, what to do...
diff --git a/src/site/site.xml b/src/site/site.xml
new file mode 100644 (file)
index 0000000..13eba5a
--- /dev/null
@@ -0,0 +1,7 @@
+<project>
+  <body>
+    <menu name="Usage" href="usage.html"/>
+    <menu ref="reports"/>
+  </body>
+</project>
+