[YANGTOOLS-394] yang-maven-plugin breaks build if src/main/yang is missing Created: 21/Dec/14  Updated: 10/Apr/22  Resolved: 16/Oct/15

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Ed Warnicke Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 2531

 Description   

If src/main/yang is missing, the yang-maven-plugin kills the build.

It should more appropriately log a WARNING and continue.



 Comments   
Comment by Martin Ciglan [ 14/Jan/15 ]

Could you please describe little bit more your setup?
I tried project with only pom.xml file (literally nothing else is in project folder) and got build successful.

Thank you.

Comment by Martin Ciglan [ 14/Jan/15 ]

just to add ... message from build log:

[WARNING] yang-to-sources: YANG source directory /home/mciglan/projects/bug2531test/src/main/yang not found. No code will be generated.

from my pom.xml:

<properties>
<yang.codegen.version>0.7.0-SNAPSHOT</yang.codegen.version>
<yang.maven.plugin.version>0.7.0-SNAPSHOT</yang.maven.plugin.version>
<java.source.version>1.7</java.source.version>
<java.target.version>1.7</java.target.version>
</properties>

Comment by Martin Ciglan [ 15/Oct/15 ]

Is this still issue or bug can be closed? Thanks.

Comment by Martin Ciglan [ 16/Oct/15 ]

not able to replicate, bug closed

Generated at Wed Feb 07 20:53:07 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.