On Sun, Dec 29, 2019 at 3:36 PM Krzysztof <[email protected]> wrote:

> Hi Justin,
>
> When I try to run $ mvn package I'm getting the following error:
>
> Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
> (default-compile) on project artemis-core-client: Fatal error compiling
>
> The same is when I run tests using maven: $ mvn -Ptests test
>
> When I try to run tests from IDE I get these compilation errors:
>
> Error:(24, 55) java: package
> org.apache.activemq.artemis.selector.hyphenated does not exist
> Error:(25, 51) java: package org.apache.activemq.artemis.selector.strict
> does not exist
>

This is because the files should be generated during the build process, but
intellij does not generate them. There are three options what to do

1) click the "Generate sources and update folders for all projects" button
on the Maven panel
https://stackoverflow.com/questions/54868822/generate-sources-and-update-folders-for-all-projects,
or invoke the action through the Ctrl-Shift-A or triple-shift shortcut
dialog https://blog.jetbrains.com/idea/2009/06/find-action-saves-time/.
2) run `mvn generate`, because both intellij and maven use the ./target
directories for build results

-- 
Mit freundlichen Grüßen / Kind regards
Jiri Daněk

Reply via email to