Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This will produce the following project structure/files

No Format

    .\myproject
    |   pom.xml
    |
    \---src
        +---main
        |   +---java
        |   |   \---com
        |   |       \---mycompany
        |   |               HomePage.html
        |   |               HomePage.java
        |   |               WicketApplication.java
        |   |
        |   +---resources
        |   |       log4j.properties
        |   |
        |   \---webapp
        |       \---WEB-INF
        |               web.xml
        |
        \---test
            \---java
                \---com
                    \---mycompany
                            Start.java

Use

Change into the project directory, then create a WAR file via mvn package or build the project and run it under Jetty via mvn jetty:run.

...

At present, running mvn package or mvn install will result in a NPE from the Surefire (testing) plugin as the generated pom.xml has no dependancy on either JUnit or TestNG, which the plugin appears to expect if a src/test/java path is present. To avoid this issue, simply add the following to the <dependancies> section of the pom.xml.

No Format

    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>3.8.1<2</version>
        <scope>test</scope>
    </dependency>