Menu

compile jsystem source code using maven

Help
2014-01-15
2014-01-15
  • Eran Cohanim

    Eran Cohanim - 2014-01-15

    Hi All,
    I am trying to compile the jsystem source code by right clicking on the pom file under the jsystem-parent folder and pressing on "maven install" and encounter the below error
    I'll appreciate any help

    SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
    SLF4J: Defaulting to no-operation (NOP) logger implementation
    SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Build Order:
    [INFO]
    [INFO] jsystem-parent
    [INFO] jsystem-launcher
    [INFO] jsystemCore
    [INFO] jsystemCommon
    [INFO] jsystemAnt
    [INFO] jsystem-core-system-objects
    [INFO] cli
    [INFO] FileTransfer
    [INFO] embeddedCatalina
    [INFO] jsystemAgent
    [INFO] jsystemApp
    [INFO] jsystem-core-projects
    [INFO] cli-tests
    [INFO] embeddedCatalina-tests
    [INFO] FileTransfer-tests
    [INFO] jsystem-archetypes
    [INFO] jsystem-so-archetype
    [INFO] jsystem-tests-archetype
    [INFO] JSystem Maven Plugin
    [INFO] jsystem-services-so
    [INFO] jsystem-services-tests
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building jsystem-parent 6.0.02
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] >>> maven-source-plugin:2.2:jar (attach-sources) @ jsystem-parent >>>
    [INFO]
    [INFO] <<< maven-source-plugin:2.2:jar (attach-sources) @ jsystem-parent <<<
    [INFO]
    [INFO] --- maven-source-plugin:2.2:jar (attach-sources) @ jsystem-parent ---
    [INFO]
    [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ jsystem-parent ---
    [INFO] Installing C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-parent\pom.xml to C:\Users\winadmloc.m2\repository\org\jsystemtest\jsystem-parent\6.0.02\jsystem-parent-6.0.02.pom
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building jsystem-launcher 6.0.02
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ jsystem-launcher ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 1 resource
    [INFO]
    [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ jsystem-launcher ---
    [INFO] Compiling 5 source files to C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystem-launcher\target\classes
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ jsystem-launcher ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystem-launcher\src\test\resources
    [INFO]
    [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ jsystem-launcher ---
    [INFO] No sources to compile
    [INFO]
    [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ jsystem-launcher ---
    [INFO] No tests to run.
    [INFO] Surefire report directory: C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystem-launcher\target\surefire-reports


    T E S T S

    Results :

    Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

    [INFO]
    [INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ jsystem-launcher ---
    [INFO] Building jar: C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystem-launcher\target\jsystem-launcher-6.0.02.jar
    [INFO]
    [INFO] >>> maven-source-plugin:2.2:jar (attach-sources) @ jsystem-launcher >>>
    [INFO]
    [INFO] <<< maven-source-plugin:2.2:jar (attach-sources) @ jsystem-launcher <<<
    [INFO]
    [INFO] --- maven-source-plugin:2.2:jar (attach-sources) @ jsystem-launcher ---
    [INFO] Building jar: C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystem-launcher\target\jsystem-launcher-6.0.02-sources.jar
    [INFO]
    [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ jsystem-launcher ---
    [INFO] Installing C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystem-launcher\target\jsystem-launcher-6.0.02.jar to C:\Users\winadmloc.m2\repository\org\jsystemtest\jsystem-launcher\6.0.02\jsystem-launcher-6.0.02.jar
    [INFO] Installing C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystem-launcher\pom.xml to C:\Users\winadmloc.m2\repository\org\jsystemtest\jsystem-launcher\6.0.02\jsystem-launcher-6.0.02.pom
    [INFO] Installing C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystem-launcher\target\jsystem-launcher-6.0.02-sources.jar to C:\Users\winadmloc.m2\repository\org\jsystemtest\jsystem-launcher\6.0.02\jsystem-launcher-6.0.02-sources.jar
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building jsystemCore 6.0.02
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ jsystemCore ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 7 resources
    [INFO]
    [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ jsystemCore ---
    [INFO] Compiling 229 source files to C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystemCore\target\classes
    [WARNING] C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystemCore\src\main\java\jsystem\utils\BasicFormatter.java:[30,40] GetPropertyAction is internal proprietary API and may be removed in a future release
    [WARNING] C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystemCore\src\main\java\jsystem\utils\Encryptor.java:[51,22] BASE64Encoder is internal proprietary API and may be removed in a future release
    [WARNING] C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystemCore\src\main\java\jsystem\utils\Encryptor.java:[73,27] BASE64Decoder is internal proprietary API and may be removed in a future release
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ jsystemCore ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystemCore\src\test\resources
    [INFO]
    [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ jsystemCore ---
    [INFO] Compiling 9 source files to C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystemCore\target\test-classes
    [INFO]
    [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ jsystemCore ---
    [INFO] Surefire report directory: C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystemCore\target\surefire-reports


    T E S T S

    Running jsystem.framework.scenario.ScenarioHelpersTest

    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.038 sec
    Running jsystem.framework.scenario.ScenariosManagerTest
    Jan 15, 2014 4:58:58 PM jsystem.framework.JSystemProperties initLogger
    INFO: Logger was init
    Jan 15, 2014 4:58:58 PM jsystem.framework.RunProperties <init>
    INFO: create run properties at :C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystemCore.run.properties
    Jan 15, 2014 4:58:58 PM jsystem.framework.sut.SutFactory getSutFile
    WARNING: Can't find sut file: C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystemCore\target\classes\sut\default.xml
    Jan 15, 2014 4:59:07 PM jsystem.framework.sut.SutImpl setSutXml
    SEVERE: Couldn't find SUT file: C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystemCore\target\classes\sut\default.xml
    Jan 15, 2014 4:59:07 PM jsystem.framework.sut.SutFactory init
    WARNING: Unable to init sut with file: default.xml C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystemCore\target\classes\sut\default.xml

    Test: ScenariosManagerTest.testIsScenarioExists

    (1)Steps in test: ScenariosManagerTest.testIsScenarioExists :
    Jan 15, 2014 4:59:07 PM jsystem.framework.report.RunnerListenersManager addTestInfo
    WARNING: Fail to load test code because source file is missing. C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystemCore\src\main\java\jsystem\framework\scenario\ScenariosManagerTest.groovy
    Jan 15, 2014 4:59:07 PM junit.framework.SystemTestCaseImpl jsystemTestPreExecution
    INFO: Running test: testIsScenarioExists

    16:59:07: junit.framework.AssertionFailedError

    Start time: Wed Jan 15 16:59:07 IST 2014

    End time : Wed Jan 15 16:59:07 IST 2014

    Test running time: 0 sec.

    16:59:07: Fixture: root failTearDown
    Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 9.327 sec <<< FAILURE!
    Running jsystem.utils.ClassSearchUtilTest
    Tests run: 4, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.003 sec <<< FAILURE!
    Running jsystem.utils.FileLockTest

    Test: FileLockTest.testFileLock

    (3)Steps in test: FileLockTest.testFileLock :
    Jan 15, 2014 4:59:08 PM jsystem.framework.report.RunnerListenersManager addTestInfo
    WARNING: Fail to load test code because source file is missing. C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystemCore\src\main\java\jsystem\utils\FileLockTest.groovy
    Jan 15, 2014 4:59:08 PM junit.framework.SystemTestCaseImpl jsystemTestPreExecution
    INFO: Running test: testFileLock

    16:59:08: setUp execution

    16:59:08: tearDown execution

    Start time: Wed Jan 15 16:59:07 IST 2014

    End time : Wed Jan 15 16:59:08 IST 2014

    Test running time: 0 sec.
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.055 sec
    Running jsystem.utils.PublishTest

    Test: PublishTest.checkMailArrived

    (4)Steps in test: PublishTest.checkMailArrived :
    Jan 15, 2014 4:59:08 PM jsystem.framework.report.RunnerListenersManager addTestInfo
    WARNING: Fail to load test code because source file is missing. C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystemCore\src\main\java\jsystem\utils\PublishTest.groovy
    Jan 15, 2014 4:59:08 PM junit.framework.SystemTestCaseImpl jsystemTestPreExecution
    INFO: Running test: checkMailArrived

    16:59:08: remove all messages from inbox that might have been sent before without being read properly
    DEBUG: JavaMail version 1.4ea
    DEBUG: java.io.FileNotFoundException: C:\Program Files (x86)\Java\jdk1.7.0_45\jre\lib\javamail.providers (The system cannot find the file specified)
    DEBUG: !anyLoaded
    DEBUG: not loading resource: /META-INF/javamail.providers
    DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
    DEBUG: Tables of loaded providers
    DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
    DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
    DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
    DEBUG: !anyLoaded
    DEBUG: not loading resource: /META-INF/javamail.address.map
    DEBUG: java.io.FileNotFoundException: C:\Program Files (x86)\Java\jdk1.7.0_45\jre\lib\javamail.address.map (The system cannot find the file specified)
    DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]
    DEBUG POP3: connecting to host "localhost", port 110, isSSL false

    16:59:09: Fail: Connect failed
    SystemObject error line: jsystem.utils.MailUtil.getMail(MailUtil.java:356)

    Start time: Wed Jan 15 16:59:08 IST 2014

    End time : Wed Jan 15 16:59:09 IST 2014

    Test running time: 1 sec.

    16:59:09: Fixture: root failTearDown
    Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.083 sec <<< FAILURE!
    Running jsystem.utils.ReflectionUtilsTest

    Test: ReflectionUtilsTest.testNewInstance

    (5)Steps in test: ReflectionUtilsTest.testNewInstance :
    Jan 15, 2014 4:59:09 PM jsystem.framework.report.RunnerListenersManager addTestInfo
    WARNING: Fail to load test code because source file is missing. C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystemCore\src\main\java\jsystem\utils\ReflectionUtilsTest.groovy

    Start time: Wed Jan 15 16:59:09 IST 2014

    End time : Wed Jan 15 16:59:09 IST 2014

    Test running time: 0 sec.

    Test: ReflectionUtilsTest.testNewInstance

    (6)Steps in test: ReflectionUtilsTest.testNewInstance :
    Jan 15, 2014 4:59:09 PM jsystem.framework.report.RunnerListenersManager addTestInfo
    WARNING: Fail to load test code because source file is missing. C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystemCore\src\main\java\jsystem\utils\ReflectionUtilsTest.groovy
    Jan 15, 2014 4:59:09 PM junit.framework.SystemTestCaseImpl jsystemTestPreExecution
    INFO: Running test: testNewInstance

    Start time: Wed Jan 15 16:59:09 IST 2014

    End time : Wed Jan 15 16:59:09 IST 2014

    Test running time: 0 sec.

    16:59:09: Fixture: root failTearDown

    Start time: Wed Jan 15 16:59:09 IST 2014

    End time : Wed Jan 15 16:59:09 IST 2014

    Test running time: 0 sec.
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.095 sec

    Results :

    Failed tests: testIsScenarioExists(jsystem.framework.scenario.ScenariosManagerTest)

    Tests in error:
    Test mechanism
    testGetPropertyFromClassPath(jsystem.utils.ClassSearchUtilTest): Property file not found in classpath. META-INF/jsystemCore.build.properties
    checkMailArrived(jsystem.utils.PublishTest): Connect failed

    Tests run: 9, Failures: 1, Errors: 3, Skipped: 0

    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] jsystem-parent .................................... SUCCESS [0.231s]
    [INFO] jsystem-launcher .................................. SUCCESS [0.940s]
    [INFO] jsystemCore ....................................... FAILURE [12.580s]
    [INFO] jsystemCommon ..................................... SKIPPED
    [INFO] jsystemAnt ........................................ SKIPPED
    [INFO] jsystem-core-system-objects ....................... SKIPPED
    [INFO] cli ............................................... SKIPPED
    [INFO] FileTransfer ...................................... SKIPPED
    [INFO] embeddedCatalina .................................. SKIPPED
    [INFO] jsystemAgent ...................................... SKIPPED
    [INFO] jsystemApp ........................................ SKIPPED
    [INFO] jsystem-core-projects ............................. SKIPPED
    [INFO] cli-tests ......................................... SKIPPED
    [INFO] embeddedCatalina-tests ............................ SKIPPED
    [INFO] FileTransfer-tests ................................ SKIPPED
    [INFO] jsystem-archetypes ................................ SKIPPED
    [INFO] jsystem-so-archetype .............................. SKIPPED
    [INFO] jsystem-tests-archetype ........................... SKIPPED
    [INFO] JSystem Maven Plugin .............................. SKIPPED
    [INFO] jsystem-services-so ............................... SKIPPED
    [INFO] jsystem-services-tests ............................ SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 13.953s
    [INFO] Finished at: Wed Jan 15 16:59:09 IST 2014
    [INFO] Final Memory: 14M/69M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project jsystemCore: There are test failures.
    [ERROR]
    [ERROR] Please refer to C:\Workspace\Automation\TraffixTestHead\jsystem6.0.02\jsystem-core-projects\jsystemCore\target\surefire-reports for the individual test results.
    [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 :jsystemCore

     
  • Itai Agmon

    Itai Agmon - 2014-01-15

    You should build the project without the unit test. Take a look at this blog

     

Log in to post a comment.