You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Knut Pape (JIRA)" <ji...@codehaus.org> on 2010/10/21 15:37:32 UTC

[jira] Created: (MNGSITE-121) Error in Example for sharing-descriptors?

Error in Example for sharing-descriptors?
-----------------------------------------

                 Key: MNGSITE-121
                 URL: http://jira.codehaus.org/browse/MNGSITE-121
             Project: Maven 2 Project Web Site
          Issue Type: Bug
         Environment: -
            Reporter: Knut Pape


On Page
http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html

It says that the assembly file from a jar on the class-path shoulld be included the following way:
<descriptors>
   <descriptor>myassembly.xml</descriptor>
</descriptors>

This didn't work for me. After some fidling (I'm pritty sure that the problem was not a spelling mistake) I came to the following solution: Instead of referencing the assembly by filename I referenced it by it's ID and voila - it worked:

<descriptorRefs>
  <descriptorRef>my-assembly-descriptor-id</descriptorRef>
</descriptorRefs>



-- 
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] Moved: (MASSEMBLY-516) Error in Example for sharing-descriptors?

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann moved MNGSITE-121 to MASSEMBLY-516:
-----------------------------------------------------

        Key: MASSEMBLY-516  (was: MNGSITE-121)
    Project: Maven 2.x Assembly Plugin  (was: Maven 2 Project Web Site)

> Error in Example for sharing-descriptors?
> -----------------------------------------
>
>                 Key: MASSEMBLY-516
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-516
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>         Environment: -
>            Reporter: Knut Pape
>
> On Page
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html
> It says that the assembly file from a jar on the class-path shoulld be included the following way:
> <descriptors>
>    <descriptor>myassembly.xml</descriptor>
> </descriptors>
> This didn't work for me. After some fidling (I'm pritty sure that the problem was not a spelling mistake) I came to the following solution: Instead of referencing the assembly by filename I referenced it by it's ID and voila - it worked:
> <descriptorRefs>
>   <descriptorRef>my-assembly-descriptor-id</descriptorRef>
> </descriptorRefs>

-- 
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: (MASSEMBLY-516) Error in Example for sharing-descriptors?

Posted by "Eric Haszlakiewicz (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=240915#action_240915 ] 

Eric Haszlakiewicz commented on MASSEMBLY-516:
----------------------------------------------

It's a bit crazy that a change like this went in between a beta release and a final release, and it looks like this isn't the only major change that happened (see the messages on the mailing list about classifier being required).  Doing things like this makes any distinction between major/minor/beta/whatever releases kind of pointless. :(


> Error in Example for sharing-descriptors?
> -----------------------------------------
>
>                 Key: MASSEMBLY-516
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-516
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>         Environment: -
>            Reporter: Knut Pape
>
> On Page
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html
> It says that the assembly file from a jar on the class-path shoulld be included the following way:
> <descriptors>
>    <descriptor>myassembly.xml</descriptor>
> </descriptors>
> This didn't work for me. After some fidling (I'm pritty sure that the problem was not a spelling mistake) I came to the following solution: Instead of referencing the assembly by filename I referenced it by it's ID and voila - it worked:
> <descriptorRefs>
>   <descriptorRef>my-assembly-descriptor-id</descriptorRef>
> </descriptorRefs>

-- 
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: (MASSEMBLY-516) Error in Example for sharing-descriptors?

Posted by "Kevin Calcagno (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=240851#action_240851 ] 

Kevin Calcagno commented on MASSEMBLY-516:
------------------------------------------

I discovered this same issue.  After looking at the code of the plugin, it appears to have been an intentional change (and a good one, IMHO).  But the documentation indeed needs to be updated.

> Error in Example for sharing-descriptors?
> -----------------------------------------
>
>                 Key: MASSEMBLY-516
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-516
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>         Environment: -
>            Reporter: Knut Pape
>
> On Page
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html
> It says that the assembly file from a jar on the class-path shoulld be included the following way:
> <descriptors>
>    <descriptor>myassembly.xml</descriptor>
> </descriptors>
> This didn't work for me. After some fidling (I'm pritty sure that the problem was not a spelling mistake) I came to the following solution: Instead of referencing the assembly by filename I referenced it by it's ID and voila - it worked:
> <descriptorRefs>
>   <descriptorRef>my-assembly-descriptor-id</descriptorRef>
> </descriptorRefs>

-- 
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: (MASSEMBLY-516) Error in Example for sharing-descriptors?

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MASSEMBLY-516.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3
         Assignee: John Casey

> Error in Example for sharing-descriptors?
> -----------------------------------------
>
>                 Key: MASSEMBLY-516
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-516
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>         Environment: -
>            Reporter: Knut Pape
>            Assignee: John Casey
>             Fix For: 2.3
>
>
> On Page
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html
> It says that the assembly file from a jar on the class-path shoulld be included the following way:
> <descriptors>
>    <descriptor>myassembly.xml</descriptor>
> </descriptors>
> This didn't work for me. After some fidling (I'm pritty sure that the problem was not a spelling mistake) I came to the following solution: Instead of referencing the assembly by filename I referenced it by it's ID and voila - it worked:
> <descriptorRefs>
>   <descriptorRef>my-assembly-descriptor-id</descriptorRef>
> </descriptorRefs>

