Attempt to build by tycho

This commit is contained in:
konsoletyper 2014-09-19 17:56:58 +04:00
parent fa5180337f
commit 60c9752377
3 changed files with 71 additions and 31 deletions

View File

@ -1 +1,2 @@
/.settings
/.project

View File

@ -31,4 +31,9 @@
<modules>
<module>teavm-eclipse-repository</module>
</modules>
<properties>
<p2-repo.url>http://download.eclipse.org/releases/kepler</p2-repo.url>
<tycho.version>0.21.0</tycho.version>
</properties>
</project>

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2014 Alexey Andreev.
@ -13,41 +14,30 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<?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>org.teavm</groupId>
<artifactId>teavm</artifactId>
<artifactId>teavm-eclipse</artifactId>
<version>0.2-SNAPSHOT</version>
</parent>
<artifactId>teavm-eclipse-plugin</artifactId>
<packaging>pom</packaging>
<packaging>eclipse-plugin</packaging>
<dependencies>
<dependency>
<groupId>org.teavm</groupId>
<artifactId>teavm-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.teavm</groupId>
<artifactId>teavm-classlib</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.teavm</groupId>
<artifactId>teavm-chrome-rdp</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.2</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>eclipse</id>
<url>${p2-repo.url}</url>
<layout>p2</layout>
</repository>
<repository>
<id>teavm</id>
<url>http://localhost:8080/p2-site/</url>
<layout>p2</layout>
</repository>
</repositories>
<build>
<pluginManagement>
@ -64,21 +54,65 @@
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.2.2.v20140723</version>
<executions>
<execution>
<phase>prepare-package</phase>
<id>serve-repository</id>
<phase>initialize</phase>
<goals>
<goal>copy-dependencies</goal>
<goal>run</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/lib</outputDirectory>
<webApp>
<contextPath>/p2-site</contextPath>
<webAppSourceDirectory>../teavm-eclipse-repository/target/repository</webAppSourceDirectory>
</webApp>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho.version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<environments>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86</arch>
</environment>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>