Bug 547269 - a Mojo to list dependencies
Summary: a Mojo to list dependencies
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Mickael Istria CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks: 548242
  Show dependency tree
 
Reported: 2019-05-14 16:16 EDT by Mickael Istria CLA
Modified: 2021-04-28 16:52 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2019-05-14 16:16:13 EDT
Some further processing (like API Tools) would require a listing of all the content of the target platform to work well. It would be great if Tycho allows -as an extra plugin or even directly as part of default resolver- to dump the depedencies as a .target that could be reused afterwards.
We can also imagine other use-cases (such as someone willing to focus on a single bundle and who wants a TP ready for this single bundle) where this 'focused' target file can be also useful.
Comment 1 Mickael Istria CLA 2019-05-15 05:21:42 EDT
Actually, there is no suitable target platform location type to just list jars/folders. Some support needs to be added to PDE directly.
Comment 2 Mickael Istria CLA 2019-05-15 10:57:03 EDT
The maven-dependency-plugin can already somehow do the work

	<plugin>
		<artifactId>maven-dependency-plugin</artifactId>
		<executions>
			<execution>
				<id>list-dependencies</id>
				<goals>
					<goal>list</goal>
				</goals>
				<phase>verify</phase>
				<configuration>
					<outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
					<outputScope>false</outputScope>
					<outputFile>${project.build.directory}/dependencies.txt</outputFile>
				</configuration>
			</execution>
		</executions>
	</plugin>

It seems much simpler that downstrean usage (like bug 547206 ) just learn to read such output to build a local target platform rather than hacking some mojo and specific target location to have this in a .target file.
Comment 3 Mickael Istria CLA 2019-06-13 15:36:42 EDT
The maven-dependency-list suffers from the fact that nested jars inside bundles make that the path to the inner jar is listed, and not the actual bundle.
It causes bug 548242
Comment 4 Eclipse Genie CLA 2019-06-13 17:21:49 EDT
New Gerrit change created: https://git.eclipse.org/r/144002