[
https://issues.jboss.org/browse/TEIID-5549?page=com.atlassian.jira.plugin...
]
G. Richard Bellamy edited comment on TEIID-5549 at 11/22/18 11:02 AM:
----------------------------------------------------------------------
I was using 1.2. I should have mentioned that I am working with a mult-module project.
And it looks like the more idiomatic solution is to relativize file paths to the pom that
are actually running the plugin. In a multi-module project, with the plugin in
{{pluginManagement}}, the vdb.xml files are being generated in the parent pom's
{{$\{basedir}/target}}. That's actually the root of the bug I ran into here... since
the parent pom isn't configured to actually build anything, the {{target}} directory
never existed until the vdb plugin started processing.
https://maven.apache.org/plugin-developers/common-bugs.html#Resolving_Rel...
was (Author: rbellamy):
I was using 1.2.
Also, there needs to be better path handling to relativize the paths to the pom that are
actually running the plugin. In a multi-module project, with the plugin in
{{pluginManagement}}, the vdb.xml files are being generated in the parent pom's
{{$\{basedir}/target}}. That's actually the root of the bug I ran into here... since
the parent pom isn't configured to actually build anything, the {{target}} directory
never existed until the vdb plugin started processing.
vdb-maven-plugin - FileNotFoundException when target directory
doesn't exist
----------------------------------------------------------------------------
Key: TEIID-5549
URL:
https://issues.jboss.org/browse/TEIID-5549
Project: Teiid
Issue Type: Bug
Components: Build/Kits, VDB
Affects Versions: 11.0.2
Environment: {code}
2018-11-21 07:29:39
rbellamy@eanna i ~/Development/Terradatum/terradatum-data-virtualization master % java
-version
openjdk version "1.8.0_192"
OpenJDK Runtime Environment (build 1.8.0_192-b26)
OpenJDK 64-Bit Server VM (build 25.192-b26, mixed mode)
2018-11-21 07:29:44
rbellamy@eanna i ~/Development/Terradatum/terradatum-data-virtualization master % mvn -v
Apache Maven 3.5.4 (NON-CANONICAL_2018-09-08T01:02:16+02:00_root;
2018-09-07T16:02:16-07:00)
Maven home: /opt/maven
Java version: 1.8.0_192, vendor: Oracle Corporation, runtime:
/usr/lib/jvm/java-8-openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.19.2-arch1-1-arch", arch:
"amd64", family: "unix"
{code}
Reporter: G. Richard Bellamy
Assignee: Barry LaFond
Priority: Major
When building, if the {{target}} parent directory doesn't exist yet, the build will
fail with a {{FileNotFoundException}}.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)