On 16 November 2011 19:18, Juan Pablo Gardella
<[email protected]> wrote:
> Here you can see a sample (browse the source):
> gwt-sample (Spring, JPA2)
> In this site you can check how configure the module.
> And some answers:
>>I don't understand why should I do the last two steps. My project has
>>a dependency to apache beanutils managed by maven, but my problem is
>    Yes, maven know, but GWT compiler needs the information that where it can
> find sources. This kind of information is defined in your modules.

I think I give it up. I followed your example and the problem is the
same. I put into pom.xml file of my gwt project this:

<dependency>
            <groupId>commons-beanutils</groupId>
            <artifactId>commons-beanutils</artifactId>
            <version>1.8.3</version>
        </dependency>
        <dependency>
            <groupId>commons-beanutils</groupId>
            <artifactId>commons-beanutils</artifactId>
            <version>1.8.3</version>
            <classifier>sources</classifier>
            <scope>provided</scope>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
            <version>1.1.1</version>
        </dependency>
        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
            <version>1.1.1</version>
            <classifier>sources</classifier>
            <scope>provided</scope>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>commons-collections</groupId>
            <artifactId>commons-collections</artifactId>
            <version>3.2.1</version>
        </dependency>
        <dependency>
            <groupId>commons-collections</groupId>
            <artifactId>commons-collections</artifactId>
            <version>3.2.1</version>
            <classifier>sources</classifier>
            <scope>provided</scope>
            <type>jar</type>
        </dependency>

Because I've found in your example this:

<!-- Nos permite usar jsr-330 -->
                <dependency>
                        <groupId>javax.inject</groupId>
                        <artifactId>javax.inject</artifactId>
                        <version>1</version>
                </dependency>
                <!-- Necesario para compilar con GWT -->
                <!-- Ref: 
http://code.google.com/p/gwt-maven/issues/detail?id=47#c15 -->
                <dependency>
                        <groupId>javax.inject</groupId>
                        <artifactId>javax.inject</artifactId>
                        <version>1</version>
                        <classifier>sources</classifier>
                        <scope>provided</scope>
                        <type>jar</type>
                </dependency>

I've inherited the commons-beanutils package in this way:
<inherits name="commons-beanutils" />

I created a directory named "commons" and I put the beanutils.gwt.xml
file into it and the structure looks like this:
com/sayusiando/java/dilib/
com/sayusiando/java/dilib/DiLibWebClient.gwt.xml
com/sayusiando/java/dilib/commons
com/sayusiando/java/dilib/commons/beanutils.gwt.xml

The beanutils.gwt.xml file contains this:
<module rename-to="beanutils">
  <source path="beanutils"></source>
</module>
But there is no further "beanutils" directory under
"com/sayusiando/java/dilib/commons" because it doesn't needed, or  is
it needed? How on earth the source placed here? Maven will do it or I
have to do it? I compiled your project and it's compiled without any
error, but to be honest, I don't have any idea why yours is working
and why mine is not.
So, I got the error there is no package "beanutils" when I would like
to compile the project.

Long story short, I don't have any idea how can I use the
commons-beanutils package, a third party open source package, from
Apache Foundation in my gwt project.


-- 
- -
--  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
http://facebook.com/andras.csanyi
--  ""Trust in God and keep your gunpowder dry!" - Cromwell

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