Best Guide for compile with maven!

Page 4 of 5 FirstFirst 12345 LastLast
Results 46 to 60 of 75
  1. #46
    Member apkingjo is offline
    MemberRank
    Mar 2006 Join Date
    ThailandLocation
    66Posts

    Re: [Share]Best Guide for compile with maven!

    Code:
    [INFO] Attempting to resolve a version for plugin: org.codehaus.mojo:maven-buildnumber-plugin using meta-version: LATEST
    [INFO] Using version: 0.9.5 of plugin: org.codehaus.mojo:maven-buildnumber-plugin
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Unnamed - l2jfree:l2jfree-core:jar:1.1.3
    [INFO] 
    [INFO] Id: l2jfree:l2jfree-core:jar:1.1.3
    [INFO] task-segment: [assembly:assembly] (aggregator-style)
    [INFO] ------------------------------------------------------------------------
    [INFO] [statemgmt:start-fork]
    [INFO] Starting forked execution [fork id: 898805903]
    [INFO] [buildnumber:create]
    [INFO] Storing buildNumber: 4276
    [INFO] [resources:resources]
    [INFO] Using default encoding to copy filtered resources.
    [INFO] [compiler:compile]
    [INFO] Compiling 1375 source files to D:\L2JFree-Project\workspace\l2jfreeParent\l2jfree-core\target\classes
    [ERROR] 
    
    Mojo (aggregator): 
    
        org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
    
    FAILED while executing in directory:
    
        D:\L2JFree-Project\workspace\l2jfreeParent\l2jfree-core
    
    Reason:
    
    Failure executing javac, but could not parse the error:
    
    
    The system is out of resources.
    Consult the following stack trace for details.
    java.lang.OutOfMemoryError: Java heap space
    	at com.sun.tools.javac.comp.Env.dup(Env.java:80)
    	at com.sun.tools.javac.comp.MemberEnter.baseEnv(MemberEnter.java:986)
    	at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:830)
    	at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386)
    	at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:758)
    	at com.sun.tools.javac.comp.Enter.complete(Enter.java:451)
    	at com.sun.tools.javac.comp.Enter.main(Enter.java:429)
    	at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819)
    	at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
    	at com.sun.tools.javac.main.Main.compile(Main.java:353)
    	at com.sun.tools.javac.main.Main.compile(Main.java:279)
    	at com.sun.tools.javac.main.Main.compile(Main.java:270)
    	at com.sun.tools.javac.Main.compile(Main.java:87)
    	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.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:420)
    	at org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:141)
    	at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:493)
    	at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
    	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
    	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
    	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
    	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:180)
    	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
    	at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
    	at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
    	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
    	at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
    	at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
    	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
    
    
    
    
    
    
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run with the -e flag
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILED
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 25 seconds
    [INFO] Finished at: Fri Jul 18 16:49:33 ICT 2008
    [INFO] Final Memory: 13M/60M
    [INFO] ------------------------------------------------------------------------
    Thanks for help :p please

  2. #47
    Apprentice torpedo is offline
    MemberRank
    Mar 2007 Join Date
    22Posts

    Re: [Share]Best Guide for compile with maven!

    Hello guys, im reading this post about 10 days to try help me im modify date siege and date olimpiads (siege and olimpiad cicle 7 days, all week)... i have core 1.1.1... i do all things here but i have the same problem of beginin... i cant convert .java in . class... i decompile .class (with dj decompiler) but i cant reverse... with eclipse i can extrac and compact to .jar but my problem is with the .java return to .class... help please...



    Im in other post.... desconsider this...
    Last edited by torpedo; 20-07-08 at 08:59 PM.

  3. #48
    Account Upgraded | Title Enabled! EzEraL is offline
    MemberRank
    Dec 2006 Join Date
    Greece,AthensLocation
    606Posts

    Re: [Share]Best Guide for compile with maven!

    Guide updated to v2.More easy for starters

  4. #49
    Member axea is offline
    MemberRank
    Jul 2007 Join Date
    FranceLocation
    62Posts

    Re: [Share]Best Guide for compile with maven!

    How to compile wih maven video:
    http://rapidshare.com/files/13557197..._a_L2jFree.wmv
    or revver but with the compression on revver the text is hard to read:
    http://revver.com/video/1093553/how-...age-ii-server/



    SVN: svn://l2jfree.com/repo/l2j-free
    L2J Umbrella SVN: http://svn2.assembla.com/svn/l2j-umbrella/trunk/

    Create a new txt file and paste: (the compiler.bat)
    @echo off
    pause
    C:/apache-maven-2.0.9/bin/mvn assembly:assembly
    and save it as a .bat, or download it here: http://exadeci.quotaless.com/compiler.zip


  5. #50
    Account Upgraded | Title Enabled! EzEraL is offline
    MemberRank
    Dec 2006 Join Date
    Greece,AthensLocation
    606Posts

    Re: [Share]Best Guide for compile with maven!

    Quote Originally Posted by axea View Post
    How to compile wih maven video:
    http://rapidshare.com/files/13557197..._a_L2jFree.wmv
    or revver but with the compression on revver the text is hard to read:
    http://revver.com/video/1093553/how-...age-ii-server/



    SVN: svn://l2jfree.com/repo/l2j-free
    L2J Umbrella SVN: http://svn2.assembla.com/svn/l2j-umbrella/trunk/

    Create a new txt file and paste: (the compiler.bat)
    @echo off
    pause
    C:/apache-maven-2.0.9/bin/mvn assembly:assembly
    and save it as a .bat, or download it here: http://exadeci.quotaless.com/compiler.zip
    actually the same as i post.Lol.......

  6. #51
    I WaNnA BE MoD... Krysna is offline
    MemberRank
    Mar 2006 Join Date
    Czech RepublicLocation
    262Posts

    Re: [Share]Best Guide for compile with maven!

    Maybe im stupid, but i try i think everythink, and i have still the same problem. This is the code, if u can please help to solve it. Thx
    Code:
    [INFO] Attempting to resolve a version for plugin: org.codehaus.mojo:maven-buildnumber-plugin using meta-version: LATEST
    [INFO] Using version: 0.9.5 of plugin: org.codehaus.mojo:maven-buildnumber-plugin
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Unnamed - l2jfree:l2jfree-core:jar:1.2.0
    [INFO] 
    [INFO] Id: l2jfree:l2jfree-core:jar:1.2.0
    [INFO] task-segment: [assembly:assembly] (aggregator-style)
    [INFO] ------------------------------------------------------------------------
    [INFO] [statemgmt:start-fork]
    [INFO] Starting forked execution [fork id: 821617338]
    [INFO] [buildnumber:create]
    [INFO] Storing buildNumber: 4510
    [INFO] [resources:resources]
    [INFO] Using default encoding to copy filtered resources.
    [INFO] [compiler:compile]
    [INFO] Compiling 1389 source files to D:\Eclipse\workspace\l2jfree-core\target\classes
    [ERROR] 
    
    Mojo (aggregator): 
    
        org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
    
    FAILED while executing in directory:
    
        D:\Eclipse\workspace\l2jfree-core
    
    Reason:
    
    Failure executing javac, but could not parse the error:
    
    
    The system is out of resources.
    Consult the following stack trace for details.
    java.lang.OutOfMemoryError: Java heap space
    	at com.sun.tools.javac.code.Scope$ImportScope.makeEntry(Scope.java:385)
    	at com.sun.tools.javac.code.Scope.enter(Scope.java:196)
    	at com.sun.tools.javac.code.Scope.enter(Scope.java:183)
    	at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:132)
    	at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:509)
    	at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:446)
    	at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
    	at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:819)
    	at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386)
    	at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:758)
    	at com.sun.tools.javac.comp.Enter.complete(Enter.java:451)
    	at com.sun.tools.javac.comp.Enter.main(Enter.java:429)
    	at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819)
    	at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
    	at com.sun.tools.javac.main.Main.compile(Main.java:353)
    	at com.sun.tools.javac.main.Main.compile(Main.java:279)
    	at com.sun.tools.javac.main.Main.compile(Main.java:270)
    	at com.sun.tools.javac.Main.compile(Main.java:87)
    	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.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:420)
    	at org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:141)
    	at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:493)
    	at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
    	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
    	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
    	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
    	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:180)
    	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
    	at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
    
    
    
    
    
    
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run with the -e flag
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILED
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 21 seconds
    [INFO] Finished at: Fri Sep 05 07:25:49 CEST 2008
    [INFO] Final Memory: 13M/60M
    [INFO] ------------------------------------------------------------------------

  7. #52
    Account Upgraded | Title Enabled! EzEraL is offline
    MemberRank
    Dec 2006 Join Date
    Greece,AthensLocation
    606Posts

    Re: [Share]Best Guide for compile with maven!

    Quote Originally Posted by Krysna View Post
    Maybe im stupid, but i try i think everythink, and i have still the same problem. This is the code, if u can please help to solve it. Thx
    Code:
    [INFO] Attempting to resolve a version for plugin: org.codehaus.mojo:maven-buildnumber-plugin using meta-version: LATEST
    [INFO] Using version: 0.9.5 of plugin: org.codehaus.mojo:maven-buildnumber-plugin
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Unnamed - l2jfree:l2jfree-core:jar:1.2.0
    [INFO] 
    [INFO] Id: l2jfree:l2jfree-core:jar:1.2.0
    [INFO] task-segment: [assembly:assembly] (aggregator-style)
    [INFO] ------------------------------------------------------------------------
    [INFO] [statemgmt:start-fork]
    [INFO] Starting forked execution [fork id: 821617338]
    [INFO] [buildnumber:create]
    [INFO] Storing buildNumber: 4510
    [INFO] [resources:resources]
    [INFO] Using default encoding to copy filtered resources.
    [INFO] [compiler:compile]
    [INFO] Compiling 1389 source files to D:\Eclipse\workspace\l2jfree-core\target\classes
    [ERROR] 
    
    Mojo (aggregator): 
    
        org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
    
    FAILED while executing in directory:
    
        D:\Eclipse\workspace\l2jfree-core
    
    Reason:
    
    Failure executing javac, but could not parse the error:
    
    
    The system is out of resources.
    Consult the following stack trace for details.
    java.lang.OutOfMemoryError: Java heap space
        at com.sun.tools.javac.code.Scope$ImportScope.makeEntry(Scope.java:385)
        at com.sun.tools.javac.code.Scope.enter(Scope.java:196)
        at com.sun.tools.javac.code.Scope.enter(Scope.java:183)
        at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:132)
        at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:509)
        at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:446)
        at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
        at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:819)
        at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386)
        at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:758)
        at com.sun.tools.javac.comp.Enter.complete(Enter.java:451)
        at com.sun.tools.javac.comp.Enter.main(Enter.java:429)
        at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819)
        at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
        at com.sun.tools.javac.main.Main.compile(Main.java:353)
        at com.sun.tools.javac.main.Main.compile(Main.java:279)
        at com.sun.tools.javac.main.Main.compile(Main.java:270)
        at com.sun.tools.javac.Main.compile(Main.java:87)
        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.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:420)
        at org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:141)
        at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:493)
        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
        at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
    
    
    
    
    
    
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run with the -e flag
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILED
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 21 seconds
    [INFO] Finished at: Fri Sep 05 07:25:49 CEST 2008
    [INFO] Final Memory: 13M/60M
    [INFO] ------------------------------------------------------------------------
    If you read your console log you will understand.System is out of resources.So what this means?

    Answer is that this is answered many times especially in l2jfree forum.SO search if you cannot read and understand your console...

  8. #53
    Apprentice Skynet85 is offline
    MemberRank
    Feb 2006 Join Date
    8Posts

    Re: [Share]Best Guide for compile with maven!

    Hi all i would like to ask some help or advise i use eclipse and maven but when i compile gs i got this when i want to run the gs :
    Exception in thread "main" java.lang.NoClassDefFoundError: com/l2jfree/gameserver/GameServer
    Caused by: java.lang.ClassNotFoundException: com.l2jfree.gameserver.GameServer
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)

    Btw ls work fine...

  9. #54
    I WaNnA BE MoD... Krysna is offline
    MemberRank
    Mar 2006 Join Date
    Czech RepublicLocation
    262Posts

    Re: [Share]Best Guide for compile with maven!

    Ezereal you are right, when i look at google (it take about 3 hours) i found there all answers...sometimes its hard to find, but everytime u find :) so now i can say sorry for stupid questions and thank you for your perfect guide.

  10. #55
    Apprentice cobriux is offline
    MemberRank
    Jul 2007 Join Date
    lithuaniaLocation
    23Posts

    Re: [Share]Best Guide for compile with maven!

    nice guide,thanks :)

  11. #56
    Enthusiast carman777 is offline
    MemberRank
    Feb 2009 Join Date
    40Posts

    Re: [Share]Best Guide for compile with maven!

    nice guide, it worked very good for me, BUILD SUCCESSFUL!

    keep up the good work ;)

    EDIT: disregard this... it happened just once :(
    Last edited by carman777; 24-03-09 at 06:22 AM.

  12. #57
    Enthusiast carman777 is offline
    MemberRank
    Feb 2009 Join Date
    40Posts

    Re: [Share]Best Guide for compile with maven!

    Microsoft Windows [Version 5.2.3790]
    (C) Copyright 1985-2003 Microsoft Corp.

    E:\work\l2jfree-core>e:\maven\bin\mvn assembly:assembly -Dmaven.skip.tests=true
    [INFO] Scanning for projects...
    [INFO] Searching repository for plugin with prefix: 'assembly'.
    WAGON_VERSION: 1.0-beta-2
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Unnamed - l2jfree:l2jfree-core:jar:1.2.11
    [INFO] task-segment: [assembly:assembly] (aggregator-style)
    [INFO] ------------------------------------------------------------------------
    [INFO] Preparing assembly:assembly
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Unnamed - l2jfree:l2jfree-core:jar:1.2.11
    [INFO] ------------------------------------------------------------------------
    [INFO] [buildnumber:create {execution: default}]
    [INFO] Checking for local modifications: skipped.
    [INFO] Updating project files from SCM: skipped.
    Provider message:
    The svn command failed.
    Command output:
    'svn' is not recognized as an internal or external command,
    operable program or batch file.

    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Cannot get the revision information from the scm repository :
    Error!

    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 6 seconds
    [INFO] Finished at: Tue Mar 24 03:28:50 EET 2009
    [INFO] Final Memory: 7M/14M
    [INFO] ------------------------------------------------------------------------
    E:\work\l2jfree-core>


    pls tell me what seems to be wrong :(
    I tried with many versions of subversion or tortoise, i tried with eclipse or 'cmd' and i still get that error...

    me using maven 2.1.0

  13. #58
    Enthusiast carman777 is offline
    MemberRank
    Feb 2009 Join Date
    40Posts

    Re: [Share]Best Guide for compile with maven!

    anyone? any thoughts? pls, me desperate :(

  14. #59
    Enthusiast carman777 is offline
    MemberRank
    Feb 2009 Join Date
    40Posts

    Re: [Share]Best Guide for compile with maven!

    ok, thanks for nothing.

  15. #60
    Account Upgraded | Title Enabled! NIkSP@CE is offline
    MemberRank
    Dec 2006 Join Date
    Greece-AeginaLocation
    412Posts

    Re: [Share]Best Guide for compile with maven!

    is simple my friend u have to install Subversion. search it in google!!



Page 4 of 5 FirstFirst 12345 LastLast

Advertisement