You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Gnanaguru S <gn...@wipro.com> on 2011/08/09 07:30:24 UTC

Mismatch in document and binary ( Windows)

Hi .

I downloaded latest version of karaf(2.2.2). 

as describe in the documentation(web) 



      The recommended method of building Karaf is the following:

      cd [karaf_install_dir]\src *( src directory is not available in the
unzipped directory )*

      where [karaf_install_dir] is the directory in which Karaf was
installed.

      mvn


Even if i do mvn in the karaf home directory, the following error log
appears ( picture below )

http://karaf.922171.n3.nabble.com/file/n3237896/Karaf_Gnanaguru.jpg 

if i do mvn install (picture below )

http://karaf.922171.n3.nabble.com/file/n3237896/Karaf_Gnanaguru_Error.jpg 

Kindly help me out. 

Regards
Guru





     

--
View this message in context: http://karaf.922171.n3.nabble.com/Mismatch-in-document-and-binary-Windows-tp3237896p3237896.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Mismatch in document and binary ( Windows)

Posted by Charles Moulliard <cm...@gmail.com>.
Hi Andreas,

We have also an issue too with the code src
(http://www.apache.org/dyn/closer.cgi/karaf/2.2.2/apache-karaf-2.2.2-src.tar.gz)
for Unix Platform (MacOS).

/..../.../apache-karaf-2.2.2/src

mvn install --debug
....
[DEBUG] Configuring mojo
org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce from plugin
realm ClassRealm[plugin>org.apache.maven.plugins:maven-enforcer-plugin:1.0,
parent: sun.misc.Launcher$AppClassLoader@61e63e3d]
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce' with
basic configurator -->
[DEBUG]   (s) fail = true
[DEBUG]   (s) failFast = false
[DEBUG]   (f) ignoreCache = false
[DEBUG]   (s) project = MavenProject: org.apache.karaf:karaf:2.2.2 @
/Users/charlesmoulliard/Downloads/apache-karaf-2.2.2/src/pom.xml
[DEBUG]   (s) version = [2.2.1,3)
[DEBUG]   (s) version = [1.5,1.6.1)
[DEBUG]   (s) rules =
[org.apache.maven.plugins.enforcer.RequireMavenVersion@2743724e,
org.apache.maven.plugins.enforcer.RequireJavaVersion@3d057305]
[DEBUG]   (s) session = org.apache.maven.execution.MavenSession@2c65394b
[DEBUG]   (s) skip = false
[DEBUG] -- end configuration --
[DEBUG] Executing rule: org.apache.maven.plugins.enforcer.RequireMavenVersion
[DEBUG] Rule org.apache.maven.plugins.enforcer.RequireMavenVersion is cacheable.
[DEBUG] Detected Maven Version: 3.0.3
[DEBUG] Adding failure due to exception
org.apache.maven.enforcer.rule.api.EnforcerRuleException: Detected
Maven Version: 3.0.3 is not in the allowed range [2.2.1,3).
	at org.apache.maven.plugins.enforcer.AbstractVersionEnforcer.enforceVersion(AbstractVersionEnforcer.java:101)
	at org.apache.maven.plugins.enforcer.RequireMavenVersion.execute(RequireMavenVersion.java:51)
	at org.apache.maven.plugins.enforcer.EnforceMojo.execute(EnforceMojo.java:186)
	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:319)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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)
