[
https://issues.jboss.org/browse/FORGE-388?page=com.atlassian.jira.plugin....
]
Serhiy V commented on FORGE-388:
--------------------------------
According to latest comments in FORGE-120 I see how to create "pom" type of
project. Obviously the same way I can create "war" or "jar"projects.
I can run something like
{code}
new-project --named foo --topLevelPackage com.bar --type pom
new-project --named foo-data --topLevelPackage com.bar --type jar
new-project --named foo-web --topLevelPackage com.bar --type war
{code}
but it is still needed to setup dependencies between sub-projects (modules) manually. In
is possible to add some helper commands like
{code}
project add-subproject --named foo-data --type jar
{code}
But frankly speaking this is not really important. Instead we can have a simple one-page
official documentation that explains people how to setup such projects. I would prefer
having more documentation and less commands :-). Could you please add some documentation
which covers this?
Other issue is that is some cases in order to use some functionality you first needs to
"setup" something. For example, in order to create new entity classes you need
to run
{code}
persistence setup ...
{code}
It obviously makes seance. But if you really want to support multi-module projects this
approach will not work. Default behavior should stay the same. But I propose to introduce
alternative way to add "persistence awareness" to the project through plugins.
Something like
{code}
forge install-plugin jpa
{code}
This "new" plugin will not add persistence.xml to the project but will rather
add proper dependencies to pom.xml and will enable possibility to work with entities using
seam commands.
Same approach can be used to other plugins that require setup before usage.
Another example I want to talk about is the automatic discovery functionality. For example
{code}
scaffold from-entity
{code}
and "tab" gives the list of all available entities. Forgive me for not trying
this by myself but I had some issues last time when I tried to setup this. I am not sure
if this list if only from "current" project or forge does scans also jars in
dependencies to check if they have appropriate classes.
But anyway the most important thing is some official documentation or guide how to work
with multiple modules using seam. There is no need to support everything or all possible
features. I am absolutely positive that even very limited (but documented and supported
:-)) multi-module support would very helpful and absolutely ok in most cases.
Thanks,
Serhiy
Better support for multi-modules projects in FORGE
--------------------------------------------------
Key: FORGE-388
URL:
https://issues.jboss.org/browse/FORGE-388
Project: Forge
Issue Type: Feature Request
Components: Forge Build, Maven Integration, Shell
Affects Versions: 1.0.0.Beta3
Environment: Any
Reporter: Serhiy V
Assignee: Torben Jaeger
By default "new-project" command creates a simple "war" project with
everything inside. This is good for simple projects. But in real world scenario you will
most likely would like to split your project on few modules - e.g. "common",
"integration", "business" and "ui".
How to do this with FORGE? Well, it's still a maven projects so you can manually edit
pom.xml files and add necessary dependencies and changes.
But will FORGE be able to setup JPA in "integration" module (should be packaged
as jar) and use it "ui" module which should be packages as war? Same questions
with other functionality like ability to have EJBs in "business" and test them
with arquillian.
And what about EAR support?
I can't find any documentation or samples howto do this with current FORGE. List of
all available commands does not return anything that can be used to break projects into
modules or add existing projects to the current project as new modules.
There is a FORGE-120 issue. ButI've just downloaded
forge-distribution-1.0.0.Beta3.zip and there is no such functionality there.
From my point of view it is really important to support complex projects but not just
simple single war projects.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira