You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "simon.kitching@chello.at" <si...@chello.at> on 2008/08/11 17:57:16 UTC

tomahawk core 1.2.x build problem

Hi All,

I just tried to build core 1.2.x trunk, and got a failure due to a 
missing dependency:
  org.apache.tomcat:catalina:6.0.10
which is in the impl/pom.xml.

The error is right: the available catalina versions in the main repos 
available start from 6.0.13. But I have been building this code 
regularly and not had this problem. Does anyone else have this?

For now, I've modified the pom locally to point to 6.0.18 and it builds 
again. But I'm reluctant to commit this when I don't know what's 
happened...very puzzling.

Cheers, Simon


Re: tomahawk core 1.2.x build problem

Posted by simon <sk...@apache.org>.
On Mon, 2008-08-11 at 11:50 -0500, Leonardo Uribe wrote:
> 
> 
> On Mon, Aug 11, 2008 at 10:57 AM, simon.kitching@chello.at
> <si...@chello.at> wrote:
>         Hi All,
>         
>         I just tried to build core 1.2.x trunk, and got a failure due
>         to a missing dependency:
>          org.apache.tomcat:catalina:6.0.10
>         which is in the impl/pom.xml.
>         
>         The error is right: the available catalina versions in the
>         main repos available start from 6.0.13. But I have been
>         building this code regularly and not had this problem. Does
>         anyone else have this?
> 
> I have this artifact on my local repo (6.0.10) (if does not exist on
> main repo how that code compiles before?). 

That's exactly what I was puzzled about before. It used to compile, but
now on my work computer it didn't. And there was no trace of that
artifact in the standard repositories.

I've tracked down the answer now: the tomcat project runs its own maven
repository!
    <repository>
      <id>tomcat</id>
      <url>http://tomcat.apache.org/dev/dist/m2-repository</url>
    </repository>

And somehow this repo is defined by default (maybe in the master apache
pom).

At work, we now have a maven repository manager that proxies everything
- but this special tomcat repo was not in the repo-manager's list of
things to proxy, so the artifact could not be found.

So technically there is no problem; it was an issue with the mvn repo
manager configuration at my workplace. However having a special tomcat
repository is rather weird I think. I would rather that our releases
depend only on artifacts from the "standard" repositories. So what do
people think about changing the dependency to use version 6.0.13 (which
is in the main repos)?

By the way, it is currently a "provided" dependency. Perhaps we should
add "optional" too? As Leonardo showed, it is used only by one myfaces
class: TomcatAnnotationLifecycleProvider.

Regards,
Simon

> 


Re: tomahawk core 1.2.x build problem

Posted by Leonardo Uribe <lu...@gmail.com>.
On Mon, Aug 11, 2008 at 10:57 AM, simon.kitching@chello.at <
simon.kitching@chello.at> wrote:

> Hi All,
>
> I just tried to build core 1.2.x trunk, and got a failure due to a missing
> dependency:
>  org.apache.tomcat:catalina:6.0.10
> which is in the impl/pom.xml.
>
> The error is right: the available catalina versions in the main repos
> available start from 6.0.13. But I have been building this code regularly
> and not had this problem. Does anyone else have this?
>

I have this artifact on my local repo (6.0.10) (if does not exist on main
repo how that code compiles before?).

If the dependency is not found this compile error occurs

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

C:\GSOC\workspace\12\myfaces1_2_commit\impl\src\main\java\org\apache\myfaces\con
fig\annotation\TomcatAnnotationLifecycleProvider.java:[33,22] cannot find
symbol

symbol  : class AnnotationProcessor
location: package org.apache

C:\GSOC\workspace\12\myfaces1_2_commit\impl\src\main\java\org\apache\myfaces\con
fig\annotation\TomcatAnnotationLifecycleProvider.java:[62,46] cannot find
symbol

symbol  : class AnnotationProcessor
location: package org.apache

C:\GSOC\workspace\12\myfaces1_2_commit\impl\src\main\java\org\apache\myfaces\con
fig\annotation\TomcatAnnotationLifecycleProvider.java:[63,74] cannot find
symbol

symbol  : class AnnotationProcessor
location: package org.apache


>
> For now, I've modified the pom locally to point to 6.0.18 and it builds
> again. But I'm reluctant to commit this when I don't know what's
> happened...very puzzling.
>
> Cheers, Simon
>
>