[DEBUG] Executing rule: org.apache.maven.plugins.enforcer.RequireJavaVersion
[DEBUG] Rule org.apache.maven.plugins.enforcer.RequireJavaVersion is cacheable.
[DEBUG] Detected Java String: 1.6.0_26
[DEBUG] Normalized Java String: 1.6.0-26
[DEBUG] Parsed Version: Major: 1 Minor: 6 Incremental: 0 Build: 26
Qualifier: null
[DEBUG] Detected JDK Version: 1.6.0-26 is allowed in the range [1.5,1.6.1).
[WARNING] Rule 0:
org.apache.maven.plugins.enforcer.RequireMavenVersion failed with
message:
Detected Maven Version: 3.0.3 is not in the allowed range [2.2.1,3).
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Karaf ...................................... FAILURE [0.554s]
[INFO] Apache Karaf :: Util .............................. SKIPPED
[INFO] Apache Karaf :: Main .............................. SKIPPED
[INFO] Apache Karaf :: JAAS .............................. SKIPPED
[INFO] Apache Karaf :: JAAS :: Boot ...................... SKIPPED
[INFO] Apache Karaf :: JAAS :: Config .................... SKIPPED
[INFO] Apache Karaf :: JAAS :: Modules ................... SKIPPED
[INFO] Apache Karaf :: Shell ............................. SKIPPED
[INFO] Apache Karaf :: Shell :: Console .................. SKIPPED
[INFO] Apache Karaf :: Shell :: OBR Commands ............. SKIPPED
[INFO] Apache Karaf :: Features .......................... SKIPPED
[INFO] Apache Karaf :: Features :: Core .................. SKIPPED
[INFO] Apache Karaf :: Features :: Command ............... SKIPPED
[INFO] Apache Karaf :: Management ........................ SKIPPED
[INFO] Apache Karaf :: Features :: Management ............ SKIPPED
[INFO] Apache Karaf :: Features :: OBR Resolver .......... SKIPPED
[INFO] Apache Karaf :: Admin ............................. SKIPPED
[INFO] Apache Karaf :: Admin :: Core ..................... SKIPPED
[INFO] Apache Karaf :: Admin :: Command .................. SKIPPED
[INFO] Apache Karaf :: Admin :: Management ............... SKIPPED
[INFO] Apache Karaf :: Deployer .......................... SKIPPED
[INFO] Apache Karaf :: Deployer :: Spring ................ SKIPPED
[INFO] Apache Karaf :: Deployer :: Blueprint ............. SKIPPED
[INFO] Apache Karaf :: Deployer :: Features .............. SKIPPED
[INFO] Apache Karaf :: Deployer :: Karaf Archive (.kar) .. SKIPPED
[INFO] Apache Karaf :: Deployer :: Wrap Non OSGi Jar ..... SKIPPED
[INFO] Apache Karaf :: Shell :: Various Commands ......... SKIPPED
[INFO] Apache Karaf :: Shell :: ConfigAdmin Commands ..... SKIPPED
[INFO] Apache Karaf :: Shell :: Log Commands ............. SKIPPED
[INFO] Apache Karaf :: Shell :: OSGi Commands ............ SKIPPED
[INFO] Apache Karaf :: Shell :: PackageAdmin Commands .... SKIPPED
[INFO] Apache Karaf :: Shell :: SSH ...................... SKIPPED
[INFO] Apache Karaf :: Shell :: Service Wrapper .......... SKIPPED
[INFO] Apache Karaf :: Shell :: Development Commands ..... SKIPPED
[INFO] Apache Karaf :: Shell :: Web Commands ............. SKIPPED
[INFO] Apache Karaf :: JAAS :: Jasypt Encryption ......... SKIPPED
[INFO] Apache Karaf :: Jaas :: Command ................... SKIPPED
[INFO] Apache Karaf :: Client ............................ SKIPPED
[INFO] Apache Karaf :: Web Console ....................... SKIPPED
[INFO] Apache Karaf :: Web Console :: Console ............ SKIPPED
[INFO] Apache Karaf :: Web Console :: Branding ........... SKIPPED
[INFO] Apache Karaf :: Web Console :: Features Plugin .... SKIPPED
[INFO] Apache Karaf :: Web Console :: Gogo Plugin ........ SKIPPED
[INFO] Apache Karaf :: Web Console :: Admin Plugin ....... SKIPPED
[INFO] Apache Karaf :: Exception ......................... SKIPPED
[INFO] Apache Karaf :: Assemblies ........................ SKIPPED
[INFO] Apache Karaf :: Assemblies :: Features ............ SKIPPED
[INFO] Apache Karaf :: Assemblies :: Features :: Standard  SKIPPED
[INFO] Apache Karaf :: Assemblies :: Features :: Enterprise  SKIPPED
[INFO] Apache Karaf :: Diagnostic ........................ SKIPPED
[INFO] Apache Karaf :: Diagnostic :: Core ................ SKIPPED
[INFO] Apache Karaf :: Diagnostic :: Common .............. SKIPPED
[INFO] Apache Karaf :: Diagnostic :: Command ............. SKIPPED
[INFO] Apache Karaf :: Diagnostic :: Management .......... SKIPPED
[INFO] Apache Karaf :: Tooling ........................... SKIPPED
[INFO] Apache Karaf :: Tooling :: Maven2 Features plugin . SKIPPED
[INFO] Apache Karaf :: Assembly .......................... SKIPPED
[INFO] Apache Karaf :: Demos ............................. SKIPPED
[INFO] Apache Karaf :: Demos :: Web ...................... SKIPPED
[INFO] Apache Karaf :: Demos :: Branding ................. SKIPPED
[INFO] Apache Karaf :: Demos :: Branding :: Shell ........ SKIPPED
[INFO] Apache Karaf :: Demos :: Demo Dump provider ....... SKIPPED
[INFO] Apache Karaf :: Integration Tests ................. SKIPPED
[INFO] Apache Karaf :: Integration Tests :: Dependencies . SKIPPED
[INFO] Apache Karaf :: Tooling :: Testing environment .... SKIPPED
[INFO] Apache Karaf :: Integration Tests :: ITests ....... SKIPPED
[INFO] Apache Karaf :: Integration Tests :: Kit Tests .... SKIPPED
[INFO] Apache Karaf :: Tooling :: Maven2 Command Help plugin  SKIPPED
[INFO] Apache Karaf :: Archetypes ........................ SKIPPED
[INFO] Apache Karaf :: Command Archetype ................. SKIPPED
[INFO] Apache Karaf :: Archetypes :: ITests .............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.494s
[INFO] Finished at: Tue Aug 09 08:09:13 CEST 2011
[INFO] Final Memory: 18M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce
(enforce-versions) on project karaf: Some Enforcer rules have failed.
Look above for specific messages explaining why the rule failed. ->
[Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce
(enforce-versions) on project karaf: Some Enforcer rules have failed.
Look above for specific messages explaining why the rule failed.
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
	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:319)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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: org.apache.maven.plugin.MojoExecutionException: Some
