You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stevo Slavic (JIRA)" <ji...@codehaus.org> on 2009/10/22 21:15:27 UTC
[jira] Created: (MSHARED-133) Invalid example in maven-archiver
documentation
Invalid example in maven-archiver documentation
-----------------------------------------------
Key: MSHARED-133
URL: http://jira.codehaus.org/browse/MSHARED-133
Project: Maven Shared Components
Issue Type: Bug
Components: maven-archiver
Affects Versions: maven-archiver-2.4
Reporter: Stevo Slavic
Priority: Minor
[Using a Maven Repository-Style Classpath|http://maven.apache.org/shared/maven-archiver/examples/classpath.html#Repository] example is invalid - configuration options, like classpathLayoutType and classpathMavenRepositoryLayout/classpathLayoutType, as well as referenced plugin versions (2.3 and 2.4) are for maven-war-plugin, while in example maven-jar-plugin is used.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MSHARED-133) Invalid example in maven-archiver
documentation
Posted by "Klemens Muthmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSHARED-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=207145#action_207145 ]
Klemens Muthmann commented on MSHARED-133:
------------------------------------------
For other people facing this bug. There is an alternative way to create executable jars described here: http://left.subtree.org/2008/01/24/creating-executable-jars-with-maven/
> Invalid example in maven-archiver documentation
> -----------------------------------------------
>
> Key: MSHARED-133
> URL: http://jira.codehaus.org/browse/MSHARED-133
> Project: Maven Shared Components
> Issue Type: Bug
> Components: maven-archiver
> Affects Versions: maven-archiver-2.4
> Reporter: Stevo Slavic
> Priority: Minor
>
> [Using a Maven Repository-Style Classpath|http://maven.apache.org/shared/maven-archiver/examples/classpath.html#Repository] example is invalid - configuration options, like classpathLayoutType and classpathMavenRepositoryLayout/classpathLayoutType, as well as referenced plugin versions (2.3 and 2.4) are for maven-war-plugin, while in example maven-jar-plugin is used.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MSHARED-133) Invalid example in maven-archiver
documentation
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSHARED-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=195906#action_195906 ]
Dennis Lundberg commented on MSHARED-133:
-----------------------------------------
The versions that you mention (2.3 and 2.4) are not plugin versions. They are versions of the maven-archiver shared component.
What is wrong with the example?
> Invalid example in maven-archiver documentation
> -----------------------------------------------
>
> Key: MSHARED-133
> URL: http://jira.codehaus.org/browse/MSHARED-133
> Project: Maven Shared Components
> Issue Type: Bug
> Components: maven-archiver
> Affects Versions: maven-archiver-2.4
> Reporter: Stevo Slavic
> Priority: Minor
>
> [Using a Maven Repository-Style Classpath|http://maven.apache.org/shared/maven-archiver/examples/classpath.html#Repository] example is invalid - configuration options, like classpathLayoutType and classpathMavenRepositoryLayout/classpathLayoutType, as well as referenced plugin versions (2.3 and 2.4) are for maven-war-plugin, while in example maven-jar-plugin is used.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MSHARED-133) Invalid example in maven-archiver
documentation
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSHARED-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=207152#action_207152 ]
Dennis Lundberg commented on MSHARED-133:
-----------------------------------------
This particular feature was introduced in 2.4 of Maven Archiver, and is undocumented in the reference section on the site. That needs to be fixed.
The feature does work with the JAR Plugin though, but it requires version 2.3 of that plugin.
> Invalid example in maven-archiver documentation
> -----------------------------------------------
>
> Key: MSHARED-133
> URL: http://jira.codehaus.org/browse/MSHARED-133
> Project: Maven Shared Components
> Issue Type: Bug
> Components: maven-archiver
> Affects Versions: maven-archiver-2.4
> Reporter: Stevo Slavic
> Priority: Minor
> Attachments: MSHARED-133.zip
>
>
> [Using a Maven Repository-Style Classpath|http://maven.apache.org/shared/maven-archiver/examples/classpath.html#Repository] example is invalid - configuration options, like classpathLayoutType and classpathMavenRepositoryLayout/classpathLayoutType, as well as referenced plugin versions (2.3 and 2.4) are for maven-war-plugin, while in example maven-jar-plugin is used.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MSHARED-133) Invalid example in maven-archiver
documentation
Posted by "Stevo Slavic (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSHARED-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=195915#action_195915 ]
Stevo Slavic commented on MSHARED-133:
--------------------------------------
Seems I misunderstood version info. Nevertheless, configuration options from example seem not to be applicable to current version of maven-jar-plugin - problem with example is [1] when [2].
[1] failed build trace snippet
{code}
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-jar-plugin:2.2
Cause: Cannot find setter nor field in org.apache.maven.archiver.ManifestConfiguration for 'classpathLayoutType'
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: org.apache.maven.plugins:maven-jar-plugin. Reason: Unable to parse the created DOM for plugin configuration
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:723)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginConfigurationException: Error configuring: org.apache.maven.plugins:maven-jar-plugin. Reason: Unable to parse the created DOM for plugin configuration
at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1363)
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:724)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot find setter nor field in org.apache.maven.archiver.ManifestConfiguration for 'classpathLayoutType'
at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.<init>(ComponentValueSetter.java:68)
at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:134)
at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(ObjectWithFieldsConverter.java:90)
at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:207)
at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137)
at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(ObjectWithFieldsConverter.java:90)
at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:247)
at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137)
at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1357)
... 20 more
{code}
[2] maven-jar-plugin:2.2 configuration
{code}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>foo.bar.Main</mainClass>
<addClasspath>true</addClasspath>
<classpathLayoutType>repository</classpathLayoutType>
</manifest>
</archive>
</configuration>
</plugin>
{code}
> Invalid example in maven-archiver documentation
> -----------------------------------------------
>
> Key: MSHARED-133
> URL: http://jira.codehaus.org/browse/MSHARED-133
> Project: Maven Shared Components
> Issue Type: Bug
> Components: maven-archiver
> Affects Versions: maven-archiver-2.4
> Reporter: Stevo Slavic
> Priority: Minor
>
> [Using a Maven Repository-Style Classpath|http://maven.apache.org/shared/maven-archiver/examples/classpath.html#Repository] example is invalid - configuration options, like classpathLayoutType and classpathMavenRepositoryLayout/classpathLayoutType, as well as referenced plugin versions (2.3 and 2.4) are for maven-war-plugin, while in example maven-jar-plugin is used.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MSHARED-133) Invalid example in maven-archiver
documentation
Posted by "Klemens Muthmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSHARED-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=207144#action_207144 ]
Klemens Muthmann commented on MSHARED-133:
------------------------------------------
I can confirm this bug. Are there plans to fix it?
> Invalid example in maven-archiver documentation
> -----------------------------------------------
>
> Key: MSHARED-133
> URL: http://jira.codehaus.org/browse/MSHARED-133
> Project: Maven Shared Components
> Issue Type: Bug
> Components: maven-archiver
> Affects Versions: maven-archiver-2.4
> Reporter: Stevo Slavic
> Priority: Minor
>
> [Using a Maven Repository-Style Classpath|http://maven.apache.org/shared/maven-archiver/examples/classpath.html#Repository] example is invalid - configuration options, like classpathLayoutType and classpathMavenRepositoryLayout/classpathLayoutType, as well as referenced plugin versions (2.3 and 2.4) are for maven-war-plugin, while in example maven-jar-plugin is used.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MSHARED-133) Invalid example in maven-archiver
documentation
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSHARED-133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg updated MSHARED-133:
------------------------------------
Attachment: MSHARED-133.zip
Sample project that works.
> Invalid example in maven-archiver documentation
> -----------------------------------------------
>
> Key: MSHARED-133
> URL: http://jira.codehaus.org/browse/MSHARED-133
> Project: Maven Shared Components
> Issue Type: Bug
> Components: maven-archiver
> Affects Versions: maven-archiver-2.4
> Reporter: Stevo Slavic
> Priority: Minor
> Attachments: MSHARED-133.zip
>
>
> [Using a Maven Repository-Style Classpath|http://maven.apache.org/shared/maven-archiver/examples/classpath.html#Repository] example is invalid - configuration options, like classpathLayoutType and classpathMavenRepositoryLayout/classpathLayoutType, as well as referenced plugin versions (2.3 and 2.4) are for maven-war-plugin, while in example maven-jar-plugin is used.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MSHARED-133) Invalid example in maven-archiver
documentation
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSHARED-133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg closed MSHARED-133.
-----------------------------------
Resolution: Fixed
Fix Version/s: maven-archiver-2.5
Assignee: Dennis Lundberg
Fixed in [r899921|http://svn.apache.org/viewvc?view=revision&revision=899921] and [r899924|http://svn.apache.org/viewvc?view=revision&revision=899924].
> Invalid example in maven-archiver documentation
> -----------------------------------------------
>
> Key: MSHARED-133
> URL: http://jira.codehaus.org/browse/MSHARED-133
> Project: Maven Shared Components
> Issue Type: Bug
> Components: maven-archiver
> Affects Versions: maven-archiver-2.4
> Reporter: Stevo Slavic
> Assignee: Dennis Lundberg
> Priority: Minor
> Fix For: maven-archiver-2.5
>
> Attachments: MSHARED-133.zip
>
>
> [Using a Maven Repository-Style Classpath|http://maven.apache.org/shared/maven-archiver/examples/classpath.html#Repository] example is invalid - configuration options, like classpathLayoutType and classpathMavenRepositoryLayout/classpathLayoutType, as well as referenced plugin versions (2.3 and 2.4) are for maven-war-plugin, while in example maven-jar-plugin is used.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MSHARED-133) Invalid example in maven-archiver
documentation
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSHARED-133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold updated MSHARED-133:
---------------------------------------
Fix Version/s: (was: maven-archiver-2.5)
maven-archiver-2.4.1
> Invalid example in maven-archiver documentation
> -----------------------------------------------
>
> Key: MSHARED-133
> URL: http://jira.codehaus.org/browse/MSHARED-133
> Project: Maven Shared Components
> Issue Type: Bug
> Components: maven-archiver
> Affects Versions: maven-archiver-2.4
> Reporter: Stevo Slavic
> Assignee: Dennis Lundberg
> Priority: Minor
> Fix For: maven-archiver-2.4.1
>
> Attachments: MSHARED-133.zip
>
>
> [Using a Maven Repository-Style Classpath|http://maven.apache.org/shared/maven-archiver/examples/classpath.html#Repository] example is invalid - configuration options, like classpathLayoutType and classpathMavenRepositoryLayout/classpathLayoutType, as well as referenced plugin versions (2.3 and 2.4) are for maven-war-plugin, while in example maven-jar-plugin is used.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Issue Comment Edited: (MSHARED-133) Invalid example in
maven-archiver documentation
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSHARED-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=207155#action_207155 ]
Dennis Lundberg edited comment on MSHARED-133 at 5/8/10 1:29 AM:
-----------------------------------------------------------------
Fixed in [r899921|http://svn.apache.org/viewvc?view=revision&revision=899921], [r899924|http://svn.apache.org/viewvc?view=revision&revision=899924] and [r942316|http://svn.apache.org/viewvc?view=revision&revision=942316].
was (Author: dennislundberg):
Fixed in [r899921|http://svn.apache.org/viewvc?view=revision&revision=899921] and [r899924|http://svn.apache.org/viewvc?view=revision&revision=899924].
> Invalid example in maven-archiver documentation
> -----------------------------------------------
>
> Key: MSHARED-133
> URL: http://jira.codehaus.org/browse/MSHARED-133
> Project: Maven Shared Components
> Issue Type: Bug
> Components: maven-archiver
> Affects Versions: maven-archiver-2.4
> Reporter: Stevo Slavic
> Assignee: Dennis Lundberg
> Priority: Minor
> Fix For: maven-archiver-2.4.1
>
> Attachments: MSHARED-133.zip
>
>
> [Using a Maven Repository-Style Classpath|http://maven.apache.org/shared/maven-archiver/examples/classpath.html#Repository] example is invalid - configuration options, like classpathLayoutType and classpathMavenRepositoryLayout/classpathLayoutType, as well as referenced plugin versions (2.3 and 2.4) are for maven-war-plugin, while in example maven-jar-plugin is used.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira