cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Issue when completing Weather Applications with Raspberry Pi tutorial

rkelly1
1-Newbie

Issue when completing Weather Applications with Raspberry Pi tutorial

In part 3 of the Weather Applications with Raspberry Pi tutorial when I try to create a release jar I get an error that I cannot seem to solve. Any insight into the solution will help. The tutorial is located here, Weather Applications with Raspberry Pi | ThingWorx

The error is listed below:

C:\Users\rkell_000>cd C:\temperature-thing\temperature-thing

C:\temperature-thing\temperature-thing>mvn package

[INFO] Scanning for projects...

[WARNING]

[WARNING] Some problems were encountered while building the effective model for com.ptcmanaged.thingworx:temperature-thing:jar:1.0-SNAPSHOT

[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing. @ line 112, column 21

[WARNING]

[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.

[WARNING]

[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.

[WARNING]

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building temperature-thing 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

Downloading: https://maker01.ptcmanaged.com/mvnrepo/com/thingworxs/thingworx-common/5.0.0/thingworx-common-5.0.0.pom

Downloading: https://repo.maven.apache.org/maven2/com/thingworxs/thingworx-common/5.0.0/thingworx-common-5.0.0.pom

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 23.074 s

[INFO] Finished at: 2016-04-08T15:57:09-04:00

[INFO] Final Memory: 12M/244M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal on project temperature-thing: Could not resolve dependencies for project com.ptcmanaged.thingworx:temperature-thing:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.thingworxs:thingworx-common:jar:5.0.0: Failed to read artifact descriptor for com.thingworxs:thingworx-common:jar:5.0.0: Could not transfer artifact com.thingworxs:thingworx-common:pom:5.0.0 from/to ptc-managed-services-public (https://maker01.ptcmanaged.com/mvnrepo): Connect to maker01.ptcmanaged.com:443 [maker01.ptcmanaged.com/54.173.81.52] failed: Connection timed out: connect -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

3 REPLIES 3
vmihai
1-Newbie
(To:rkelly1)

Hi Ryan,

Please check out this post for the error you are getting in your mvn package command.

https://community.thingworx.com/message/4268#4268

Let me know if you need help with anything else,

Thank you,

Veronica

evandenbrink
6-Contributor
(To:vmihai)

Hello Veronica,

Is there a more recent location of the maven repository than http://maker01.cloud.thingworx.com/mvnrepo

The old and the new location are both not available.

Or can you provide the required .jar file.

Eric

Veronica,

After making the changes from the other post, I still have an error when running the command. I believe it is due to an inactive groupid. Please see error below.

[ERROR] Failed to execute goal on project temperature-thing: Could not resolve dependencies for project com.ptcmanaged.thingworx:temperature-thing:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.thingworxs:thingworx-common:jar:5.0.0: Failed to read artifact descriptor for com.thingworxs:thingworx-common:jar:5.0.0: Could not transfer artifact com.thingworxs:thingworx-common:pom:5.0.0 from/to ptc-managed-services-public (https://maker01.cloud.thingworx.com/mvnrepo): maker01.cloud.thingworx.com: Unknown host maker01.cloud.thingworx.com -> [Help 1]

com.ptcmanaged.thingworx is the groupId

thingworx-common is the artifactId

Thanks,

Brian

Top Tags