Enforcer rules have failed. Look above for specific messages
explaining why the rule failed.
	at org.apache.maven.plugins.enforcer.EnforceMojo.execute(EnforceMojo.java:219)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 19 more


Regards,

Charles Moulliard

Apache Committer

Blog : http://cmoulliard.blogspot.com
Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard
Skype: cmoulliard



On Tue, Aug 9, 2011 at 7:57 AM, Andreas Pieber <an...@gmail.com> wrote:
> Hey,
>
> Did you download the binary or the source distribution?
>
> Kind regards Andreas
>
> On Aug 9, 2011 7:31 AM, "Gnanaguru S" <gn...@wipro.com>
> wrote:
>>
>> Hi .
>>
>> I downloaded latest version of karaf(2.2.2).
>>
>> as describe in the documentation(web)
>>
>>
>>
>> The recommended method of building Karaf is the following:
>>
>> cd [karaf_install_dir]\src *( src directory is not available in the
>> unzipped directory )*
>>
>> where [karaf_install_dir] is the directory in which Karaf was
>> installed.
>>
>> mvn
>>
>>
>> Even if i do mvn in the karaf home directory, the following error log
>> appears ( picture below )
>>
>> http://karaf.922171.n3.nabble.com/file/n3237896/Karaf_Gnanaguru.jpg
>>
>> if i do mvn install (picture below )
>>
>> http://karaf.922171.n3.nabble.com/file/n3237896/Karaf_Gnanaguru_Error.jpg
>>
>> Kindly help me out.
>>
>> Regards
>> Guru
>>
>>
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/Mismatch-in-document-and-binary-Windows-tp3237896p3237896.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>

