You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Alex Karasulu <ak...@apache.org> on 2008/05/04 08:30:09 UTC

[bigbang] Broken build

Looks like the build is broken ...

This is from a fresh new machine.  Emmanuel maybe you forgot to check
something in?

Alex

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

/home/akarasulu/ramdisk/bigbang/shared/ldap/target/generated-sources/antlr/org/apache/directory/shared/ldap/subtree/AntlrSubtreeSpecificationParser.java:[870,9]
cannot find symbol
symbol  : constructor
EqualityNode(java.lang.String,org.apache.directory.shared.ldap.entry.client.ClientStringValue)
location: class org.apache.directory.shared.ldap.filter.EqualityNode

/home/akarasulu/ramdisk/bigbang/shared/ldap/target/generated-sources/antlr/org/apache/directory/shared/ldap/aci/AntlrACIItemParser.java:[3783,9]
cannot find symbol
symbol  : constructor
EqualityNode(java.lang.String,org.apache.directory.shared.ldap.entry.client.ClientStringValue)
location: class org.apache.directory.shared.ldap.filter.EqualityNode

/home/akarasulu/ramdisk/bigbang/shared/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/DefaultClientEntry.java:[56,13]
org.apache.directory.shared.ldap.entry.client.DefaultClientEntry is not
abstract and does not override abstract method
contains(java.lang.String,byte[]) in
org.apache.directory.shared.ldap.entry.Entry

/home/akarasulu/ramdisk/bigbang/shared/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/DefaultClientEntry.java:[475,26]
get(java.lang.String) in
org.apache.directory.shared.ldap.entry.client.DefaultClientEntry cannot
implement get(java.lang.String) in
org.apache.directory.shared.ldap.entry.client.ClientEntry; attempting to use
incompatible return type
found   : org.apache.directory.shared.ldap.entry.EntryAttribute
required: org.apache.directory.shared.ldap.entry.client.ClientAttribute

/home/akarasulu/ramdisk/bigbang/shared/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/DefaultClientEntry.java:[1126,39]
incompatible types
found   : java.lang.Object
required: org.apache.directory.shared.ldap.entry.EntryAttribute


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Sun May 04 02:27:27 EDT 2008
[INFO] Final Memory: 45M/429M
[INFO]
------------------------------------------------------------------------

Re: [bigbang] Broken build

Posted by Emmanuel Lecharny <el...@apache.org>.
Hi Alex,

As I already stated, there is badly wrong with the current build. It's 
now depending on the compilation order...


For instance :


> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> /home/akarasulu/ramdisk/bigbang/shared/ldap/target/generated-sources/antlr/org/apache/directory/shared/ldap/subtree/AntlrSubtreeSpecificationParser.java:[870,9] 
> cannot find symbol
> symbol  : constructor 
> EqualityNode(java.lang.String,org.apache.directory.shared.ldap.entry.client.ClientStringValue)
> location: class org.apache.directory.shared.ldap.filter.EqualityNode

Here is the constructor ( committed ) :


    public EqualityNode( String attribute, Value<?> value )
    {
        super( attribute, value, AssertionType.EQUALITY );
    }

with :
public class ClientStringValue extends AbstractValue<String>
{
...

and

public abstract class AbstractValue<T> implements Value<T>
{
...


There is no reason why you got this error. But you got it...

FYI, this code perfectly compile on my computer, all integration tests 
passing.


Another thing I find strange is that now, we are downloading jars from 
oxylos :

... 
http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-4/wagon-provider-api-1.0-alpha-4.pom
...


I didn't changed my .settings.xml; so obviously, the build has changed.

Last, not least, I doomed my .m2/repository and mvn build cleaned it, 
got no error...

...
[INFO] 
------------------------------------------------------------------------
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 7 minutes 14 seconds
[INFO] Finished at: Sun May 04 09:54:49 CEST 2008
[INFO] Final Memory: 61M/185M
[INFO] 
------------------------------------------------------------------------


elecharny@elecharny-laptop:~/apacheds/bb$ java -version
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) Server VM (build 1.5.0_14-b03, mixed mode)

elecharny@elecharny-laptop:~/apacheds/bb$ mvn --version
Maven version: 2.0.9
Java version: 1.5.0_14
OS name: "linux" version: "2.6.20-16-generic" arch: "i386" Family: "unix"

FYI, I was not able to co the code, as eris is down again ... So even if 
there is a problem with the build, I won't be able to fix it.

My bet : we have problems with the current build. It has become overly 
complex, which is not something bad by essence, but some choices have to 
be clarified, and it also have to be documented. I guess that some 
effort should be done for 1.5.3 in order to provide a simpler build, by 
cleaning the useless parts of it (useless : mean what is not absolutely 
necessary)

It is not normal that you get some error on a fresh machine when it 
compiles just fine on my laptop after a superclean.sh and a removed 
.m2/repository...

-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org