Skip to content

bradleylarrick/launch4j-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

launch4j-maven-plugin example project

This project demonstrates the problem created by the launch4j-maven-plugin when generating the project site.

My Environment

  • Windows 10 Pro
  • JDK 11
  • Maven v3.8.7

Building the project

mvn clean verify site

The resulting site will include Plugin Management and Plugins pages in which the GroupId, ArtifactId and Version columns are all filled with the values for this project, not the actual plugins.

Project Build Plugins

GroupId ArtifactId Version
org.natuna launch4j-example 0.0.1
org.natuna launch4j-example 0.0.1
org.natuna launch4j-example 0.0.1
org.natuna launch4j-example 0.0.1
org.natuna launch4j-example 0.0.1
org.natuna launch4j-example 0.0.1
org.natuna launch4j-example 0.0.1
org.natuna launch4j-example 0.0.1
org.natuna launch4j-example 0.0.1

Project Report Plugins

GroupId ArtifactId Version
org.natuna launch4j-example 0.0.1
org.natuna launch4j-example 0.0.1

My Fix

I've created a local version of the plugin that does not cause this problem by commenting out one line in the retrieveBinaryBits() method of the Launch4jMojo class.

    private void retrieveBinaryBits(Artifact a)throws MojoExecutionException{

    ProjectBuildingRequest configuration=session.getProjectBuildingRequest();
    configuration.setRemoteRepositories(project.getRemoteArtifactRepositories());
    configuration.setLocalRepository(localRepository);
    //        configuration.setProject(session.getCurrentProject());

    getLog().debug("Retrieving artifact: "+a+" stored in "+a.getFile());

About

Example demonstrating error during site generation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages