On 10/5/06, Javier Leyba <[EMAIL PROTECTED]> wrote:
Well, this is my problem.
...
When I run mvn compile I got: Downloading: http://ibiblio.lsu.edu/main/pub/packages/maven2/jboss/jboss-client/ 4.0.3/jboss-client-4.0.3.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org /maven2)
...
La sintaxis del comando no es correcta.
...
As I´ve declared dependencies correctly and my repo is right too I couldn´t understand why I receive a lot of "cannot resolve symbol" messages.
Where did <scope>main</scope> come from? It is not listed as a dependency scope here: http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html Maven is trying to download poms, which means they are not in your local repository. (Maven needs both the jar, and a pom which describes the jar and its dependencies.) How did you put the dependencies in your local repo? If you used 'mvn install:install-file' then do them again with -DgeneratePom=true. Consider using group ids that already exist for your dependencies. For example, iBATIS is here: http://www.ibiblio.org/maven2/com/ibatis/ibatis-sqlmap/ . So that would be <groupId>com.ibatis</groupId> in pom.xml and -DgroupId=com.ibatis when you intstall it. That will make life easier when 2.2.0 does appear in the central repo. Geronimo is already available: http://www.ibiblio.org/maven2/org/apache/geronimo/geronimo-management/1.0/ Again it should be <groupId>org.apache.geronimo</groupId>, and there's no need to install it yourself. I don't know what you've installed under groupId tomcat and artifactId servlet, but you should probably just use <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.4</version> <scope>provided</scope> </dependency> -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
