Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335649

Summary: Review pluggability of the usage data collector
Product: z_Archived Reporter: Pascal Rapicault <pascal>
Component: m2eAssignee: Matthew Piggott <matthew>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Pom Import UDC Monitor
none
UDC Monitor for Pom Imports
none
Monitor Pom Imports pascal: iplog+

Description Pascal Rapicault CLA 2011-01-27 23:44:30 EST
As we are looking for ways to figure what ppl are doing with m2e. Matt thought that we could try to gather stats about the plugins being used in the poms from the workspace and send that along with the data collected by the UDC.
Comment 1 Matthew Piggott CLA 2011-02-07 16:06:08 EST
Created attachment 188476 [details]
Pom Import UDC Monitor

This is a potential patch to add a monitor which listens for Add events from the m2e ProjectRegistry, then collects the package type and the MojoExecutionKeys.  The other approach would be to periodically take a snapshot of the the projects in the workspace which might provide us with a better idea about what projects that are used more frequently (or at least in a frequently used workspace).

The UDC uses a csv file, the two types of events generated by this monitor look like this:
sign,m2e.plugins,org.apache.maven.plugins:maven-jarsigner-plugin,1.2,"package",1297110506217

m2e.packaging,m2e.packaging,org.eclipse.m2e.core,0.13.0,"eclipse-plugin",1297110534983

For logging to the Foundation we probably need to change the plugins log as it will be filtered by the server, unfortunately this means putting multiple fields from MojoExecutionKey into a single cell. Perhaps we don't care about some fields individually?  (It appears I have missed including the goal)
Comment 2 Matthew Piggott CLA 2011-02-08 10:22:09 EST
Created attachment 188523 [details]
UDC Monitor for Pom Imports
Comment 3 Matthew Piggott CLA 2011-02-08 11:14:01 EST
Created attachment 188531 [details]
Monitor Pom Imports

Missed a hunk
Comment 4 Denis Roy CLA 2021-04-19 13:25:30 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/