Hi folks,
 Thanks a lot for the advice. I am using Maven 3.1 and will try the
 instructions from Marius and let you know.
 On Thu, Aug 8, 2013 at 1:53 AM, Marius Dumitru Florea <
 mariusdumitru.florea(a)xwiki.com> wrote:
  In any case you don't have to build the
entire xwiki-platform-wysiwyg
 module. You should only build:
 xwiki-platform-wysiwyg-client (because it contains the modified
 translation file)
 xwiki-platform-wysiwyg-war (to obtain the WAR that contains the
 JavaScript files you need to copy to your XWIki instance)
 If your goal is just to test the pr_BR translation then you should edit
 xwiki-platform-wysiwyg-client/src/main/resources/org/xwiki/gwt/wysiwyg/WysiwygDev.gwt.xml
 and set the locale to pt_BR (it's set to 'default' now, which means
 English). This will reduce a lot the time to build the WAR when using
 mvn clean install -Pdev
 (i.e. the 'dev' profile). One more thing, don't overwrite the
 JavaScript files of the editor. Delete the existing
 /resources/js/xwiki/wysiwyg/xwe folder and copy the one from the WAR.
 Hope this helps,
 Marius
 On Thu, Aug 8, 2013 at 12:06 AM, Sergiu Dumitriu <sergiu(a)xwiki.org>
 wrote:
  Are you using Maven 3.1?
 On 08/07/2013 01:26 PM, Marcelo Vaz wrote:
> I am trying to build the WYSIWYG editor from source to complete the 
 pt_BR
 > translation and test it on my xwiki instance.
> I know the drill: get the sources and build with "mvn clean install" 
on the
 >
xwiki-platform-stable-5.1.x/xwiki-platform-core/xwiki-platform-wysiwyg
> directory.
> After trying for some time with no success I tried to build
> xwiki-platform-stable-5.1.x/xwiki-platform-tools and even
> xwiki-platform-stable-5.1.x/xwiki-platform-core/xwiki-platform-gwt 
 first
 > then tried to build the wysiwyg again. No
success.
> The same error keeps showing every time during the test phase of the
> wysiwyg build. Below an extract of the build messages for reference. I 
 have
 > the them all if you want to see it. I am
newbie with maven so I may be
> messing around inadvertently. Does anyone have any tip to help me?
>
> Thanks in advance,
> Marcelo Vaz
>
> Tail of the build messages:
>
> [INFO] --- maven-bundle-plugin:2.3.7:manifest (bundle-manifest) @
> xwiki-platform-wysiwyg-test-tests ---
> [INFO]
> [INFO] --- xwiki-platform-tool-packager-plugin:5.1.1-SNAPSHOT:package
> (default) @ xwiki-platform-wysiwyg-test-tests ---
> [WARNING] Error injecting: org.xwiki.tool.packager.PackageMojo
> java.lang.NoClassDefFoundError:
> Lorg/sonatype/aether/RepositorySystemSession;
> at java.lang.Class.getDeclaredFields0(Native Method)
>  at java.lang.Class.privateGetDeclaredFields(Class.java:2346)
> at java.lang.Class.getDeclaredFields(Class.java:1790)
>  at
> 
com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:661)
 > at
> 
com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:366)
 >  at
> 
com.google.inject.internal.ConstructorBindingImpl.getInternalDependencies(ConstructorBindingImpl.java:165)
 >  at
> 
com.google.inject.internal.InjectorImpl.getInternalDependencies(InjectorImpl.java:609)
 > at 
com.google.inject.internal.InjectorImpl.cleanup(InjectorImpl.java:565)
 >  at
> 
com.google.inject.internal.InjectorImpl.initializeJitBinding(InjectorImpl.java:551)
 > at
> 
com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:865)
 >  at
> 
com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:790)
 > at
> 
com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:278)
 >  at
> 
com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:210)
 > at
> 
com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:986)
 >  at
> 
 com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1019)
 > at
> 
 com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:982)
 >  at
> 
 com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1032)
 > at
> 
org.eclipse.sisu.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:44)
 >  at
> 
com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
 > at
> 
com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)
 >  at
> 
com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
 > at
> 
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
 >  at
> 
org.eclipse.sisu.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:134)
 >  at
> 
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:109)
 >  at
> 
com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
 >  at
> 
com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
 > at
> 
com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47)
 >  at 
com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997)
 > at
> 
 com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1047)
 >  at 
com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993)
 >> at com.google.inject.Scopes$1$1.get(Scopes.java:59)
 >  at 
