History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-15735
Type: New Feature New Feature
Status: Open Open
Assignee: Anton Makeev
Reporter: Igor Karpov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Add possibility to execute maven goal from super-module.

Created: 15 Oct 07 20:41   Updated: 18 Oct 07 18:55
Component/s: Maven Integration

Build: 7,343


 Description  « Hide
Let's suppose, that there is a compond maven project

project
module1
module2
...

(modules are referenced from main pom.xml with <module>)

Clicking on a goal (e.g. "compile") of the module will start maven with that goal on that project.
This is ok, but if the module has dependencies on other modules from the same project, they have to be packaged and installed in the local repository, otherwise the build will fail.

during development it often not necessary at all to package individual modules and install them into local repository.
E.g., to compile just module "module1", it is possible to run mvn on main module (=project) with parameters -DgroupId=mygroup -DartifactId=module1. In this case, the module (and all modules it depends upon) will be built without packaging and installations.

It would be nice to support this use case in idea as well: e.g., to have some checkbox to control how goals of sub-modules are executed: either directly (like now) or via their supermodule (+ supply -DgroupId=mygroup -DartifactId=module1)



 All   Comments   Work Log   Change History      Sort Order:
Igor Karpov - 18 Oct 07 18:20
Perhaps it's not so valid use case, but I saw it in some book (Better builds with Maven?)
It seem to work with 'compile' but fails with 'test' - so either it's maven bug or I used it incorrectly.

Anton Makeev - 18 Oct 07 18:55
I haven't find any documentation on such usage (compile -DgroupId -DartifactId). And couldn't make maven to behave as you described.
Could you please give me the link to such info?