Author: ivaynberg Date: Mon Jun 25 19:40:46 2007 New Revision: 550663 URL: http://svn.apache.org/viewvc?view=rev&rev=550663 Log: initial checkin of quickstart archetype
Added: incubator/wicket/trunk/archetypes/ incubator/wicket/trunk/archetypes/README incubator/wicket/trunk/archetypes/quickstart/ incubator/wicket/trunk/archetypes/quickstart/.classpath incubator/wicket/trunk/archetypes/quickstart/.project incubator/wicket/trunk/archetypes/quickstart/pom.xml incubator/wicket/trunk/archetypes/quickstart/src/ incubator/wicket/trunk/archetypes/quickstart/src/main/ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/META-INF/ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/META-INF/archetype.xml incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HomePage.html incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HomePage.java incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/WicketApplication.java incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/log4j.properties incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/test/ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/Start.java incubator/wicket/trunk/archetypes/quickstart/target/ incubator/wicket/trunk/archetypes/quickstart/target/classes/ incubator/wicket/trunk/archetypes/quickstart/target/classes/META-INF/ incubator/wicket/trunk/archetypes/quickstart/target/classes/META-INF/archetype.xml incubator/wicket/trunk/archetypes/quickstart/target/classes/META-INF/maven/ incubator/wicket/trunk/archetypes/quickstart/target/classes/META-INF/maven/plugin.xml incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/ incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/pom.xml incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/ incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/ incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/java/ incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/java/HomePage.html incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/java/HomePage.java incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/java/WicketApplication.java incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/resources/ incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/resources/commons-logging.properties incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/resources/log4j.properties incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/webapp/ incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/webapp/WEB-INF/ incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/webapp/WEB-INF/web.xml incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/test/ incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/test/java/ incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/test/java/Start.java incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-quickstart-1.3-SNAPSHOT.jar (with props) incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-quickstart-1.3.0-SNAPSHOT-sources.jar (with props) incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-quickstart-1.3.0-SNAPSHOT-tests.jar (with props) incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-quickstart-1.3.0-SNAPSHOT.jar (with props) incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-template-1.0-SNAPSHOT.jar (with props) Added: incubator/wicket/trunk/archetypes/README URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/README?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/README (added) +++ incubator/wicket/trunk/archetypes/README Mon Jun 25 19:40:46 2007 @@ -0,0 +1,55 @@ +Apache Wicket Archetypes +======================== + +This is the readme file for the wicket-archetypes folder + +Wicket-archetypes is a collection of maven project archetypes designed for wicket. + +Contents +-------- + - Requirements + - Getting started + - Usage + +Requirements +------------ +To install and use these archetype Maven2 needs to be present. + + +Getting started +--------------- +Installation: +>cd archetypes +>cd <archetype-folder> +>mvn install + +Usage +----- +Creating a maven project using one of the archetypes: +>mvn archetype:create \ + -DarchetypeGroupId=org.apache.wicket \ + -DarchetypeArtifactId=<archetypeArtifactId> \ + -DarchetypeVersion=<archetypeVersion> \ + -DgroupId=<groupId> \ + -DartifactId=<artifactId> +e.g.: +>mvn archetype:create + -DarchetypeGroupId=org.apache.wicket\ + -DarchetypeArtifactId=wicket-archetype-quickstart \ + -DarchetypeVersion=1.3.0-SNAPSHOT \ + -DgroupId=com.mycompany \ + -DartifactId=myproject + +Launching Generated Application Using Jetty +------------------------------------------- +>cd myproject +>mvn jetty:run + +Browse to http://localhost:8080/ + +Generated Eclipse Project From Generated Application +---------------------------------------------------- +>cd myproject +>mvn eclipse:eclipse -DdownloadSources=true + +Open Eclipse. Choose File/Import/Existing Project and point it to myproject directory \ No newline at end of file Added: incubator/wicket/trunk/archetypes/quickstart/.classpath URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/.classpath?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/.classpath (added) +++ incubator/wicket/trunk/archetypes/quickstart/.classpath Mon Jun 25 19:40:46 2007 @@ -0,0 +1,5 @@ +<classpath> + <classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/> + <classpathentry kind="output" path="target/classes"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> +</classpath> \ No newline at end of file Added: incubator/wicket/trunk/archetypes/quickstart/.project URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/.project?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/.project (added) +++ incubator/wicket/trunk/archetypes/quickstart/.project Mon Jun 25 19:40:46 2007 @@ -0,0 +1,13 @@ +<projectDescription> + <name>wicket-archetype-template</name> + <comment/> + <projects/> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> \ No newline at end of file Added: incubator/wicket/trunk/archetypes/quickstart/pom.xml URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/pom.xml?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/pom.xml (added) +++ incubator/wicket/trunk/archetypes/quickstart/pom.xml Mon Jun 25 19:40:46 2007 @@ -0,0 +1,13 @@ +<project> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.wicket</groupId> + <artifactId>wicket-jdk14</artifactId> + <version>1.3.0-SNAPSHOT</version> + <relativePath>../../pom.xml</relativePath> + </parent> + + <artifactId>wicket-archetype-quickstart</artifactId> + <packaging>maven-plugin</packaging> + <name>Apache Wicket Quickstart Archetype</name> +</project> \ No newline at end of file Added: incubator/wicket/trunk/archetypes/quickstart/src/main/resources/META-INF/archetype.xml URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/src/main/resources/META-INF/archetype.xml?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/src/main/resources/META-INF/archetype.xml (added) +++ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/META-INF/archetype.xml Mon Jun 25 19:40:46 2007 @@ -0,0 +1,15 @@ +<archetype> + <id>wicket</id> + <sources> + <source>src/main/java/HomePage.java</source> + <source>src/main/java/HomePage.html</source> + <source>src/main/java/WicketApplication.java</source> + </sources> + <testSources> + <source>src/test/java/Start.java</source> + </testSources> + <resources> + <resource>src/main/resources/log4j.properties</resource> + <resource>src/main/webapp/WEB-INF/web.xml</resource> + </resources> +</archetype> \ No newline at end of file Added: incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml (added) +++ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml Mon Jun 25 19:40:46 2007 @@ -0,0 +1,123 @@ +<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>${groupId}</groupId> + <artifactId>${artifactId}</artifactId> + <packaging>war</packaging> + <version>${version}</version> + <!-- TODO project name --> + <name>quickstart</name> + <description></description> + + <!-- TODO + <organization> + <name>company name</name> + <url>company url</url> + </organization> + --> + + <licenses> + <license> + <name>The Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + + <dependencies> + <!-- WICKET DEPENDENCIES --> + + <dependency> + <groupId>org.apache.wicket</groupId> + <artifactId>wicket</artifactId> + <version>${wicket.version}</version> + </dependency> + <!-- OPTIONAL + <dependency> + <groupId>org.apache.wicket</groupId> + <artifactId>wicket-extensions</artifactId> + <version>${wicket.version}</version> + </dependency> + --> + + <!-- LOGGING DEPENDENCIES - LOG4J --> + + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-log4j12</artifactId> + <version>1.0.1</version> + </dependency> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>1.2.14</version> + </dependency> + + + <!-- JETTY DEPENDENCIES FOR TESTING --> + + <dependency> + <groupId>org.mortbay.jetty</groupId> + <artifactId>jetty</artifactId> + <version>${jetty.version}</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.mortbay.jetty</groupId> + <artifactId>jetty-util</artifactId> + <version>${jetty.version}</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.mortbay.jetty</groupId> + <artifactId>jetty-management</artifactId> + <version>${jetty.version}</version> + <scope>provided</scope> + </dependency> + </dependencies> + + <build> + <resources> + <resource> + <filtering>false</filtering> + <directory>src/main/resources</directory> + </resource> + <resource> + <filtering>false</filtering> + <directory>src/main/java</directory> + <includes> + <include>**</include> + </includes> + <excludes> + <exclude>**/*.java</exclude> + </excludes> + </resource> + </resources> + <testResources> + <testResource> + <filtering>false</filtering> + <directory>src/test/java</directory> + <includes> + <include>**</include> + </includes> + <excludes> + <exclude>**/*.java</exclude> + </excludes> + </testResource> + </testResources> + <plugins> + <plugin> + <groupId>org.mortbay.jetty</groupId> + <artifactId>maven-jetty-plugin</artifactId> + </plugin> + </plugins> + </build> + + <properties> + <wicket.version>1.3.0-SNAPSHOT</wicket.version> + <jetty.version>6.1.4</jetty.version> + </properties> + +</project> Added: incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HomePage.html URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HomePage.html?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HomePage.html (added) +++ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HomePage.html Mon Jun 25 19:40:46 2007 @@ -0,0 +1,11 @@ +<html> + <head> + <title>Wicket Quickstart Archetype Homepage</title> + </head> + <body> + <strong>Wicket Quickstart Archetype Homepage</strong> + <br/><br/> + <span wicket:id="message">message will be here</span> + </body> +</html> + Added: incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HomePage.java URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HomePage.java?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HomePage.java (added) +++ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HomePage.java Mon Jun 25 19:40:46 2007 @@ -0,0 +1,29 @@ +package ${groupId}; + +import org.apache.wicket.PageParameters; +import org.apache.wicket.markup.html.basic.Label; +import org.apache.wicket.markup.html.WebPage; + +/** + * Homepage + */ +public class HomePage extends WebPage { + + private static final long serialVersionUID = 1L; + + // TODO Add any page properties or variables here + + /** + * Constructor that is invoked when page is invoked without a session. + * + * @param parameters + * Page parameters + */ + public HomePage(final PageParameters parameters) { + + // Add the simplest type of label + add(new Label("message", "If you see this message wicket is properly configured and running")); + + // TODO Add your page's components here + } +} Added: incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/WicketApplication.java URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/WicketApplication.java?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/WicketApplication.java (added) +++ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/WicketApplication.java Mon Jun 25 19:40:46 2007 @@ -0,0 +1,27 @@ +package ${groupId}; + +import org.apache.wicket.protocol.http.WebApplication; + +/** + * Application object for your web application. If you want to run this application without deploying, run the Start class. + * + * @see wicket.myproject.Start#main(String[]) + */ +public class WicketApplication extends WebApplication +{ + /** + * Constructor + */ + public WicketApplication() + { + } + + /** + * @see wicket.Application#getHomePage() + */ + public Class getHomePage() + { + return HomePage.class; + } + +} \ No newline at end of file Added: incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/log4j.properties URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/log4j.properties?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/log4j.properties (added) +++ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/resources/log4j.properties Mon Jun 25 19:40:46 2007 @@ -0,0 +1,12 @@ +log4j.appender.Stdout=org.apache.log4j.ConsoleAppender +log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.Stdout.layout.conversionPattern=%-5p - %-26.26c{1} - %m\n + +log4j.rootLogger=INFO,Stdout + +log4j.logger.wicket=INFO +log4j.logger.wicket.protocol.http.HttpSessionStore=INFO +log4j.logger.wicket.version=INFO +log4j.logger.wicket.RequestCycle=INFO + + Added: incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml (added) +++ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml Mon Jun 25 19:40:46 2007 @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<web-app xmlns="http://java.sun.com/xml/ns/j2ee" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" + version="2.4"> + + <display-name>${artifactId}</display-name> + + <!-- + There are three means to configure Wickets configuration mode and they are + tested in the order given. + 1) A system property: -Dwicket.configuration + 2) servlet specific <init-param> + 3) context specific <context-param> + The value might be either "development" (reloading when templates change) + or "deployment". If no configuration is found, "development" is the default. + --> + + <filter> + <filter-name>wicket.${artifactId}</filter-name> + <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> + <init-param> + <param-name>applicationClassName</param-name> + <param-value>${groupId}.WicketApplication</param-value> + </init-param> + </filter> + + <filter-mapping> + <filter-name>wicket.${artifactId}</filter-name> + <url-pattern>/*</url-pattern> + </filter-mapping> + + +</web-app> Added: incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/Start.java URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/Start.java?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/Start.java (added) +++ incubator/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/test/java/Start.java Mon Jun 25 19:40:46 2007 @@ -0,0 +1,43 @@ +package ${groupId}; + +import org.mortbay.jetty.Connector; +import org.mortbay.jetty.Server; +import org.mortbay.jetty.bio.SocketConnector; +import org.mortbay.jetty.webapp.WebAppContext; + +public class Start { + + public static void main(String[] args) throws Exception { + Server server = new Server(); + SocketConnector connector = new SocketConnector(); + connector.setPort(8080); + server.setConnectors(new Connector[] { connector }); + + WebAppContext bb = new WebAppContext(); + bb.setServer(server); + bb.setContextPath("/${artifactId}"); + bb.setWar("src/main/webapp"); + + + // START JMX SERVER + // MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); + // MBeanContainer mBeanContainer = new MBeanContainer(mBeanServer); + // server.getContainer().addEventListener(mBeanContainer); + // mBeanContainer.start(); + + server.addHandler(bb); + + try { + System.out.println(">>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP"); + server.start(); + while (System.in.available() == 0) { + Thread.sleep(5000); + } + server.stop(); + server.join(); + } catch (Exception e) { + e.printStackTrace(); + System.exit(100); + } + } +} Added: incubator/wicket/trunk/archetypes/quickstart/target/classes/META-INF/archetype.xml URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/target/classes/META-INF/archetype.xml?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/target/classes/META-INF/archetype.xml (added) +++ incubator/wicket/trunk/archetypes/quickstart/target/classes/META-INF/archetype.xml Mon Jun 25 19:40:46 2007 @@ -0,0 +1,15 @@ +<archetype> + <id>wicket</id> + <sources> + <source>src/main/java/HomePage.java</source> + <source>src/main/java/HomePage.html</source> + <source>src/main/java/WicketApplication.java</source> + </sources> + <testSources> + <source>src/test/java/Start.java</source> + </testSources> + <resources> + <resource>src/main/resources/log4j.properties</resource> + <resource>src/main/webapp/WEB-INF/web.xml</resource> + </resources> +</archetype> \ No newline at end of file Added: incubator/wicket/trunk/archetypes/quickstart/target/classes/META-INF/maven/plugin.xml URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/target/classes/META-INF/maven/plugin.xml?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/target/classes/META-INF/maven/plugin.xml (added) +++ incubator/wicket/trunk/archetypes/quickstart/target/classes/META-INF/maven/plugin.xml Mon Jun 25 19:40:46 2007 @@ -0,0 +1,11 @@ +<plugin> + <description>Wicket is a Java-based open source component web application framework.</description> + <groupId>org.apache.wicket</groupId> + <artifactId>wicket-archetype-quickstart</artifactId> + <version>1.3.0-SNAPSHOT</version> + <goalPrefix>wicket-archetype-quickstart</goalPrefix> + <isolatedRealm>false</isolatedRealm> + <inheritedByDefault>true</inheritedByDefault> + <mojos/> + <dependencies/> +</plugin> \ No newline at end of file Added: incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/pom.xml URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/pom.xml?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/pom.xml (added) +++ incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/pom.xml Mon Jun 25 19:40:46 2007 @@ -0,0 +1,123 @@ +<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>${groupId}</groupId> + <artifactId>${artifactId}</artifactId> + <packaging>war</packaging> + <version>${version}</version> + <!-- TODO project name --> + <name>quickstart</name> + <description></description> + + <!-- TODO + <organization> + <name>company name</name> + <url>company url</url> + </organization> + --> + + <licenses> + <license> + <name>The Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + + <dependencies> + <!-- WICKET DEPENDENCIES --> + + <dependency> + <groupId>org.apache.wicket</groupId> + <artifactId>wicket</artifactId> + <version>${wicket.version}</version> + </dependency> + <!-- OPTIONAL + <dependency> + <groupId>org.apache.wicket</groupId> + <artifactId>wicket-extensions</artifactId> + <version>${wicket.version}</version> + </dependency> + --> + + <!-- LOGGING DEPENDENCIES - LOG4J --> + + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-log4j12</artifactId> + <version>1.0.1</version> + </dependency> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>1.2.14</version> + </dependency> + + + <!-- JETTY DEPENDENCIES FOR TESTING --> + + <dependency> + <groupId>org.mortbay.jetty</groupId> + <artifactId>jetty</artifactId> + <version>${jetty.version}</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.mortbay.jetty</groupId> + <artifactId>jetty-util</artifactId> + <version>${jetty.version}</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.mortbay.jetty</groupId> + <artifactId>jetty-management</artifactId> + <version>${jetty.version}</version> + <scope>provided</scope> + </dependency> + </dependencies> + + <build> + <resources> + <resource> + <filtering>false</filtering> + <directory>src/main/resources</directory> + </resource> + <resource> + <filtering>false</filtering> + <directory>src/main/java</directory> + <includes> + <include>**</include> + </includes> + <excludes> + <exclude>**/*.java</exclude> + </excludes> + </resource> + </resources> + <testResources> + <testResource> + <filtering>false</filtering> + <directory>src/test/java</directory> + <includes> + <include>**</include> + </includes> + <excludes> + <exclude>**/*.java</exclude> + </excludes> + </testResource> + </testResources> + <plugins> + <plugin> + <groupId>org.mortbay.jetty</groupId> + <artifactId>maven-jetty-plugin</artifactId> + </plugin> + </plugins> + </build> + + <properties> + <wicket.version>1.3.0-SNAPSHOT</wicket.version> + <jetty.version>6.1.4</jetty.version> + </properties> + +</project> Added: incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/java/HomePage.html URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/java/HomePage.html?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/java/HomePage.html (added) +++ incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/java/HomePage.html Mon Jun 25 19:40:46 2007 @@ -0,0 +1,11 @@ +<html> + <head> + <title>Wicket Quickstart Archetype Homepage</title> + </head> + <body> + <strong>Wicket Quickstart Archetype Homepage</strong> + <br/><br/> + <span wicket:id="message">message will be here</span> + </body> +</html> + Added: incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/java/HomePage.java URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/java/HomePage.java?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/java/HomePage.java (added) +++ incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/java/HomePage.java Mon Jun 25 19:40:46 2007 @@ -0,0 +1,29 @@ +package ${groupId}; + +import org.apache.wicket.PageParameters; +import org.apache.wicket.markup.html.basic.Label; +import org.apache.wicket.markup.html.WebPage; + +/** + * Homepage + */ +public class HomePage extends WebPage { + + private static final long serialVersionUID = 1L; + + // TODO Add any page properties or variables here + + /** + * Constructor that is invoked when page is invoked without a session. + * + * @param parameters + * Page parameters + */ + public HomePage(final PageParameters parameters) { + + // Add the simplest type of label + add(new Label("message", "If you see this message wicket is properly configured and running")); + + // TODO Add your page's components here + } +} Added: incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/java/WicketApplication.java URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/java/WicketApplication.java?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/java/WicketApplication.java (added) +++ incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/java/WicketApplication.java Mon Jun 25 19:40:46 2007 @@ -0,0 +1,27 @@ +package ${groupId}; + +import org.apache.wicket.protocol.http.WebApplication; + +/** + * Application object for your web application. If you want to run this application without deploying, run the Start class. + * + * @see wicket.myproject.Start#main(String[]) + */ +public class WicketApplication extends WebApplication +{ + /** + * Constructor + */ + public WicketApplication() + { + } + + /** + * @see wicket.Application#getHomePage() + */ + public Class getHomePage() + { + return HomePage.class; + } + +} \ No newline at end of file Added: incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/resources/commons-logging.properties URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/resources/commons-logging.properties?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/resources/commons-logging.properties (added) +++ incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/resources/commons-logging.properties Mon Jun 25 19:40:46 2007 @@ -0,0 +1 @@ +org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger Added: incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/resources/log4j.properties URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/resources/log4j.properties?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/resources/log4j.properties (added) +++ incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/resources/log4j.properties Mon Jun 25 19:40:46 2007 @@ -0,0 +1,12 @@ +log4j.appender.Stdout=org.apache.log4j.ConsoleAppender +log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.Stdout.layout.conversionPattern=%-5p - %-26.26c{1} - %m\n + +log4j.rootLogger=INFO,Stdout + +log4j.logger.wicket=INFO +log4j.logger.wicket.protocol.http.HttpSessionStore=INFO +log4j.logger.wicket.version=INFO +log4j.logger.wicket.RequestCycle=INFO + + Added: incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/webapp/WEB-INF/web.xml URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/webapp/WEB-INF/web.xml?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/webapp/WEB-INF/web.xml (added) +++ incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/main/webapp/WEB-INF/web.xml Mon Jun 25 19:40:46 2007 @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<web-app xmlns="http://java.sun.com/xml/ns/j2ee" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" + version="2.4"> + + <display-name>${artifactId}</display-name> + + <!-- + There are three means to configure Wickets configuration mode and they are + tested in the order given. + 1) A system property: -Dwicket.configuration + 2) servlet specific <init-param> + 3) context specific <context-param> + The value might be either "development" (reloading when templates change) + or "deployment". If no configuration is found, "development" is the default. + --> + + <filter> + <filter-name>wicket.${artifactId}</filter-name> + <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> + <init-param> + <param-name>applicationClassName</param-name> + <param-value>${groupId}.WicketApplication</param-value> + </init-param> + </filter> + + <filter-mapping> + <filter-name>wicket.${artifactId}</filter-name> + <url-pattern>/*</url-pattern> + </filter-mapping> + + +</web-app> Added: incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/test/java/Start.java URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/test/java/Start.java?view=auto&rev=550663 ============================================================================== --- incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/test/java/Start.java (added) +++ incubator/wicket/trunk/archetypes/quickstart/target/classes/archetype-resources/src/test/java/Start.java Mon Jun 25 19:40:46 2007 @@ -0,0 +1,43 @@ +package ${groupId}; + +import org.mortbay.jetty.Connector; +import org.mortbay.jetty.Server; +import org.mortbay.jetty.bio.SocketConnector; +import org.mortbay.jetty.webapp.WebAppContext; + +public class Start { + + public static void main(String[] args) throws Exception { + Server server = new Server(); + SocketConnector connector = new SocketConnector(); + connector.setPort(8080); + server.setConnectors(new Connector[] { connector }); + + WebAppContext bb = new WebAppContext(); + bb.setServer(server); + bb.setContextPath("/${artifactId}"); + bb.setWar("src/main/webapp"); + + + // START JMX SERVER + // MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); + // MBeanContainer mBeanContainer = new MBeanContainer(mBeanServer); + // server.getContainer().addEventListener(mBeanContainer); + // mBeanContainer.start(); + + server.addHandler(bb); + + try { + System.out.println(">>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP"); + server.start(); + while (System.in.available() == 0) { + Thread.sleep(5000); + } + server.stop(); + server.join(); + } catch (Exception e) { + e.printStackTrace(); + System.exit(100); + } + } +} Added: incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-quickstart-1.3-SNAPSHOT.jar URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-quickstart-1.3-SNAPSHOT.jar?view=auto&rev=550663 ============================================================================== Binary file - no diff available. Propchange: incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-quickstart-1.3-SNAPSHOT.jar ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-quickstart-1.3.0-SNAPSHOT-sources.jar URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-quickstart-1.3.0-SNAPSHOT-sources.jar?view=auto&rev=550663 ============================================================================== Binary file - no diff available. Propchange: incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-quickstart-1.3.0-SNAPSHOT-sources.jar ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-quickstart-1.3.0-SNAPSHOT-tests.jar URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-quickstart-1.3.0-SNAPSHOT-tests.jar?view=auto&rev=550663 ============================================================================== Binary file - no diff available. Propchange: incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-quickstart-1.3.0-SNAPSHOT-tests.jar ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-quickstart-1.3.0-SNAPSHOT.jar URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-quickstart-1.3.0-SNAPSHOT.jar?view=auto&rev=550663 ============================================================================== Binary file - no diff available. Propchange: incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-quickstart-1.3.0-SNAPSHOT.jar ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-template-1.0-SNAPSHOT.jar URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-template-1.0-SNAPSHOT.jar?view=auto&rev=550663 ============================================================================== Binary file - no diff available. Propchange: incubator/wicket/trunk/archetypes/quickstart/target/wicket-archetype-template-1.0-SNAPSHOT.jar ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream