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 /.settings
/.project

View File

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

View File

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