on 05-30-2022 6:49 PM
I am using here wro4j to minimize the js, and we are using the hybris store front : but we are getting this kind of build error in our local :
Build Error :
[artifact:mvn] [ERROR] Failed to execute goal on project *****storefront: Could not resolve dependencies for project de.hybris.platform:*****storefront:jar:5.0.0.0-SNAPSHOT:
Failed to collect dependencies for de.hybris.platform:*****storefront:jar:5.0.0.0-SNAPSHOT:
Could not resolve version conflict among
[ro.isdc.wro4j:wro4j-extensions:jar:1.10.1
-> org.webjars.npm:jshint:jar:2.11.0
-> org.webjars.npm:minimatch:jar:[3.0.2,3.1),
ro.isdc.wro4j:wro4j-extensions:jar:1.10.1
-> org.webjars.npm:jshint:jar:2.11.0
-> org.webjars.npm:cli:jar:[1.0.0,1.1)
-> org.webjars.npm:glob:jar:[7.1.1,8)
-> org.webjars.npm:minimatch:jar:[3.1.1,4)] -> [Help 1]
[artifact:mvn] [ERROR]
[artifact:mvn] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[artifact:mvn] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[artifact:mvn] [ERROR]
[artifact:mvn] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[artifact:mvn] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[artifact:mvn] Java Result: 1
Buildcallbacks.xml :
<target name="minimizeCssAndJs" description="Minimize CSS and JS from the project">
<artifact:mvn mavenHome="${env.M2_HOME}" fork="true"
pom="${ext.*****storefront.path}/external-dependencies.xml">
<jvmarg value="-Dmaven.multiModuleProjectDirectory=${env.M2_HOME}"/>
<arg value="clean"/>
<arg value="package"/>
</artifact:mvn>
</target>
Externaldepdencies.xml
<build>
<plugins>
<plugin>
<groupId>ro.isdc.wro4j</groupId>
<artifactId>wro4j-maven-plugin</artifactId>
<version>1.10.1</version>
<executions>
<execution>
<id>ant all</id>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<minimize>true</minimize>
<contextFolder>${basedir}/web/webroot</contextFolder>
<extraConfigFile>web/webroot/WEB-INF/wro.properties</extraConfigFile>
<wroFile>web/webroot/WEB-INF/wro.xml</wroFile>
<destinationFolder>web/webroot/_ui/minimized</destinationFolder>
<wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory>
<incrementalBuildEnabled>true</incrementalBuildEnabled>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
We are running in java 11 with the hybris version 2105.
I am very new to the commerce cloud, if would be great if some expert help me to resolve this issue.
User | Count |
---|---|
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.