You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "vpande (sent by Nabble.com)" <li...@nabble.com> on 2005/10/04 09:00:41 UTC
maven build error
Hi
I am a newbie trying to get a build of jackrabbit on windows xp.
I followed the instructions but still got an error.
After running svn successfully I get an error running maven.
from the jackrabbit directory. I am running JDK 1.5.0_05 and maven 1.0.2
This inspite of installing xalan.jar in \Program Files\Apache Software Foundation\Maven
1.0.2\lib\endorsed
as suggested in the mailing threads.
Here is the error I get...
BUILD FAILED
File...... C:\jackrabbit\maven.xml
Element... ant:xslt
Line...... 134
Column.... 25
org/apache/xml/serializer/SerializerTrace
Total time: 9 seconds
Finished at: Tue Oct 04 16:26:59 EST 2005
BTW when I did not have xalan.jar in lib\endorsed I was getting a similar error but slightly
different.
BUILD FAILED
File...... C:\jackrabbit\maven.xml
Element... ant:xslt
Line...... 134
Column.... 25
Provider org.apache.xalan.processor.TransformerFactoryImpl not found
Total time: 9 seconds
Finished at: Tue Oct 04 16:40:33 EST 2005
Help greatly appreciated.
regards
vivek
--
Sent from the Jackrabbit - Dev forum at Nabble.com:
http://www.nabble.com/maven-build-error-t372026.html#a1027886
Re: maven build error
Posted by "vpande (sent by Nabble.com)" <li...@nabble.com>.
maven clean jar
gave me a successful build.
thanks a lot
vivek
--
Sent from the Jackrabbit - Dev forum at Nabble.com:
http://www.nabble.com/maven-build-error-t372026.html#a1034902
Re: maven build error
Posted by Marcel Reutegger <ma...@gmx.net>.
those files should be removed by the maven goal:
jackrabbit:generate-sql-parser
which is integrated in the build process.
try the following:
- maven clean jar
(builds jackrabbit again from scratch)
OR
- maven jackrabbit:generate-sql-parser
(should remove the duplicate source files)
regards
marcel
vpande (sent by Nabble.com) wrote:
> thanks Jukka
> I got past that error by having serializer.ja, but got other compiler errors complaining about a duplicate class.
>
> Any help appreciated.
> regards
> vivek
>
>
> Attempting to download cqfs-jackrabbit-3.5.6-SNAPSHOT.jar.
> Attempting to download cqfs-3.5.6-SNAPSHOT.jar.
> build:start:
>
> java:prepare-filesystem:
>
> java:compile:
> [echo] Compiling to C:\jackrabbit/target/classes
> [javac] Compiling 351 source files to C:\jackrabbit\target\classes
> C:\jackrabbit\target\generated-src\main\java\org\apache\jackrabbit\core\query\sq
> l\ASTContainsExpression.java:5: duplicate class: org.apache.jackrabbit.core.quer
> y.sql.ASTContainsExpression
> public class ASTContainsExpression extends SimpleNode {
> ^
> C:\jackrabbit\target\generated-src\main\java\org\apache\jackrabbit\core\query\sq
> l\ASTIdentifier.java:5: duplicate class: org.apache.jackrabbit.core.query.sql.AS
> TIdentifier
> public class ASTIdentifier extends SimpleNode {
> ^
> C:\jackrabbit\target\generated-src\main\java\org\apache\jackrabbit\core\query\sq
> l\ASTLiteral.java:5: duplicate class: org.apache.jackrabbit.core.query.sql.ASTLi
> teral
> public class ASTLiteral extends SimpleNode {
> ^
> C:\jackrabbit\target\generated-src\main\java\org\apache\jackrabbit\core\query\sq
> l\ASTPredicate.java:5: duplicate class: org.apache.jackrabbit.core.query.sql.AST
> Predicate
> public class ASTPredicate extends SimpleNode {
> ^
> Note: C:\jackrabbit\target\generated-src\main\java\org\apache\jackrabbit\core\qu
> ery\xpath\XPath.java uses or overrides a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> 4 errors
>
> BUILD FAILED
> File...... C:\Documents and Settings\vivek\.maven\cache\maven-java-plugin-1.5\pl
> ugin.jelly
> Element... ant:javac
> Line...... 63
> Column.... 48
> Compile failed; see the compiler error output for details.
> Total time: 8 seconds
> Finished at: Tue Oct 04 21:27:24 EST 2005
> --
> Sent from the Jackrabbit - Dev forum at Nabble.com:
> http://www.nabble.com/maven-build-error-t372026.html#a1029537
>
Re: maven build error
Posted by "vpande (sent by Nabble.com)" <li...@nabble.com>.
thanks Jukka
I got past that error by having serializer.ja, but got other compiler errors complaining about a duplicate class.
Any help appreciated.
regards
vivek
Attempting to download cqfs-jackrabbit-3.5.6-SNAPSHOT.jar.
Attempting to download cqfs-3.5.6-SNAPSHOT.jar.
build:start:
java:prepare-filesystem:
java:compile:
[echo] Compiling to C:\jackrabbit/target/classes
[javac] Compiling 351 source files to C:\jackrabbit\target\classes
C:\jackrabbit\target\generated-src\main\java\org\apache\jackrabbit\core\query\sq
l\ASTContainsExpression.java:5: duplicate class: org.apache.jackrabbit.core.quer
y.sql.ASTContainsExpression
public class ASTContainsExpression extends SimpleNode {
^
C:\jackrabbit\target\generated-src\main\java\org\apache\jackrabbit\core\query\sq
l\ASTIdentifier.java:5: duplicate class: org.apache.jackrabbit.core.query.sql.AS
TIdentifier
public class ASTIdentifier extends SimpleNode {
^
C:\jackrabbit\target\generated-src\main\java\org\apache\jackrabbit\core\query\sq
l\ASTLiteral.java:5: duplicate class: org.apache.jackrabbit.core.query.sql.ASTLi
teral
public class ASTLiteral extends SimpleNode {
^
C:\jackrabbit\target\generated-src\main\java\org\apache\jackrabbit\core\query\sq
l\ASTPredicate.java:5: duplicate class: org.apache.jackrabbit.core.query.sql.AST
Predicate
public class ASTPredicate extends SimpleNode {
^
Note: C:\jackrabbit\target\generated-src\main\java\org\apache\jackrabbit\core\qu
ery\xpath\XPath.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors
BUILD FAILED
File...... C:\Documents and Settings\vivek\.maven\cache\maven-java-plugin-1.5\pl
ugin.jelly
Element... ant:javac
Line...... 63
Column.... 48
Compile failed; see the compiler error output for details.
Total time: 8 seconds
Finished at: Tue Oct 04 21:27:24 EST 2005
--
Sent from the Jackrabbit - Dev forum at Nabble.com:
http://www.nabble.com/maven-build-error-t372026.html#a1029537
Re: maven build error
Posted by Jukka Zitting <ju...@zitting.name>.
Hi,
vivek wrote:
> I am a newbie trying to get a build of jackrabbit on windows xp.
> I followed the instructions but still got an error.
> After running svn successfully I get an error running maven.
> from the jackrabbit directory. I am running JDK 1.5.0_05 and maven 1.0.2
>
> This inspite of installing xalan.jar in \Program Files\Apache
> Software Foundation\Maven
> 1.0.2\lib\endorsed
> as suggested in the mailing threads.
The error seems to be related to the last comment on
http://issues.apache.org/jira/browse/JCR-46. Gavin Carothers mentioned that
you'd need to install the Xalan serializer.jar in addition to xalan.jar in
lib/endorsed to get things working. You might want to try this.
For some reason the serializer.jar is not needed in my environment so I hadn't
yet reacted to the comment, but it seems that I need to update the README.txt
to match this requirement as well.
BR,
Jukka Zitting