I am making a javaEE project. I imported a project from my computer as a maven project (Import->Import as maven project) The project has many javascript files in the source folder. Eclipse is not showing outline of my javascript files. '
However when i imported the project as a javascript project the outline was shown correctly!!
How can i make the outline correct when i import it as a maven project?
The Java build path is used while compiling a Java project to discover dependent classes . It is made up of the following items − Code in the source folders. Jars and classes folder associated with the project. Classes and libraries exported by projects referenced by this project.
I just answered this for another question, very similar to yours.
You need to add the JavaScript "nature" to the project (basically, tell Eclipse to treat it as a JavaScript project). Right-click on the project and choose Configure > Convert to JavaScript Project....
After doing that you should see a Builder named "JavaScript Validator" and have the JavaScript section in the properties.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With