I have called the source:jar-no-fork goal in my *-core.pom.xml project (and
als-admin-viewer-core-1.0.0-
sources.jar is generated), and I already add the dependency on the webapps
pom.xml

<dependency>
    <groupId>hk.gov.ehr.service.tch.als</groupId>
    <artifactId>als-admin-viewer-core</artifactId>
    <version>1.0.0</version>
    <classifier>sources</classifier>
</dependency>
in both the <dependencies> section and
<build>...<plugin>..<artifactId>gwt-maven-plugin</artifactId>
<dependencies> section,but the error message is the same

> No source code is available for type
> hk.gov.ehr.service.tch.als.admin.viewer.core.LogSearchCriteria; did you
> forget to inherit a required module?
>
I have checked the als-admin-viewer-core-1.0.0-sources.jar, and the
LogSearchCriteria.java is definitely in the sources.jar, it seems webapp
module still cannot add the dependency of the source...anything I am
missing?

thanks.


On Mon, May 21, 2012 at 6:43 PM, Thomas Broyer <[email protected]> wrote:

>
>
> On Monday, May 21, 2012 12:31:57 PM UTC+2, tong123123 wrote:
>>
>> oh, the pom.xml in the link is quite complex, but in my
>> als-admin-viewer-core pom.xml, I already write
>>
>>> <package>jar</package>
>>>
>> and I found under  als-admin-viewer-core/target, the
>> als-admin-viewer-core-1.0.0.**jar is already created, so what I miss is
>> adding als-admin-viewer-core-1.0.0.**jar as a dependency in
>> als-admin-viewer-webapp.pom.**xml?
>>
>
> That's already the case (from what you said earlier). You need to call the
> source:jar-no-fork goal in your *-core project (it'll generate a an
> *-core-1.0.0-sources.jar in target) and add a dependency on that sources
> JAR (in addition to the "binary" JAR you already have: one is for javac
> –and Eclipse–, the other for GWT):
> <dependency>
>     <groupId>hk.gov.ehr.service.**tch.als</groupId>
>     <artifactId>als-admin-viewer-**core</artifactId>
>     <version>1.0.0</version>
> </dependency>
> <dependency>
>     <groupId>hk.gov.ehr.service.**tch.als</groupId>
>     <artifactId>als-admin-viewer-**core</artifactId>
>     <version>1.0.0</version>
>     <classifier>sources</classifier>
> </dependency>
>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/cBHTSC__TjMJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to