You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jira-importer (via GitHub)" <gi...@apache.org> on 2025/05/16 14:42:14 UTC
[I] [MEJB-49] ejb-client: Transitive EJB Dependencies should be of type ejb-client [maven-ejb-plugin]
jira-importer opened a new issue, #83:
URL: https://github.com/apache/maven-ejb-plugin/issues/83
**[Roland Bader](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=roland)** opened **[MEJB-49](https://issues.apache.org/jira/browse/MEJB-49?redirect=false)** and commented
When setting a dependency to an ejb-client jar that has dependencies to other ejb projects, these transitive dependencies are resolved as type ejb. It would be better when those transient dependencies would be referenced as ejb-client as well.
I have not found any solution to this problem other than to manually exclude every single transient "ejb" dependency and instead add the ejb-client version of it directly. However this is cumbersome and error-prone for really complex projects.
I have included a test-project-setup (no junit test) that demonstrates the described behavior. When you execute dependency:tree in the client project, you can see that the testcase-ejb1 dependency is of type "ejb".
---
**Affects:** 2.2.1
**Attachments:**
- [ejb-testcase.zip](https://issues.apache.org/jira/secure/attachment/12715714/ejb-testcase.zip) (_13.22 kB_)
1 votes, 1 watchers
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [MEJB-49] ejb-client: Transitive EJB Dependencies should be of type ejb-client [maven-ejb-plugin]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #83:
URL: https://github.com/apache/maven-ejb-plugin/issues/83#issuecomment-2879262987
**[Dennis Lundberg](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=dennisl@apache.org)** commented
I'm not sure I understand your request. This is the output I get when I run 'mvn dependency:tree' in the client module:
```
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - testcase:testcase-client:jar:1.0.0-SNAPSHOT
[INFO] task-segment: [dependency:tree]
[INFO] ------------------------------------------------------------------------
[INFO] [dependency:tree {execution: default-cli}]
[INFO] testcase:testcase-client:jar:1.0.0-SNAPSHOT
[INFO] \- testcase:testcase-ejb2:ejb-client:client:1.0.0-SNAPSHOT:compile
[INFO] \- testcase:testcase-ejb1:ejb:1.0.0-SNAPSHOT:compile
[INFO] ------------------------------------------------------------------------
```
But the type of testcase-ejb1 (ejb) is to be expected, because thtat is what you specified in the POM of testcase-ejb2.
How is the plugin supposed to know that you want another type?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [MEJB-49] ejb-client: Transitive EJB Dependencies should be of type ejb-client [maven-ejb-plugin]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #83:
URL: https://github.com/apache/maven-ejb-plugin/issues/83#issuecomment-2879263023
**[Karl Heinz Marbaise](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=khmarbaise)** commented
Based on the age of the issue and no further information i will close the issue. If you have any objections or more informations about the problem please don't hesitate to reopen the issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [MEJB-49] ejb-client: Transitive EJB Dependencies should be of type ejb-client [maven-ejb-plugin]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #83:
URL: https://github.com/apache/maven-ejb-plugin/issues/83#issuecomment-2879263007
**[Roland Bader](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=roland)** commented
I think that you do understand the request as I meant it. I would expect all transient ejb-dependencies of an _ejb_ project to be _ejb-client_ if this project is added as a dependency with `<type>ejb-client</type>`. The reason for this is, that it would not make sense for a client to add an _ejb-client_ for the one project but _ejb_ for any other.
After thinking about it, I have noticed that this behavior might break things at runtime because it would be possible, that the _testcase-ejb2:ejb-client_ depends on classes in _testcase-ejb1:ejb_. That is why I think this is not the way to solve my problem.
The problem I have is that I only want _ejb-client_-dependencies in my Swing client app and only _ejb_-dependencies for my EAR file. But from what I have found out so far is that I can have only one of these configurations but not both simultaneously: When I set the type of the inter-ejb-dependencies to _ejb-client_ the transient ejb-projects are added to the EAR as a lib file. If I set it to type _ejb_ the transient dependencies to other ejb-project will be of type _ejb_.
Maybe I should discuss this issue in a forum or mailing list and not by directly creating an jira issue...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org