-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 1.6.0
-
Component/s: None
-
Labels:
-
Environment:
ONOS BUILD COMPILATION
-
Story Points:3
POM.xml change:
this issue will occur when Pom.xml contains replacement configs
<configuration>
<replacementForPeriod>dot</replacementForPeriod>
<replacementForHyphen>hyphen</replacementForHyphen>
<replacementForUnderscore>underscore</replacementForUnderscore>
</configuration>
its happening for enum,union. so check it for all
module ospf {
namespace "urn:cisco:params:xml:ns:yang:ospf";
// replace with IANA namespace when assigned
prefix ospf;
revision 2020-10-20
/*feature flood-reduction
{ description "OSPF Flood Reduction."; }*/
leaf enabled
{ type boolean; }/*leaf abc
{ type empty; }*/
leaf ifType {
type enumeration
}
}
1.6.0-SNAPSHOT
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building onlab-rest 1.6.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-clean-plugin:2.5:clean (default-clean) @ onlab-rest —
[INFO]
[INFO] — jacoco-maven-plugin:0.7.5.201505241946:prepare-agent (default-prepare-agent) @ onlab-rest —
[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/home/root1/onos/utils/test/target/jacoco.exec -Duser.language=en -Duser.region=US
[INFO]
[INFO] — yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) @ onlab-rest —
[INFO] Source directory added to compilation root: /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen
[INFO]
[INFO] — maven-resources-plugin:2.7:resources (default-resources) @ onlab-rest —
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/root1/onos/utils/test/src/main/resources
[INFO] Copying 1 resource
[INFO]
[INFO] — maven-compiler-plugin:2.5.1:compile (default-compile) @ onlab-rest —
[INFO] Compiling 5 source files to /home/root1/onos/utils/test/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/OspfManager.java:[19,85] error: cannot find symbol
[ERROR] symbol: class IfTypeEnum
location: package org.onosproject.yang.gen.v1.urn.cisco.params.xml.ns.yang.ospf.rev20201020.ospf
/home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/OspfService.java:[19,85] error: cannot find symbol
[ERROR] symbol: class IfTypeEnum
location: package org.onosproject.yang.gen.v1.urn.cisco.params.xml.ns.yang.ospf.rev20201020.ospf
/home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/OspfManager.java:[34,11] error: cannot find symbol
[ERROR] symbol: class IfTypeEnum
location: class OspfManager
/home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/OspfManager.java:[45,26] error: cannot find symbol
[ERROR] symbol: class IfTypeEnum
location: class OspfManager
/home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/OspfService.java:[38,4] error: cannot find symbol
[ERROR] symbol: class IfTypeEnum
location: interface OspfService
/home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/OspfService.java:[52,19] error: cannot find symbol
[INFO] 6 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.348 s
[INFO] Finished at: 2016-05-13T14:47:15+05:30
[INFO] Final Memory: 28M/322M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project onlab-rest: Compilation failure: Compilation failure:
[ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/OspfManager.java:[19,85] error: cannot find symbol
[ERROR] symbol: class IfTypeEnum
[ERROR] location: package org.onosproject.yang.gen.v1.urn.cisco.params.xml.ns.yang.ospf.rev20201020.ospf
[ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/OspfService.java:[19,85] error: cannot find symbol
[ERROR] symbol: class IfTypeEnum
[ERROR] location: package org.onosproject.yang.gen.v1.urn.cisco.params.xml.ns.yang.ospf.rev20201020.ospf
[ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/OspfManager.java:[34,11] error: cannot find symbol
[ERROR] symbol: class IfTypeEnum
[ERROR] location: class OspfManager
[ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/OspfManager.java:[45,26] error: cannot find symbol
[ERROR] symbol: class IfTypeEnum
[ERROR] location: class OspfManager
[ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/OspfService.java:[38,4] error: cannot find symbol
[ERROR] symbol: class IfTypeEnum
[ERROR] location: interface OspfService
[ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/OspfService.java:[52,19] error: cannot find symbol
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
0