# \[Solved\] Error Building RPM Against 2.0 Branch

**URL:** <https://discuss.elastic.co/t/solved-error-building-rpm-against-2-0-branch/28412>\
**Category:** Elasticsearch\
**Created:** [September 1, 2015, 9:06am UTC](https://discuss.elastic.co/t/solved-error-building-rpm-against-2-0-branch/28412 "2015-09-01T09:06:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathan\_F](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@Nathan\_F](https://discuss.elastic.co/u/Nathan_F)\
**Post date:** [September 1, 2015, 9:06am UTC](https://discuss.elastic.co/t/solved-error-building-rpm-against-2-0-branch/28412/1 "2015-09-01T09:06:20Z")

</div>

I am not very familiar with maven so any help is appreciated. I am seeing the following when I run the command

mvn package rpm:rpm -DskipTests -Dvalidate.skip

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.3:rpm (default-cli) on project dev-tools: The parameters 'group' for goal org.codehaus.mojo:rpm-maven-plugin:2.1.3:rpm are missing or invalid

I am not entirely certain what I need to change about the pom file under dev-tools to get this to work. Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 1, 2015, 9:31am UTC](https://discuss.elastic.co/t/solved-error-building-rpm-against-2-0-branch/28412/2 "2015-09-01T09:31:38Z")

</div>

This is strange because `group` is actually set [here](https://github.com/elastic/elasticsearch/blob/2.0/distribution/rpm/pom.xml#L106-106).

Try to build it from the project root dir using `mvn clean install -DskipTests` and see how it goes...

---

<div class="post-metadata">

**Author:** ![Nathan\_F](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@Nathan\_F](https://discuss.elastic.co/u/Nathan_F)\
**Post date:** [September 1, 2015, 11:32pm UTC](https://discuss.elastic.co/t/solved-error-building-rpm-against-2-0-branch/28412/3 "2015-09-01T23:32:26Z")

</div>

Well this reveals how little I know about java and maven.

Building from the root of the project fails, but if I go into the distribution/rpm directory and issue the command

mvn package rpm:rpm -DskipTests

then it succeeds. Briefly, is that expected? Is there any pattern to this? It feels like I should be able to issue any command from the root, but this looks otherwise. Any explanations are appreciated.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 2, 2015, 2:11am UTC](https://discuss.elastic.co/t/solved-error-building-rpm-against-2-0-branch/28412/4 "2015-09-02T02:11:19Z")

</div>

Did you run the exact same command from the root or mvn install?

mvn install should work from the root.

Also prefer mvn install (install is a lifecycle phase) than mvn rpm:rpm (rpm:rpm is a plugin name:goal).

---

<div class="post-metadata">

**Author:** ![Nathan\_F](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@Nathan\_F](https://discuss.elastic.co/u/Nathan_F)\
**Post date:** [September 2, 2015, 2:18am UTC](https://discuss.elastic.co/t/solved-error-building-rpm-against-2-0-branch/28412/5 "2015-09-02T02:18:08Z")

</div>

That does in fact build it. Thanks for your time and patience.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:52pm UTC](https://discuss.elastic.co/t/solved-error-building-rpm-against-2-0-branch/28412/6 "2017-07-05T23:52:42Z")

</div>

Closed on July 5, 2017, 11:52pm UTC


