You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Sochor Zdeněk <zd...@ataco.cz> on 2008/01/30 16:35:24 UTC
Fresh MyFaces 1.1 build error
Hi all,
today i tried to build whole MyFaces 1.1 + Tomahawk after ages.
I started by new SVN checkout (myfaces-current), but something is going
wrong :(
Using JDK 1.4 + Maven2 on Win XP, clean install goals.
Error i got is (in Tomahawk Core project):
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://repo1.maven.org/maven2/org/apache/tiles/tiles-api/2.4.1/tiles-api-2.4.1.pom
Downloading:
http://dtddoc.sf.net/maven2/org/apache/tiles/tiles-api/2.4.1/tiles-api-2.4.1.jar
Downloading:
http://people.apache.org/builds/tiles/2.4.1/m2-staging-repository//org/apache/tiles/til
es-api/2.4.1/tiles-api-2.4.1.jar
Downloading:
http://repo1.maven.org/maven2/org/apache/tiles/tiles-api/2.4.1/tiles-api-2.4.1.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.apache.tiles:tiles-api:jar:2.4.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.tiles
-DartifactId=tiles-api \
-Dversion=2.4.1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there: mvn deploy:deplo
y-file -DgroupId=org.apache.tiles -DartifactId=tiles-api \
-Dversion=2.4.1 -Dpackaging=jar -Dfile=/path/to/file \
-Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.myfaces.tomahawk:tomahawk:jar:1.1.7-SNAPSHOT
2) org.apache.tiles:tiles-core:jar:2.0.5
3) org.apache.tiles:tiles-api:jar:2.4.1
----------
1 required artifact is missing.
for artifact:
org.apache.myfaces.tomahawk:tomahawk:jar:1.1.7-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
myfaces-staging
(http://people.apache.org/builds/myfaces/m2-staging-repository),
apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)
It's caused by IMO wrong POM file in transient dependancy of tiles in
"tiles-core-2.0.5.pom" file, which states:
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-api</artifactId>
<version>${pom.version}</version>
</dependency>
And pom.version is evaluated to 2.4.1 for me.
(last tiles-api version is 2.0.5)
Anyone beside me having this issue?
With regards,
Zdenek
Re: Fresh MyFaces 1.1 build error
Posted by Sochor Zdeněk <zd...@ataco.cz>.
Hi all,
Sochor Zdeněk napsal(a):
> Hi all,
> today i tried to build whole MyFaces 1.1 + Tomahawk after ages.
> I started by new SVN checkout (myfaces-current), but something is
> going wrong :(
> Using JDK 1.4 + Maven2 on Win XP, clean install goals.
>
> Error i got is (in Tomahawk Core project):
>
> [INFO] Using default encoding to copy filtered resources.
> Downloading:
> http://repo1.maven.org/maven2/org/apache/tiles/tiles-api/2.4.1/tiles-api-2.4.1.pom
>
> Downloading:
> http://dtddoc.sf.net/maven2/org/apache/tiles/tiles-api/2.4.1/tiles-api-2.4.1.jar
>
> Downloading:
> http://people.apache.org/builds/tiles/2.4.1/m2-staging-repository//org/apache/tiles/til
>
> es-api/2.4.1/tiles-api-2.4.1.jar
> Downloading:
> http://repo1.maven.org/maven2/org/apache/tiles/tiles-api/2.4.1/tiles-api-2.4.1.jar
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.apache.tiles:tiles-api:jar:2.4.1
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache.tiles
> -DartifactId=tiles-api \
> -Dversion=2.4.1 -Dpackaging=jar -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the file
> there: mvn deploy:deplo
> y-file -DgroupId=org.apache.tiles -DartifactId=tiles-api \
> -Dversion=2.4.1 -Dpackaging=jar -Dfile=/path/to/file \
> -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) org.apache.myfaces.tomahawk:tomahawk:jar:1.1.7-SNAPSHOT
> 2) org.apache.tiles:tiles-core:jar:2.0.5
> 3) org.apache.tiles:tiles-api:jar:2.4.1
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
> org.apache.myfaces.tomahawk:tomahawk:jar:1.1.7-SNAPSHOT
>
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2),
> myfaces-staging
> (http://people.apache.org/builds/myfaces/m2-staging-repository),
> apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)
>
> It's caused by IMO wrong POM file in transient dependancy of tiles in
> "tiles-core-2.0.5.pom" file, which states:
> <dependency>
> <groupId>org.apache.tiles</groupId>
> <artifactId>tiles-api</artifactId>
> <version>${pom.version}</version>
> </dependency>
>
> And pom.version is evaluated to 2.4.1 for me.
> (last tiles-api version is 2.0.5)
>
After manual change in dependency i found few errors when using real
Java 1.4 (not -target) to build Tomahawk
Automatic d/l of needed libraries:
tiles-core 2.0.5
tiles-api-2.0.5
- both are Java 5, for Java 1.4 tiles-core-2.0.5-j4.jar,
tiles-api-2.0.5-j4.jar are needed
Java 5 method in source:
tomahawk\core\src\main\java\org\apache\myfaces\custom\schedule\AbstractScheduleRenderer.java:[237,33]
- replace(char,char) in java.lang.String cannot be applied to
(java.lang.String,java.lang.String)
Should i file JIRA issues for this (Compiling Tomahawk + Java 1.4)?
With regards,
Zdenek