The contents you find here are totally obsolete so do not use this website to obtain a solution for your issues: the indications you get from here will not be accurate and may lead to data loss or other mayor problems

Problem with building the src

We tried to make LogicalDOC as intuitive as possible, but an advice is always welcome.

Moderator: car031

Sean
Posts: 12
Joined: Thu Apr 07, 2011 12:29 pm

Problem with building the src

Thu Apr 07, 2011 12:47 pm

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
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: Problem with building the src

Fri Apr 08, 2011 4:13 pm

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
Sean
Posts: 12
Joined: Thu Apr 07, 2011 12:29 pm

Re: Problem with building the src

Mon Apr 11, 2011 3:07 pm

Thanks very much. There was a confusion between mvn 2.2.1 and mvn 3.0.3 in my PATH variable.
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: Problem with building the src

Tue Apr 12, 2011 10:27 am

Please let us know if you encounter other problems during build from source

Best regards
Alex :ugeek:
Sean
Posts: 12
Joined: Thu Apr 07, 2011 12:29 pm

Re: Problem with building the src

Tue Apr 12, 2011 12:14 pm

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
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: Problem with building the src

Wed Apr 13, 2011 4:04 pm

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)
Sean
Posts: 12
Joined: Thu Apr 07, 2011 12:29 pm

Re: Problem with building the src

Wed Apr 13, 2011 4:53 pm

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
wijjkey
Posts: 1
Joined: Wed Oct 12, 2011 12:55 pm

Re: Problem with building the src

Thu Oct 13, 2011 7:48 am

Thanks! I managed to get it right on point. Been pulling my hair out for the last 2 hours :)

Return to “Usage”

Who is online

Users browsing this forum: No registered users and 56 guests

× Attention! This forum has been dismissed and will be soon removed. The contents you find here are totally obsolete so do not use this website to obtain a solution for your issues: the indications you get from here will not be accurate and may lead to data loss or other mayor problems.