You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Henrik Brautaset Aronsen (JIRA)" <ji...@codehaus.org> on 2008/10/23 14:03:19 UTC

[jira] Created: (MASSEMBLY-362) Not able to include ejb-client artifact in jar-with-dependencies

Not able to include ejb-client artifact in jar-with-dependencies
----------------------------------------------------------------

                 Key: MASSEMBLY-362
                 URL: http://jira.codehaus.org/browse/MASSEMBLY-362
             Project: Maven 2.x Assembly Plugin
          Issue Type: Bug
    Affects Versions: 2.2-beta-2
            Reporter: Henrik Brautaset Aronsen


The assembly:assembly target with jar-with-dependencies does not include my ejb-client dependency.  The jar dependencies are included.  I've tried specifiying my own assembly.xml, but the artifact isn't included nonetheless:

assembly.xml:
{code}<includes>
   <include>mygroup:myartifact-ejb</include>
</includes>
{code}

pom.xml:
{code}<dependency>
   <groupId>mygroup</groupId>
   <artifactId>myartifact-ejb</artifactId>
   <type>ejb-client</type>
</dependency>
{code}

I've also tried {{mygroup:myartifact-ejb:*}}, {{mygroup:myartifact-ejb:ejb-client}} and a couple of other combinations.  Maven still complains:

{code}[WARNING] The following patterns were never triggered in this artifact inclusion filter:
o  'mygroup:myartifact-ejb'
{code}

-- 
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-362) Not able to include ejb-client artifact in jar-with-dependencies

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

Dennis Lundberg updated MASSEMBLY-362:
--------------------------------------

    Fix Version/s:     (was: 2.2)

> Not able to include ejb-client artifact in jar-with-dependencies
> ----------------------------------------------------------------
>
>                 Key: MASSEMBLY-362
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-362
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>            Reporter: Henrik Brautaset Aronsen
>            Assignee: John Casey
>
> The assembly:assembly target with jar-with-dependencies does not include my ejb-client dependency.  The jar dependencies are included.  I've tried specifiying my own assembly.xml, but the artifact isn't included nonetheless:
> assembly.xml:
> {code}<includes>
>    <include>mygroup:myartifact-ejb</include>
> </includes>
> {code}
> pom.xml:
> {code}<dependency>
>    <groupId>mygroup</groupId>
>    <artifactId>myartifact-ejb</artifactId>
>    <type>ejb-client</type>
> </dependency>
> {code}
> I've also tried {{mygroup:myartifact-ejb:*}}, {{mygroup:myartifact-ejb:ejb-client}} and a couple of other combinations.  Maven still complains:
> {code}[WARNING] The following patterns were never triggered in this artifact inclusion filter:
> o  'mygroup:myartifact-ejb'
> {code}

-- 
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-362) Not able to include ejb-client artifact in jar-with-dependencies

Posted by "Emmanuel Hugonnet (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=173526#action_173526 ] 

Emmanuel Hugonnet commented on MASSEMBLY-362:
---------------------------------------------

replace <type>ejb-client</type>
with 
<classifier>client</classifier>

This works for me.


> Not able to include ejb-client artifact in jar-with-dependencies
> ----------------------------------------------------------------
>
>                 Key: MASSEMBLY-362
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-362
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>            Reporter: Henrik Brautaset Aronsen
>
> The assembly:assembly target with jar-with-dependencies does not include my ejb-client dependency.  The jar dependencies are included.  I've tried specifiying my own assembly.xml, but the artifact isn't included nonetheless:
> assembly.xml:
> {code}<includes>
>    <include>mygroup:myartifact-ejb</include>
> </includes>
> {code}
> pom.xml:
> {code}<dependency>
>    <groupId>mygroup</groupId>
>    <artifactId>myartifact-ejb</artifactId>
>    <type>ejb-client</type>
> </dependency>
> {code}
> I've also tried {{mygroup:myartifact-ejb:*}}, {{mygroup:myartifact-ejb:ejb-client}} and a couple of other combinations.  Maven still complains:
> {code}[WARNING] The following patterns were never triggered in this artifact inclusion filter:
> o  'mygroup:myartifact-ejb'
> {code}

-- 
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-362) Not able to include ejb-client artifact in jar-with-dependencies

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

John Casey closed MASSEMBLY-362.
--------------------------------

       Resolution: Won't Fix
    Fix Version/s: 2.2-beta-6
         Assignee: John Casey

