Skip to content

antlr Packaging Error #199

@Devin-64

Description

@Devin-64

When looking at the Project with VSCode as an IDE it shows every instance of "import gov.nist.csd.pm.core.pap.pml.antlr..." failing. I eventually traced this to Line 40 of the pom.xml file and when I changed "${project.build.directory}/generated-sources/gov/nist/csd/pm/core/pap/pml/antlr" to "target/generated-sources" while adding the bellow to my settings I was able to get it to properly work. I am unsure if there is another alternative or if it messes with development with IntelliJ but it does compile sucessfully with "mvn clean compile" and "mvn clean generate-sources". It may also be possible to just move where it compiles to so that the IDE has an easier time seeing it.

In .vscode/settings.json:
"java.project.sourcePaths": [
"src/main/java",
"target/generated-sources"
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions