marcomei / freshbooks-api-java-client

Automatically exported from code.google.com/p/freshbooks-api-java-client
0 stars 0 forks source link

Maven dependencies on non-existant "gwt" snapshot #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the build with a blank m2 repo
2. See errors resolving
3.

What is the expected output? What do you see instead?
Expecting successful build

ravi@sjclrluthra:~/projects/jbtutors/freshbooks-api$ mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building freshbooksApiClient
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).

Project ID: org.codehaus.mojo:gwt-maven-plugin

Reason: POM 'org.codehaus.mojo:gwt-maven-plugin' not found in repository:
Unable to download the artifact from any repository

  org.codehaus.mojo:gwt-maven-plugin:pom:1.2-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

 for project org.codehaus.mojo:gwt-maven-plugin

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Sep 15 22:26:47 PDT 2009
[INFO] Final Memory: 4M/73M
[INFO] ------------------------------------------------------------------------

What version of the product are you using? On what operating system?
Ubuntu 9.04, Java 6 64bit - likely affects all OSes

Please provide any additional information below.
The removal of the gwt plugin in my locally downloaded pom, as well as the
gwt deps fixed the build problem, will investigate if there are other issues.

Thanks for the library

Original issue reported on code.google.com by cod...@gmail.com on 16 Sep 2009 at 5:30

GoogleCodeExporter commented 9 years ago
I'm not using maven any more, but if you look at the docs at 
http://mojo.codehaus.org/gwt-maven-plugin/ you might find out how to keep the 
plugin enabled.

Go ahead and send me the new pom.xml without or without the mavenplugin and I 
can stick it in there for others' benefit.

Original comment by dob...@gmail.com on 22 Jun 2010 at 6:17

GoogleCodeExporter commented 9 years ago
Here is a pom without gwt:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <!--
        GWT-Maven example POM without google.webtoolkit.home SET (GWT as deps)
    -->
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.freshbooks</groupId>
    <artifactId>freshbooksApiClient</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>freshbooksApiClient</name>
    <description>Client library to access the freshbooks API from java programs</description>

    <properties>
        <target.dir>.target</target.dir>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <build>
        <directory>${target.dir}</directory>

        <resources>
          <resource>
            <directory>src/main/java</directory>
            <excludes><exclude>**/.svn</exclude></excludes>
          </resource>
          <resource>
            <directory>src/main/resources</directory>
            <excludes><exclude>**/.svn</exclude></excludes>
          </resource>
        </resources> 
        <testResources>
          <testResource>
            <directory>src/test/java</directory>
            <excludes><exclude>**/.svn</exclude></excludes>
          </testResource>
          <testResource>
            <directory>src/test/resources</directory>
            <excludes><exclude>**/.svn</exclude></excludes>
          </testResource>
        </testResources>

        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>
            <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-source-plugin</artifactId>
               <executions>
                   <execution>
                       <id>attach-sources</id>
                       <goals>
                           <goal>jar</goal>
                       </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>  
    </build>
    <dependencies>
        <!-- GWT dependencies (from maven "central" repo) -->
        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.3</version>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.0.1</version>
        </dependency>
        <dependency>
            <groupId>commons-httpclient</groupId>
            <artifactId>commons-httpclient</artifactId>
            <version>3.1</version>
        </dependency>
        <dependency>
            <!-- Does not work with versions > 1.3 right now, need to figure that out -->
            <groupId>com.thoughtworks.xstream</groupId>
            <artifactId>xstream</artifactId>
            <version>1.3</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.5.8</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>jcl-over-slf4j</artifactId>
            <version>1.5.8</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-jdk14</artifactId>
            <version>1.5.8</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.7</version>
            <type>jar</type>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.7</version>
            <type>jar</type>
            <scope>provided</scope>
        </dependency>
    </dependencies>

</project>

Original comment by nafe...@gmail.com on 18 Jul 2011 at 9:56

GoogleCodeExporter commented 9 years ago
This version of the pom.xml worked for me as well. Hope this get merged into 
the trunk. Thanks!

Original comment by amarques...@gmail.com on 21 Sep 2011 at 2:44