Friday, June 24, 2016

Adding Java modules as dependencies in GWT Maven project with plugin 2.7.0

Hi Team,

We have 2 maven projects where the 1st is pure java module called "common" which is used by some other pure java maven projects also.
And the 2nd is Gwt maven module. I want to include the 1st module in gwt module as maven dependency.  Can you please provide the steps to do it. I tried as below,

Included 1st project as dependency in 2nd project's pom as below,

<dependency>
<groupid>com.ex<groupid>
<artifactid>example</artifactid>
<version>0.0.1-SNAPSHOT</version>
</dependency>

But getting the error as below,

 No source code is available for type com.ex.Example did you forget to inherit a required module?

Where com.ex.Example is the Java class from 1st maven module.

Kindly assist me to achieve this.

Thanks
Sai

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment