Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

two invalid urls in the repos when using newest oba branch 2.0 #339

Open
wkulesza opened this issue Mar 30, 2023 · 5 comments
Open

two invalid urls in the repos when using newest oba branch 2.0 #339

wkulesza opened this issue Mar 30, 2023 · 5 comments
Assignees

Comments

@wkulesza
Copy link

wkulesza commented Mar 30, 2023

Using the newest 2.0 branch of the codebase and trying to build, there are two url's that are not valid anymore.
Can this be updated please ?
https://repo.maven.apache.org/maven2/org/onebusaway/onebusaway-siri-api-v20/1.0.3/onebusaway-siri-api-v20-1.0.3.jar
http://repo.obaweb.org:8080/archiva/repository/releases/

Details:

[ERROR] Failed to execute goal on project onebusaway-api-webapp: Could not resolve dependencies for project org.onebusaway:onebusaway-api-webapp:war:2.0.0: Failed to collect dependencies at org.onebusaway:onebusaway-transit-data-federation:jar:2.0.0 -> org.onebusaway:onebusaway-siri-api-v20:jar:1.0.3: Failed to read artifact descriptor for org.onebusaway:onebusaway-siri-api-v20:jar:1.0.3: Could not transfer artifact org.onebusaway:onebusaway-siri-api-v20:pom:1.0.3 from/to releases-camsys-repo (http://repo.obaweb.org:8080/archiva/repository/releases/): Connect to repo.obaweb.org:8080 [[repo.obaweb.org/54.173.39.56](http://repo.obaweb.org/54.173.39.56)] failed: Connection timed out (Connection timed out) -> [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

To solve this temporarly, we're disabling repository repo.obaweb.org, creating setting.xml file in .m2 folder with the following content:

<?xml version="1.0" encoding="UTF-8"?>
<settings>
    <profiles>
        <profile>
            <id>disable-repository</id>
            <repositories>
                <repository>
                    <id>snapshots-camsys-repo</id>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <!-- add the URL of the repository below -->
                    <url>http\:[//repo.obaweb.org](https://go-europa.slack.com//repo.obaweb.org)\:8080/arch</url>
                </repository>
                <repository>
                    <id>releases-camsys-repo</id>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <!-- add the URL of the repository below -->
                    <url>http\:[//repo.obaweb.org](https://go-europa.slack.com//repo.obaweb.org)\:8080/archiv</url>
                </repository>
                <repository>
                    <id>wmata-repo</id>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <!-- add the URL of the repository below -->
                    <url>http\:[//repo.prod.wmata.obaweb.org](https://go-europa.slack.com//repo.prod.wmata.obaweb.org)\:8080</url>
                </repository>
            </repositories>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>disable-repository</activeProfile>
    </activeProfiles>
</settings>

but then we get this error:

Downloading from central: https://repo.maven.apache.org/maven2/org/onebusaway/onebusaway-siri-api-v20/1.0.3/onebusaway-siri-api-v20-1.0.3.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  18.026 s
[INFO] Finished at: 2023-03-29T18:18:03+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project onebusaway-api-webapp: Could not resolve dependencies for project org.onebusaway:onebusaway-api-webapp:war:2.0.0: Could not find artifact org.onebusaway:onebusaway-siri-api-v20:jar:1.0.3 in [public.onebusaway.org](http://public.onebusaway.org/) (http://nexus.onebusaway.org/content/groups/public/) -> [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
@sheldonabrown sheldonabrown self-assigned this Mar 31, 2023
@sheldonabrown
Copy link
Member

Are you on the main branch of onebusaway-application-modules? I can't find any references to the retired maven repositories you reference.

@wkulesza
Copy link
Author

We took the main repo and forked it, to work on correcting encoding as API responses are not in utf-8.
https://github.com/goeuropa/onebusaway-application-modules/tree/polishencoding is our work and the master branch says: "This branch is up to date with OneBusAway/onebusaway-application-modules:master. "

@wkulesza
Copy link
Author

To be precise we took it from 2.0 here 2a25484

@wkulesza
Copy link
Author

wkulesza commented Apr 4, 2023

Maybe we should be using a different branch? We want to add fixes to encoding and change it to use utf-8.
@sheldonabrown There's activity in this fork - is that something we could build upon ? https://github.com/camsys/onebusaway-application-modules/branches

@sheldonabrown
Copy link
Member

Yes, unified on https://github.com/camsys/onebusaway-application-modules/ is the very latest work. I merge that back to the OneBusAway repo on occasion. a PR against unified is your best bet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants