Hi,
I am trying to include the elasticsearch source into my maven project.
Here is what I did:
- expand "~.m2\repository\org\elasticsearch\elasticsearch\1.7.1\elasticsearch-1.7.1-sources.jar" into "/elasticsearch/src/main/java"
- copy elasticsearch-1.7.1.pom to ""/elasticsearch/pom.xml"
- add a new module "elasticsearch" in "/pom.xml"
- run "mvn compile"
The build fails with the following stack trace:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (set-permGen) on project elasticsearch: An Ant
BuildException has occured: The property attribute is required.
[ERROR] around Ant part ...... @ 4:14 in c:\Users\loic\Google Drive\data\LookBook\elasticsearch\target\antrun\build-mai
n.xml
[ERROR] -> [Help 1]
[ERROR]
Indeed, the generated file "\elasticsearch\target\antrun\build-main.xml" has no attribute property for the condition tag:
<?xml version="1.0" encoding="UTF-8" ?>
<project name="maven-antrun-" default="main" >
<target name="main">
<**condition**>
<matches/>
</condition>
</target>
</project>
Any idea of how to fix this ?
Thanks a lot,
padang