Wednesday, June 29, 2016

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


Hi Team,

Can anyone help me on this.

Thanks
Sai


On Saturday, June 25, 2016 at 11:51:28 AM UTC+5:30, Sai Manoj Athota wrote:
If possible can you post an example.

Thanks
Sai

On Saturday, June 25, 2016 at 11:40:28 AM UTC+5:30, Sai Manoj Athota wrote:
Hi J,

Thanks for the quick reply. Still I am not able to build my project. Can you please have a look at my code as below,

<dependency>
<groupId>com.ex</groupId>
<artifactId>ccmscommon</artifactId>
<version>0.0.1-SNAPSHOT</version>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>com.ex</groupId>
<artifactId>ccmscommon</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>

Where ccmscommon is the common project.

com/ccmscommon.gwt.xml

<?xml version="1.0" encoding="UTF-8"?>
<module>
    <source path="ex" />
</module>

i kept ccmscommon.gwt.xml in package com.

I am inheriting the ccmscommon module in ccms.gwt.xml as below,

<inherits name="com.ccmscommon" />

If you need more information, Please let me know.

Kindly help me to resolve this. Thanks in advance.

Thanks
Sai

On Friday, June 24, 2016 at 7:12:46 PM UTC+5:30, Jens wrote:
GWT also needs source files so you need to add a second dependency to the source artifact using <classifier>sources</classifier>.

You also need a GWT module for your common project and inherit it in your 2nd project's GWT module. Otherwise GWT compiler will not see the code of your common project. The common.gwt.xml file does not have to be bundled in the common artifact, it just needs to be on classpath (e.g. you can place it into your 2nd project's source/resource directory)

-- J.

--
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