Importing and using maven artifacts

17 views
Skip to first unread message

Dirk Lattermann

unread,
Oct 18, 2016, 4:59:59 PM10/18/16
to ceylon...@googlegroups.com
Trying to use maven artifact

```
<dependency>
<groupId>com.kjetland</groupId>
<artifactId>mbknor-jackson-jsonschema_2.11</artifactId>
<version>1.0.8</version>
</dependency>
```

from ceylon, I put into my module descriptor:
```
import maven:"com.kjetland:mbknor-jackson-jsonschema_2.11" "1.0.8";
```
This seems to work, but now I'm stuck writing the import statement in
the Ceylon source file.
```
import "com.kjetland:mbknor-jackson-jsonschema_2.11" {
JsonSchemaGenerator
}
```
does not work: Error:(22, 8) ceylon: incorrect syntax: no viable
alternative at token '"com.kjetland:mbknor-jackson-jsonschema_2.11"'

How can I use a class from a maven repository?

Thanks,
Dirk

Dirk Lattermann

unread,
Oct 18, 2016, 5:33:52 PM10/18/16
to ceylon...@googlegroups.com
Argh, sorry for the noise. I was using the wrong module descriptor.
I can now import the class as expected by using the package name in the
import statement as usual.

Am Tue, 18 Oct 2016 22:59:56 +0200
schrieb Dirk Lattermann <dl...@alqualonde.de>:
Reply all
Reply to author
Forward
0 new messages