Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-93

Project startup archetype doesn't build if you put dashes in the artifact ID

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            colindixon Colin Dixon
            colindixon Colin Dixon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: