Name: mojo-executor Version: 2.2.0 Release: 1%{?dist} Summary: Execute other Mojos (plugins) within a Maven plugin License: ASL 2.0 URL: http://timmoore.github.io/mojo-executor/ Source0: https://github.com/TimMoore/mojo-executor/archive/%{name}-parent-%{version}.tar.gz # https://github.com/jelmerk/mojo-executor # https://github.com/olamy/mojo-executor # https://github.com/rombert/mojo-executor BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.maven:maven-core) BuildRequires: mvn(org.apache.maven:maven-model) BuildRequires: mvn(org.apache.maven:maven-plugin-api) BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin) BuildRequires: mvn(org.codehaus.plexus:plexus-utils) BuildRequires: mvn(org.hamcrest:hamcrest-core) BuildRequires: mvn(org.mockito:mockito-core) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) #BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin) # antrun-plugin deps #BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) #BuildRequires: mvn(ant-contrib:ant-contrib) #BuildRequires: mvn(org.apache.ant:ant) #BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin) # IT deps #BuildRequires: mvn(org.slf4j:slf4j-api) #BuildRequires: mvn(org.slf4j:slf4j-nop) BuildArch: noarch %description The Mojo Executor provides a way to to execute other Mojos (plugins) within a Maven plugin, allowing you to easily create Maven plugins that are composed of other plugins. %package maven-plugin Summary: Mojo Executor Maven Plugin %description maven-plugin A very simple example of how to use the Mojo Executor in a Maven plugin. This plugin allows you to specify the group ID, artifact ID, version, goal, and configuration of a plugin to execute. %package parent Summary: Mojo Executor Parent POM %description parent Mojo Executor Parent POM. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-%{name}-parent-%{version} find . -name "*.jar" -print -delete find . -name "*.class" -print -delete # org.jvnet.wagon-svn:wagon-svn:1.8 %pom_xpath_remove "pom:build/pom:extensions" # Some Enforcer rules have failed %pom_remove_plugin :maven-enforcer-plugin %pom_change_dep -r :junit-dep :junit %pom_change_dep :junit-dep :junit %{name}-maven-plugin/src/it/%{name}-test-project %pom_change_dep :ant-nodeps :ant %{name}-maven-plugin/src/it/%{name}-test-project-with-dependencies #[INFO] Building: mojo-executor-test-project/pom.xml #[INFO] run script postbuild.groovy #[INFO] ..FAILED (6.9 s) #[INFO] The post-build script returned false. %pom_remove_plugin -r :maven-invoker-plugin sed -i.aether "s|org.sonatype.aether|org.eclipse.aether|" \ mojo-executor/src/test/java/org/twdata/maven/mojoexecutor/MojoExecutorTest.java %build %mvn_build -s %install %mvn_install %files -f .mfiles-%{name} %doc README.md %license LICENSE.txt %files maven-plugin -f .mfiles-%{name}-maven-plugin %license LICENSE.txt %files parent -f .mfiles-%{name}-parent %license LICENSE.txt %files javadoc -f .mfiles-javadoc %license LICENSE.txt %changelog * Fri Mar 07 2014 gil cattaneo 2.2.0-1 - initial rpm