Page 1 of 1

Problem with building the src

Posted: Thu Apr 07, 2011 12:47 pm
by Sean
Hello,
I am trying to build LogicalDoc CE 6.1 from its source code.
When I execute mvn install using Maven version 2.0.10 I get the following build error:


[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to initialise extensions
Component descriptor role: 'org.apache.maven.wagon.CommandExecutor', implementation: 'org.apache.maven.wagon.providers.ssh.jsch.ScpCommandExecutor', role hint: 'scp' has a hint, but there are other implementations that don't


When I use Maven version 2.2.1 I get this error:


[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error resolving version for 'org.apache.maven.plugins:maven-site-plugin': Plugin requires Maven version 3.0


And finally when I use Maven 3.0.3, this error shows up:

Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
Caused by: java.lang.ClassNotFoundException: org.codehaus.classworlds.Launcher
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

My environment:
Java 1.6
Ant 1.8.2

I have no problem building the prior versions to 6.1
Could you please assist me with this issue.
Cheers

Re: Problem with building the src

Posted: Fri Apr 08, 2011 4:13 pm
by agaspa
In order to build the sources of LogicalDOC 6.0, 6.1 you need JDK 1.6, Maven 3.0.x, Ant 1.7 (minimum), GWT 2.1.1

Re: Problem with building the src

Posted: Mon Apr 11, 2011 3:07 pm
by Sean
Thanks very much. There was a confusion between mvn 2.2.1 and mvn 3.0.3 in my PATH variable.

Re: Problem with building the src

Posted: Tue Apr 12, 2011 10:27 am
by agaspa
Please let us know if you encounter other problems during build from source

Best regards
Alex :ugeek:

Re: Problem with building the src

Posted: Tue Apr 12, 2011 12:14 pm
by Sean
So far so good. I built 6.1 successfully, deployed the resulting war file and it worked fine.
However I already encountered a little bug maybe!
I create a new folder 'test1' under the main parent folder, then I created a new sub-folder 'test2' in 'test1'. Then
I tried to drag 'test2' and drop it in the main parent folder so that it could be in the same directory-level as 'test1'
but the move didn't take place. Is that intentionally so?
Regards

Re: Problem with building the src

Posted: Wed Apr 13, 2011 4:04 pm
by agaspa
You can't use drag'n'drop on folders, this feature is enabled only on files !

In order to move a folder use the folder contextual menu (mouse right on folder)

Re: Problem with building the src

Posted: Wed Apr 13, 2011 4:53 pm
by Sean
That's very odd, because I am able to drag and drop folders into each other without using the contextual menu.
Please make 3 folders under the parent directory and play around with them you will see what I mean :)
PS. I am on LogocalDoc 6.1

Re: Problem with building the src

Posted: Thu Oct 13, 2011 7:48 am
by wijjkey
Thanks! I managed to get it right on point. Been pulling my hair out for the last 2 hours :)