You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Guilherme <ja...@gmail.com> on 2007/04/07 20:03:12 UTC
[S2] Struts2 + Maven
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.
--
Att
Guilherme Mello do Nascimento
PortalJava.com - A maior comunidade Java do Brasil
Re: [S2] Struts2 + Maven
Posted by Guilherme <ja...@gmail.com>.
Hi,
I solve this problema runnig this goal:
<!--
Run the translator for Java 1.4 compatiblity
Sample:
$ cd struts/struts2/
$ mvn clean install -Papps,j4 -
Djava14.jar=$JAVA_HOME/../Classes/classes.jar
-->
This is placed in struts2 POM.xml.
Thanks!
2007/4/7, Dave Newton <ne...@yahoo.com>:
>
> --- Laurie Harper <la...@holoweb.net> wrote:
> > Guilherme wrote:
> > > E:\apache-tomcat-6.0.10\webapps\oficina> [...]
> > > Maven settings file:
> > > <settings>
> > > <localRepository>C:/Documents and
> > > Settings/guilherme.SERVER/.m2/repository [...]
>
> > You don't mention what version of Struts you're
> > trying to compile against, or on what platform [...]
>
> I'm guessing Windows... or *de*ranged something-else.
>
> d.
>
>
>
>
>
> ____________________________________________________________________________________
> It's here! Your new message!
> Get new email alerts with the free Yahoo! Toolbar.
> http://tools.search.yahoo.com/toolbar/features/mail/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Att
Guilherme Mello do Nascimento
PortalJava.com - A maior comunidade Java do Brasil
Re: [S2] Struts2 + Maven
Posted by Dave Newton <ne...@yahoo.com>.
--- Laurie Harper <la...@holoweb.net> wrote:
> Guilherme wrote:
> > E:\apache-tomcat-6.0.10\webapps\oficina> [...]
> > Maven settings file:
> > <settings>
> > <localRepository>C:/Documents and
> > Settings/guilherme.SERVER/.m2/repository [...]
> You don't mention what version of Struts you're
> trying to compile against, or on what platform [...]
I'm guessing Windows... or *de*ranged something-else.
d.
____________________________________________________________________________________
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] Struts2 + Maven
Posted by Laurie Harper <la...@holoweb.net>.
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
Re: [S2] Struts2 + Maven
Posted by Wendy Smoak <ws...@gmail.com>.
On 4/7/07, Guilherme <ja...@gmail.com> wrote:
> I'm trying to build my project using Maven, but when i run mvn:compile this
> error is generated:
Odd. At first I thought this belonged on users@maven, but there _is_
a profile in the struts2-core pom that has a dependency on
com.sun:tools:jar:1.5.0, and I wonder if that's the cause of the
error.
I can't tell anything from the info you provided here, can you paste
your pom.xml and the output of 'mvn install -X' on
http://rafb.net/paste, and post a link to it?
Also, what version of Maven are you using? What Java vendor and
version? And what OS?
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org