logo
down
shadow

Maven resolver at Jenkins job with Arquillian tests (Issue when creating WAR by ShrinkWrap)


Maven resolver at Jenkins job with Arquillian tests (Issue when creating WAR by ShrinkWrap)

By : user2953655
Date : November 21 2020, 01:01 AM
I hope this helps . Solution to this problem was a bit trivial. Problem was with the settings.xml for maven repository. I have local repository with credentials like {123}abc.
Maven.resolver() requires modification to \{123\}abc otherwise it will look for file 'settings-security.xml'. I've modified local copy of this file, however on server it was not changed.
code :


Share : facebook icon twitter icon
Maven resource filtering with Arquillian/ShrinkWrap

Maven resource filtering with Arquillian/ShrinkWrap


By : San
Date : March 29 2020, 07:55 AM
Any of those help According to information from ShrinkWrap developers https://community.jboss.org/message/781880#781880 this is not yet implemented.
The ticket for this feature https://issues.jboss.org/browse/SHRINKRES-100
Using Arquillian Shrinkwrap Resolver Maven reading dependencies from the pom.xml

Using Arquillian Shrinkwrap Resolver Maven reading dependencies from the pom.xml


By : Madison
Date : March 29 2020, 07:55 AM
will help you It looks like this issue is because the WildFly POMs specify a newer version of the maven-aether-provider. In 3.1.0 (from WildFly) it has a dependency on org.eclipse.aether:aether-[api|impl|spi] where 3.0.5 (from Shrinkwrap Resolvers) uses org.sonatype.aether:aether-[api|impl|spi]. If you look at your resolved dependencies you'll have both of them in your classpath which causes the ClassCastException. Adding the following dependency should clear up this problem:
code :
 <dependency>
   <groupId>org.apache.maven</groupId>
   <artifactId>maven-aether-provider</artifactId>
   <version>3.0.5</version>
   <scope>test</scope>
 </dependency>
Arquillian + shrinkwrap-resolver: Unable to boostrap Aether repository system

Arquillian + shrinkwrap-resolver: Unable to boostrap Aether repository system


By : Jørgen Andreassen
Date : March 29 2020, 07:55 AM
I hope this helps . We have integration tests which are made with Arquillian. Shrinkwrap is used to resolve maven dependencies and build EAR file for tests. I just upgraded dependency of org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom from 2.0.2 to 2.1.0 and got this exception: , Solved after upgrading to Shrinkwrap 2.1.1.
Shrinkwrap maven-resolver

Shrinkwrap maven-resolver


By : James
Date : March 29 2020, 07:55 AM
may help you . If you load your classes with .addPackages(true,"com.root") then everything in that package will be loaded including subpackages recursively. It seems that you have no class br.com.cpmh.untitled.analysis.spine.BenzelPolygonAnalysis in the war Arquillian is creating. Maybe you are missing another addPackages for package br.com.cpmh.
You should check if the war file is created correctly. There are two ways for doing this. You can use the following property in arquillian.xml:
code :
<engine>
   <property name="deploymentExportPath">target/deployments</property>
</engine>
@Deployment
public static Archive<?> createDeployment()
{
    File[] files = Maven.resolver().resolve("mysql:mysql-connector-java:8.0.11").withTransitivity().asFile();
    WebArchive archive =ShrinkWrap.create(WebArchive.class, "morphological-analysis-data-access-object-test.war")
        .addPackages(true,"com.root")
        .addAsResource("test-persistence.xml", "META-INF/persistence.xml")
        .addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"))
        .addAsLibraries(files);
    archive.as(ZipExporter.class).exportTo(new File("/" + archive.getName()), true);
    return archive;
}
Maven resolver from pom.xml, Shrinkwrap

Maven resolver from pom.xml, Shrinkwrap


By : Benjamin Kay
Date : March 29 2020, 07:55 AM
should help you out You have to realize one thing first and then two other things. Here is the first thing:
As soon as you are talking about relative paths in a jar and not fullpaths, you are talking (mostly) about classpath files. So you probably should take a look at LoadPomTask which has a method
shadow
Privacy Policy - Terms - Contact Us © ourworld-yourmove.org