i could not set my Java correctly thus i use second command with editing JAVA_HOME at command line
merve@merve-c500:~$ mvn -v Warning: JAVA_HOME environment variable is not set. Apache Maven 3.0.4 Maven home: /usr/share/maven Java version: 1.6.0_27, vendor: Sun Microsystems Inc. Java home: /usr/lib/jvm/java-6-openjdk-i386/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.2.0-23-generic-pae", arch: "i386", family: "unix" merve@merve-c500:~$ JAVA_HOME=/home/merve/jdk1.7.0_25 mvn -v Apache Maven 3.0.4 Maven home: /usr/share/maven Java version: 1.7.0_25, vendor: Oracle Corporation Java home: /home/merve/jdk1.7.0_25/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.2.0-23-generic-pae", arch: "i386", family: "unix" merve@merve-c500:~ 2013/8/16 Stefan Seelmann <[email protected]> > I suspect there is a encoding issue. Can you please post the output of > "mvn -v"? > > Kind Regards, > Stefan > > > On 08/16/2013 08:47 PM, Merve Temizer wrote: > > Hello again, > > > > I am getting an error with mvn clean install > > > > [INFO] > > [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ > > apacheds-core-shared --- > > [INFO] Nothing to compile - all classes are up to date > > [INFO] > > [INFO] --- maven-resources-plugin:2.5:testResources > (default-testResources) > > @ apacheds-core-shared --- > > [debug] execute contextualize > > [INFO] Using 'UTF-8' encoding to copy filtered resources. > > [INFO] skip non existing resourceDirectory > > > /home/merve/workspaces/workspacesonunsonu/apacheds/core-shared/src/test/resources > > [INFO] Copying 3 resources > > [INFO] Copying 3 resources > > [INFO] > > [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) > @ > > apacheds-core-shared --- > > [INFO] Nothing to compile - all classes are up to date > > [INFO] > > [INFO] --- maven-surefire-plugin:2.12:test (default-test) @ > > apacheds-core-shared --- > > [INFO] Tests are skipped. > > [INFO] > > [INFO] --- maven-bundle-plugin:2.3.7:bundle (default-bundle) @ > > apacheds-core-shared --- > > [ERROR] An internal error occurred > > java.io.IOException: Opening resource > > at > aQute.lib.osgi.AbstractResource.getLocalBytes(AbstractResource.java:35) > > at aQute.lib.osgi.AbstractResource.write(AbstractResource.java:46) > > at aQute.lib.osgi.Jar.writeResource(Jar.java:445) > > at aQute.lib.osgi.Jar.write(Jar.java:224) > > at aQute.lib.osgi.Jar.write(Jar.java:192) > > at > org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:362) > > at > org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:264) > > at > org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:255) > > at > > > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > > at > > > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > > 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:320) > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > > 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:606) > > 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:409) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) > > Caused by: java.util.UnknownFormatConversionException: Conversion = '�' > > at java.util.Formatter.checkText(Formatter.java:2547) > > at java.util.Formatter.parse(Formatter.java:2533) > > at java.util.Formatter.format(Formatter.java:2469) > > at java.util.Formatter.format(Formatter.java:2423) > > at java.lang.String.format(String.java:2797) > > at aQute.lib.osgi.Processor.formatArrays(Processor.java:1273) > > at aQute.lib.osgi.Processor.warning(Processor.java:116) > > at aQute.lib.osgi.Macro.replace(Macro.java:144) > > at aQute.lib.osgi.Macro.process(Macro.java:71) > > at aQute.lib.osgi.Macro.process(Macro.java:58) > > at aQute.lib.osgi.Macro.process(Macro.java:53) > > at aQute.lib.osgi.Macro.process(Macro.java:964) > > at aQute.lib.osgi.PreprocessResource.getBytes(PreprocessResource.java:25) > > at > aQute.lib.osgi.AbstractResource.getLocalBytes(AbstractResource.java:31) > > ... 28 more > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Reactor Summary: > > [INFO] > > [INFO] ApacheDS .......................................... SUCCESS > [4.341s] > > [INFO] ApacheDS I18n ..................................... SUCCESS > [2.923s] > > [INFO] ApacheDS Core Constants ........................... SUCCESS > [1.128s] > > [INFO] ApacheDS Core API ................................. SUCCESS > [24.125s] > > [INFO] ApacheDS Core Shared .............................. FAILURE > [6.485s] > > [INFO] ApacheDS Interceptors ............................. SKIPPED > > [INFO] ApacheDS AdministrativePoint Interceptor .......... SKIPPED > > [INFO] ApacheDS Authentication Interceptor ............... SKIPPED > > [INFO] ApacheDS Authorization Interceptor ................ SKIPPED > > [INFO] ApacheDS ChangeLog Interceptor .................... SKIPPED > > [INFO] ApacheDS Collective Attribute Interceptor ......... SKIPPED > > [INFO] ApacheDS Event Interceptor ........................ SKIPPED > > [INFO] ApacheDS Exception Interceptor .................... SKIPPED > > [INFO] ApacheDS Journal Interceptor ...................... SKIPPED > > [INFO] ApacheDS Normalization Interceptor ................ SKIPPED > > [INFO] ApacheDS Operational Attribute Interceptor ........ SKIPPED > > [INFO] ApacheDS Referral Interceptor ..................... SKIPPED > > [INFO] ApacheDS Schema Interceptor ....................... SKIPPED > > [INFO] ApacheDS Subtree Interceptor ...................... SKIPPED > > [INFO] ApacheDS Triggers Interceptor ..................... SKIPPED > > [INFO] ApacheDS Core ..................................... SKIPPED > > [INFO] ApacheDS Core AVL ................................. SKIPPED > > [INFO] ApacheDS Generalized (X) DBM Partition ............ SKIPPED > > [INFO] ApacheDS LDIF Partition ........................... SKIPPED > > [INFO] ApacheDS JDBM Partition ........................... SKIPPED > > [INFO] ApacheDS Core Annotations ......................... SKIPPED > > [INFO] ApacheDS Core JNDI ................................ SKIPPED > > [INFO] ApacheDS Protocol Shared .......................... SKIPPED > > [INFO] ApacheDS Protocol Kerberos Codec .................. SKIPPED > > [INFO] ApacheDS Interceptors for Kerberos ................ SKIPPED > > [INFO] ApacheDS Protocol Dhcp ............................ SKIPPED > > [INFO] ApacheDS Protocol Dns ............................. SKIPPED > > [INFO] ApacheDS Protocol Kerberos ........................ SKIPPED > > [INFO] ApacheDS Protocol Ldap ............................ SKIPPED > > [INFO] ApacheDS Protocol Ntp ............................. SKIPPED > > [INFO] Apacheds Server Annotations ....................... SKIPPED > > [INFO] ApacheDS Server Config ............................ SKIPPED > > [INFO] ApacheDS Server JNDI .............................. SKIPPED > > [INFO] ApacheDS Server Replication Service ............... SKIPPED > > [INFO] ApacheDS Test Framework ........................... SKIPPED > > [INFO] ApacheDS Generalized (X) DBM Tools ................ SKIPPED > > [INFO] ApacheDS All ...................................... SKIPPED > > [INFO] ApacheDS Logger Interceptor ....................... SKIPPED > > [INFO] ApacheDS Password Hashing Interceptor ............. SKIPPED > > [INFO] ApacheDS Core Integration ......................... SKIPPED > > [INFO] ApacheDS Server Integration ....................... SKIPPED > > [INFO] ApacheDS DirectoryService-WebApp bridge ........... SKIPPED > > [INFO] ApacheDS Jetty HTTP Server Integration ............ SKIPPED > > [INFO] ApacheDS Service Builder .......................... SKIPPED > > [INFO] ApacheDS Protocol Kerberos Test ................... SKIPPED > > [INFO] Apache Directory LDAP Client API test ............. SKIPPED > > [INFO] ApacheDS Service .................................. SKIPPED > > [INFO] ApacheDS Wrapper .................................. SKIPPED > > [INFO] ApacheDS Installers Maven Plugin .................. SKIPPED > > [INFO] ApacheDS Installers ............................... SKIPPED > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] BUILD FAILURE > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Total time: 44.838s > > [INFO] Finished at: Fri Aug 16 21:36:47 EEST 2013 > > [INFO] Final Memory: 54M/296M > > [INFO] > > ------------------------------------------------------------------------ > > [ERROR] Failed to execute goal > > org.apache.felix:maven-bundle-plugin:2.3.7:bundle (default-bundle) on > > project apacheds-core-shared: Internal error in maven-bundle-plugin: > > Opening resource: Conversion = '�' -> [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/MojoExecutionException > > [ERROR] > > [ERROR] After correcting the problems, you can resume the build with the > > command > > [ERROR] mvn <goals> -rf :apacheds-core-shared > > > > > > 2013/8/16 Emmanuel Lécharny <[email protected]> > > > >> Le 8/16/13 6:11 PM, Merve Temizer a écrit : > >>> Thanks for reply. > >>> > >>> I have projects like apacheds-all apacheds-core in my worksace, and > they > >>> are standing in my workspace as individual projects. > >> > >> Yes, but they are both referencing to jars which are in your maven > >> repository. Changing the server-config content locally will not be seen > >> by the two projects you have unless you deploy it in your local > repository. > >>> > >>> Can i "mvn clean install -DskipTests" in apacheds-all? > >> You can, but it will just build apacheds-all. > >> > >>> > >>> I want to know if i should check out all the source every time i do > >> change > >>> in source. > >> > >> Well, if you change something in the sources, you probably want to have > >> all the sources being on your disk. You usually don't have to check out > >> the whole repository, doing a svn up from time to time will let you be > >> in sync with the latest version? > >> > >>> > >>> If i remeber right when i import them into workspace last time, they > came > >>> as individual projects. Thus now where can i run "mvn clean install > >>> -DskipTests" now? > >> > >> From trunk. > >> > >> > >> -- > >> Regards, > >> Cordialement, > >> Emmanuel Lécharny > >> www.iktek.com > >> > >> > > > >
