Skip to content

Fix compilation failure related to jplag.frontend.java-1.5/pom.xml#10

Merged
lama0206 merged 1 commit intojplag:masterfrom
erikmd:fix-java15-pom
Apr 2, 2015
Merged

Fix compilation failure related to jplag.frontend.java-1.5/pom.xml#10
lama0206 merged 1 commit intojplag:masterfrom
erikmd:fix-java15-pom

Conversation

@erikmd
Copy link
Contributor

@erikmd erikmd commented Apr 2, 2015

Hello,

When compiling JFlag with Maven 3.2.5 and running the following command in the jflag root folder:

$ mvn clean generate-sources package

I was getting a compilation failure:

(...)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] JPlag Plagiarism Detector .......................... SUCCESS [  0.134 s]
[INFO] frontend-utils ..................................... SUCCESS [  1.268 s]
[INFO] chars .............................................. SUCCESS [  0.387 s]
[INFO] cpp ................................................ SUCCESS [  1.505 s]
[INFO] csharp-1.2 ......................................... SUCCESS [  2.084 s]
[INFO] java-1.1exp ........................................ SUCCESS [  1.623 s]
[INFO] java-1.2 ........................................... SUCCESS [  1.344 s]
[INFO] java-1.5 ........................................... FAILURE [  0.827 s]
[INFO] java-1.7 ........................................... SKIPPED
[INFO] scheme ............................................. SKIPPED
[INFO] text ............................................... SKIPPED
[INFO] utils .............................................. SKIPPED
[INFO] jplag .............................................. SKIPPED
[INFO] JPlag Aggregator ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.585 s
[INFO] Finished at: 2015-04-02T17:29:57+02:00
[INFO] Final Memory: 49M/430M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project java-1.5: Compilation failure: Compilation failure:
[ERROR] (...)/jplag/jplag.frontend.java-1.5/src/main/java/jplag/java15/Parser.java:[8,27] error: cannot find symbol
[ERROR] package jplag.java15.grammar
(...)

and it appeared that the files under package "jplag.java15.grammar" had been generated in a wrong folder (namely in a "src" subfolder of the jplag root folder).

With this new value of "outputDirectory" it seems to be OK.

Best regards.

lama0206 added a commit that referenced this pull request Apr 2, 2015
Fix compilation failure related to jplag.frontend.java-1.5/pom.xml
@lama0206 lama0206 merged commit 1250cbe into jplag:master Apr 2, 2015
@lama0206
Copy link
Contributor

lama0206 commented Apr 2, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments