Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Maven/Tycho directory-based target(Created local p2 directory from mvn-dependencies not recognized by tycho/eclipse)
Maven/Tycho directory-based target [message #1159224] Mon, 28 October 2013 07:27
Mitch B. is currently offline Mitch B.
Messages: 27
Registered: September 2011
Junior Member
Hi,

start designing our second RAP application I try to redesign/improve our RAP-app build- and developing process.

The idea is to use Mavens dependency-management to create local directories, use this directories in eclipse/applications target platform and then build against this target in a target-platform-configuration via Tycho.

The workflow is:
- Copy dependencies via maven-dependency-plugin into a folder like:${project.basedir}/target/source/plugins
- Generate p2 meta-data via tycho-p2-extras-plugin & 'publish-features-and-bundles' on folder from step one like this:
<plugins>		
	<plugin>
		<groupId>org.eclipse.tycho.extras</groupId>
		<artifactId>tycho-p2-extras-plugin</artifactId>
		<version>${tycho-version}</version>
		<executions>					
			<execution>
				<id>generate-full-metadata</id>
				<phase>compile</phase>
				<goals>
					<goal>publish-features-and-bundles</goal>
				</goals>
				<configuration>
			<compress>false</compress>				
				</configuration>						
			</execution>
		</executions>
	</plugin>			
	<plugin>
		<groupId>org.eclipse.tycho</groupId>
		<artifactId>tycho-p2-repository-plugin</artifactId>
		<version>${tycho-version}</version>
		<configuration>
		</configuration>
		<executions>
			<execution>
				<phase>package</phase>
				<goals>
					<goal>verify-repository</goal>
				</goals>
				<configuration>
					<compress>false</compress>
					<includeAllDependencies>true</includeAllDependencies>
				</configuration>
			</execution>
		</executions>
	</plugin>
	<plugin>  
		<groupId>org.eclipse.tycho</groupId>
		<artifactId>tycho-p2-publisher-plugin</artifactId>
		<version>${tycho-version}</version>
		<configuration>
			<publishArtifacts>true</publishArtifacts>
		</configuration>
	</plugin>		   
</plugins>


The problem is: eclipse prompts a message 'no categorized items found' (bug in tycho, already known)when I try to use the generated repo-folder from step 2 as software-site - so I canĀ“t use this directory as softwaresite directly, but as directory - but, Tycho supports no location type 'directory'
When I try to use the p2 folder as repo for Tycho like
<properties>
   <deps.url>file:/${basedir}/p2dependencymanager/target/repository/</deps.url>
</properties>

<repositories>
    <repository>
	<id>dependencies</id>
	<url>${deps.url}</url>
	<layout>p2</layout>
    </repository>
</repositories>

in my applications pom, the generated repo will not be found by tycho ('No repository found at this location...') even the repo was verified by tycho...

The question is: am I missing the point of using directories, p2 metadata and Tycho? Is my approach at least possible? How do you design your build-process of your RAP applications? What do you think is the most efficient way to develop & build RAP apps?
Previous Topic:SWT.INHERIT_DEFAULT override individual control
Next Topic:rap theme contribution
Goto Forum:
  


Current Time: Wed Aug 27 21:18:05 EDT 2014

Powered by FUDForum. Page generated in 0.10901 seconds