diff --git a/mockito-core.pom b/mockito-core.pom index 8e20e00..e305fc9 100644 --- a/mockito-core.pom +++ b/mockito-core.pom @@ -90,26 +90,6 @@ - - org.codehaus.mojo - exec-maven-plugin - 1.6.0 - - - process-classes - - exec - - - - - cp - - ${project.build.sourceDirectory}/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.class - ${project.build.outputDirectory}/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.raw - - - org.apache.maven.plugins maven-jar-plugin diff --git a/mockito.spec b/mockito.spec index b182350..0c4fbdc 100644 --- a/mockito.spec +++ b/mockito.spec @@ -23,7 +23,6 @@ BuildRequires: mvn(net.bytebuddy:byte-buddy) BuildRequires: mvn(net.bytebuddy:byte-buddy-agent) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.assertj:assertj-core) -BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin) BuildRequires: mvn(org.hamcrest:hamcrest) BuildRequires: mvn(org.objenesis:objenesis) BuildRequires: mvn(org.opentest4j:opentest4j) @@ -63,7 +62,9 @@ EOF %build # See the usage of exec-maven-plugin in the pom -javac src/main/java/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.java +mkdir -p target/classes/ +javac -d target/classes/ src/main/java/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.java +mv target/classes/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.{class,raw} %mvn_build -- -Dproject.build.sourceEncoding=UTF-8