diff options
Diffstat (limited to 'client-compiled/pom.xml')
-rw-r--r-- | client-compiled/pom.xml | 180 |
1 files changed, 180 insertions, 0 deletions
diff --git a/client-compiled/pom.xml b/client-compiled/pom.xml new file mode 100644 index 0000000000..da664fb938 --- /dev/null +++ b/client-compiled/pom.xml @@ -0,0 +1,180 @@ +<?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/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>com.vaadin</groupId> + <artifactId>vaadin-root</artifactId> + <version>7.7.0-SNAPSHOT</version> + </parent> + <groupId>com.vaadin</groupId> + <artifactId>vaadin-client-compiled</artifactId> + <name>vaadin-client-compiled</name> + <packaging>jar</packaging> + + <properties> + <widgetset.name>com.vaadin.DefaultWidgetSet</widgetset.name> + <widgetset.style>OBF</widgetset.style> + <widgetset.local.workers>6</widgetset.local.workers> + </properties> + + <organization> + <name>Vaadin Ltd</name> + </organization> + <url>https://vaadin.com/</url> + <description>Vaadin client compiled</description> + + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>vaadin-server</artifactId> + <version>${project.version}</version> + <scope>provided</scope> + </dependency> + + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>vaadin-client</artifactId> + <version>${project.version}</version> + <scope>provided</scope> + </dependency> + + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>vaadin-client-compiler</artifactId> + <version>${project.version}</version> + <scope>provided</scope> + </dependency> + + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>vaadin-buildhelpers</artifactId> + <version>${project.version}</version> + <scope>provided</scope> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>1.4.0</version> + <executions> + <execution> + <phase>generate-resources</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <classpathScope>compile</classpathScope> + <executable>${java.home}/bin/java</executable> + <arguments> + <!-- TODO: Do we need these? --> + <!-- <jvmarg value="-Xss8M" /> --> + <!-- <jvmarg value="-XX:MaxPermSize=256M" /> --> + <!-- <jvmarg value="-Djava.awt.headless=true" /> --> + <argument>-Dgwt.persistentunitcachedir=${project.build.directory}/compile</argument> + <argument>-DvFailIfNotSerializable=true</argument> + + <argument>-classpath</argument> + <classpath /> + + <argument>com.google.gwt.dev.Compiler</argument> + + <argument>-workDir</argument> + <argument>${project.build.directory}/compile</argument> + <argument>-logLevel</argument> + <argument>TRACE</argument> + <argument>-war</argument> + <!-- This will write the result directly to target/classes for packaging --> + <argument>${project.build.outputDirectory}/VAADIN/widgetsets/</argument> + <argument>-style</argument> + <argument>${widgetset.style}</argument> + <argument>-localWorkers</argument> + <argument>${widgetset.local.workers}</argument> + + <argument>-strict</argument> + + <!-- Move unnecessary stuff to compile folder --> + <argument>-deploy</argument> + <argument>${project.build.directory}/compile</argument> + <argument>-extra</argument> + <argument>${project.build.directory}/compile</argument> + + <argument>${widgetset.name}</argument> + </arguments> + </configuration> + </execution> + + <execution> + <id>generate-export-package</id> + <phase>package</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <classpathScope>compile</classpathScope> + <executable>${java.home}/bin/java</executable> + <arguments> + <argument>-Dvaadin.version=${project.version}</argument> + <argument>-DincludeNumberPackages=1</argument> + + <argument>-classpath</argument> + <classpath /> + + <argument>com.vaadin.buildhelpers.GeneratePackageExports</argument> + + <argument>${project.build.directory}/${project.build.finalName}.${project.packaging}</argument> + <argument>VAADIN/widgetsets</argument> + </arguments> + </configuration> + </execution> + </executions> + </plugin> + + + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <extensions>true</extensions> + <configuration> + <instructions> + <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment> + <!-- Export package is handled in exec plugin --> + <Export-Package></Export-Package> + <Import-Package></Import-Package> + </instructions> + </configuration> + <executions> + <execution> + <id>bundle-manifest</id> + <phase>prepare-package</phase> + <goals> + <goal>manifest</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>2.6</version> + <configuration> + <archive> + <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> + <index>false</index> + <manifest> + <addDefaultImplementationEntries>true</addDefaultImplementationEntries> + </manifest> + </archive> + <excludes> + <exclude>VAADIN/widgetsets/WEB-INF</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </build> + +</project> |