"Cannot find symbol" or "could not find artifact" when referencing parent dir's pom.xml
Henri Tremblay
henri.tremblay at gmail.com
Thu Sep 7 02:14:51 UTC 2017
You seem to have Maven problems. Not JMH problems.
If your benchmark is a module of the parent and your other project too, the
maven reactor should find them without problem when compiling from the
root. That's what you did looking at your code so it should work (you
should depend on the right version as well).
Having an app module, a benchmark module and a parent pom is the way to go
according to me.
On 6 September 2017 at 16:44, Chris <seahen123 at gmail.com> wrote:
> Update: managed to fix this by moving the parent pom.xml into a new sibling
> module. Shouldn't archetype:generate do this automatically when the project
> is initially a single-module one?
>
> On Tue, Sep 5, 2017 at 4:17 PM Chris <seahen123 at gmail.com> wrote:
>
> > PS. In case it makes a difference, I'm *very* new to the idea of having
> > more than one pom.xml in the same project (where "project" means
> everything
> > that goes in one GitHub repo).
> >
> > On Tue, Sep 5, 2017 at 4:16 PM Chris <seahen123 at gmail.com> wrote:
> >
> >> After running the recommended archetype:generate and trying everything I
> >> can think of, I always either get "cannot find symbol" or "Could not
> find
> >> artifact
> >> io.github.pr0methean.betterrandom:BetterRandom:jar:0.9.1.2-SNAPSHOT".
> What
> >> do I need to do to get the child pom.xml to recognize the parent as a
> >> source? Would it be possible to merge them into one? Both are attached.
> >>
> >
>
More information about the jmh-dev
mailing list