phon-ca / phontalk

1 stars 0 forks source link

How to access as library? #1

Closed FranklinChen closed 8 years ago

FranklinChen commented 8 years ago

I want to use phontalk as a library and tried the following Maven POM fragment but got an error:

    <dependencies>
        <dependency>
            <groupId>ca.phon</groupId>
            <artifactId>phontalk</artifactId>
            <version>2.0.0-SNAPSHOT</version>
        </dependency>
    </dependencies>

    <repositories>
        <repository>
            <id>phon.ca-snapshot</id>
            <name>Phon Snapshot</name>
            <url>https://www.phon.ca/artifacts/libs-snapshot</url>
        </repository>
    </repositories>

Error:

Could not find artifact ca.phon:phontalk:jar:2.0.0-SNAPSHOT in phon.ca-snapshot (https://www.phon.ca/artifacts/libs-snapshot)
ghedlund commented 8 years ago

To use as a library, please use the artifactId 'phontalk-core', 'phontalk' is the parent project.

    <dependencies>
        <dependency>
            <groupId>ca.phon</groupId>
            <artifactId>phontalk-core</artifactId>
            <version>2.0.0-SNAPSHOT</version>
        </dependency>
    </dependencies>

    <repositories>
        <repository>
            <id>phon.ca-snapshot</id>
            <name>Phon Snapshot</name>
            <url>https://www.phon.ca/artifacts/libs-snapshot</url>
        </repository>
    </repositories>
FranklinChen commented 8 years ago

It works, thanks!