org.eclipse.sisu.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:82)
 > at
> 
org.eclipse.sisu.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:52)
 >  at
> 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:259)
 > at
> 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:251)
 >  at
> 
org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:459)
 >  at
> 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:97)
 > at
> 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
 >  at
> 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 > at
> 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
 >  at
> 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
 >  at
> 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
 > at
> 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
 >  at
> 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
 >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:318)
 >>  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
 >> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
 >>  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
 >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
 >>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 > at
> 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 >  at
> 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 >> at java.lang.reflect.Method.invoke(Method.java:616)
 >  at
> 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
 > at
> 
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
 >  at
> 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414)
 > at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
 >> Caused by: java.lang.ClassNotFoundException:
 >> org.sonatype.aether.RepositorySystemSession
 > at
> 
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
 >  at
> 
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
 > at
> 
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
 >  ... 57 more
> [INFO]
> 
 ------------------------------------------------------------------------
 > [INFO] Reactor Summary:
> [INFO]
> [INFO] XWiki Platform - WYSIWYG Editor - Parent POM ...... SUCCESS 
 [9.857s]
 > [INFO] XWiki Platform - WYSIWYG Editor -
Plugin API ...... SUCCESS 
 [38.775s]
 > [INFO] XWiki Platform - WYSIWYG Editor -
Client Side ..... SUCCESS 
 [59.982s]
 > [INFO] XWiki Platform - WYSIWYG Editor -
Server Side ..... SUCCESS 
 [16.421s]
 > [INFO] XWiki Platform - WYSIWYG Editor -
Tests - Parent POM  SUCCESS
> [0.163s]
> [INFO] XWiki Platform - WYSIWYG Editor - Tests - Page Objects  SUCCESS
> [2.411s]
> [INFO] XWiki Platform - WYSIWYG Editor - WAR Distribution  SUCCESS
> [8:02.131s]
> [INFO] XWiki Platform - WYSIWYG Editor - Wiki Pages ...... SUCCESS 
 [26.881s]
 > [INFO] XWiki Platform - WYSIWYG Editor -
Tests - Functional Tests 
  FAILURE
 > [24.144s]
> [INFO]
> 
 ------------------------------------------------------------------------
 > [INFO] BUILD FAILURE
> [INFO]
> 
 ------------------------------------------------------------------------
 > [INFO] Total time: 11:02.988s
> [INFO] Finished at: Tue Aug 06 23:01:40 BRT 2013
> [INFO] Final Memory: 71M/321M
> [INFO]
> 
 ------------------------------------------------------------------------
 > [ERROR] Failed to execute goal
> 
 org.xwiki.platform:xwiki-platform-tool-packager-plugin:5.1.1-SNAPSHOT:package
 > (default) on project
xwiki-platform-wysiwyg-test-tests: Execution 
 default
 > of goal
> 
 org.xwiki.platform:xwiki-platform-tool-packager-plugin:5.1.1-SNAPSHOT:package
 > failed: A required class was missing while
executing
> 
 org.xwiki.platform:xwiki-platform-tool-packager-plugin:5.1.1-SNAPSHOT:package:
 > Lorg/sonatype/aether/RepositorySystemSession;
> [ERROR] -----------------------------------------------------
> [ERROR] realm =
> 
plugin>org.xwiki.platform:xwiki-platform-tool-packager-plugin:5.1.1-SNAPSHOT
 > [ERROR] strategy =
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] =
> 
file:/home/marcelo/.m2/repository/org/xwiki/platform/xwiki-platform-tool-packager-plugin/5.1.1-SNAPSHOT/xwiki-platform-tool-packager-plugin-5.1.1-SNAPSHOT.jar
 >
> ==== lots of URLs failed here ====
>
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import  from realm
> 
ClassRealm[project>org.xwiki.platform:xwiki-platform-wysiwyg:5.1.1-SNAPSHOT,
 > parent: ClassRealm[maven.api, parent: null]]]
> [ERROR]
> [ERROR] -----------------------------------------------------:
> org.sonatype.aether.RepositorySystemSession
> [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/AetherClassNotFound
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with 
 the
 > command
> [ERROR]   mvn <goals> -rf :xwiki-platform-wysiwyg-test-tests
> 
 ~/xwiki-platform-stable-5.1.x/xwiki-platform-core/xwiki-platform-wysiwyg $
 
_______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users
 
 --
 Sergiu Dumitriu
 
http://purl.org/net/sergiu
 _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users  
_______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users