Bug 490420 - [releng] missing dependencies when activating the quality profile
Summary: [releng] missing dependencies when activating the quality profile
Status: UNCONFIRMED
Alias: None
Product: Papyrus-rt
Classification: Modeling
Component: releng (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal
Target Milestone: Future   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2016-03-25 04:04 EDT by Francois Le Fevre CLA
Modified: 2016-11-10 15:35 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Le Fevre CLA 2016-03-25 04:04:16 EDT
when executing,
mvn install -Dtycho.localArtifacts=ignore -Pquality

it failes for each p2 that embedd some source feature



[INFO] --- tycho-p2-repository-plugin:0.24.0:assemble-repository (default-assemble-repository) @ org.eclipse.papyrusrt.tooling.p2 ---
[INFO] {osgi.os=win32, osgi.ws=win32, org.eclipse.update.install.features=true, osgi.arch=x86_64}
[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: org.eclipse.papyrusrt.tooling.p2 raw:0.7.2.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.7.2-SNAPSHOT
[ERROR]   Missing requirement: org.eclipse.papyrusrt.tooling.p2 raw:0.7.2.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.7.2-SNAPSHOT requires 'org.eclipse.papyrusrt.umlrt.tooling.feature.source.feature.group [0.7.2,0.7.3)' but it could not be found
[ERROR] 
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
Comment 1 Francois Le Fevre CLA 2016-03-25 04:05:37 EDT
The analysis of the maven trace highlights that a mvn clean is executed, even if it is not written.

maven-clean-plugin:2.6:clean (default-clean-1) @ org.eclipse.papyrusrt.tooling.p2


[INFO] --- tycho-packaging-plugin:0.24.0:build-qualifier-aggregator (default-build-qualifier-aggregator) @ org.eclipse.papyrusrt.tooling.p2 ---
[INFO] The project's OSGi version is 0.7.2.201603250759
[INFO] 
[INFO] --- maven-clean-plugin:2.6:clean (default-clean-1) @ org.eclipse.papyrusrt.tooling.p2 ---
[INFO] Deleting /export/home/flefevre/gitNeon/org.eclipse.papyrus-rt/releng/tooling/site/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ org.eclipse.papyrusrt.tooling.p2 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /export/home/flefevre/gitNeon/org.eclipse.papyrus-rt/releng/tooling/site/src/main/resources
[INFO] 
[INFO] --- tycho-source-plugin:0.24.0:plugin-source (plugin-source) @ org.eclipse.papyrusrt.tooling.p2 ---
[INFO] 
[INFO] --- target-platform-configuration:0.24.0:target-platform (default-target-platform) @ org.eclipse.papyrusrt.tooling.p2 ---
[INFO] 
[INFO] --- tycho-p2-publisher-plugin:0.24.0:publish-products (default-publish-products) @ org.eclipse.papyrusrt.tooling.p2 ---
[INFO] 
[INFO] --- tycho-p2-publisher-plugin:0.24.0:publish-categories (default-publish-categories) @ org.eclipse.papyrusrt.tooling.p2 ---
[INFO] 
[INFO] --- tycho-p2-publisher-plugin:0.24.0:attach-artifacts (default-attach-artifacts) @ org.eclipse.papyrusrt.tooling.p2 ---
[INFO] 
[INFO] --- tycho-p2-repository-plugin:0.24.0:assemble-repository (default-assemble-repository) @ org.eclipse.papyrusrt.tooling.p2 ---
[INFO] {osgi.os=win32, osgi.ws=win32, org.eclipse.update.install.features=true, osgi.arch=x86_64}
[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: org.eclipse.papyrusrt.tooling.p2 raw:0.7.2.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.7.2-SNAPSHOT
[ERROR]   Missing requirement: org.eclipse.papyrusrt.tooling.p2 raw:0.7.2.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.7.2-SNAPSHOT requires 'org.eclipse.papyrusrt.umlrt.tooling.feature.source.feature.group [0.7.2,0.7.3)' but it could not be found
[ERROR] 
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
Comment 2 Francois Le Fevre CLA 2016-03-25 04:08:52 EDT
Googling I went on t the follwoing mail from me [1]
that references [2], where we learn that tycho has hard coded a clean phase!

Proposition write a message on the tycho mailing list


[1]: https://dev.eclipse.org/mhonarc/lists/tycho-user/msg06857.html
[2]: https://dev.eclipse.org/mhonarc/lists/tycho-user/msg03724.html
Comment 3 Francois Le Fevre CLA 2016-03-25 05:45:47 EDT
I am not able to solve the problem even if by including a plugin specific configuration in the quality profile.

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

For SysML project, there is a difference by default the p2, product are not part of the quality profile. we have a specific profile "product" to include rcptt/rcptttest, p2 and product.

For me, it is preferrable to remove

/org.eclipse.papyrus-sysml/releng/pom.xml


<modules>
 <module>org.eclipse.papyrus.sysml14.feature</module>
</modules>

<profiles>
 <profile>
	<id>product</id>
	<activation>
		<activeByDefault>false</activeByDefault>
	</activation>
	<modules>
		<module>org.eclipse.papyrus.sysml14.p2</module>
		<module>org.eclipse.papyrus.sysml14.rcp</module>
		<module>org.eclipse.papyrus.sysml14.rcp.feature</module>
		<module>org.eclipse.papyrus.sysml14.product</module>
		<module>org.eclipse.papyrus.sysml14.rcptt.tests</module>
	</modules>
</profile>
</profiles>
Comment 4 Charles Rivet CLA 2016-10-31 14:17:13 EDT
Is this still an issue?