Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] tycho 0.13.0 - installation failed

not directly related, but the maven-resources-plugin execution should no longer be necessary with

https://bugs.eclipse.org/bugs/show_bug.cgi?id=349421

fixed in 0.13.0-SNAPSHOT.

The configuration section

<products>
	<product>
		<id>${product-id}</id>
	</product>
</products>


should only be needed if you want to configure the root folder name of your product(s), so I suggest you remove this, too.

If that still fails, open a bug with full debug log (mvn -X -e), steps to reproduce the problem and link to sources or attach sample project.

HTH
Jan
-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Martin Blühweis
Sent: Dienstag, 6. September 2011 21:19
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] tycho 0.13.0 - installation failed

hi guys,

today i did an update to 0.13.0-snapshot, now i get an error on mvn install:

Installation failed.
The installable unit at.xyz.prod.product has not been found.

my product configuration file at.xyz.prod.product is in the root 
directory of the project "at.xyz.prod", product name & id are also 
"at.xyz.prod.product"

with 0.12.0 i had another problem, but tycho found the product.

my pom.xml:
<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>
	<name>MFS Product</name>

	<groupId>at.xyz.prod</groupId>
	<artifactId>at.xyz.prod</artifactId>
	<packaging>eclipse-repository</packaging>

	<parent>
		<groupId>at.xyz</groupId>
		<artifactId>parentproject</artifactId>
		<relativePath>../parentproject/pom.xml</relativePath>
		<version>1.2.0</version>
	</parent>

	<properties>
		<product-id>at.xyz.prod.product</product-id>
	</properties>
	
	<build>
		<plugins>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-p2-director-plugin</artifactId>
				<version>${tycho-version}</version>
				<executions>
					<execution>
						<id>materialize-products</id>
						<goals>
							<goal>materialize-products</goal>
						</goals>
					</execution>
					<execution>
						<id>archive-products</id>
						<goals>
							<goal>archive-products</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<products>
						<product>
							<id>${product-id}</id>
						</product>
					</products>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-resources-plugin</artifactId>
				<version>2.5</version>
				<executions>
					<execution>
						<id>copy-resources</id>
						<phase>generate-resources</phase>
						<goals>
							<goal>copy-resources</goal>
						</goals>
						<configuration>
						 
<outputDirectory>${project.build.directory}/products/${product-id}/icons/</outputDirectory>
							<nonFilteredFileExtensions>
								<nonFilteredFileExtension>bmp</nonFilteredFileExtension>
								<nonFilteredFileExtension>png</nonFilteredFileExtension>
							</nonFilteredFileExtensions>
							<resources>
								<resource>
									<directory>icons</directory>
								</resource>
								<resource>
									<directory>OSGI-INF</directory>
								</resource>
							</resources>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>

any ideas?
thanks in advance, martin
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top