Build error with Maven2

38 views
Skip to first unread message

Shyam Sarkar

unread,
Jul 7, 2015, 2:43:29 PM7/7/15
to apex...@googlegroups.com
Hello,

I downloaded code from Github and tried "mvn install".  I got following error:

Detected Maven Version: 2.2.1 is not in the allowed range [3.0.2,).
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15 seconds
[INFO] Finished at: Tue Jul 07 11:40:19 PDT 2015
[INFO] Final Memory: 22M/344M
[INFO] ------------------------------------------------------------------------

Can I get some suggestion if I have to switch back to old Maven ?

Shyam

Chetan Narsude

unread,
Jul 7, 2015, 3:28:35 PM7/7/15
to Shyam Sarkar, apex...@googlegroups.com
You will need to upgrade your maven version to a later version than the one you have from here: https://maven.apache.org/download.cgi. The currently accepted versions are 3.0.2 or later.

--
Chetan

--
You received this message because you are subscribed to the Google Groups "apex-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apex-dev+u...@googlegroups.com.
To post to this group, send email to apex...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/apex-dev/df2a4630-bd48-42ef-98a4-07fe0ab3e187%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shyam Sarkar

unread,
Jul 7, 2015, 3:53:03 PM7/7/15
to apex...@googlegroups.com, che...@iitbombay.org, che...@iitbombay.org
Thank you.  It built correctly but the tests have Java errors and it is taking long time for tests.  Is it possible to just build the code and try testing my code ?


On Tuesday, July 7, 2015 at 12:28:35 PM UTC-7, Chetan Narsude wrote:
You will need to upgrade your maven version to a later version than the one you have from here: https://maven.apache.org/download.cgi. The currently accepted versions are 3.0.2 or later.

--
Chetan
On Tue, Jul 7, 2015 at 11:43 AM, Shyam Sarkar <ssarkar...@gmail.com> wrote:
Hello,

I downloaded code from Github and tried "mvn install".  I got following error:

Detected Maven Version: 2.2.1 is not in the allowed range [3.0.2,).
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15 seconds
[INFO] Finished at: Tue Jul 07 11:40:19 PDT 2015
[INFO] Final Memory: 22M/344M
[INFO] ------------------------------------------------------------------------

Can I get some suggestion if I have to switch back to old Maven ?

Shyam

--
You received this message because you are subscribed to the Google Groups "apex-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apex-dev+unsubscribe@googlegroups.com.

Shyam Sarkar

unread,
Jul 7, 2015, 3:55:09 PM7/7/15
to apex...@googlegroups.com, che...@iitbombay.org, che...@iitbombay.org
I got all success in the final message :

 ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Realtime Stream Processing Framework .............. SUCCESS [25.553s]
[INFO] DataTorrent API ................................... SUCCESS [29.805s]
[INFO] Base Library ...................................... SUCCESS [6.155s]
[INFO] Buffer Server ..................................... SUCCESS [3.765s]
[INFO] Streaming Application Manager ..................... SUCCESS [6:32.803s]
[INFO] Apex Application Maven archetype .................. SUCCESS [9.616s]
[INFO] Apex App Configuration Maven archetype ............ SUCCESS [0.330s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7:49.816s
[INFO] Finished at: Tue Jul 07 12:51:28 PDT 2015
[INFO] Final Memory: 46M/724M
[INFO] ------------------------------------------------------------------------

Shyam


On Tuesday, July 7, 2015 at 12:28:35 PM UTC-7, Chetan Narsude wrote:
You will need to upgrade your maven version to a later version than the one you have from here: https://maven.apache.org/download.cgi. The currently accepted versions are 3.0.2 or later.

--
Chetan
On Tue, Jul 7, 2015 at 11:43 AM, Shyam Sarkar <ssarkar...@gmail.com> wrote:
Hello,

I downloaded code from Github and tried "mvn install".  I got following error:

Detected Maven Version: 2.2.1 is not in the allowed range [3.0.2,).
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15 seconds
[INFO] Finished at: Tue Jul 07 11:40:19 PDT 2015
[INFO] Final Memory: 22M/344M
[INFO] ------------------------------------------------------------------------

Can I get some suggestion if I have to switch back to old Maven ?

Shyam

--
You received this message because you are subscribed to the Google Groups "apex-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apex-dev+unsubscribe@googlegroups.com.

Shyam Sarkar

unread,
Jul 7, 2015, 7:04:38 PM7/7/15
to apex...@googlegroups.com, ssarkar...@gmail.com, che...@iitbombay.org
No console available ?  I have this interactive mode;

sarkar@sarkar-D900C:~/datatorrent/datatorrent_git$ ./engine/src/main/scripts/dtcli
Warning: hadoop executable not found.  Running standalone with java.
log4j:WARN No appenders could be found for logger (org.apache.hadoop.util.Shell).
log4j:WARN Please initialize the log4j system properly.
DT CLI Unknown Unknown Unknown
WARNING: Configuration of DataTorrent has not been complete. Please proceed with caution and only in development environment!
dt> 
dt> 
dt> help
GLOBAL COMMANDS EXCEPT WHEN CHANGING LOGICAL PLAN:

alias alias-name command
Create a command alias
begin-macro name
Begin Macro Definition ($1...$9 to access parameters and type 'end' to end the definition)
connect app-id ....

Is there documentation somewhere how to create and run application on such interactive mode?



Reply all
Reply to author
Forward
0 new messages