jar-with-dependencies is not meant to address all use cases. it is merely provided to consolidate a simple project and its simple jar dependencies. Including all dependencies of all types and classifiers is not appropriate for this simple use case.

I suggest you create a customized variant of the jar-with-dependencies assembly descriptor to include your ejb-client dependencies alongside the other jar deps.

To build a reusable, customized assembly descriptor, see:

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

> Not able to include ejb-client artifact in jar-with-dependencies
> ----------------------------------------------------------------
>
>                 Key: MASSEMBLY-362
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-362
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>            Reporter: Henrik Brautaset Aronsen
>            Assignee: John Casey
>             Fix For: 2.2-beta-6
>
>
> The assembly:assembly target with jar-with-dependencies does not include my ejb-client dependency.  The jar dependencies are included.  I've tried specifiying my own assembly.xml, but the artifact isn't included nonetheless:
> assembly.xml:
> {code}<includes>
>    <include>mygroup:myartifact-ejb</include>
> </includes>
> {code}
> pom.xml:
> {code}<dependency>
>    <groupId>mygroup</groupId>
>    <artifactId>myartifact-ejb</artifactId>
>    <type>ejb-client</type>
> </dependency>
> {code}
> I've also tried {{mygroup:myartifact-ejb:*}}, {{mygroup:myartifact-ejb:ejb-client}} and a couple of other combinations.  Maven still complains:
> {code}[WARNING] The following patterns were never triggered in this artifact inclusion filter:
> o  'mygroup:myartifact-ejb'
> {code}

-- 
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-362) Not able to include ejb-client artifact in jar-with-dependencies

Posted by "Henrik Brautaset Aronsen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=165221#action_165221 ] 

Henrik Brautaset Aronsen commented on MASSEMBLY-362:
----------------------------------------------------

Maybe using [maven-shade-plugin|http://maven.apache.org/plugins/maven-shade-plugin/] instead of the assembly plugin will solve it?  I haven't had time to test it yet.



> Not able to include ejb-client artifact in jar-with-dependencies
> ----------------------------------------------------------------
>
>                 Key: MASSEMBLY-362
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-362
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>            Reporter: Henrik Brautaset Aronsen
>
> The assembly:assembly target with jar-with-dependencies does not include my ejb-client dependency.  The jar dependencies are included.  I've tried specifiying my own assembly.xml, but the artifact isn't included nonetheless:
> assembly.xml:
> {code}<includes>
>    <include>mygroup:myartifact-ejb</include>
> </includes>
> {code}
> pom.xml:
> {code}<dependency>
>    <groupId>mygroup</groupId>
>    <artifactId>myartifact-ejb</artifactId>
>    <type>ejb-client</type>
> </dependency>
> {code}
> I've also tried {{mygroup:myartifact-ejb:*}}, {{mygroup:myartifact-ejb:ejb-client}} and a couple of other combinations.  Maven still complains:
> {code}[WARNING] The following patterns were never triggered in this artifact inclusion filter:
> o  'mygroup:myartifact-ejb'
> {code}

-- 
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: (MASSEMBLY-362) Not able to include ejb-client artifact in jar-with-dependencies

Posted by "Andy Webster (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=228828#action_228828 ] 

Andy Webster edited comment on MASSEMBLY-362 at 7/16/10 9:30 AM:
-----------------------------------------------------------------

Using Maven 2.2.1 I got the same problem but resolved it as follows:

In pom.xml
{noformat}
    <dependency>
        <groupId>mygroup</groupId>
	<artifactId>myartifact-ejb</artifactId>
	<version>myversion</version> 
	<type>ejb</type> 
	<classifier>client</classifier>
    </dependency>
{noformat} 

In assembly.xml
{noformat}
<include>mygroup:myartifact-ejb:*:client</include>
{noformat}

If there is no classifier, then the type can be ejb as normal. 

However, as I have a classifier (client) I have found that neither ejb nor jar work, but * does.

      was (Author: worldwidewebs):
    Using Maven 2.2.1 I got the same problem but resolved it as follows:

In pom.xml
{noformat} 
    <dependency>
        <groupId>mygroup</groupId>
	<artifactId>myartifact-ejb</artifactId>
	<version>myversion</version> 
	<type>ejb</type> 
	<classifier>client</classifier>
    </dependency>
{noformat} 

In assembly.xml
{noformat}
<include>mygroup:myartifact-ejb:*:client</include>
{noformat}

If there is no classifier, then the type can be ejb as normal. 

However, as I have a classifier (client) I have found that neither ejb nor jar work, but * does.
  
> Not able to include ejb-client artifact in jar-with-dependencies
> ----------------------------------------------------------------
>
>                 Key: MASSEMBLY-362
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-362
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>            Reporter: Henrik Brautaset Aronsen
>
> The assembly:assembly target with jar-with-dependencies does not include my ejb-client dependency.  The jar dependencies are included.  I've tried specifiying my own assembly.xml, but the artifact isn't included nonetheless:
> assembly.xml:
> {code}<includes>
>    <include>mygroup:myartifact-ejb</include>
> </includes>
> {code}
> pom.xml:
> {code}<dependency>
>    <groupId>mygroup</groupId>
>    <artifactId>myartifact-ejb</artifactId>
>    <type>ejb-client</type>
> </dependency>
> {code}
> I've also tried {{mygroup:myartifact-ejb:*}}, {{mygroup:myartifact-ejb:ejb-client}} and a couple of other combinations.  Maven still complains:
> {code}[WARNING] The following patterns were never triggered in this artifact inclusion filter:
> o  'mygroup:myartifact-ejb'
> {code}

-- 
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-362) Not able to include ejb-client artifact in jar-with-dependencies

