question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot compile war file from IntelliJ

See original GitHub issue

Thanks for creating this project! I am trying to add vue-gwt to an existing project I have in IntelliJ and superdevmode is working great 👍

But when I try to compile to a war using the gwt compiler I get the following errors:

 [ERROR] Errors in 'jar:file:/Users/abm/UddataPlus/portal/lib/vue-gwt-1.0-beta-9.jar!/com/axellience/vuegwt/core/client/component/options/VueComponentOptions.java'
      [ERROR] Line 43: No source code is available for type javax.inject.Provider<T>; did you forget to inherit a required module?
   Tracing compile failure path for type 'com.axellience.vuegwt.core.client.component.options.VueComponentOptions'
      [ERROR] Errors in 'jar:file:/Users/abm/UddataPlus/portal/lib/vue-gwt-1.0-beta-9.jar!/com/axellience/vuegwt/core/client/component/options/VueComponentOptions.java'
         [ERROR] Line 43: No source code is available for type javax.inject.Provider<T>; did you forget to inherit a required module?
      [ERROR] Errors in 'jar:file:/Users/abm/UddataPlus/portal/lib/vue-gwt-1.0-beta-9.jar!/com/axellience/vuegwt/core/client/directive/options/VueDirectiveOptions.java'
         [ERROR] com.axellience.vuegwt.core.client.directive.VueDirective cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/Users/abm/UddataPlus/portal/lib/vue-gwt-1.0-beta-9.jar!/com/axellience/vuegwt/core/client/component/IsVueComponent.java'
         [ERROR] com.axellience.vuegwt.core.client.component.VueComponent cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/Users/abm/UddataPlus/portal/lib/vue-gwt-1.0-beta-9.jar!/com/axellience/vuegwt/core/client/directive/VueDirective.java'
         [ERROR] com.axellience.vuegwt.core.client.vnode.VNode cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/Users/abm/UddataPlus/portal/lib/vue-gwt-1.0-beta-9.jar!/com/axellience/vuegwt/core/client/component/VueComponent.java'
         [ERROR] com.axellience.vuegwt.core.client.component.options.VueComponentOptions cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/Users/abm/UddataPlus/portal/lib/vue-gwt-1.0-beta-9.jar!/com/axellience/vuegwt/core/client/vnode/VNode.java'
         [ERROR] com.axellience.vuegwt.core.client.component.IsVueComponent cannot be resolved to a type

I have included all transitive dependencies with the library. I am not sure how to move forward and get a build working.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
adrienbaroncommented, Oct 1, 2018

I got it working by adding the interface files from javax.inject directly to my src folder. I don’t know if it is because this file does not have any source path defined?

It might be? If you have time could you try to fix it? You can fork the project and clone the develop branch, do the change, mvn clean install it and then try to depend to the Beta-10 SNAPSHOT on your project to see if it fix it 👍. That would be a great first PR 👍

1reaction
adrienbaroncommented, Sep 27, 2018

Thank you for creating the issue 👍 . Are you using either GIN or Dagger2 in your project? Vue GWT creates the injection methods in the generated component factories, in case you inject them, so apparently the GWT compiler can’t find the source for those interfaces? Not sure why it works in Maven and not in your case though 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Intellij to Build War and Deploy to Tomcat - Stack Overflow
This creates a target directory with a WAR file. I copy that war file into the webapps directory of my Tomcat.
Read more >
War file does not get created – IDEs Support (IntelliJ Platform)
I am trying to get IntelliJ to automatically assemble and deploy my war file to a specified directory, but for some reason this...
Read more >
IntelliJ does not create WAR properly files for run/debug ...
IntelliJ does not create WAR properly files for run/debug. Missing files from webapps folder. · Make sure tomcat is installed (I used 8.0.5)...
Read more >
Not able to build WAR correctly for Java Enterprise
{{ (>_<) }} This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong. User...
Read more >
Configure Web application deployment - IntelliJ IDEA - JetBrains
Open the Project Structure dialog (e.g. Ctrl+Alt+Shift+S ). · Click Artifacts to open the Artifacts page. · Do one of the following: To...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found