WebSocket-Resources icon indicating copy to clipboard operation
WebSocket-Resources copied to clipboard

Failed to collect dependencies, missing artifact parent

Open smndtrl opened this issue 9 years ago • 8 comments

I tried to package the TextSecure Server and maven says

[ERROR] Failed to execute goal on project TextSecureServer:
Could not resolve dependencies for project org.whispersystems.textsecure:TextSecureServer:jar:0.75:
Failed to collect dependencies at org.whispersystems:websocket-resources:jar:0.3.2:
Failed to read artifact descriptor for org.whispersystems:websocket-resources:jar:0.3.2:
Could not find artifact org.whispersystems:parent:pom:0.3.2 in gcm-server-repository (https://raw.github.com/whispersystems/maven/master/gcm-server/releases/) -> [Help 1]

and

Downloading: https://raw.github.com/whispersystems/maven/master/gcm-server/releases/org/whispersystems/parent/0.3.2/parent-0.3.2.pom

I'm new to maven, so i'm not sure if it is unique to me.

smndtrl avatar Aug 23 '15 07:08 smndtrl

Hello there Are you able to resolve this issue .. I am getting same problem .. Please Help me if you got any solution thanks

AshishMK avatar Sep 07 '15 06:09 AshishMK

Look here: https://github.com/WhisperSystems/TextSecure-Server/issues/44

lucaconte avatar Sep 25 '15 11:09 lucaconte

Hi there,

I knew it will work that way (i.e. by manually downloading and registering it) but I rather get it working with maven as that's the point actually! There is a package management tool for a reason mate :)

So can you please tell me the actual reason why it is not working? It seems like this url https://raw.github.com/whispersystems/maven/master/gcm-server/releases/ is not a valid one!!!

Many thanks

omid7791 avatar Jan 10 '16 02:01 omid7791

@omid7791 +1 cannot build either with maven

maluramichael avatar Mar 01 '16 08:03 maluramichael

same problem

alimakki avatar May 29 '16 19:05 alimakki

+1 for me too.

tbartley avatar Jun 14 '16 17:06 tbartley

From here: https://github.com/lucaconte/BeatTheMeddler

git clone --depth 1 https://github.com/lucaconte/WebSocked-Resources.git
cd ../WebSocker-Resource
mvn clean install

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8.1:jar (attach-javadocs) on project websocket-resources: MavenReportException: Error while creating archive: [ERROR] Exit code: 1 - javadoc: error - invalid flag: -Xdoclint:none

but anyway the artifact we need has been built: ./library/targer/websocket-resources-0.3.2.jar Now it's necessary to install it into our local Maven repository with correct "names":

mvn install:install-file -Dfile=./library/target/websocket-resources-0.3.2.jar -DgroupId=org.whispersystems -DartifactId=websocket-resources -Dversion=0.3.2 -Dpackaging=jar

It's a workaround but the problem persists and, imho, should be fixed by OWS

lucaconte avatar Jun 15 '16 07:06 lucaconte

I'm having this issue as well.

After installing the jar locally I also had to add the following to my pom:

    <dependency>
         <groupId>org.eclipse.jetty.websocket</groupId>
         <artifactId>websocket-api</artifactId>
         <version>9.4.0.v20161208</version>
    </dependency>

And also:

    <dependency>
        <groupId>org.eclipse.jetty.websocket</groupId>
        <artifactId>websocket-servlet</artifactId>
        <version>9.4.0.v20161208</version>
    </dependency>

ghost avatar Jan 16 '17 21:01 ghost