Posted by "Andy Webster (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=228828#action_228828 ] 

Andy Webster commented on MASSEMBLY-362:
----------------------------------------

Using Maven 2.2.1 I got the same problem but resolved it as follows:

In pom.xml
{noformat} 
    <dependency>
        <groupId>mygroup</groupId>
	<artifactId>myartifact-ejb</artifactId>
	<version>myversion</version> 
	<type>ejb</type> 
	<classifier>client</classifier>
    </dependency>
{noformat} 

In assembly.xml
{noformat}
<include>mygroup:myartifact-ejb:*:client</include>
{noformat}

If there is no classifier, then the type can be ejb as normal. 

However, as I have a classifier (client) I have found that neither ejb nor jar work, but * does.

> Not able to include ejb-client artifact in jar-with-dependencies
> ----------------------------------------------------------------
>
>                 Key: MASSEMBLY-362
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-362
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>            Reporter: Henrik Brautaset Aronsen
>
> The assembly:assembly target with jar-with-dependencies does not include my ejb-client dependency.  The jar dependencies are included.  I've tried specifiying my own assembly.xml, but the artifact isn't included nonetheless:
> assembly.xml:
> {code}<includes>
>    <include>mygroup:myartifact-ejb</include>
> </includes>
> {code}
> pom.xml:
> {code}<dependency>
>    <groupId>mygroup</groupId>
>    <artifactId>myartifact-ejb</artifactId>
>    <type>ejb-client</type>
> </dependency>
> {code}
> I've also tried {{mygroup:myartifact-ejb:*}}, {{mygroup:myartifact-ejb:ejb-client}} and a couple of other combinations.  Maven still complains:
> {code}[WARNING] The following patterns were never triggered in this artifact inclusion filter:
> o  'mygroup:myartifact-ejb'
> {code}

-- 
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-362) Not able to include ejb-client artifact in jar-with-dependencies

Posted by "haim ra (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=157557#action_157557 ] 

haim ra commented on MASSEMBLY-362:
-----------------------------------

Any workaround?

> Not able to include ejb-client artifact in jar-with-dependencies
> ----------------------------------------------------------------
>
>                 Key: MASSEMBLY-362
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-362
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>            Reporter: Henrik Brautaset Aronsen
>
> The assembly:assembly target with jar-with-dependencies does not include my ejb-client dependency.  The jar dependencies are included.  I've tried specifiying my own assembly.xml, but the artifact isn't included nonetheless:
> assembly.xml:
> {code}<includes>
>    <include>mygroup:myartifact-ejb</include>
> </includes>
> {code}
> pom.xml:
> {code}<dependency>
>    <groupId>mygroup</groupId>
>    <artifactId>myartifact-ejb</artifactId>
>    <type>ejb-client</type>
> </dependency>
> {code}
> I've also tried {{mygroup:myartifact-ejb:*}}, {{mygroup:myartifact-ejb:ejb-client}} and a couple of other combinations.  Maven still complains:
> {code}[WARNING] The following patterns were never triggered in this artifact inclusion filter:
> o  'mygroup:myartifact-ejb'
> {code}

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