Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Build fails on Windows OS #1839

Open
LEQADA opened this issue Oct 31, 2018 · 1 comment
Open

Build fails on Windows OS #1839

LEQADA opened this issue Oct 31, 2018 · 1 comment

Comments

@LEQADA
Copy link

LEQADA commented Oct 31, 2018

It was reported (and I was able to reproduce it) that mvnw clean install -DskipTests fails on Windows (at least on 7 and 10) with the following error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.3:jar (attach-javadocs) on project commercetools-sdk-base: MavenReportException: Error while generat
ing Javadoc: 
[ERROR] Exit code: 1 - javadoc: warning - No source files for package syntax
[ERROR] javadoc: warning - No source files for package accessibility
[ERROR] javadoc: warning - No source files for package reference
[ERROR] javadoc: warning - No source files for package syntax
[ERROR] javadoc: warning - No source files for package accessibility
[ERROR] javadoc: warning - No source files for package reference
[ERROR] java.lang.RuntimeException: cannot find file for io.sphere.sdk.products.expansion.ProductProjectionExpansionModelTest for C:\Users\User\IdeaProjects\commercetools-jvm-sdk\com
mercetools-sdk-base\src\main\java\io\sphere\sdk\expansion\MetaModelReferenceExpansionDsl.java:15 in C:\Users\User\IdeaProjects\commercetools-jvm-sdk\commercetools-sdk-base\target
[ERROR] in
[ERROR] @include.example:io.sphere.sdk.products.expansion.ProductProjectionExpansionModelTest#expandCategoriesDemo()

mvnw clean install -DskipTests -Dmaven.javadoc.skip=true also fails with the following error:

java.lang.RuntimeException: cannot find io/sphere/sdk/client/ApacheHttpClientAdapterIntegrationTest: io.sphere.sdk.client.ApacheHttpClientAdapterIntegrationTest
 found in io/sphere/sdk/client/ApacheHttpClientAdapterIntegrationTest.class
        at javassist.CtClassType.getClassFile3(CtClassType.java:208)
        at javassist.CtClassType.getClassFile2(CtClassType.java:173)
        at javassist.CtClassType.getInterfaces(CtClassType.java:763)
        at javassist.CtClassType.getMethods0(CtClassType.java:1161)
        at javassist.CtClassType.getMethods(CtClassType.java:1155)
        at io.sphere.sdk.plugin.ChildCreationMojo.shouldCreateChild(ChildCreationMojo.java:125)
        at io.sphere.sdk.plugin.ChildCreationMojo.generateChildClasses(ChildCreationMojo.java:109)
        at io.sphere.sdk.plugin.ChildCreationMojo.execute(ChildCreationMojo.java:88)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.maven.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:39)
        at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:122)
        at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:50)
...
[ERROR] Failed to execute goal com.commercetools.sdk.jvm.core:mirror-subclass-plugin:1.25.0:process-classes (default) on project commercetools-tests-fragment: Error occurred while processing dependencies: cannot find io/sphere/sdk/client/ApacheHttpClientAdapterIntegrationTest: io.sphere.sdk.client.ApacheHttpClientAdapterIntegrationTest found in io/sphere/sdk/client/ApacheHttpClientAdapterIntegrationTest.class -> [Help 1]

$> mvnw -version
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T22:39:0
6+03:00)
Maven home: C:\Users\Test\.m2\wrapper\dists\apache-maven-3.5.0-bin\6ps54u5pnnbbp
r6ds9rppcc7iv\apache-maven-3.5.0
Java version: 1.8.0_191, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_191\jre
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
@ulvimardaliyev
Copy link

I checked mvn clean install -DskipTests -Dmaven.javadoc.skip=true on Windows 10, from the terminal of Intellij Idea Ultimate version 2018.2.5, unfortunately, Build Failure occurred. But, using Ubuntu Terminal on Windows which is downloaded from Windows Store, fixes all problems and on the same IDE, there were no errors, no importing notifications about ProductCatalogDataImplBase class.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants