[ 
http://jira.codehaus.org/browse/MOJO-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99574
 ] 

Jörg Hohwiller commented on MOJO-549:
-------------------------------------

Dear GWT-users. Sorry if it is a little misplaced here but I managed to solve 
the problem with the native libs, for those who care, here is an excerpt of my 
POM. Maybe you can add this hints to the documentation of your plugin:

 <profiles>
    <profile>
      <id>linux</id>
      <activation>
        <os>
          <name>linux</name>
        </os>
      </activation>
      <properties>
        <gwt.variant>linux</gwt.variant>
      </properties>
    </profile>
    <profile>
      <id>windows</id>
      <activation>
        <os>
          <family>windows</family>
        </os>
      </activation>
      <properties>
        <gwt.variant>windows</gwt.variant>
      </properties>
    </profile>
    <profile>
      <id>max</id>
      <activation>
        <os>
          <family>mac</family>
        </os>
      </activation>
      <properties>
        <gwt.variant>mac</gwt.variant>
      </properties>
    </profile>
  </profiles>
  <dependencies>
    <!-- Since gwt-users contains stuff like javax.servlet it is NOT deployed 
(scope "provided") -->
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-user</artifactId>
      <version>${gwt.version}</version>
      <scope>provided</scope>
    </dependency>
    <!-- gwt-servlet is needed for the server -->
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-servlet</artifactId>
      <version>${gwt.version}</version>
      <scope>compile</scope>
    </dependency>
   <!-- gwt-dev is only needed for development and testing -->
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-dev-${gwt.variant}</artifactId>
      <version>${gwt.version}</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-dependency-plugin</artifactId>
         <executions>
          <execution>
            <id>unpack-libs</id>
            <phase>process-sources</phase>
            <goals>
              <goal>unpack</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>com.google.gwt</groupId>
                  <artifactId>gwt-dev-${gwt.variant}</artifactId>
                  <version>${gwt.version}</version>
                  <classifier>libs</classifier>
                  <type>jar</type>
                  
<outputDirectory>${settings.localRepository}/com/google/gwt/gwt-dev-${gwt.variant}/${gwt.version}/</outputDirectory>
                </artifactItem>
              </artifactItems>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>gwt-plugin</artifactId>
        <version>1.0-SNAPSHOT</version>
        <configuration>
          <module>foo.Bar</module>
          <gwtVersion>${gwt.version}</gwtVersion>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>compile</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <properties>
    <gwt.version>1.4.10</gwt.version>
    <gwt.variant>_gwt.variant_unknown_</gwt.variant>
  </properties> 

> submitting new gwt-plugin
> -------------------------
>
>                 Key: MOJO-549
>                 URL: http://jira.codehaus.org/browse/MOJO-549
>             Project: Mojo
>          Issue Type: New Feature
>          Components: Plugin Submission
>         Environment: Gentoo Linux, maven-2.0.4, java build Blackdown-1.4.2-03
>            Reporter: kristian meier
>         Attachments: gwt-plugin.tar.gz, gwt-plugin2.tar.gz, 
> gwt-plugin3.tar.gz, gwt-plugin_forkShellParam.patch.txt
>
>
> after asking the mojo-mailing list if there is interest in a 
> gwt-maven-plugin, I hereby attaching the plugin code. I tried to obey the 
> developer guidelines, but I have to admint I did have quite a struggle with 
> it. so any feedback is welcome.
> I wanted to contribute a plugin with which you can compile GWT applications 
> (code.google.com/gwt) from within maven. actually I have also two archetypes 
> along with this plugin, but I do not know how to incorporate these in the 
> given plugin structure of codehaus. so I just took the plugin tried to follow 
> the guidelines as much as possible and added some documentation to it. 
> the best understanding you get if you follow the example from the docu. I 
> also stopped at a certain point, because first I want to see what Codehaus is 
> doing with this and how I can contribute to this plugin when it is part of 
> the mojo-project. 
> with best wishes
> Kristian

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to