Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use maven to build IOTS in windows10, get error: the command line is too long #1913

Open
smhasan11 opened this issue Apr 12, 2019 · 1 comment

Comments

@smhasan11
Copy link

Description:
My source file is in C:\wso2\product-iots.
Ran

mvn clean install "-Dmaven.skip.test=true"

from windows power-shell, cygwin, and git bash shell. in all cases getting following error:

[INFO]
[INFO] --- carbon-p2-plugin:1.5.4:p2-profile-gen (3-p2-profile-generation) @ wso2iot-core-p2-profile ---
[INFO] Running Equinox P2 Director Application
[INFO] Command line:
        cmd.exe /X /C ""C:\Program Files\Java\jdk1.8.0_201\jre\bin\java.exe" -jar "C:\Users\Hasan Syed\.m2\repository\org\eclipse\tycho\tycho-p2-runtime\0.13.0\eclipse\plugins\org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar" -nosplash -application org.eclipse.equinox.p2.director -metadataRepository file:C:/wso2/product-iots/modules/p2-profile/iot-core-profile/target/p2-repo -artifactRepository file:C:/wso2/product-iots/modules/p2-profile/iot-core-profile/target/p2-repo -profileProperties org.eclipse.update.install.features=true -installIU org.wso2.carbon.identity.captcha.server.feature.group/1.0.38,org.wso2.carbon.identity.governance.feature.group/1.0.38,org.wso2.carbon.identity.handler.event.account.lock.feature.group/1.1.12,org.wso2.carbon.identity.inbound.metadata.saml2.server.feature.group/0.1.1,org.wso2.carbon.identity.sp.metadata.saml2.server.feature.group/1.0.5,org.wso2.iot.core.styles.feature.group/3.3.1.SNAPSHOT,org.wso2.carbon.appmgt.mdm.osgiconnector.feature.group/4.1.20,org.wso2.carbon.appmgt.mdm.restconnector.feature.group/4.1.20,org.wso2.carbon.appmgt.core.feature.group/1.2.57,org.wso2.carbon.appmgt.mdm.wso2emm.feature.group/1.2.57,org.wso2.carbon.appmgt.mobile.feature.group/1.2.57,org.wso2.carbon.appmgt.publisher.feature.group/1.2.57,org.wso2.carbon.appmgt.services.api.feature.group/1.2.57,org.wso2.carbon.store.feature.group/1.5.1,org.wso2.carbon.appmgt.store.feature.group/1.2.57,org.wso2.carbon.social.feature.group/1.5.1,org.wso2.carbon.appmgt.rest.api.store.feature.group/1.2.57,org.wso2.carbon.appmgt.rest.api.publisher.feature.group/1.2.57,org.wso2.carbon.appmgt.oauth.feature.group/1.2.57,org.wso2.carbon.device.mgt.feature.group/3.1.51,org.wso2.carbon.device.mgt.extensions.feature.group/3.1.51,org.wso2.carbon.policy.mgt.server.feature.group/3.1.51,org.wso2.carbon.apimgt.application.extension.feature.group/3.1.51,org.wso2.carbon.apimgt.integration.client.feature.group/3.1.51,org.wso2.carbon.email.sender.feature.group/3.1.51,org.wso2.carbon.certificate.mgt.server.feature.group/3.1.51,org.wso2.carbon.certificate.mgt.api.feature.group/3.1.51,org.wso2.carbon.certificate.mgt.cert.admin.api.feature.group/3.1.51,org.wso2.carbon.webapp.authenticator.framework.server.feature.group/3.1.51,org.wso2.carbon.apimgt.webapp.publisher.feature.group/3.1.51,org.wso2.carbon.apimgt.handler.server.feature.group/3.1.51,org.wso2.carbon.device.mgt.oauth.extensions.feature.group/3.1.51,org.wso2.carbon.identity.jwt.client.extension.feature.group/3.1.51,org.wso2.carbon.device.mgt.analytics.feature.group/3.1.51,org.wso2.carbon.device.mgt.extensions.device.type.deployer.feature.group/3.1.51,org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt.feature.group/3.1.51,org.wso2.carbon.device.mgt.extensions.push.notification.provider.http.feature.group/3.1.51,org.wso2.carbon.device.mgt.extensions.push.notification.provider.fcm.feature.group/3.1.51,org.wso2.carbon.device.mgt.extensions.push.notification.provider.xmpp.feature.group/3.1.51,org.wso2.carbon.device.mgt.mobile.android.feature.group/4.1.20,org.wso2.carbon.device.mgt.mobile.windows.feature.group/4.1.20,org.wso2.carbon.device.mgt.notification.listener.feature.group/4.1.20,org.wso2.carbon.device.mgt.adapter.feature.group/4.1.20,org.wso2.carbon.webapp.mgt.feature.group/4.7.15,org.wso2.carbon.module.mgt.feature.group/4.7.15,org.wso2.carbon.as.runtimes.cxf.feature.group/4.7.15,org.wso2.carbon.service.mgt.server.feature.group/4.7.15,org.wso2.carbon.application.deployer.webapp.feature.group/4.7.15,org.jaggeryjs.feature.group/0.12.8,org.jaggeryjs.modules.carbon.feature.group/1.5.6,org.jaggeryjs.modules.process.feature.group/1.5.6,org.jaggeryjs.modules.uuid.feature.group/1.5.6,org.jaggeryjs.modules.sso.feature.group/1.5.6,org.jaggeryjs.modules.i18n.feature.group/1.5.6,org.jaggeryjs.modules.ws.feature.group/1.5.6,org.wso2.carbon.dashboards.shindig.feature.group/2.0.16,org.wso2.carbon.dashboards.portal.feature.group/2.0.16,org.wso2.carbon.dashboard.deployment.feature.group/2.0.16,org.wso2.carbon.iot.device.statistics.dashboard.feature.group/4.1.20,org.wso2.carbon.apimgt.keymanager.feature.group/6.2.201,org.wso2.carbon.apimgt.core.feature.group/6.2.201,org.wso2.carbon.apimgt.rest.api.dcr.feature.group/6.2.201,org.wso2.carbon.apimgt.rest.api.publisher.feature.group/6.2.201,org.wso2.carbon.identity.mgt.feature.group/5.11.148,org.wso2.carbon.apimgt.rest.api.store.feature.group/6.2.201,org.wso2.carbon.apimgt.gateway.feature.group/6.2.201,org.wso2.carbon.forum.server.feature.group/6.2.201,org.wso2.carbon.apimgt.publisher.feature.group/6.2.201,org.wso2.carbon.databridge.datapublisher.feature.group/5.1.37,org.wso2.carbon.event.input.adapter.server.feature.group/5.1.37,org.wso2.carbon.application.mgt.feature.group/4.6.21,org.wso2.carbon.logging.mgt.feature.group/4.6.21,org.wso2.carbon.ntask.feature.group/4.6.21,org.wso2.carbon.tenant.mgt.common.feature.group/4.6.21,org.wso2.carbon.tenant.usage.agent.feature.group/4.6.11,org.wso2.carbon.tenant.throttling.agent.feature.group/4.6.11,org.wso2.carbon.tenant.deployment.feature.group/4.6.11,org.wso2.carbon.tenant.common.feature.group/4.6.11,org.wso2.carbon.tenant.mgt.core.feature.group/4.6.11,org.wso2.carbon.security.mgt.feature.group/5.11.148,org.wso2.carbon.um.ws.service.feature.group/5.1.8,org.wso2.carbon.identity.oauth.server.feature.group/5.6.63,org.wso2.carbon.identity.provider.server.feature.group/5.2.5,org.wso2.carbon.identity.thrift.authentication.feature.group/5.11.148,org.wso2.carbon.identity.core.feature.group/5.11.148,org.wso2.carbon.idp.mgt.feature.group/5.11.148,org.wso2.carbon.user.mgt.feature.group/5.11.148,org.wso2.carbon.directory.service.mgr.server.feature.group/5.11.148,org.wso2.carbon.identity.application.authz.xacml.server.feature.group/2.0.2,org.wso2.carbon.identity.application.authenticator.basicauth.server.feature.group/5.3.7,org.wso2.carbon.identity.application.authentication.framework.server.feature.group/5.11.148,org.wso2.carbon.identity.authenticator.saml2.sso.feature.group/5.2.6,org.wso2.carbon.identity.sso.saml.feature.group/5.4.6,org.wso2.carbon.identity.user.profile.feature.group/5.11.148,org.wso2.carbon.identity.application.mgt.feature.group/5.11.148,org.wso2.carbon.claim.mgt.server.feature.group/5.11.148,org.wso2.carbon.claim.mgt.feature.group/5.11.148,org.wso2.carbon.identity.oauth.ui.feature.group/5.6.63,org.wso2.carbon.identity.notification.mgt.feature.group/5.11.148,org.wso2.carbon.identity.xacml.server.feature.group/5.11.148,org.wso2.carbon.identity.user.registration.feature.group/5.11.148,org.wso2.carbon.identity.application.authenticator.basicauth.server.feature.group/5.3.7,org.wso2.carbon.identity.application.authenticator.requestpath.basicauth.server.feature.group/5.1.5,org.wso2.carbon.identity.application.authenticator.requestpath.oauth.server.feature.group/5.1.4,org.wso2.carbon.identity.application.authenticator.samlsso.server.feature.group/5.1.12,org.wso2.carbon.registry.core.feature.group/4.6.28,org.wso2.carbon.registry.ui.menu.feature.group/4.6.28,org.wso2.carbon.registry.resource.properties.feature.group/4.6.28,org.wso2.carbon.registry.associations.dependencies.feature.group/4.6.28,org.wso2.carbon.registry.community.features.feature.group/4.6.28,org.wso2.carbon.registry.ws.feature.group/4.6.28,org.wso2.carbon.registry.contentsearch.feature.group/4.6.28,org.wso2.carbon.registry.ui.menu.governance.feature.group/4.6.28,org.wso2.carbon.registry.task.server.feature.group/4.6.28,org.wso2.carbon.governance.metadata.feature.group/4.7.23,org.wso2.carbon.governance.lifecycle.management.feature.group/4.7.23,org.wso2.carbon.registry.extensions.feature.group/4.7.23,org.apache.axis2.transport.mail.feature.group/1.1.0.wso2v17,org.apache.synapse.wso2.feature.group/4.6.64,org.apache.synapse.transport.nhttp.feature.group/4.6.64,org.wso2.carbon.mediation.initializer.feature.group/4.6.64,org.wso2.carbon.mediation.ntask.feature.group/4.6.64,org.wso2.carbon.inbound.endpoints.server.feature.group/4.6.64,org.wso2.carbon.mediators.server.feature.group/4.6.64,org.wso2.carbon.mediation.admin.feature.group/4.6.64,org.wso2.carbon.task.server.feature.group/4.6.64,org.wso2.carbon.mediation.ui.feature.group/4.6.64,org.wso2.carbon.mediator.cache.feature.group/4.6.64,org.wso2.ciphertool.feature.group/1.0.0.wso2v6,caramel.feature.group/1.0.1,org.wso2.carbon.core.feature.group/4.4.26,org.wso2.carbon.core.runtime.feature.group/4.4.26,org.wso2.carbon.core.ui.feature.group/4.4.26,org.wso2.carbon.module.mgt.server.feature.group/4.7.15,org.wso2.carbon.ndatasource.feature.group/4.6.21,org.wso2.carbon.ndatasource.capp.deployer.server.feature.group/4.6.21,org.wso2.carbon.ntask.core.feature.group/4.6.21,org.wso2.carbon.identity.authenticator.saml2.sso.server.feature.group/5.2.6,org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature.group/5.2.6,org.wso2.carbon.identity.application.mgt.server.feature.group/5.11.148,org.wso2.carbon.directory.service.mgr.feature.group/5.11.148,org.wso2.carbon.idp.mgt.server.feature.group/5.11.148,org.wso2.carbon.identity.user.registration.server.feature.group/5.11.148,org.wso2.carbon.identity.oauth.feature.group/5.6.63,org.wso2.carbon.identity.event.server.feature.group/5.11.148,org.wso2.carbon.registry.community.features.server.feature.group/4.6.28,org.wso2.carbon.registry.community.features.ui.feature.group/4.6.28,org.wso2.carbon.registry.extensions.server.feature.group/4.7.23,org.wso2.carbon.governance.lifecycle.management.server.feature.group/4.7.23,org.wso2.carbon.governance.metadata.server.feature.group/4.7.23,org.wso2.carbon.apimgt.store.feature.group/6.2.201,org.wso2.carbon.apimgt.authenticator.oidc.feature.group/6.2.201,org.wso2.carbon.apimgt.hostobjects.oidc.feature.group/6.2.201,org.wso2.carbon.application.mgt.synapse.server.feature.group/4.6.64,org.wso2.carbon.application.deployer.synapse.feature.group/4.6.64,org.apache.axis2.transport.tcp.feature.group/1.1.0.wso2v17,org.wso2.carbon.relay.server.feature.group/4.6.64,org.wso2.carbon.mediation.configadmin.feature.group/4.6.64,org.wso2.carbon.webapp.mgt.server.feature.group/4.7.15,org.wso2.carbon.system.statistics.feature.group/4.6.21,org.wso2.carbon.databridge.streamdefn.filesystem.server.feature.group/5.1.37,org.wso2.carbon.analytics.api.client.feature.group/1.3.25,org.wso2.carbon.analytics.jsservice.feature.group/1.3.25,org.wso2.carbon.event.stream.feature.group/5.1.37,org.wso2.carbon.event.application.deployer.feature.group/5.1.37,org.wso2.carbon.metrics.feature.group/1.2.3,org.wso2.carbon.extension.identity.oauth2.jwt.feature.group/1.0.10,org.wso2.carbon.consent.mgt.server.feature.group/1.0.50,org.wso2.carbon.database.utils.feature.group/2.0.6,org.wso2.carbon.device.mgt.cdmf.analytics.feature.group/4.1.20,org.wso2.carbon.iot.geo.dashboard.feature.group/4.1.20,org.wso2.carbon.device.mgt.iot.analytics.feature.group/4.1.20,org.wso2.carbon.device.mgt.remote.session.feature.group/4.1.20,org.wso2.carbon.andes.extensions.device.mgt.api.feature.group/4.1.20, -bundlepool C:\wso2\product-iots\modules\p2-profile\iot-core-profile/target/wso2carbon-core-4.4.26/wso2/components -shared C:\wso2\product-iots\modules\p2-profile\iot-core-profile/target/wso2carbon-core-4.4.26/wso2/components\p2 -destination C:\wso2\product-iots\modules\p2-profile\iot-core-profile/target/wso2carbon-core-4.4.26/wso2/components\default -profile default -roaming"
