[MDSAL-93] Project startup archetype doesn't build if you put dashes in the artifact ID Created: 12/Jun/15  Updated: 09/Mar/18  Resolved: 26/Jan/18

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

Type: Bug
Reporter: Colin Dixon Assignee: Colin Dixon
Resolution: Cannot Reproduce 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: 3704

 Description   

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] multi-level-modeling-api ........................... SUCCESS [01:42 min]
[INFO] multi-level-modeling-impl .......................... FAILURE [ 27.209 s]
[INFO] multi-level-modeling-features ...................... SKIPPED
[INFO] multi-level-modeling-karaf ......................... SKIPPED
[INFO] multi-level-modeling-artifacts ..................... SKIPPED
[INFO] multi-level-modeling ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:29 min
[INFO] Finished at: 2015-06-12T06:59:11-07:00
[INFO] Final Memory: 66M/790M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project multi-level-modeling-impl: Compilation failure: Compilation failure:
[ERROR] /Users/ckd/git-reps/coretutorials/multi-level-modeling/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/multi-level-modeling/impl/rev141210/MultiLevelModelingModuleFactory.java:[17,79] ';' expected
[ERROR] /Users/ckd/git-reps/coretutorials/multi-level-modeling/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/multi-level-modeling/impl/rev141210/MultiLevelModelingModuleFactory.java:[18,124] '{' expected
[ERROR] /Users/ckd/git-reps/coretutorials/multi-level-modeling/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/multi-level-modeling/impl/rev141210/MultiLevelModelingModule.java:[8,79] ';' expected
[ERROR] /Users/ckd/git-reps/coretutorials/multi-level-modeling/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/multi-level-modeling/impl/rev141210/MultiLevelModelingModule.java:[12,117] '{' expected
[ERROR] /Users/ckd/git-reps/coretutorials/multi-level-modeling/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/multi-level-modeling/impl/rev141210/MultiLevelModelingModule.java:[17,253] <identifier> expected
[ERROR] /Users/ckd/git-reps/coretutorials/multi-level-modeling/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/multi-level-modeling/impl/rev141210/MultiLevelModelingModule.java:[17,254] ';' expected
[ERROR] /Users/ckd/git-reps/coretutorials/multi-level-modeling/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/multi-level-modeling/impl/rev141210/MultiLevelModelingModule.java:[17,259] illegal start of type
[ERROR] /Users/ckd/git-reps/coretutorials/multi-level-modeling/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/multi-level-modeling/impl/rev141210/MultiLevelModelingModule.java:[17,268] ';' expected
[ERROR] /Users/ckd/git-reps/coretutorials/multi-level-modeling/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/multi-level-modeling/impl/rev141210/MultiLevelModelingModule.java:[17,324] ';' expected
[ERROR] /Users/ckd/git-reps/coretutorials/multi-level-modeling/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/multi-level-modeling/impl/rev141210/MultiLevelModelingModule.java:[17,355] ';' expected
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :multi-level-modeling-impl

Looking in the files I found the line:
package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.multi-level-modeling.impl.rev141210;

Which fails because apparently dashes are not allowed in the dot-separated parts of a Java package name.



 Comments   
Comment by Robert Varga [ 17/Oct/16 ]

Colin, is this still happening?

Comment by Martin Ciglan [ 18/Oct/16 ]

Hi Colin, could you update status? Many thanks.

Comment by Colin Dixon [ 15/Nov/16 ]

Let me try again and let you know.

Comment by Robert Varga [ 26/Jan/18 ]

No communication from reporter, closing as won't fix. Feel free to reopen if it is still happening.

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