Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    The following artifacts could not be resolved: com.isomorphic.smartgwt.lgpl:smartgwt-skins:jar:12.0-p20190920

    Hi,

    I'm building a project done with smartgwt. The code is entirely inherited from the provious technical support.

    After "mvn install -Dmodule" the ouput is:

    Code:
    [INFO] Scanning for projects...
    [WARNING]
    [WARNING] Some problems were encountered while building the effective model for it.eng.auriga:AurigaWeb:war:1.0.5-AMA-WAVE2-SNAPSHOT
    [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-dependency-plugin @ line 1119, column 12
    [WARNING]
    [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
    [WARNING]
    [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
    [WARNING]
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building AurigaWeb 1.0.5-AMA-WAVE2-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [WARNING] The POM for com.isomorphic.smartgwt.lgpl:smartgwt-lgpl:jar:12.0-p20190920 is missing, no dependency information available
    [WARNING] The POM for fr.opensagres.xdocreport:org.apache.poi.xwpf.converter.pdf:jar:1.0.6 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
    [WARNING] The POM for fr.opensagres.xdocreport:org.apache.poi.xwpf.converter.core:jar:1.0.6 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
    [WARNING] The POM for fr.opensagres.xdocreport:fr.opensagres.xdocreport.itext.extension:jar:1.0.6 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
    [WARNING] The POM for com.isomorphic.smartgwt.lgpl:smartgwt-skins:jar:12.0-p20190920 is missing, no dependency information available
    [WARNING] The POM for commons-net:commons-net:jar:3.6-20160718.114624-7 is missing, no dependency information available
    [WARNING] The POM for org.semanticdesktop.aperture:aperture-mime-identifier-magic:jar:1.4.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
    [WARNING] The POM for org.semanticdesktop.aperture:aperture-mime-identifier-core:jar:1.4.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
    [WARNING] The POM for org.semanticdesktop.aperture:aperture-util:jar:1.4.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
    [WARNING] The POM for javax.media:jai-core:jar:1.1.3 is missing, no dependency information available
    [WARNING] The POM for org.eclipse.osgi.services_3.4.0.v20140312:org.eclipse.osgi.services_3.4.0.v20140312:jar:2051 is missing, no dependency information available
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 2.509 s
    [INFO] Finished at: 2022-11-26T17:45:15+01:00
    [INFO] Final Memory: 16M/222M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal on project AurigaWeb: Could not resolve dependencies for project it.eng.auriga:AurigaWeb:war:1.0.5-AMA-WAVE2-SNAPSHOT: The following artifacts could not be resolved: com.isomorphic.smartgwt.lgpl:smartgwt-skins:jar:12.0-p20190920, it.eng.utility:SezioneCache:jar:1.0.3, javax.media:jai-core:jar:1.1.3: Failure to find com.isomorphic.smartgwt.lgpl:smartgwt-skins:jar:12.0-p20190920 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [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/DependencyResolutionException
    All the dependencies in the first [ERROR] row are in the local maven repository so why this error arise?
    Last edited by giacomo.squiccimarro; 27 Nov 2022, 08:13.

    #2
    What were you trying to do with that command, and what's the 'module' parameter for?

    In any case, we can think of no reason offhand that Maven shouldn't be able to find an artifact if it does in fact exist in your repository. You might try fixing the duplicate plugin warning and see if that helps. Otherwise, double check the coordinates of the artifacts in your repo and take a close look at the output (in particular the paths to your settings file, repo, etc) you get when using the -X switch:

    Code:
    mvn -X clean package

    Comment


      #3
      I dont' know what exactly commands do because we inerith all the code and procedure for the previous tech support.

      Anyway I've tested you command. Now the dependecies issue is bypased but there is another:

      Code:
      [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
      [[1;34mINFO[m] [1;31mBUILD FAILURE[m
      [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
      [[1;34mINFO[m] Total time: 20:59 min
      [[1;34mINFO[m] Finished at: 2022-11-29T12:11:24+01:00
      [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
      [[1;31mERROR[m] Failed to execute goal [32morg.codehaus.mojo:gwt-maven-plugin:2.7.0:compile[m [1m(default)[m on project [36mAurigaWeb[m: [1;31mGWT Module it.eng.${module}.ui.module.layout.layout not found in project sources or resources.[m -> [1m[Help 1][m
      [1;31morg.apache.maven.lifecycle.LifecycleExecutionException[m: [1;31mFailed to execute goal [32morg.codehaus.mojo:gwt-maven-plugin:2.7.0:compile[m [1m(default)[m on project [36mAurigaWeb[m: [1;31mGWT Module it.eng.${module}.ui.module.layout.layout not found in project sources or resources.[m[m
          [1mat[m org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 ([1mMojoExecutor.java:375[m)
          [1mat[m org.apache.maven.lifecycle.internal.MojoExecutor.doExecute ([1mMojoExecutor.java:351[m)
          [1mat[m org.apache.maven.lifecycle.internal.MojoExecutor.execute ([1mMojoExecutor.java:215[m)
          [1mat[m org.apache.maven.lifecycle.internal.MojoExecutor.execute ([1mMojoExecutor.java:171[m)
          [1mat[m org.apache.maven.lifecycle.internal.MojoExecutor.execute ([1mMojoExecutor.java:163[m)
          [1mat[m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject ([1mLifecycleModuleBuilder.java:117[m)
          [1mat[m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject ([1mLifecycleModuleBuilder.java:81[m)
          [1mat[m org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build ([1mSingleThreadedBuilder.java:56[m)
          [1mat[m org.apache.maven.lifecycle.internal.LifecycleStarter.execute ([1mLifecycleStarter.java:128[m)
          [1mat[m org.apache.maven.DefaultMaven.doExecute ([1mDefaultMaven.java:294[m)
          [1mat[m org.apache.maven.DefaultMaven.doExecute ([1mDefaultMaven.java:192[m)
          [1mat[m org.apache.maven.DefaultMaven.execute ([1mDefaultMaven.java:105[m)
          [1mat[m org.apache.maven.cli.MavenCli.execute ([1mMavenCli.java:960[m)
          [1mat[m org.apache.maven.cli.MavenCli.doMain ([1mMavenCli.java:293[m)
          [1mat[m org.apache.maven.cli.MavenCli.main ([1mMavenCli.java:196[m)
          [1mat[m sun.reflect.NativeMethodAccessorImpl.invoke0 ([1mNative Method[m)
          [1mat[m sun.reflect.NativeMethodAccessorImpl.invoke ([1mNativeMethodAccessorImpl.java:62[m)
          [1mat[m sun.reflect.DelegatingMethodAccessorImpl.invoke ([1mDelegatingMethodAccessorImpl.java:43[m)
          [1mat[m java.lang.reflect.Method.invoke ([1mMethod.java:498[m)
          [1mat[m org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced ([1mLauncher.java:282[m)
          [1mat[m org.codehaus.plexus.classworlds.launcher.Launcher.launch ([1mLauncher.java:225[m)
          [1mat[m org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode ([1mLauncher.java:406[m)
          [1mat[m org.codehaus.plexus.classworlds.launcher.Launcher.main ([1mLauncher.java:347[m)
      [1mCaused by[m: org.apache.maven.plugin.MojoExecutionException: [1;31mGWT Module it.eng.${module}.ui.module.layout.layout not found in project sources or resources.[m
          [1mat[m org.codehaus.mojo.gwt.shell.CompileMojo.compilationRequired ([1mCompileMojo.java:670[m)
          [1mat[m org.codehaus.mojo.gwt.shell.CompileMojo.compile ([1mCompileMojo.java:537[m)
          [1mat[m org.codehaus.mojo.gwt.shell.CompileMojo.doExecute ([1mCompileMojo.java:415[m)
          [1mat[m org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo.execute ([1mAbstractGwtShellMojo.java:159[m)
          [1mat[m org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo ([1mDefaultBuildPluginManager.java:137[m)
          [1mat[m org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 ([1mMojoExecutor.java:370[m)
          [1mat[m org.apache.maven.lifecycle.internal.MojoExecutor.doExecute ([1mMojoExecutor.java:351[m)
          [1mat[m org.apache.maven.lifecycle.internal.MojoExecutor.execute ([1mMojoExecutor.java:215[m)
          [1mat[m org.apache.maven.lifecycle.internal.MojoExecutor.execute ([1mMojoExecutor.java:171[m)
          [1mat[m org.apache.maven.lifecycle.internal.MojoExecutor.execute ([1mMojoExecutor.java:163[m)
          [1mat[m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject ([1mLifecycleModuleBuilder.java:117[m)
          [1mat[m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject ([1mLifecycleModuleBuilder.java:81[m)
          [1mat[m org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build ([1mSingleThreadedBuilder.java:56[m)
          [1mat[m org.apache.maven.lifecycle.internal.LifecycleStarter.execute ([1mLifecycleStarter.java:128[m)
          [1mat[m org.apache.maven.DefaultMaven.doExecute ([1mDefaultMaven.java:294[m)
          [1mat[m org.apache.maven.DefaultMaven.doExecute ([1mDefaultMaven.java:192[m)
          [1mat[m org.apache.maven.DefaultMaven.execute ([1mDefaultMaven.java:105[m)
          [1mat[m org.apache.maven.cli.MavenCli.execute ([1mMavenCli.java:960[m)
          [1mat[m org.apache.maven.cli.MavenCli.doMain ([1mMavenCli.java:293[m)
          [1mat[m org.apache.maven.cli.MavenCli.main ([1mMavenCli.java:196[m)
          [1mat[m sun.reflect.NativeMethodAccessorImpl.invoke0 ([1mNative Method[m)
          [1mat[m sun.reflect.NativeMethodAccessorImpl.invoke ([1mNativeMethodAccessorImpl.java:62[m)
          [1mat[m sun.reflect.DelegatingMethodAccessorImpl.invoke ([1mDelegatingMethodAccessorImpl.java:43[m)
          [1mat[m java.lang.reflect.Method.invoke ([1mMethod.java:498[m)
          [1mat[m org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced ([1mLauncher.java:282[m)
          [1mat[m org.codehaus.plexus.classworlds.launcher.Launcher.launch ([1mLauncher.java:225[m)
          [1mat[m org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode ([1mLauncher.java:406[m)
          [1mat[m org.codehaus.plexus.classworlds.launcher.Launcher.main ([1mLauncher.java:347[m)
      [1mCaused by[m: org.codehaus.mojo.gwt.utils.GwtModuleReaderException: [1;31mGWT Module it.eng.${module}.ui.module.layout.layout not found in project sources or resources.[m
          [1mat[m org.codehaus.mojo.gwt.AbstractGwtModuleMojo.readModule ([1mAbstractGwtModuleMojo.java:198[m)
          [1mat[m org.codehaus.mojo.gwt.shell.CompileMojo.compilationRequired ([1mCompileMojo.java:584[m)
          [1mat[m org.codehaus.mojo.gwt.shell.CompileMojo.compile ([1mCompileMojo.java:537[m)
          [1mat[m org.codehaus.mojo.gwt.shell.CompileMojo.doExecute ([1mCompileMojo.java:415[m)
          [1mat[m org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo.execute ([1mAbstractGwtShellMojo.java:159[m)
          [1mat[m org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo ([1mDefaultBuildPluginManager.java:137[m)
          [1mat[m org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 ([1mMojoExecutor.java:370[m)
          [1mat[m org.apache.maven.lifecycle.internal.MojoExecutor.doExecute ([1mMojoExecutor.java:351[m)
          [1mat[m org.apache.maven.lifecycle.internal.MojoExecutor.execute ([1mMojoExecutor.java:215[m)
          [1mat[m org.apache.maven.lifecycle.internal.MojoExecutor.execute ([1mMojoExecutor.java:171[m)
          [1mat[m org.apache.maven.lifecycle.internal.MojoExecutor.execute ([1mMojoExecutor.java:163[m)
          [1mat[m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject ([1mLifecycleModuleBuilder.java:117[m)
          [1mat[m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject ([1mLifecycleModuleBuilder.java:81[m)
          [1mat[m org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build ([1mSingleThreadedBuilder.java:56[m)
          [1mat[m org.apache.maven.lifecycle.internal.LifecycleStarter.execute ([1mLifecycleStarter.java:128[m)
          [1mat[m org.apache.maven.DefaultMaven.doExecute ([1mDefaultMaven.java:294[m)
          [1mat[m org.apache.maven.DefaultMaven.doExecute ([1mDefaultMaven.java:192[m)
          [1mat[m org.apache.maven.DefaultMaven.execute ([1mDefaultMaven.java:105[m)
          [1mat[m org.apache.maven.cli.MavenCli.execute ([1mMavenCli.java:960[m)
          [1mat[m org.apache.maven.cli.MavenCli.doMain ([1mMavenCli.java:293[m)
          [1mat[m org.apache.maven.cli.MavenCli.main ([1mMavenCli.java:196[m)
          [1mat[m sun.reflect.NativeMethodAccessorImpl.invoke0 ([1mNative Method[m)
          [1mat[m sun.reflect.NativeMethodAccessorImpl.invoke ([1mNativeMethodAccessorImpl.java:62[m)
          [1mat[m sun.reflect.DelegatingMethodAccessorImpl.invoke ([1mDelegatingMethodAccessorImpl.java:43[m)
          [1mat[m java.lang.reflect.Method.invoke ([1mMethod.java:498[m)
          [1mat[m org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced ([1mLauncher.java:282[m)
          [1mat[m org.codehaus.plexus.classworlds.launcher.Launcher.launch ([1mLauncher.java:225[m)
          [1mat[m org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode ([1mLauncher.java:406[m)
          [1mat[m org.codehaus.plexus.classworlds.launcher.Launcher.main ([1mLauncher.java:347[m)
      [[1;31mERROR[m]
      [[1;31mERROR[m]
      [[1;31mERROR[m] For more information about the errors and possible solutions, please read the following articles:
      [[1;31mERROR[m] [1m[Help 1][m http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      The plugin mentioned is in the repo so why this error?

      Comment


        #4
        The answer in this case is in the stack trace you've provided:

        Code:
        GWT Module it.eng.${module}.ui.module.layout.layout not found in project sources or resources.
        Check your project for instances of the bad package name and fix them.

        Comment


          #5
          Right!

          Looking at the [ERROR] in the build output and searching I've found this:

          How to pass parameters to maven build using pom.xml?

          that suggest to me how to complete the command.

          Then I passed these two variables with -D options:

          mvn clean install -Dmodule=auriga -Dconfig=AMA_SVIL

          and than the BUILD SUCCESS!

          Comment

          Working...
          X