Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

persistence example does not build #7

Closed
geziefer opened this issue Nov 30, 2017 · 2 comments
Closed

persistence example does not build #7

geziefer opened this issue Nov 30, 2017 · 2 comments

Comments

@geziefer
Copy link

When running the build in the persistence example with sub-modules address-book and roster fail on build:

[INFO] ------------------------------------------------------------------------
[INFO] Building address-book 8.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ address-book ---
[INFO] Deleting C:\Projects\SY\Competence Area\JavaEEExamples\tutorial-examples\persistence\address-book\target
[INFO]
[INFO] --- maven-processor-plugin:2.2.1:process (process) @ address-book ---
[INFO] Source directory: C:\Projects\SY\Competence Area\JavaEEExamples\tutorial-examples\persistence\address-book\target\generated-sources\metamodel added
[INFO] Adding compiler arg: -Aeclipselink.persistencexml=C:\Projects\SY\Competence
[INFO] Adding compiler arg: Area\JavaEEExamples\tutorial-examples\persistence\address-book/src/main/resources/META-INF/persistence.xml
[INFO] javac option: -cp
[INFO] javac option: C:\Users\alexander.ruehl\.m2\repository\org\apache\maven\maven-plugin-api\3.0.1\maven-plugin-api-3.0.1.jar [...]
[INFO] javac option: -proc:only
[INFO] javac option: -Aeclipselink.persistencexml=C:\Projects\SY\Competence
[INFO] javac option: Area\JavaEEExamples\tutorial-examples\persistence\address-book/src/main/resources/META-INF/persistence.xml
[INFO] javac option: -processor
[INFO] javac option: org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor
[INFO] javac option: -d
[INFO] javac option: C:\Projects\SY\Competence Area\JavaEEExamples\tutorial-examples\persistence\address-book\target\classes
[INFO] javac option: -s
[INFO] javac option: C:\Projects\SY\Competence Area\JavaEEExamples\tutorial-examples\persistence\address-book\target\generated-sources\metamodel
[ERROR] error on execute: invalid flag: Area\JavaEEExamples\tutorial-examples\persistence\address-book/src/main/resources/META-INF/persistence.xml

@ChrisWilcox78
Copy link
Contributor

ChrisWilcox78 commented May 14, 2018

I'm not affiliated with this project but it looks like a space in your ${basedir} path (between "Competence" and "Area") is being interpreted as the start of a new javac option. It's likely an issue with (or expected behaviour from) the maven-processor-plugin. They live over here if you want to get in touch.

For what it's worth, I've recently run the glassfish5 version of the address-book example without any issues.

*edit: looks like someone else has had a similar issue with the plugin and it may be able to be addressed by a change to the code here. If the fix there works, I might knock up a quick PR to clean up things on this side.

@bshannon
Copy link
Member

Yes, clearly a bug in the maven-processor-plugin. To workaround that bug, rename your directory to not include a space in the name.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants