[
https://jira.codehaus.org/browse/MSITE-724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=349570#comment-349570
]
Herve Boutemy commented on MSITE-724:
-------------------------------------
can you point to a sample project causing this issue, please?
I don't get this issue with Maven site
(https://svn.apache.org/repos/asf/maven/site/trunk), which is using the
site:jar mojo:
{noformat}$ mvn clean site
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Maven Site 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ maven-site ---
[INFO] Deleting /home/herve/projets/maven/trunks/site/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:copy-resources (copy-resources) @
maven-site ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-site-plugin:3.4:site (default-site) @ maven-site ---
[INFO] configuring report plugin
org.apache.maven.plugins:maven-project-info-reports-plugin:2.7
[WARNING] license report is declared twice in default reportSet
[WARNING] project-team report is declared twice in default reportSet
[WARNING] mailing-list report is declared twice in default reportSet
[WARNING] cim report is declared twice in default reportSet
[INFO] Parent project loaded from repository: org.apache:apache:pom:14
[INFO] Relativizing decoration links with respect to project URL:
http://maven.apache.org/
[INFO] Rendering site with org.apache.maven.skins:maven-stylus-skin:jar:1.5
skin.
[INFO] Skipped "About" report (maven-project-info-reports-plugin:2.7:index),
file "index.html" already exists for the English version.
[INFO] Skipped "Source Repository" report
(maven-project-info-reports-plugin:2.7:scm), file "source-repository.html"
already exists for the English version.
[INFO] Skipped "Issue Tracking" report
(maven-project-info-reports-plugin:2.7:issue-tracking), file
"issue-tracking.html" already exists for the English version.
[INFO] Rendering 183 Doxia documents: 146 apt, 4 fml, 24 markdown, 9 xdoc
[WARNING] <title> was already defined in <properties>, ignored <title> in
<head>.
[INFO] Generating "Continuous Integration" report ---
maven-project-info-reports-plugin:2.7:cim
[INFO] Generating "Mailing Lists" report ---
maven-project-info-reports-plugin:2.7:mailing-list
[INFO] Generating "Project License" report ---
maven-project-info-reports-plugin:2.7:license
[INFO] Generating "Project Team" report ---
maven-project-info-reports-plugin:2.7:project-team
[INFO] Generating "Project Summary" report ---
maven-project-info-reports-plugin:2.7:summary
[INFO] Generating "Dependency Information" report ---
maven-project-info-reports-plugin:2.7:dependency-info
[INFO] Generating "Dependency Management" report ---
maven-project-info-reports-plugin:2.7:dependency-management
[INFO] Generating "Dependencies" report ---
maven-project-info-reports-plugin:2.7:dependencies
[INFO] Generating "Plugin Management" report ---
maven-project-info-reports-plugin:2.7:plugin-management
[INFO] Generating "Project Plugins" report ---
maven-project-info-reports-plugin:2.7:plugins
[INFO] Generating "Distribution Management" report ---
maven-project-info-reports-plugin:2.7:distribution-management
[INFO]
[INFO] --- maven-site-plugin:3.4:jar (jar) @ maven-site ---
[INFO] Building jar:
/home/herve/projets/maven/trunks/site/target/site/maven-site-1.0-site.jar
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (check-site-inheritance) @
maven-site ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.137s
[INFO] Finished at: Sat Jul 12 17:46:40 CEST 2014
[INFO] Final Memory: 23M/450M
[INFO]
------------------------------------------------------------------------{noformat}
> An API incompatibility was encountered while executing
> org.apache.maven.plugins:maven-site-plugin:3.4:jar
> ---------------------------------------------------------------------------------------------------------
>
> Key: MSITE-724
> URL: https://jira.codehaus.org/browse/MSITE-724
> Project: Maven Site Plugin
> Issue Type: Bug
> Affects Versions: 3.4
> Reporter: Christian Schulte
> Priority: Blocker
>
> {code}
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
> default-jar of goal org.apache.maven.plugins:maven-site-plugin:3.4:jar
> failed: An API incompatibility was encountered while executing
> org.apache.maven.plugins:maven-site-plugin:3.4:jar:
> java.lang.NoSuchMethodError:
> org.codehaus.plexus.archiver.jar.Manifest.getMainSection()Lorg/codehaus/plexus/archiver/jar/Manifest$Section;
> {code}
> {code}
> Caused by: java.lang.NoSuchMethodError:
> org.codehaus.plexus.archiver.jar.Manifest.getMainSection()Lorg/codehaus/plexus/archiver/jar/Manifest$Section;
> at
> org.apache.maven.archiver.MavenArchiver.getManifest(MavenArchiver.java:102)
> at
> org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:513)
> at
> org.apache.maven.plugins.site.render.SiteJarMojo.createArchive(SiteJarMojo.java:201)
> at
> org.apache.maven.plugins.site.render.SiteJarMojo.execute(SiteJarMojo.java:130)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
> ... 20 more
> {code}
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)