Page 1 of 1

Maven install Error demoSite 3.1.0 GA

Posted: Fri Feb 21, 2014 2:44 pm
by nestaole
Hi,
I followed the guide, but I get the following error:

Code: Select all

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] ecommerce
[INFO] core
[INFO] admin
[INFO] site
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building ecommerce 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ ecommerce-website ---
[INFO] Installing C:\Users\Saverio\Desktop\eclipse sviluppo HP\eclipse-workspace\DemoSite\pom.xml to C:\Users\Saverio\.m2\repository\com\mycompany\ecommerce-website\1.0\ecommerce-website-1.0.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building core 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 82 resources
[INFO]
[INFO] --- jrebel-maven-plugin:1.1.3:generate (generate-rebel-xml) @ core ---
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\Saverio\Desktop\eclipse sviluppo HP\eclipse-workspace\DemoSite\core\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ core ---
[WARNING] Error injecting: org.apache.maven.plugin.surefire.SurefirePlugin
java.lang.TypeNotPresentException: Type org.apache.maven.plugin.surefire.SurefirePlugin not present
   at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:111)
   at org.eclipse.sisu.space.NamedClass.load(NamedClass.java:46)
   at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
   at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
   at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)
   at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
   at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
   at org.eclipse.sisu.plexus.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:133)
   at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:109)
   at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
   at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
   at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47)
   at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997)
   at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1047)
   at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993)
   at com.google.inject.Scopes$1$1.get(Scopes.java:59)
   at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82)
   at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
   at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:260)
   at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:252)
   at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:459)
   at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:97)
   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
   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:317)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
   at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
   at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
   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:601)
   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 org.codehaus.classworlds.Launcher.main(Launcher.java:46)
Caused by: java.lang.ClassNotFoundException: org.apache.maven.plugin.surefire.SurefirePlugin
   at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
   at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
   at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
   at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
   at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:107)
   ... 42 more
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ecommerce ......................................... SUCCESS [0.388s]
[INFO] core .............................................. FAILURE [1.432s]
[INFO] admin ............................................. SKIPPED
[INFO] site .............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.159s
[INFO] Finished at: Fri Feb 21 19:46:25 CET 2014
[INFO] Final Memory: 9M/22M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project core: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test failed: Unable to load the mojo 'test' in the plugin 'org.apache.maven.plugins:maven-surefire-plugin:2.10'. A required class is missing: org.apache.maven.plugin.surefire.SurefirePlugin
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.plugins:maven-surefire-plugin:2.10
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/Saverio/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.10/maven-surefire-plugin-2.10.jar
[ERROR] urls[1] = file:/C:/Users/Saverio/.m2/repository/org/apache/maven/surefire/surefire-booter/2.10/surefire-booter-2.10.jar
[ERROR] urls[2] = file:/C:/Users/Saverio/.m2/repository/org/apache/maven/surefire/surefire-api/2.10/surefire-api-2.10.jar
[ERROR] urls[3] = file:/C:/Users/Saverio/.m2/repository/org/apache/maven/surefire/maven-surefire-common/2.10/maven-surefire-common-2.10.jar
[ERROR] urls[4] = file:/C:/Users/Saverio/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/1.3/maven-common-artifact-filters-1.3.jar
[ERROR] urls[5] = file:/C:/Users/Saverio/.m2/repository/org/codehaus/plexus/plexus-utils/2.1/plexus-utils-2.1.jar
[ERROR] urls[6] = file:/C:/Users/Saverio/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.9/maven-reporting-api-2.0.9.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] -> [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/PluginContainerException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :core

can you help me?
Thanks

Re: Maven install Error demoSite 3.1.0 GA

Posted: Mon Feb 24, 2014 8:52 am
by nestaole
Maven install now is ok.

But when I run jetty-demo

Buildfile: C:\Users\Saverio\Desktop\eclipse sviluppo HP\eclipse-workspace\DemoSite\site\build.xml
start-db:
[artifact:pom] An error has occurred while processing the Maven artifact tasks.
[artifact:pom] Diagnosis:
[artifact:pom]
[artifact:pom] Unable to initialize POM pom.xml: Failed to validate POM for project com.mycompany:site at C:\Users\Saverio\Desktop\eclipse sviluppo HP\eclipse-workspace\DemoSite\site\pom.xml
[artifact:pom]

BUILD FAILED

Why?
thanks

Re: Maven install Error demoSite 3.1.0 GA

Posted: Mon Feb 24, 2014 4:24 pm
by phillipuniverse

Re: Maven install Error demoSite 3.1.0 GA

Posted: Tue Feb 25, 2014 5:02 am
by nestaole
Ok it work.
But now,when run Ant site:

Code: Select all

BUILD FAILED
C:\Users\Saverio\Desktop\eclipse sviluppo HP\eclipse-workspace\DemoSite\site\build.xml:96: Unable to resolve artifact: Missing:
----------
1) com.mycompany:core:jar:1.0

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.mycompany -DartifactId=core -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=com.mycompany -DartifactId=core -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
     1) com.mycompany:site:war:1.0
     2) com.mycompany:core:jar:1.0

----------
1 required artifact is missing.

for artifact:
  com.mycompany:site:war:1.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  public snapshots (http://nexus.broadleafcommerce.org/nexus/content/repositories/snapshots/),
  public releases (http://nexus.broadleafcommerce.org/nexus/content/repositories/releases/)


why?

Re: Maven install Error demoSite 3.1.0 GA

Posted: Sun May 11, 2014 2:57 pm
by phillipuniverse
The full resolution for your problem is at https://github.com/BroadleafCommerce/De ... issues/124