开发者

Using self compiled GWT SDK Version with gwt-maven-plugin

开发者 https://www.devze.com 2023-03-20 07:35 出处:网络
I have a problem declaring dependencies on a new gwt version that I compiled myself and deployed in my own repository. I followed the instructions written here: http://mojo.codehaus.org/gwt-maven-plug

I have a problem declaring dependencies on a new gwt version that I compiled myself and deployed in my own repository. I followed the instructions written here: http://mojo.codehaus.org/gwt-maven-plugin/user-guide/using-different-gwt-sdk-version.html but gwt-maven-plugin seems to be looking for the dependencies only in the central repository. I couldn't find a way to make it search in my rep. Can you tell me how to do that or where I can find a solution?

My configuration looks like this:

   <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <version>2.3.0-1</version>
        <dependencies>
          <dependency>
            <groupId>com.my.groupId</groupId>
            <artifactId>gwt-user</artifactId>
            <version>${gwt.version}</version>
          </dependency>
          <dependency>
            <groupId>com.my.groupId</groupId>
            <artifactId>gwt-dev</artifactId>
            <version>${gwt.version}</version>
          </dependency>
            <groupId>com.my.groupId</groupId>
            <artifactId>requestfactory-server</artifactId>
            <version>${gwt.version}</version>
          </dependency>
        </dependencies> 
                ...

   </plugin>

And I get the error message:

Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact com.my.groupId:requestfactory-server:jar:2.开发者_JAVA百科4.1 in central (http://repo1.maven.org/maven2)

Regards, Arne


The problem seem to me not with gwt, but with requestfactory-server. Is it your custom component?

Try to run maven in offline mode to see if that artifact is copied into your local repository.

mvn --offline

or

mvn -o


Why are you putting requestfactory-server in the plugin's dependencies?

AFAIK it won't make use of it. You'll have to override the gwt-servlet version, that gwt-maven-plugin has a dependency on, with your own ${gwt.version} though (even if I actually don't understand why it has a dependency on it at all)

0

精彩评论

暂无评论...
验证码 换一张
取 消