Index: src/main/java/org/apache/jackrabbit/filevault/maven/packaging/VaultMojo.java =================================================================== --- src/main/java/org/apache/jackrabbit/filevault/maven/packaging/VaultMojo.java (revision 1816417) +++ src/main/java/org/apache/jackrabbit/filevault/maven/packaging/VaultMojo.java (working copy) @@ -177,6 +177,12 @@ private File filterSource; /** + * Optional reference to PNG image that should be used as thumbnail for the content package. + */ + @Parameter + private File thumbnailImage; + + /** * The directory containing the content to be packaged up into the content * package. */ @@ -528,6 +534,16 @@ throw new MojoExecutionException("Package should not contain index definitions, because 'allowIndexDefinitions=false'."); } } + + // add package thumbnail + if (thumbnailImage != null && thumbnailImage.exists()) { + File vaultDefinitionFolder = new File(vaultDir, "definition"); + if (!vaultDefinitionFolder.exists()) { + vaultDefinitionFolder.mkdir(); + } + copyFile("/vault/definition/.content.xml", new File(vaultDefinitionFolder, ".content.xml")); + FileUtils.copyFile(thumbnailImage, new File(vaultDefinitionFolder, "thumbnail.png")); + } MavenArchiver mavenArchiver = new MavenArchiver(); mavenArchiver.setArchiver(contentPackageArchiver); Index: src/main/resources/vault/definition/.content.xml =================================================================== --- src/main/resources/vault/definition/.content.xml (nonexistent) +++ src/main/resources/vault/definition/.content.xml (working copy) @@ -0,0 +1,20 @@ + + + \ No newline at end of file Property changes on: src/main/resources/vault/definition/.content.xml ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +LastChangedDate LastChangedRevision LastChangedBy HeadURL Id Author \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: src/main/resources/vault/definition/.content.xml =================================================================== --- src/main/resources/vault/definition/.content.xml (nonexistent) +++ src/main/resources/vault/definition/.content.xml (working copy) @@ -0,0 +1,20 @@ + + + \ No newline at end of file Property changes on: src/main/resources/vault/definition/.content.xml ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +LastChangedDate LastChangedRevision LastChangedBy HeadURL Id Author \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property