maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Glick <andygl...@gmail.com>
Subject Re: Help on dependency
Date Tue, 06 Sep 2011 19:26:19 GMT
Vincent,

What version of Maven are you using? I created a project using "mvn 
archetype:generate", and pasted the information that you sent with your 
email into that project's pom. It worked for me. I am using Maven 3.0.3.

If this remains an issue, you might try the maven-dependency-plugin or 
the version-maven-plugin and see if they can provide more information 
about what is going wrong.

In particular, you might want to to execute the dependency plugin's 
dependency:resolve-plugins goal.

The versions plugin gives you the ability to:

1) find out which dependencies in your project have newer versions
2) update out of date dependencies should you choose to

On 9/6/11 12:14 PM, Vinicius Carvalho wrote:
> Hi, I've been fighting this for hours now. Don't know what to do anymore.
>
> Here's my pom:
>
> <properties>
> <java-version>1.6</java-version>
> <org.springframework.social-version>1.0.0.BUILD-SNAPSHOT</org.springframework.social-version>
> <org.springframework-version>3.1.0.M2</org.springframework-version>
> <org.springframework.security-version>3.1.0.CI-SNAPSHOT</org.springframework.security-version>
> <org.slf4j-version>1.6.1</org.slf4j-version>
> <aspectj.version>1.6.12.M1</aspectj.version>
> </properties>
> <dependencies>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-webmvc</artifactId>
> <version>${org.springframework-version}</version>
> </dependency>
> <dependency>
> <groupId>org.springframework.data</groupId>
> <artifactId>spring-data-neo4j</artifactId>
> <version>1.1.0.RELEASE</version>
> <exclusions>
> <exclusion>
> <groupId>org.springframework</groupId>
> <artifactId>spring-tx</artifactId>
> </exclusion>
> <exclusion>
> <groupId>org.springframework</groupId>
> <artifactId>spring-beans</artifactId>
> </exclusion>
> <exclusion>
> <groupId>org.springframework</groupId>
> <artifactId>spring-context</artifactId>
> </exclusion>
> <exclusion>
> <groupId>org.springframework</groupId>
> <artifactId>spring-orm</artifactId>
> </exclusion>
>
> </exclusions>
> </dependency>
>
> <dependency>
> <groupId>javax.validation</groupId>
> <artifactId>validation-api</artifactId>
> <version>1.0.0.GA</version>
> </dependency>
> <dependency>
> <groupId>org.hibernate</groupId>
> <artifactId>hibernate-validator</artifactId>
> <version>4.1.0.Final</version>
> </dependency>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-jdbc</artifactId>
> <version>${org.springframework-version}</version>
> </dependency>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-tx</artifactId>
> <version>${org.springframework-version}</version>
> </dependency>
> <dependency>
> <groupId>org.springframework.security</groupId>
> <artifactId>spring-security-web</artifactId>
> <version>${org.springframework.security-version}</version>
> </dependency>
> <dependency>
> <groupId>org.springframework.security</groupId>
> <artifactId>spring-security-taglibs</artifactId>
> <version>${org.springframework.security-version}</version>
> </dependency>
> <dependency>
> <groupId>org.springframework.security</groupId>
> <artifactId>spring-security-config</artifactId>
> <version>${org.springframework.security-version}</version>
> </dependency>
>
> <dependency>
> <groupId>org.springframework.social</groupId>
> <artifactId>spring-social-core</artifactId>
> <version>${org.springframework.social-version}</version>
> </dependency>
> <dependency>
> <groupId>org.springframework.social</groupId>
> <artifactId>spring-social-web</artifactId>
> <version>${org.springframework.social-version}</version>
> </dependency>
>
> <dependency>
> <groupId>cglib</groupId>
> <artifactId>cglib-nodep</artifactId>
> <version>2.2</version>
> </dependency>
> <dependency>
> <groupId>javax</groupId>
> <artifactId>javaee-web-api</artifactId>
> <version>6.0</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.springframework.social</groupId>
> <artifactId>spring-social-twitter</artifactId>
> <version>${org.springframework.social-version}</version>
> </dependency>
> <dependency>
> <groupId>commons-dbcp</groupId>
> <artifactId>commons-dbcp</artifactId>
> <version>1.4</version>
> </dependency>
> <dependency>
> <groupId>javax.servlet.jsp.jstl</groupId>
> <artifactId>jstl-api</artifactId>
> <version>1.2</version>
> <exclusions>
> <exclusion>
> <groupId>javax.servlet</groupId>
> <artifactId>servlet-api</artifactId>
> </exclusion>
> <exclusion>
> <groupId>javax.servlet.jsp</groupId>
> <artifactId>jsp-api</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
> <dependency>
> <groupId>org.glassfish.web</groupId>
> <artifactId>jstl-impl</artifactId>
> <version>1.2</version>
> <exclusions>
> <exclusion>
> <groupId>javax.servlet</groupId>
> <artifactId>servlet-api</artifactId>
> </exclusion>
> <exclusion>
> <groupId>javax.servlet.jsp</groupId>
> <artifactId>jsp-api</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
> <dependency>
> <groupId>mysql</groupId>
> <artifactId>mysql-connector-java</artifactId>
> <version>5.1.17</version>
> </dependency>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>4.8.2</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-api</artifactId>
> <version>${org.slf4j-version}</version>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>jcl-over-slf4j</artifactId>
> <version>${org.slf4j-version}</version>
> <scope>runtime</scope>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-log4j12</artifactId>
> <version>${org.slf4j-version}</version>
> <scope>runtime</scope>
> </dependency>
> <dependency>
> <groupId>log4j</groupId>
> <artifactId>log4j</artifactId>
> <version>1.2.16</version>
> <scope>runtime</scope>
> </dependency>
> <dependency>
> <groupId>org.aspectj</groupId>
> <artifactId>aspectjtools</artifactId>
> <version>${aspectj.version}</version>
> </dependency>
> </dependencies>
> <repositories>
> <repository>
> <id>org.springframework.maven.release</id>
> <name>Spring Maven Release Repository</name>
> <url>http://maven.springframework.org/release</url>
> <releases>
> <enabled>true</enabled>
> </releases>
> <snapshots>
> <enabled>false</enabled>
> </snapshots>
> </repository>
>
> <!-- For testing against latest Spring snapshots -->
> <repository>
> <id>org.springframework.maven.snapshot</id>
> <name>Spring Maven Snapshot Repository</name>
> <url>http://maven.springframework.org/snapshot</url>
> <releases>
> <enabled>false</enabled>
> </releases>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> </repository>
> <!-- For developing against latest Spring milestones -->
> <repository>
> <id>org.springframework.maven.milestone</id>
> <name>Spring Maven Milestone Repository</name>
> <url>http://maven.springframework.org/milestone</url>
> <snapshots>
> <enabled>false</enabled>
> </snapshots>
> </repository>
> </repositories>
> <build>
> <finalName>tweepology</finalName>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>aspectj-maven-plugin</artifactId>
> <version>1.2</version>
> <dependencies>
> <dependency>
> <groupId>org.aspectj</groupId>
> <artifactId>aspectjrt</artifactId>
> <version>${aspectj.version}</version>
> </dependency>
> <dependency>
> <groupId>org.aspectj</groupId>
> <artifactId>aspectjtools</artifactId>
> <version>${aspectj.version}</version>
> </dependency>
> </dependencies>
> <executions>
> <execution>
> <goals>
> <goal>compile</goal>
> <goal>test-compile</goal>
> </goals>
> </execution>
> </executions>
> <configuration>
> <outxml>true</outxml>
> <aspectLibraries>
> <aspectLibrary>
> <groupId>org.springframework</groupId>
> <artifactId>spring-aspects</artifactId>
> </aspectLibrary>
> <aspectLibrary>
> <groupId>org.springframework.data</groupId>
> <artifactId>spring-data-neo4j</artifactId>
> </aspectLibrary>
> </aspectLibraries>
> <source>1.6</source>
> <target>1.6</target>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
> After adding the aspectj build plugin, maven compilation fails saying that
> it can't find the plugin. What is keeping me crazy is that ALL dependencies
> are on my .m2 directory. So why it complains about not finding the mojo
> plugin or its dependencies?
>
> I'm stuck with that any help would be great
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message