-- 
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: (MASSEMBLY-516) Error in Example for sharing-descriptors?

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=252283#action_252283 ] 

Dennis Lundberg commented on MASSEMBLY-516:
-------------------------------------------

Jeff,

Where in the docs does it say you should use "/src/main/resources/assembly" ?
I can't find any reference to that.

> Error in Example for sharing-descriptors?
> -----------------------------------------
>
>                 Key: MASSEMBLY-516
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-516
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>         Environment: -
>            Reporter: Knut Pape
>            Assignee: John Casey
>             Fix For: 2.3
>
>
> On Page
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html
> It says that the assembly file from a jar on the class-path shoulld be included the following way:
> <descriptors>
>    <descriptor>myassembly.xml</descriptor>
> </descriptors>
> This didn't work for me. After some fidling (I'm pritty sure that the problem was not a spelling mistake) I came to the following solution: Instead of referencing the assembly by filename I referenced it by it's ID and voila - it worked:
> <descriptorRefs>
>   <descriptorRef>my-assembly-descriptor-id</descriptorRef>
> </descriptorRefs>

-- 
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: (MASSEMBLY-516) Error in Example for sharing-descriptors?

Posted by "Jeff Campbell (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=252278#action_252278 ] 

Jeff Campbell commented on MASSEMBLY-516:
-----------------------------------------

It is also important to note that the descriptor xml file MUST be in /src/main/resources/assemblies (not /src/main/resources/assembly).

It seems that half the maven-assembly-plugin documentation indicates that assembly xml files should go in either:
/src/main/resources/assembly
or
/src/main/resources/assemblies

I wish there was a better defined standard and that the documentation would be consistent.  It might be good to add to this fix the ability to look in either of these to paths for the descriptor xml file.

> Error in Example for sharing-descriptors?
> -----------------------------------------
>
>                 Key: MASSEMBLY-516
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-516
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>         Environment: -
>            Reporter: Knut Pape
>            Assignee: John Casey
>             Fix For: 2.3
>
>
> On Page
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html
> It says that the assembly file from a jar on the class-path shoulld be included the following way:
> <descriptors>
>    <descriptor>myassembly.xml</descriptor>
> </descriptors>
> This didn't work for me. After some fidling (I'm pritty sure that the problem was not a spelling mistake) I came to the following solution: Instead of referencing the assembly by filename I referenced it by it's ID and voila - it worked:
> <descriptorRefs>
>   <descriptorRef>my-assembly-descriptor-id</descriptorRef>
> </descriptorRefs>

-- 
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: (MASSEMBLY-516) Error in Example for sharing-descriptors?

Posted by "Steve Gilbert (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251390#action_251390 ] 

Steve Gilbert commented on MASSEMBLY-516:
-----------------------------------------

Since I just spent many hours trying to get this to work and only found this JIRA issue AFTER I figured it out myself, I thought I should add what I found.

Using the 2.2 version of the plugin, I found that the only way I could get this to work was using the base name of the descriptor file (without the .xml extension).

For example if my descriptor file is foo.xml and the id within it is "bar", I found that this:

{code}
<descriptorRefs>
  <descriptorRef>foo</descriptorRef>
</descriptorRefs>
{code}

works, but this does not:

{code}
<descriptorRefs>
  <descriptorRef>bar</descriptorRef>
</descriptorRefs>
{code}


> Error in Example for sharing-descriptors?
> -----------------------------------------
>
>                 Key: MASSEMBLY-516
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-516
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>         Environment: -
>            Reporter: Knut Pape
>            Assignee: John Casey
>             Fix For: 2.3
>
>
> On Page
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html
> It says that the assembly file from a jar on the class-path shoulld be included the following way:
> <descriptors>
>    <descriptor>myassembly.xml</descriptor>
> </descriptors>
> This didn't work for me. After some fidling (I'm pritty sure that the problem was not a spelling mistake) I came to the following solution: Instead of referencing the assembly by filename I referenced it by it's ID and voila - it worked:
> <descriptorRefs>
>   <descriptorRef>my-assembly-descriptor-id</descriptorRef>
> </descriptorRefs>

-- 
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: (MASSEMBLY-516) Error in Example for sharing-descriptors?

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MASSEMBLY-516:
--------------------------------------

    Fix Version/s:     (was: 2.3)
                   2.2.1

> Error in Example for sharing-descriptors?
> -----------------------------------------
>
>                 Key: MASSEMBLY-516
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-516
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>         Environment: -
>            Reporter: Knut Pape
>            Assignee: John Casey
>             Fix For: 2.2.1
>
>
> On Page
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html
> It says that the assembly file from a jar on the class-path shoulld be included the following way:
> <descriptors>
>    <descriptor>myassembly.xml</descriptor>
> </descriptors>
> This didn't work for me. After some fidling (I'm pritty sure that the problem was not a spelling mistake) I came to the following solution: Instead of referencing the assembly by filename I referenced it by it's ID and voila - it worked:
> <descriptorRefs>
>   <descriptorRef>my-assembly-descriptor-id</descriptorRef>
> </descriptorRefs>

-- 
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