MavenPlugin icon indicating copy to clipboard operation
MavenPlugin copied to clipboard

No support for multi module maven project - Can't share resources as dependencies

Open atmcarmo opened this issue 11 years ago • 3 comments

It seems that Robot Framework Maven Plugin is not focused on multi module and multi level maven projects. Imagine the following case: -- Module A ---- Module A1 (contains Test1.txt) ---- Module A2 (contains Test2.txt) -- Module B (contains resources.txt and library.jar)

I want to put my resources and libraries files in module B so that they can be used all over my maven project (module A1 and A2, in this case). I should be able to define Module B as a dependency of Modules A1 and A2, and use it resources.

Is this possible? I always get the message that resources.txt doesn't exist. I don't want to use relative paths, because the project configuration may change over time.

The same problem applies to libraries, but I can overcome it by installing library.jar file in my maven repository.

Regarding to resources, I can't do that, which is a major problem.

Is this possible? If not, please consider adding the support for multi module and multi level maven projects.

Thank you very much

atmcarmo avatar Feb 18 '14 16:02 atmcarmo

You are right in that multi module projects have not been considered. In fact I have never written a multi module project in my life. My own Maven usage has been limited to our own robot framework projects, which are very simple and small in the end.

Currently I am very busy with other projects and I don't have time to start learning how to support such projects better.. at least not until NSN (the project's sponsor) requests that.

If you (or anybody else) has an idea how to improve multi module project support, pull requests are very welcome! Just giving some design suggestions is also welcome, but probably won't be enough for me to start implementing them in the near future.

jussimalinen avatar Feb 18 '14 18:02 jussimalinen

I don't have experience in developing maven plugins, but I will take a look a try to suggest some solution.

atmcarmo avatar Mar 13 '14 15:03 atmcarmo

We had actually same need at one project, and the workaround for this was to use maven to extract those RF resources from zip-file. Somehow that might be the only way, and that creates an issue how to refer to those RF files as they can't probably be used through classpath.

Hi-Fi avatar Dec 07 '18 08:12 Hi-Fi