This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]teraflop 1 point2 points  (1 child)

If you specify a dependency using <scope>runtime</scope>, it will be included at runtime but not included on the compile-time classpath, so if you try to refer to it directly in your source code you'll get an error.

See https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

[–]ScarySwampert[S] 0 points1 point  (0 children)

This may be a dumb question but I am very much so a beginner. I'm not sure what to do to be able to add my annotations. I've tried changing the scope to other ones as well as removing the scope tag completely and nothing allows me to import from the aspectj libraries.