Build error due to use of 4.1.0-RC3-SNAPSHOT as version

Description

There is a bug in the build system that it does not build uportal-platform-api. We didn't notice this before because there has always been a 4.1.0-SNAPSHOT at sonatype snapshots. However there is not a 4.1.0-RC3-SNAPSHOT. The build system should be building this jar and not getting a snapshot version at sonatype.

To duplicate:
1. global replace 4.1.0-SNAPSHOT with 4.1.0-RC3-SNAPSHOT in all pom.xml files (this assumes current version is back to 4.1.0-SNAPSHOT)
2. Go to .m2/repository/org/jasig/portal and delete all directories (just uportal-platform-api is sufficient).
3. do an ant clean deploy-ear

For now there are two work-arounds:

1. Global replace 4.1.0-RC3-SNAPSHOT with 4.1.0-SNAPSHOT (which is what I think it should be anyway).
2. Go to the uportal-platform-api folder and do a mvn install. That will build it and put it in your local .m2/repository

A user experiences this error with the maven output:

[artifact:dependencies] Downloading: org/jasig/portal/uportal-platform-api/4.1.0-RC3-SNAPSHOT/uportal-platform-api-4.1.0-RC3-SNAPSHOT.pom from repository sonatype-nexus-snapshots at https://oss.sonatype.org/content/repositories/snapshots

[artifact:dependencies] Unable to locate resource in repository

[artifact:dependencies] [INFO] Unable to find resource 'org.jasig.portal:uportal-platform-apiom:4.1.0-RC3-SNAPSHOT' in repository sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots)

[artifact:dependencies] Downloading: org/jasig/portal/uportal-platform-api/4.1.0-RC3-SNAPSHOT/uportal-platform-api-4.1.0-RC3-SNAPSHOT.pom from repository apache-snapshots at http://repository.apache.org/snapshots

[artifact:dependencies] Unable to locate resource in repository

[artifact:dependencies] [INFO] Unable to find resource 'org.jasig.portal:uportal-platform-apiom:4.1.0-RC3-SNAPSHOT' in repository apache-snapshots (http://repository.apache.org/snapshots)

[artifact:dependencies] Downloading: org/jasig/portal/uportal-platform-api/4.1.0-RC3-SNAPSHOT/uportal-platform-api-4.1.0-RC3-SNAPSHOT.jar from repository sonatype-nexus-snapshots at https://oss.sonatype.org/content/repositories/snapshots

[artifact:dependencies] Unable to locate resource in repository

[artifact:dependencies] [INFO] Unable to find resource 'org.jasig.portal:uportal-platform-api:jar:4.1.0-RC3-SNAPSHOT' in repository sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots)

[artifact:dependencies] Downloading: org/jasig/portal/uportal-platform-api/4.1.0-RC3-SNAPSHOT/uportal-platform-api-4.1.0-RC3-SNAPSHOT.jar from repository apache-snapshots at http://repository.apache.org/snapshots

[artifact:dependencies] Unable to locate resource in repository

[artifact:dependencies] [INFO] Unable to find resource 'org.jasig.portal:uportal-platform-api:jar:4.1.0-RC3-SNAPSHOT' in repository apache-snapshots (http://repository.apache.org/snapshots)

[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.

[artifact:dependencies] Diagnosis:

[artifact:dependencies]

[artifact:dependencies] Unable to resolve artifact: Missing:

[artifact:dependencies] ----------
[artifact:dependencies] 1) org.jasig.portal:uportal-platform-api:jar:4.1.0-RC3-SNAPSHOT

[artifact:dependencies]

[artifact:dependencies] Try downloading the file manually from the project website.

[artifact:dependencies]

[artifact:dependencies] Then, install it using the command:

[artifact:dependencies] mvn install:install-file -DgroupId=org.jasig.portal -DartifactId=uportal-platform-api -Dversion=4.1.0-RC3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

[artifact:dependencies]

[artifact:dependencies] Alternatively, if you host your own repository you can deploy the file there:

[artifact:dependencies] mvn deploy:deploy-file -DgroupId=org.jasig.portal -DartifactId=uportal-platform-api -Dversion=4.1.0-RC3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Environment

None

Assignee

Unassigned

Reporter

James Wennmacher

Labels

Estimated End Date

None

Priority

Major
Configure