struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <lau...@holoweb.net>
Subject Re: [S2] Struts2 + Maven
Date Sat, 07 Apr 2007 19:00:41 GMT
Guilherme wrote:
> Hi,
> 
> I'm trying to build my project using Maven, but when i run mvn:compile this
> error is generated:
> 
> E:\apache-tomcat-6.0.10\webapps\oficina>mvn compile
> [INFO] Scanning for projects...
> [INFO]
> ---------------------------------------------------------------------------- 
> 
> [INFO] Building Application Test
> [INFO]    task-segment: [compile]
> [INFO]
> ---------------------------------------------------------------------------- 
> 
> [INFO] Ignoring available plugin update: 2.0-beta-5 as it requires Maven
> version 2.0.2
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading:
> http://repo1.maven.org/maven2//com/sun/tools/1.5.0/tools-1.5.0.pom
> [WARNING] Unable to get resource from repository central (
> http://repo1.maven.org/maven2)
> Downloading: http://maven.opensymphony.com/com.sun/jars/tools-1.5.0.jar
> [WARNING] Unable to get resource from repository opensymphony (
> http://maven.opensymphony.com)
> Downloading:
> http://repo1.maven.org/maven2//com/sun/tools/1.5.0/tools-1.5.0.jar
> [WARNING] Unable to get resource from repository central (
> http://repo1.maven.org/maven2)
> [INFO]
> ---------------------------------------------------------------------------- 
> 
> [ERROR] BUILD ERROR
> [INFO]
> ---------------------------------------------------------------------------- 
> 
> [INFO] Failed to resolve artifact.
> 
> GroupId: com.sun
> ArtifactId: tools
> Version: 1.5.0
> 
> Reason: Unable to download the artifact from any repository
>  com.sun:tools:1.5.0:jar
> 
> from the specified remote repositories:
>  Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/),
>  central (http://repo1.maven.org/maven2),
>  opensymphony (http://maven.opensymphony.com),
>  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>  snapshots-maven-codehaus (http://snapshots.maven.codehaus.org/maven2)
> 
> 
> [INFO]
> ---------------------------------------------------------------------------- 
> 
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ---------------------------------------------------------------------------- 
> 
> [INFO] Total time: 17 seconds
> [INFO] Finished at: Sat Apr 07 14:54:18 BRT 2007
> [INFO] Final Memory: 3M/6M
> [INFO]
> ---------------------------------------------------------------------------- 
> 
> 
> Maven settings file:
> 
> <settings>
>    <localRepository>C:/Documents and
> Settings/guilherme.SERVER/.m2/repository</localRepository>
>  <mirrors>
>    <mirror>
>      <id>planetmirror.com</id>
>      <name>planetmirror Mirror of http://repo1.maven.org/maven2/</name>
>      <url>http://repo1.maven.org/maven2/</url>
>      <mirrorOf>central</mirrorOf>
>    </mirror>
>  </mirrors>
> </settings>
> 
> Somebody can help me to solve this problem ?
> 
> Regards.

You don't mention what version of Struts you're trying to compile 
against, or on what platform, but I know there was a bug in the POM for 
early versions of Struts 2 when building on Mac OS X. You man want to 
try updating your Struts dependencies to 2.0.6 and see if that helps.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message