Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-23

build fails style check unless it's built clean

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • adsal
    • None
    • Operating System: Mac OS
      Platform: Macintosh

    • 29

    Description

      When building without the clean goal specified in maven, the leftover generated XML and Java files cause style check failures.

      The XML files appear in the relevant "target/enunciate-scratch", "target/enunciate/generate", "target/enunciate/build" and "target/site/wsdocs" directories.

      The java files appear in the "opendaylight/distribution/opendaylight/target/distribution.opendaylight-0.1.0-SNAPSHOT-osgipackage/opendaylight/work/Catalina" directory.

      The following workaround destroys these files and then builds:
      rm -rf ../../northbound/**/target/enunciate-scratch
      rm -rf ../../northbound/**/target/enunciate/build
      rm -rf ../../northbound/**/target/enunciate/generate
      rm -rf ../../northbound/**/target/site/wsdocs
      rm -rf ../../samples/northbound/**/target/enunciate-scratch
      rm -rf ../../samples/northbound/**/target/enunciate/build
      rm -rf ../../samples/northbound/**/target/enunciate/generate
      rm -rf ../../samples/northbound/**/target/site/wsdocs
      rm -rf ../../distribution/opendaylight/target/distribution.opendaylight-0.1.0-SNAPSHOT-osgipackage/opendaylight/work/Catalina
      mvn install -DskipTests

      For example see the log below:

      .../opendaylight/northbound/topology/target/enunciate-scratch/enunciate13853624993500312034020/OSGI-OPT/src/org/osgi/util/xml/XMLParserActivator.java:505:1: Line contains a tab character.
      .../opendaylight/northbound/topology/target/enunciate-scratch/enunciate13853624993500312034020/OSGI-OPT/src/org/osgi/util/xml/XMLParserActivator.java:506:1: Line contains a tab character.
      .../opendaylight/northbound/topology/target/enunciate-scratch/enunciate13853624993500312034020/OSGI-OPT/src/org/osgi/util/xml/XMLParserActivator.java:507:1: Line contains a tab character.
      .../opendaylight/northbound/topology/target/enunciate-scratch/enunciate13853624993500312034020/OSGI-OPT/src/org/osgi/util/xml/XMLParserActivator.java:508:1: Line contains a tab character.
      .../opendaylight/northbound/topology/target/enunciate-scratch/enunciate13853624993500312034020/OSGI-OPT/src/org/osgi/util/xml/XMLParserActivator.java:509:1: Line contains a tab character.
      .../opendaylight/northbound/topology/target/enunciate-scratch/enunciate13853624993500312034020/OSGI-OPT/src/org/osgi/util/xml/XMLParserActivator.java:510:1: Line contains a tab character.
      .../opendaylight/northbound/topology/target/enunciate-scratch/enunciate13853624993500312034020/OSGI-OPT/src/org/osgi/util/xml/XMLParserActivator.java:511:1: Line contains a tab character.
      .../opendaylight/northbound/topology/target/enunciate-scratch/enunciate13853624993500312034020/OSGI-OPT/src/org/osgi/util/xml/XMLParserActivator.java:512:1: Line contains a tab character.
      .../opendaylight/northbound/topology/target/site/wsdocs/crossdomain.xml:4: Line has trailing spaces.
      .../opendaylight/northbound/topology/target/site/wsdocs/crossdomain.xml:5: Line has trailing spaces.
      .../opendaylight/northbound/topology/target/site/wsdocs/crossdomain.xml:9:1: Line contains a tab character.
      .../opendaylight/northbound/topology/target/site/wsdocs/crossdomain.xml:10: Line has trailing spaces.
      .../opendaylight/northbound/topology/target/site/wsdocs/crossdomain.xml:10:1: Line contains a tab character.
      .../opendaylight/northbound/topology/target/site/wsdocs/crossdomain.xml:11: Line has trailing spaces.
      .../opendaylight/northbound/topology/target/site/wsdocs/crossdomain.xml:11:1: Line contains a tab character.
      .../opendaylight/northbound/topology/target/site/wsdocs/crossdomain.xml:12: Line has trailing spaces.
      .../opendaylight/northbound/topology/target/site/wsdocs/crossdomain.xml:12:1: Line contains a tab character.
      .../opendaylight/northbound/topology/target/site/wsdocs/crossdomain.xml:15:1: Line contains a tab character.
      .../opendaylight/northbound/topology/target/site/wsdocs/crossdomain.xml:16:1: Line contains a tab character.
      .../opendaylight/northbound/topology/target/site/wsdocs/crossdomain.xml:17:1: Line contains a tab character.
      .../opendaylight/northbound/topology/target/site/wsdocs/crossdomain.xml:20: Line has trailing spaces.
      .../opendaylight/northbound/topology/target/site/wsdocs/crossdomain.xml:20:72: Line contains a tab character.
      .../opendaylight/northbound/topology/target/site/wsdocs/crossdomain.xml:21: Line has trailing spaces.
      .../opendaylight/northbound/topology/target/site/wsdocs/crossdomain.xml:21:71: Line contains a tab character.
      Audit done.

      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] sal ............................................... SUCCESS [3.638s]
      [INFO] clustering.services ............................... SUCCESS [0.514s]
      [INFO] configuration ..................................... SUCCESS [0.468s]
      [INFO] topologymanager ................................... SUCCESS [0.534s]
      [INFO] switchmanager ..................................... SUCCESS [0.464s]
      [INFO] hosttracker ....................................... SUCCESS [0.385s]
      [INFO] forwardingrulesmanager ............................ SUCCESS [0.517s]
      [INFO] forwarding.staticrouting .......................... SUCCESS [0.360s]
      [INFO] clustering.services-implementation ................ SUCCESS [1.539s]
      [INFO] sal.implementation ................................ SUCCESS [0.311s]
      [INFO] containermanager .................................. SUCCESS [0.307s]
      [INFO] containermanager.implementation ................... SUCCESS [0.296s]
      [INFO] commons.integrationtest ........................... SUCCESS [0.418s]
      [INFO] clustering.services.integrationtest ............... SUCCESS [0.502s]
      [INFO] clustering.stub ................................... SUCCESS [0.447s]
      [INFO] clustering.test ................................... SUCCESS [0.453s]
      [INFO] configuration.implementation ...................... SUCCESS [0.428s]
      [INFO] protocol_plugins.stub ............................. SUCCESS [0.413s]
      [INFO] switchmanager.implementation ...................... SUCCESS [0.422s]
      [INFO] configuration.integrationtest ..................... SUCCESS [0.288s]
      [INFO] net.sf.jung2 ...................................... SUCCESS [1.111s]
      [INFO] routing.dijkstra_implementation ................... SUCCESS [0.386s]
      [INFO] arphandler ........................................ SUCCESS [0.368s]
      [INFO] forwardingrulesmanager.implementation ............. SUCCESS [0.395s]
      [INFO] hosttracker.implementation ........................ SUCCESS [0.387s]
      [INFO] forwardingrulesmanager.integrationtest ............ SUCCESS [0.386s]
      [INFO] hosttracker.integrationtest ....................... SUCCESS [0.276s]
      [INFO] hosttracker_new ................................... SUCCESS [0.397s]
      [INFO] hosttracker_new.implementation .................... SUCCESS [1.024s]
      [INFO] switchmanager.integrationtest ..................... SUCCESS [0.256s]
      [INFO] statisticsmanager ................................. SUCCESS [0.468s]
      [INFO] statisticsmanager.implementation .................. SUCCESS [0.380s]
      [INFO] statisticsmanager.integrationtest ................. SUCCESS [0.262s]
      [INFO] usermanager ....................................... SUCCESS [0.403s]
      [INFO] usermanager.implementation ........................ SUCCESS [0.458s]
      [INFO] security .......................................... SUCCESS [0.419s]
      [INFO] OpenFlow Java ..................................... SUCCESS [0.562s]
      [INFO] com.sun.jersey.jersey-servlet ..................... SUCCESS [0.199s]
      [INFO] web ............................................... SUCCESS [0.466s]
      [INFO] flows.web ......................................... SUCCESS [0.385s]
      [INFO] devices.web ....................................... SUCCESS [0.319s]
      [INFO] troubleshoot.web .................................. SUCCESS [0.311s]
      [INFO] topology.web ...................................... SUCCESS [0.305s]
      [INFO] commons.northbound ................................ SUCCESS [0.688s]
      [INFO] topology.northbound ............................... FAILURE [0.931s]
      [INFO] forwarding.staticrouting.northbound ............... SKIPPED
      [INFO] statistics.northbound ............................. SKIPPED
      [INFO] flowprogrammer.northbound ......................... SKIPPED
      [INFO] hosttracker.northbound ............................ SKIPPED
      [INFO] subnets.northbound ................................ SKIPPED
      [INFO] switchmanager.northbound .......................... SKIPPED
      [INFO] logging.bridge .................................... SKIPPED
      [INFO] northbound.integrationtest ........................ SKIPPED
      [INFO] protocol_plugins.openflow ......................... SKIPPED
      [INFO] samples.simpleforwarding .......................... SKIPPED
      [INFO] samples.loadbalancer .............................. SKIPPED
      [INFO] samples.loadbalancer.northbound ................... SKIPPED
      [INFO] concepts .......................................... SKIPPED
      [INFO] distribution.opendaylight ......................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 25.672s
      [INFO] Finished at: Fri Jul 05 16:49:22 CDT 2013
      [INFO] Final Memory: 82M/746M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.10:check (default) on project topology.northbound: Failed during checkstyle execution: There are 29951 checkstyle errors. -> [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/MojoExecutionException
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR] mvn <goals> -rf :topology.northbound

      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:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: