From f7eb4eb5716bac86bf328b1df1c0006046489ab8 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Thu, 23 Apr 2020 13:20:41 +0200 Subject: [PATCH] Remove use of exec-maven-plugin --- qdox.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/qdox.spec b/qdox.spec index 7076dfe..6012993 100644 --- a/qdox.spec +++ b/qdox.spec @@ -18,7 +18,6 @@ Patch0: 0001-Port-to-JFlex-1.7.0.patch BuildRequires: maven-local BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin) -BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) BuildRequires: byaccj @@ -47,19 +46,24 @@ API docs for %{name}. %pom_remove_plugin :maven-invoker-plugin %pom_remove_plugin :maven-jflex-plugin %pom_remove_plugin :maven-enforcer-plugin +%pom_remove_plugin :exec-maven-plugin %mvn_file : %{name} %mvn_alias : qdox:qdox -%pom_xpath_set pom:workingDirectory '${basedir}/src/main/java/com/thoughtworks/qdox/parser/impl' - %build # Generate scanners (upstream does this with maven-jflex-plugin) jflex -d src/main/java/com/thoughtworks/qdox/parser/impl src/grammar/lexer.flex jflex -d src/main/java/com/thoughtworks/qdox/parser/impl src/grammar/commentlexer.flex +# Generate parsers (upstream does this with exec-maven-plugin) +(cd ./src/main/java/com/thoughtworks/qdox/parser/impl + byaccj -v -Jnorun -Jnoconstruct -Jclass=DefaultJavaCommentParser -Jpackage=com.thoughtworks.qdox.parser.impl ../../../../../../../grammar/commentparser.y + byaccj -v -Jnorun -Jnoconstruct -Jclass=Parser -Jimplements=CommentHandler -Jsemantic=Value -Jpackage=com.thoughtworks.qdox.parser.impl -Jstack=500 ../../../../../../../grammar/parser.y +) + # Build artifact -%mvn_build -f -- -Dqdox.byaccj.executable=byaccj +%mvn_build -f # Inject OSGi manifests jar ufm target/%{name}-%{upstream_version}.jar %{SOURCE1}