[infinispan-dev] IllegalArgumentException running CDI tests from IDE (IntelliJ)
Galder Zamarreño
galder at redhat.com
Wed Sep 19 06:39:58 EDT 2012
Sorted.
On Sep 19, 2012, at 12:21 PM, Galder Zamarreño <galder at redhat.com> wrote:
> Ah, seems like the issue is that when running from the IDE, the pom is not loaded correctly and hence the version cannot be resolved:
>
> .loadMetadataFromPom("pom.xml")
> .artifact("org.jboss.solder:solder-impl")
>
> Something more friendly with both command line and IDE runs would be:
>
> val ideFriendlyPath = "x/y/z/pom.xml"
> // Figure out an IDE and Maven friendly path:
> val path =
> if (new File(ideFriendlyPath).exists()) ideFriendlyPath else "pom.xml"
>
> I'll try something like this.
>
> On Sep 19, 2012, at 12:13 PM, Galder Zamarreño <galder at redhat.com> wrote:
>
>> Hi,
>>
>> I'm trying to run org.infinispan.cdi.test.cachemanager.embedded.external.ExternalCacheContainerTest from the IDE and it says that the coordinates of "org.jboss.solder:solder-impl," are not passed properly:
>>
>> Caused by: java.lang.IllegalArgumentException: Bad artifact coordinates, expected format is <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>
>>
>> Any idea? See https://gist.github.com/3748837
>>
>> Cheers,
>> --
>> Galder Zamarreño
>> galder at redhat.com
>> twitter.com/galderz
>>
>> Project Lead, Escalante
>> http://escalante.io
>>
>> Engineer, Infinispan
>> http://infinispan.org
>>
>>
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
>
> --
> Galder Zamarreño
> galder at redhat.com
> twitter.com/galderz
>
> Project Lead, Escalante
> http://escalante.io
>
> Engineer, Infinispan
> http://infinispan.org
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
--
Galder Zamarreño
galder at redhat.com
twitter.com/galderz
Project Lead, Escalante
http://escalante.io
Engineer, Infinispan
http://infinispan.org
More information about the infinispan-dev
mailing list