I am migrating my build from Ant to Maven. The Ant construct used to compile the "code generator" executes this "code generator", which creates a set of Java and C code. Then he took the generated Java code and compiled it along with some additional code to create a single jar.
I reproduced this in Maven quite easily and works well when I start from the command line, but Eclipse complains and gives me an error related to the pom file
Could not find {group.id}: {artifact.id}: pom: 1.0.0-SNAPSHOT at http: // {our internal site repository} / nexus / content / groups / public was cached in the local repository, permission will not be reloaded until the snapshot refresh interval has expired, or the updates are forced
where group.id and artifact.id are the group and artifact identifier of my code generator plugin
and any code that refers to the generated code is also not compiled.
My maven build consists of
generator project containing only Java code for the code generator.
generator plugin project containing only code to wrap the generator as a Maven plugin. It depends on the design of the generator.
an xyz project that uses a plugin to generate code. The code falls into the target / generated-sources / xxx folder of this project. I configured the build-helper-maven plugin according to Maven with several src directories to include this additional source directory.
If you manually add the generated source folder to the Eclipse build path, all the errors are related to the lack of code in this project, but not for any downstream projects, and the "Failure to find ..." error above.
What puzzles me a bit is that this applies to ...: pom: 1.0.0-SNAPSHOT, when in fact my plugin generator is defined as a maven plugin.
Is this a reasonable approach?
Why am I getting the "Inability to find ..." error?
Why is Eclipse not collecting my folders of generated sources?
I should also say that I have a m2e plugin and a m2e connector for the build-help-maven-plugin installed in my Eclipse IDE.
pauli source share