Skip to content

Commit

Permalink
Maven-izing the add-on
Browse files Browse the repository at this point in the history
  • Loading branch information
pbackx committed Dec 6, 2013
1 parent 9f43cac commit 00ee581
Show file tree
Hide file tree
Showing 41 changed files with 473 additions and 100 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,3 +4,4 @@
.settings
build
WebContent/VAADIN/widgetsets
target
30 changes: 0 additions & 30 deletions WebContent/WEB-INF/web.xml

This file was deleted.

Binary file removed dist/wizards-for-vaadin-0.1.0.jar
Binary file not shown.
Binary file removed dist/wizards-for-vaadin-0.2.0.jar
Binary file not shown.
Binary file removed dist/wizards-for-vaadin-0.3.0.jar
Binary file not shown.
Binary file removed dist/wizards-for-vaadin-0.4.0.jar
Binary file not shown.
Binary file removed dist/wizards-for-vaadin-0.4.1.jar
Binary file not shown.
Binary file removed dist/wizards-for-vaadin-0.4.2.jar
Binary file not shown.
Binary file removed dist/wizards-for-vaadin-0.4.4.jar
Binary file not shown.
Binary file removed dist/wizards-for-vaadin-0.4.5.jar
Binary file not shown.
Binary file removed dist/wizards-for-vaadin-1.0.0-beta1.jar
Binary file not shown.
29 changes: 0 additions & 29 deletions ivy.xml

This file was deleted.

35 changes: 0 additions & 35 deletions ivysettings.xml

This file was deleted.

21 changes: 21 additions & 0 deletions pom.xml
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>org.vaadin.addons</groupId>
<artifactId>wizards-for-vaadin-root</artifactId>
<packaging>pom</packaging>
<version>1.0.0-beta1</version>
<name>WizardsForVaadin</name>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<vaadin.version>7.1.8</vaadin.version>
<vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>
</properties>

<modules>
<module>wizards-for-vaadin</module>
<module>wizards-for-vaadin-demo</module>
</modules>
</project>
Binary file removed tests/lib/mockito-all-1.9.0.jar
Binary file not shown.
202 changes: 202 additions & 0 deletions wizards-for-vaadin-demo/pom.xml
@@ -0,0 +1,202 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>
<parent>
<artifactId>wizards-for-vaadin-root</artifactId>
<groupId>org.vaadin.addons</groupId>
<version>1.0.0-beta1</version>
</parent>
<artifactId>wizards-for-vaadin-demo</artifactId>
<packaging>war</packaging>
<name>WizardsForVaadin Add-on Demo</name>

<repositories>
<repository>
<id>vaadin-addons</id>
<url>http://maven.vaadin.com/vaadin-addons</url>
</repository>
<repository>
<id>vaadin-snapshots</id>
<url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<id>vaadin-snapshots</id>
<url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>

<dependencies>
<dependency>
<groupId>org.vaadin.addons</groupId>
<artifactId>wizards-for-vaadin</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-push</artifactId>
<version>${vaadin.version}</version>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-client-compiled</artifactId>
<version>${vaadin.version}</version>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-themes</artifactId>
<version>${vaadin.version}</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>

<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<filesets>
<fileset>
<!-- Clean-up widgetset required for "inplace" compilation -->
<directory>${basedir}/src/main/webapp/VAADIN/widgetsets</directory>
</fileset>
<fileset>
<!-- Clean-up gwt cache -->
<directory>${basedir}/src/main/webapp/VAADIN/gwt-unitCache</directory>
</fileset>
</filesets>
</configuration>
</plugin>

<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<packagingExcludes>
**/VAADIN/gwt-unitCache/**,
**/VAADIN/widgetsets/WEB-INF/**,
**/WEB-INF/lib/servlet-api-*.jar,
**/WEB-INF/lib/vaadin-client-*.jar,
**/WEB-INF/lib/jetty-*.jar,
**/WEB-INF/lib/ant-*.jar,
**/WEB-INF/classes/gwt-unitCache/**,
**/WEB-INF/classes/themes/**,
**/WEB-INF/classes/widgetsets/**
</packagingExcludes>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>

<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>${vaadin.plugin.version}</version>
<configuration>
<extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
<webappDirectory>${basedir}/src/main/webapp/VAADIN/widgetsets</webappDirectory>
<hostedWebapp>${basedir}/src/main/webapp/VAADIN/widgetsets</hostedWebapp>
<noServer>true</noServer>
<persistentunitcachedir>${basedir}/target/tmp/gwt-unitCache</persistentunitcachedir>
<compileReport>true</compileReport>
<strict>true</strict>
<runTarget>http://localhost:8080/</runTarget>
</configuration>
<executions>
<!-- You are free to mark this as permanently ignored in Eclipse -->
<execution>
<configuration>
<!-- if you don't specify any modules, the plugin will find them -->
</configuration>
<goals>
<goal>resources</goal>
<goal>update-widgetset</goal>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.10.v20130312</version>
<configuration>
<webApp>
<contextPath>/</contextPath>
</webApp>
</configuration>
</plugin>

</plugins>

<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<versionRange>
[${vaadin.plugin.version},)
</versionRange>
<goals>
<goal>resources</goal>
<goal>update-widgetset</goal>
<goal>compile</goal>
<goal>update-theme</goal>
<goal>compile-theme</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>

</build>

</project>
@@ -1,14 +1,18 @@
package org.vaadin.teemu.wizards;

import javax.servlet.annotation.WebServlet;

import org.vaadin.teemu.wizards.event.WizardCancelledEvent;
import org.vaadin.teemu.wizards.event.WizardCompletedEvent;
import org.vaadin.teemu.wizards.event.WizardProgressListener;
import org.vaadin.teemu.wizards.event.WizardStepActivationEvent;
import org.vaadin.teemu.wizards.event.WizardStepSetChangedEvent;

import com.vaadin.annotations.Theme;
import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.server.Page;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinServlet;
import com.vaadin.server.VaadinSession;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Button;
Expand All @@ -29,6 +33,11 @@
public class WizardsDemoApplication extends UI implements
WizardProgressListener {

@WebServlet(value = "/*", asyncSupported = true)
@VaadinServletConfiguration(productionMode = false, ui = WizardsDemoApplication.class)
public static class Servlet extends VaadinServlet {
}

private Wizard wizard;
private VerticalLayout mainLayout;

Expand Down
2 changes: 2 additions & 0 deletions wizards-for-vaadin-demo/src/main/webapp/META-INF/MANIFEST.MF
@@ -0,0 +1,2 @@
Manifest-Version: 1.0
Class-Path:
2 changes: 2 additions & 0 deletions wizards-for-vaadin-demo/src/main/webapp/META-INF/context.xml
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/wizards-for-vaadin"/>
File renamed without changes.
File renamed without changes
@@ -1,6 +1,6 @@
Manifest-Version: 1.0
Implementation-Title: Wizards for Vaadin
Implementation-Version: 1.0.0-beta1
Vaadin-Package-Version: 1
Class-Path:

Manifest-Version: 1.0
Implementation-Title: Wizards for Vaadin
Implementation-Version: 1.0.0-beta1
Vaadin-Package-Version: 1
Class-Path:

0 comments on commit 00ee581

Please sign in to comment.