Wednesday, 14 August 2013

Build error in Maven

Build error in Maven

I get the following error when I build Maven in my project.
[WARNING] The POM for
com.fmr.ctg.hr.hrdh.bro:hrdh-h2-maven-plugin:1.0-SNAPSHOT is
missing, no dependency information is available.
[ERROR] Plugin com.fmr.ctg.hr.hrdh.bro:hrdh-h2-maven-plugin:1.0-SNAPSHOT
or one
of its dependencies could not be resolved: Failed to read artifact
descriptor fo
r com.fmr.ctg.hr.hrdh.bro:hrdh-h2-maven-plugin:jar:1.0-SNAPSHOT: Could not
find
artifact com.fmr.ctg.hr.hrdh.bro:hrdh-h2-maven-plugin:pom:1.0-SNAPSHOT ->
[Help
1]
POM.xml
-------
dependencies:
<plugin>
<groupId>com.fmr.ctg.hr.hrdh.bro</groupId>
<artifactId>hrdh-h2-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
<version>${h2.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>start H2 database</id>
<phase>generate-test-resources</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop H2 database</id>
<!-- <phase>prepare-package</phase>-->
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
The h2 database jar is present in my local repository but the
hrdh-h2-maven plugin is not. I tried to do mvn clean install -U but it
does not download that.
What command do I give in maven to tell it to download this jar into my
local repository.

No comments:

Post a Comment