The command line is too long.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 IoT - Parent .................................. SUCCESS [  5.376 s]
[INFO] WSO2 IoT - Components Module ....................... SUCCESS [  0.087 s]
[INFO] WSO2 IoT - UI Styles ............................... SUCCESS [  4.475 s]
[INFO] WSO2 IoT - Features Module ......................... SUCCESS [  0.068 s]
[INFO] WSO2 IoT - Styles Feature .......................... SUCCESS [  5.224 s]
[INFO] WSO2 IoT - Scripts ................................. SUCCESS [  0.067 s]
[INFO] WSO2 IoT - QSG Script .............................. SUCCESS [ 12.948 s]
[INFO] WSO2 IoT - Tools ................................... SUCCESS [  0.066 s]
[INFO] WSO2 IoT - Device Type Archetype ................... SUCCESS [  6.393 s]
[INFO] Identity Server : cxf filters ...................... SUCCESS [  5.742 s]
[INFO] WSO2 IoT - P2 Profile Module ....................... SUCCESS [  0.060 s]
[INFO] WSO2 IoT - Core P2 Profile Gen ..................... FAILURE [09:05 min]
[INFO] WSO2 IoT - Analytics P2 Profile Gen ................ SKIPPED
[INFO] WSO2 IoT - Broker P2 Profile Gen ................... SKIPPED
[INFO] WSO2 IoT - Distribution ............................ SKIPPED
[INFO] WSO2 IoT - Integration Module ...................... SKIPPED
[INFO] WSO2 IoT - Integration Test Common ................. SKIPPED
[INFO] WSO2 IoT - Integration Common ...................... SKIPPED
[INFO] WSO2 IoT - Integration Test Common Web UI Pages .... SKIPPED
[INFO] WSO2 IOT - Integration Test Module ................. SKIPPED
[INFO] WSO2 IoT - Integration Test UI Module .............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 09:56 min
[INFO] Finished at: 2019-04-11T22:35:04-04:00
[INFO] Final Memory: 53M/321M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.4:p2-profile-gen (3-p2-profile-generation) on project wso2iot-core-p2-profile: P2 publisher return code was 1 -> [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 :wso2iot-core-p2-profile

Hasan Syed@DESKTOP-0S338TJ /cygdrive/c/wso2/product-iots
@stale
Copy link

stale bot commented Apr 22, 2019

This issue has been automatically marked as stale because it has not had recent activity.

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

No branches or pull requests

1 participant