Menu

Does nto build out of the box

Tim P
2010-04-19
2013-04-24
  • Tim P

    Tim P - 2010-04-19

    Hi filip,

    mvn clean install

    fails, (due to checkstyle configuration, I'm guessing) with:


    FATAL ERROR

    basedir /home/timp/workspace/TextXNG/src/main/java does not exist

    Trace
    java.lang.IllegalStateException: basedir /home/timp/workspace/TextXNG/src/main/java does not exist
    at org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java:550)
    at org.codehaus.plexus.util.FileUtils.getFileAndDirectoryNames(FileUtils.java:1717)
    at org.codehaus.plexus.util.FileUtils.getFileNames(FileUtils.java:1645)
    at org.codehaus.plexus.util.FileUtils.getFileNames(FileUtils.java:1627)
    at org.codehaus.plexus.util.FileUtils.getFiles(FileUtils.java:1601)
    at org.codehaus.plexus.util.FileUtils.getFiles(FileUtils.java:1584)
    at org.apache.maven.plugin.checkstyle.DefaultCheckstyleExecutor.getFilesToProcess(DefaultCheckstyleExecutor.java:407)
    at org.apache.maven.plugin.checkstyle.DefaultCheckstyleExecutor.executeCheckstyle(DefaultCheckstyleExecutor.java:89)
    at org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo.execute(CheckstyleViolationCheckMojo.java:393)
    at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
    at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


    Total time: 4 seconds
    Finished at: Mon Apr 19 12:52:48 BST 2010
    Final Memory: 40M/770M


    timp@timp:~/workspace/TextXNG$

     
  • Tim P

    Tim P - 2010-04-19

    The Maven plugin build does not build does not build out of the box:

    Failed tests:
      shouldReportNoTestWereRunForEmptyDir(net.sourceforge.testxng.maven.TestXNGMojoTest)

     
  • Tim P

    Tim P - 2010-04-19

    I have now disabled the checkstyle plugin, generated the eclipse configuration files using

    mvn eclipse:eclipse

    Then installed the TestNG plugin for Eclipse from http://testng.org/doc/download.html

    However I am getting:

    org.testng.TestNGException:
    Javadoc annotations are no longer supported. Either update your tests to JDK annotations or use TestNG 5.11.
    at org.testng.SuiteRunner.getAnnotationFinder(SuiteRunner.java:479)

     
  • Tim P

    Tim P - 2010-04-19

    Updated top level pom dependency version:

        <dependency>
          <groupId>org.testng</groupId>
          <artifactId>testng</artifactId>
          <version>5.11</version>
          <scope>test</scope>
          <classifier>jdk15</classifier>
        </dependency>

    Which enabled testing in Eclipse.

     
  • Tim P

    Tim P - 2010-04-19

    Maven plugin does not build when tests are ignored:

    mvn -Dmaven.test.skip=true install

     
  • Tim P

    Tim P - 2010-04-19

    Changed cobertura to allow build.

     
  • Tim P

    Tim P - 2010-04-19

    All working here:


    Reactor Summary:

    Build Configuration …………………………….. SUCCESS
    TestXNG ……………………………………….. SUCCESS
    TestXNG Core …………………………………… SUCCESS
    TestXNG Command-Line Interface …………………… SUCCESS
    TestXNG Plugin for Maven ………………………… SUCCESS



    BUILD SUCCESSFUL

    Total time: 19 seconds
    Finished at: Mon Apr 19 15:19:28 BST 2010
    Final Memory: 87M/754M

     

Log in to post a comment.