Re: Mismatch in document and binary ( Windows)

Posted by Andreas Pieber <an...@gmail.com>.
Mhm... located the parts you've pasted in the usermanual. But it contains
the following sentence:

# Scroll down to the "Apache Karaf" section and select the desired
distribution.
For a source distribution, the filename will be similar to:
{{apache-karaf-x.y-src.zip}}.

Which contains the src folder and allows you to build Karaf with the right
pre-requisites (mvn 2.2.x and java5 for karaf 2.2.x; mvn 3.x and java6 for
the trunk)

Kind regards,
Andreas

On Tue, Aug 9, 2011 at 08:49, Andreas Pieber <an...@gmail.com> wrote:

> Well, the binary distribution does not contain the sources. You have to
> download the source distribution. But well, you're right, this is not really
> documented on [1]. I'll fix this.
>
> Kind regards,
> Andreas
>
> [1] http://karaf.apache.org/index/developers/building.html
>
>
> On Tue, Aug 9, 2011 at 08:37, Gnanaguru S <gnanaguru.sattanathan@wipro.com
> > wrote:
>
>>
>> hi Andreas,
>>
>> I downloaded the Binary.
>>
>>
>> Cheers
>> Guru
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/Mismatch-in-document-and-binary-Windows-tp3237896p3238047.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>
>

Re: Mismatch in document and binary ( Windows)

Posted by Andreas Pieber <an...@gmail.com>.
Well, the binary distribution does not contain the sources. You have to
download the source distribution. But well, you're right, this is not really
documented on [1]. I'll fix this.

Kind regards,
Andreas

[1] http://karaf.apache.org/index/developers/building.html

On Tue, Aug 9, 2011 at 08:37, Gnanaguru S
<gn...@wipro.com>wrote:

>
> hi Andreas,
>
> I downloaded the Binary.
>
>
> Cheers
> Guru
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Mismatch-in-document-and-binary-Windows-tp3237896p3238047.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

Re: Mismatch in document and binary ( Windows)

Posted by Gnanaguru S <gn...@wipro.com>.
hi Andreas,

I downloaded the Binary.


Cheers
Guru

--
View this message in context: http://karaf.922171.n3.nabble.com/Mismatch-in-document-and-binary-Windows-tp3237896p3238047.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Mismatch in document and binary ( Windows)

Posted by Andreas Pieber <an...@gmail.com>.
Hey,

Did you download the binary or the source distribution?

Kind regards Andreas
On Aug 9, 2011 7:31 AM, "Gnanaguru S" <gn...@wipro.com>
wrote:
>
> Hi .
>
> I downloaded latest version of karaf(2.2.2).
>
> as describe in the documentation(web)
>
>
>
> The recommended method of building Karaf is the following:
>
> cd [karaf_install_dir]\src *( src directory is not available in the
> unzipped directory )*
>
> where [karaf_install_dir] is the directory in which Karaf was
> installed.
>
> mvn
>
>
> Even if i do mvn in the karaf home directory, the following error log
> appears ( picture below )
>
> http://karaf.922171.n3.nabble.com/file/n3237896/Karaf_Gnanaguru.jpg
>
> if i do mvn install (picture below )
>
> http://karaf.922171.n3.nabble.com/file/n3237896/Karaf_Gnanaguru_Error.jpg
>
> Kindly help me out.
>
> Regards
> Guru
>
>
>
>
>
>
>
> --
> View this message in context:
http://karaf.922171.n3.nabble.com/Mismatch-in-document-and-binary-Windows-tp3237896p3237896.html
> Sent from the Karaf - User mailing list archive at Nabble.com.