添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
  • Start a Discussion
  • I have tried to download "pentaho-kettle:kettle-core:8.3.0.28-1658" from https://repo.orl.eng.hitachivantara.com/ui/native/pnt-mvn but didn't succeed.

    Here is my pom.xml

    <project>
    	<modelVersion>4.0.0</modelVersion>
    	<properties>
    		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    	</properties>
    	<!-- Necessary or else maven refuses to work -->
    	<groupId>de.his</groupId>
    	<artifactId>HIS</artifactId>
    	<version>1</version>
        <repositories>
            <repository>
                <id>pentaho-public</id>
                <url>https://repo.orl.eng.hitachivantara.com/ui/native/pnt-mvn</url>
            </repository>     
        </repositories>
    	<build>
    		<plugins>
    		  <plugin>
    			<artifactId>maven-dependency-plugin</artifactId>
    			<executions>
    				<execution>
    					<phase>prepare-package</phase>
    					<goals>
    					  <goal>copy-dependencies</goal>
    					</goals>
    					<configuration>
    					  <outputDirectory>./lib</outputDirectory>
    					</configuration>
    				</execution>
    			</executions>
    		  </plugin>
    		</plugins>
    	</build>
    	<dependencies>
    		<dependency>
    			<groupId>pentaho-kettle</groupId>
    			<artifactId>kettle-core</artifactId>
    			<version>8.3.0.28-1658</version>
    		</dependency>
    	</dependencies>
    </project>

    This was the result:

    $ mvn prepare-package
    [INFO] Scanning for projects...
    [INFO]
    [INFO] --------------------------< de.his:HISinOne >---------------------------
    [INFO] Building HISinOne 1
    [INFO]   from pom.xml
    [INFO] --------------------------------[ jar ]---------------------------------
    Downloading from hitachi-repo: https://repo.orl.eng.hitachivantara.com/ui/native/pnt-mvn/pentaho-kettle/kettle-core/8.3.0.28-1658/kettle-core-8.3.0.28-1658.pom
    [WARNING] Checksum validation failed, expected '<!doctype' (REMOTE_EXTERNAL) but is actually '20a2e85df9bb48f83b22a28ddb975325b96db3cd' from hitachi-repo for https://repo.orl.eng.hitachivantara.com/ui/native/pnt-mvn/pentaho-kettle/kettle-core/8.3.0.28-1658/kettle-core-8.3.0.28-1658.pom
    [WARNING] Could not validate integrity of download from https://repo.orl.eng.hitachivantara.com/ui/native/pnt-mvn/pentaho-kettle/kettle-core/8.3.0.28-1658/kettle-core-8.3.0.28-1658.pom
    org.eclipse.aether.transfer.ChecksumFailureException: Checksum validation failed, expected '<!doctype' (REMOTE_EXTERNAL) but is actually '20a2e85df9bb48f83b22a28ddb975325b96db3cd'
        at org.eclipse.aether.connector.basic.ChecksumValidator.validateExternalChecksums (ChecksumValidator.java:179)
        at org.eclipse.aether.connector.basic.ChecksumValidator.validate (ChecksumValidator.java:109)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask (BasicRepositoryConnector.java:484)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run (BasicRepositoryConnector.java:414)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get (BasicRepositoryConnector.java:260)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads (DefaultArtifactResolver.java:536)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:448)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts (DefaultArtifactResolver.java:260)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact (DefaultArtifactResolver.java:242)
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom (DefaultArtifactDescriptorReader.java:231)
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor (DefaultArtifactDescriptorReader.java:172)
        at org.eclipse.aether.internal.impl.collect.df.DfDependencyCollector.resolveCachedArtifactDescriptor (DfDependencyCollector.java:382)
        at org.eclipse.aether.internal.impl.collect.df.DfDependencyCollector.getArtifactDescriptorResult (DfDependencyCollector.java:368)
        at org.eclipse.aether.internal.impl.collect.df.DfDependencyCollector.processDependency (DfDependencyCollector.java:218)
        at org.eclipse.aether.internal.impl.collect.df.DfDependencyCollector.processDependency (DfDependencyCollector.java:156)
        at org.eclipse.aether.internal.impl.collect.df.DfDependencyCollector.process (DfDependencyCollector.java:138)
        at org.eclipse.aether.internal.impl.collect.df.DfDependencyCollector.doCollectDependencies (DfDependencyCollector.java:108)
        at org.eclipse.aether.internal.impl.collect.DependencyCollectorDelegate.collectDependencies (DependencyCollectorDelegate.java:222)
        at org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector.collectDependencies (DefaultDependencyCollector.java:87)
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies (DefaultRepositorySystem.java:305)
        at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve (DefaultProjectDependenciesResolver.java:151)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:224)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:136)
        at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:355)
        at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:313)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
        at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
        at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
        at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
        at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
        at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
        at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
        at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
        at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
        at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke (Method.java:568)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
    [WARNING] Checksum validation failed, expected '<!doctype' (REMOTE_EXTERNAL) but is actually '20a2e85df9bb48f83b22a28ddb975325b96db3cd' from hitachi-repo for https://repo.orl.eng.hitachivantara.com/ui/native/pnt-mvn/pentaho-kettle/kettle-core/8.3.0.28-1658/kettle-core-8.3.0.28-1658.pom
    Downloaded from hitachi-repo: https://repo.orl.eng.hitachivantara.com/ui/native/pnt-mvn/pentaho-kettle/kettle-core/8.3.0.28-1658/kettle-core-8.3.0.28-1658.pom (2.7 kB at 1.1 kB/s)
    [WARNING] The POM for pentaho-kettle:kettle-core:jar:8.3.0.28-1658 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
    Downloading from hitachi-repo: https://repo.orl.eng.hitachivantara.com/ui/native/pnt-mvn/pentaho-kettle/kettle-core/8.3.0.28-1658/kettle-core-8.3.0.28-1658.jar
    [WARNING] Checksum validation failed, expected '<!doctype' (REMOTE_EXTERNAL) but is actually '20a2e85df9bb48f83b22a28ddb975325b96db3cd' from hitachi-repo for https://repo.orl.eng.hitachivantara.com/ui/native/pnt-mvn/pentaho-kettle/kettle-core/8.3.0.28-1658/kettle-core-8.3.0.28-1658.jar
    [WARNING] Could not validate integrity of download from https://repo.orl.eng.hitachivantara.com/ui/native/pnt-mvn/pentaho-kettle/kettle-core/8.3.0.28-1658/kettle-core-8.3.0.28-1658.jar
    org.eclipse.aether.transfer.ChecksumFailureException: Checksum validation failed, expected '<!doctype' (REMOTE_EXTERNAL) but is actually '20a2e85df9bb48f83b22a28ddb975325b96db3cd'
        at org.eclipse.aether.connector.basic.ChecksumValidator.validateExternalChecksums (ChecksumValidator.java:179)
        at org.eclipse.aether.connector.basic.ChecksumValidator.validate (ChecksumValidator.java:109)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask (BasicRepositoryConnector.java:484)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run (BasicRepositoryConnector.java:414)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get (BasicRepositoryConnector.java:260)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads (DefaultArtifactResolver.java:536)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:448)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts (DefaultArtifactResolver.java:260)
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies (DefaultRepositorySystem.java:352)
        at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve (DefaultProjectDependenciesResolver.java:182)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:224)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:136)
        at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:355)
        at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:313)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
        at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
        at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
        at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
        at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
        at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
        at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
        at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
        at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
        at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke (Method.java:568)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
    [WARNING] Checksum validation failed, expected '<!doctype' (REMOTE_EXTERNAL) but is actually '20a2e85df9bb48f83b22a28ddb975325b96db3cd' from hitachi-repo for https://repo.orl.eng.hitachivantara.com/ui/native/pnt-mvn/pentaho-kettle/kettle-core/8.3.0.28-1658/kettle-core-8.3.0.28-1658.jar
    Downloaded from hitachi-repo: https://repo.orl.eng.hitachivantara.com/ui/native/pnt-mvn/pentaho-kettle/kettle-core/8.3.0.28-1658/kettle-core-8.3.0.28-1658.jar (2.7 kB at 2.0 kB/s)
    [INFO]
    [INFO] --- resources:3.3.1:resources (default-resources) @ HISinOne ---
    [INFO] skip non existing resourceDirectory C:\Users\Sohrt\Desktop\maven\04_kettle_core_test\src\main\resources
    [INFO]
    [INFO] --- compiler:3.11.0:compile (default-compile) @ HISinOne ---
    [INFO] No sources to compile
    [INFO]
    [INFO] --- resources:3.3.1:testResources (default-testResources) @ HISinOne ---
    [INFO] skip non existing resourceDirectory C:\Users\Sohrt\Desktop\maven\04_kettle_core_test\src\test\resources
    [INFO]
    [INFO] --- compiler:3.11.0:testCompile (default-testCompile) @ HISinOne ---
    [INFO] No sources to compile
    [INFO]
    [INFO] --- surefire:3.1.2:test (default-test) @ HISinOne ---
    [INFO] No tests to run.
    [INFO]
    [INFO] --- dependency:3.6.0:copy-dependencies (default) @ HISinOne ---
    [INFO] Copying kettle-core-8.3.0.28-1658.jar to C:\Users\Sohrt\Desktop\maven\04_kettle_core_test\lib\kettle-core-8.3.0.28-1658.jar
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  5.990 s
    [INFO] Finished at: 2024-02-27T13:22:56+01:00
    [INFO] ------------------------------------------------------------------------
    

    I then added the settings.xml and the settins-security.xml from here maven-parent-poms/maven-support-files at master · pentaho/maven-parent-poms to my m2 directory. This changed the output somewhat, but it still didn't work, because the downloaded jar cannot be opened (is not an archive). New output: 

    mvn prepare-package
    [INFO] Scanning for projects...
    [INFO]
    [INFO] -----------------------------< de.his:HIS >-----------------------------
    [INFO] Building HIS 1
    [INFO]   from pom.xml
    [INFO] --------------------------------[ jar ]---------------------------------
    [INFO] Artifact pentaho-kettle:kettle-core:pom:8.3.0.28-1658 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [pentaho-public (https://repo.orl.eng.hitachivantara.com/artifactory/pnt-mvn/, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]
    [INFO] Artifact pentaho-kettle:kettle-core:pom:8.3.0.28-1658 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [pentaho-public (https://repo.orl.eng.hitachivantara.com/artifactory/pnt-mvn/, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]
    Downloading from pentaho-public: https://repo.orl.eng.hitachivantara.com/artifactory/pnt-mvn/pentaho-kettle/kettle-core/8.3.0.28-1658/kettle-core-8.3.0.28-1658.pom
    Downloaded from pentaho-public: https://repo.orl.eng.hitachivantara.com/artifactory/pnt-mvn/pentaho-kettle/kettle-core/8.3.0.28-1658/kettle-core-8.3.0.28-1658.pom (0 B at 0 B/s)
    [WARNING] The POM for pentaho-kettle:kettle-core:jar:8.3.0.28-1658 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
    [INFO] Artifact pentaho-kettle:kettle-core:jar:8.3.0.28-1658 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [pentaho-public (https://repo.orl.eng.hitachivantara.com/artifactory/pnt-mvn/, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]
    [INFO] Artifact pentaho-kettle:kettle-core:jar:8.3.0.28-1658 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [pentaho-public (https://repo.orl.eng.hitachivantara.com/artifactory/pnt-mvn/, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]
    Downloading from pentaho-public: https://repo.orl.eng.hitachivantara.com/artifactory/pnt-mvn/pentaho-kettle/kettle-core/8.3.0.28-1658/kettle-core-8.3.0.28-1658.jar
    Downloaded from pentaho-public: https://repo.orl.eng.hitachivantara.com/artifactory/pnt-mvn/pentaho-kettle/kettle-core/8.3.0.28-1658/kettle-core-8.3.0.28-1658.jar (0 B at 0 B/s)
    [INFO]
    [INFO] --- resources:3.3.1:resources (default-resources) @ HIS ---
    [INFO] skip non existing resourceDirectory C:\Users\Sohrt\Desktop\maven\04_kettle_core_test\src\main\resources
    [INFO]
    [INFO] --- compiler:3.11.0:compile (default-compile) @ HIS ---
    [INFO] No sources to compile
    [INFO]
    [INFO] --- resources:3.3.1:testResources (default-testResources) @ HIS ---
    [INFO] skip non existing resourceDirectory C:\Users\Sohrt\Desktop\maven\04_kettle_core_test\src\test\resources
    [INFO]
    [INFO] --- compiler:3.11.0:testCompile (default-testCompile) @ HIS ---
    [INFO] No sources to compile
    [INFO]
    [INFO] --- surefire:3.1.2:test (default-test) @ HIS ---
    [INFO] No tests to run.
    [INFO]
    [INFO] --- dependency:3.6.0:copy-dependencies (default) @ HIS ---
    [INFO] pentaho-kettle:kettle-core:jar:8.3.0.28-1658 already exists in destination.
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  3.195 s
    [INFO] Finished at: 2024-02-27T13:47:50+01:00
    [INFO] ------------------------------------------------------------------------
    

    I then tried the following gradle.build: 

    plugins {
        id 'java'
    repositories {
        mavenCentral() //https://repo1.maven.org/maven2/
        maven {
            url 'https://repo.orl.eng.hitachivantara.com/ui/native/pnt-mvn'
    dependencies {
        implementation group: 'pentaho-kettle', name: 'kettle-core', version: '8.3.0.28-1658'
    task updateDependencies {
        doLast {
            def libsDir = file('.')  
            mkdir libsDir         
            copy {
              from configurations.runtimeClasspath
              into libsDir
    

    This also didn't work and produced the following output: 

    $ gradle updateDependencies
    > Task :updateDependencies FAILED
    [Fatal Error] kettle-core-8.3.0.28-1658.pom:2:3: Markup im Dokument vor dem Root-Element muss ordnungsgem▒▒ formatiert sein.
    FAILURE: Build failed with an exception.
    * Where:
    Build file 'C:\HIS-Workspace\Tomcat\tomcat-head_libs\webapps\qisserver\WEB-INF\lib\build.gradle' line: 822
    * What went wrong:
    Execution failed for task ':updateDependencies'.
    > Could not resolve all files for configuration ':runtimeClasspath'.
       > Could not resolve pentaho-kettle:kettle-core:8.3.0.28-1658.
         Required by:
             project :
          > Could not resolve pentaho-kettle:kettle-core:8.3.0.28-1658.
             > Could not parse POM https://repo.orl.eng.hitachivantara.com/ui/native/pnt-mvn/pentaho-kettle/kettle-core/8.3.0.28-1658/kettle-core-8.3.0.28-1658.pom
                > Markup im Dokument vor dem Root-Element muss ordnungsgem▒▒ formatiert sein.
    * Try:
    > Run with --stacktrace option to get the stack trace.
    > Run with --info or --debug option to get more log output.
    > Run with --scan to get full insights.
    > Get more help at https://help.gradle.org.
    BUILD FAILED in 4s
    1 actionable task: 1 executed
    

    How do I access the hitachi repo from ether gradle or maven (preferably gradle)?