Announcement Announcement Module
Collapse
No announcement yet.
STS Maven Plugin no Resolving Depencies Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • STS Maven Plugin no Resolving Depencies

    Hi Guys,

    This is driving me absolutely nuts!

    Here is my pom file;

    Code:
    <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/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>uk.co.grayfox.ases</groupId>
      <artifactId>ases</artifactId>
      <version>0.0.1-SNAPSHOT</version>	
    
    	<repositories>
    		<repository>
    			<id>repository.jboss.org-public</id>
    			<name>JBoss.org Maven repository</name>
    			<url>https://repository.jboss.org/nexus/content/groups/public</url>
    		</repository>
    	</repositories>
    
      <dependencies>
      	<dependency>
      		<groupId>org.codehaus.jackson</groupId>
      		<artifactId>jackson-core-asl</artifactId>
      		<version>1.4.3</version>
      		<type>jar</type>
      		<scope>compile</scope>
      	</dependency>
      	<dependency>
      		<groupId>commons-codec</groupId>
      		<artifactId>commons-codec</artifactId>
      		<version>1.3</version>
      		<type>jar</type>
      		<scope>compile</scope>
      	</dependency>
      	<dependency>
      		<groupId>commons-logging</groupId>
      		<artifactId>commons-logging</artifactId>
      		<version>1.1.1</version>
      		<type>jar</type>
      		<scope>compile</scope>
      	</dependency>
      	<dependency>
      		<groupId>stax</groupId>
      		<artifactId>stax-api</artifactId>
      		<version>1.0.1</version>
      		<type>jar</type>
      		<scope>compile</scope>
      	</dependency>
      	<dependency>
      		<groupId>stax</groupId>
      		<artifactId>stax</artifactId>
      		<version>1.2.0</version>
      		<type>jar</type>
      		<scope>compile</scope>
      	</dependency>
      	<dependency>
      		<groupId>javax.mail</groupId>
      		<artifactId>mail</artifactId>
      		<version>1.4.3</version>
      		<type>jar</type>
      		<scope>compile</scope>
      	</dependency> 	
      </dependencies>
    </project>
    Everything works fine til I add another dependency;

    Code:
      	<dependency>
      		<groupId>com.amazonaws</groupId>
      		<artifactId>aws-java-sdk</artifactId>
      		<version>1.2.15</version>
      	</dependency>
    then suddenly I receive the following error messages:

    Code:
    21/01/12 18:37:12 GMT: [WARN] The POM for org.codehaus.jackson:jackson-core-asl:jar:1.7.0-SNAPSHOT-20101126.221009-1 is missing, no dependency information available
    21/01/12 18:37:12 GMT: Missing artifact org.codehaus.jackson:jackson-core-asl:jar:1.4.3:compile
    21/01/12 18:37:12 GMT: Missing artifact commons-codec:commons-codec:jar:1.3:compile
    21/01/12 18:37:12 GMT: Missing artifact commons-logging:commons-logging:jar:1.1.1:compile
    21/01/12 18:37:12 GMT: Missing artifact stax:stax-api:jar:1.0.1:compile
    21/01/12 18:37:12 GMT: Missing artifact stax:stax:jar:1.2.0:compile
    21/01/12 18:37:12 GMT: Missing artifact javax.mail:mail:jar:1.4.3:compile
    21/01/12 18:37:12 GMT: Missing artifact javax.activation:activation:jar:1.1:compile
    21/01/12 18:37:12 GMT: Missing artifact com.amazonaws:aws-java-sdk:jar:1.2.15:compile
    21/01/12 18:37:12 GMT: Missing artifact org.apache.httpcomponents:httpclient:jar:4.2-alpha2-SNAPSHOT:compile
    21/01/12 18:37:12 GMT: Missing artifact org.apache.httpcomponents:httpcore:jar:4.2-alpha2:compile
    21/01/12 18:37:12 GMT: Maven Builder: AUTO_BUILD
    I run mvn compile from the command line and it has no problem building. So its definitely a sts problem. I check my maven installation in sts and its pointing to the external one I'm using on the command line. There are no settings files in my home directory so that couldn't be affecting anything.

    The error message complains about not being able to find jackson dependency information, so I add an exclusion to the aws dependency for jackson. Same problem!!

    Can someone please point out the obvious (if there is one) before I pull the rest of my hair out.

    Cheers

  • #2
    Hey!

    I am afraid I can provide no help here directly, but I would ask this question also on the m2e forum at Eclipse:
    http://www.eclipse.org/forums/index.php/f/61/

    HTH,
    Martin

    Comment

    Working...
    X