Skip to content
Snippets Groups Projects
Commit 5d502005 authored by Marius Dumitru Florea's avatar Marius Dumitru Florea
Browse files

XWIKI-10027: Show date and time of the install and user who installed for an installed extension

* The ImportMojo should use the default Admin user to install extensions (otherwise we see "Installed by Unknown User").
parent 9006f01a
No related merge requests found
......@@ -226,7 +226,8 @@ private void installExtension(Artifact artifact, XWikiContext xcontext, boolean
extension.setFile(artifact.getFile());
LocalExtension localExtension = localExtensionRepository.storeExtension(extension);
installedExtensionRepository.installExtension(localExtension, "wiki:xwiki", !directDependency);
installedExtensionRepository.installExtension(localExtension, "wiki:xwiki", !directDependency,
Collections.<String, Object>singletonMap("user.reference", "xwiki:XWiki.Admin"));
}
private MavenProject getMavenProject(Artifact artifact) throws MojoExecutionException
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment