Comments (6)
The code you shared in your first snippet is the correct way to specify a private maven repository. Your project is failing for other reasons.
I've created for you a sample project here:
https://github.com/cortinico/reproducer-private-maven-repo
Specifically look at this commit:
cortinico/reproducer-private-maven-repo@8af94f7
As you can see from the CI, it's failing with:
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
> Could not resolve my.random.package:library:+.
Required by:
project :app
> Failed to list versions for my.random.package:library.
> Unable to load Maven meta-data from https://maven.pkg.github.com/package/my/random/package/library/maven-metadata.xml.
> Could not GET 'https://maven.pkg.github.com/package/my/random/package/library/maven-metadata.xml'. Received status code 401 from server: Unauthorized
from react-native.
Newer Version of React Native is Available! | |
---|---|
ℹ️ | You are on a supported minor version, but it looks like there's a newer patch available - 0.73.8. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
from react-native.
Missing Reproducible Example | |
---|---|
ℹ️ | We could not detect a reproducible example in your issue report. Please provide either:
|
from react-native.
I cannot share the reproducible example as the dependency i am adding are private maven repo.
from react-native.
You can also run the task with --info
to verify that the build task is effectively attempting to fetch the library from the provided URL.
from react-native.
Okay, @cortinico Thanks for confirming, wanted to make sure, we are doing it right way.
from react-native.
Related Issues (20)
- NSInvalidArgumentException __76-[RCTModalHostViewManager presentModalHostView:withViewController:animated:]_block_invoke.38 Application tried to present modally a view controller <RCTModalHostViewController: 0x7fcf53855110> that is already being presented by <UIViewController: 0x7fcf4791 HOT 7
- UI problem with iOS floating keyboard in iPad - 0.73.7 HOT 4
- React-Codegen Error when build iOS HOT 3
- [codegen] inconsistent use of `toSafeCppString` in `generateEnum` (GenerateModuleH.js) HOT 1
- Implement requestIdleCallback and cancelIdleCallback on the new architecture HOT 6
- Some touchable components are not working (Native Android devices only) HOT 2
- [iOS] Data race as a result of concurrent access to NativeToJsBridge::m_batchHadNativeModuleOrTurboModuleCalls
- APP Crash in production HOT 1
- Network Error when send file with formData(axios or fetch) on Android. Works fine on IOS. HOT 1
- Render error: useAuth must be used within an AuthProvider HOT 1
- @react-native/babel-preset imports from react-native not deferred (lazy requires) HOT 1
- i need help for Animated.View .ValueXY HOT 1
- BackHandler Does Not Work Google Pixel HOT 2
- Android FlatList with borderRadius applied does not respect border to clip list items on Android HOT 3
- Intl.NumberFormat does not support strings HOT 2
- After installing react-native-screens ios build not working - Error: info Run CLI with --verbose flag for more details. HOT 2
- 'React/RCTBridgeDelegate.h' file not found HOT 2
- > Task :packages:react-native:ReactAndroid:buildCMakeDebug[arm64-v8a][bridgeless,fabricjni,etc] FAILED FAILURE: Build failed with an exception. HOT 1
- DevSupport classes included in release apks (~40KB size impact) due to DevLoadingModule HOT 1
- FlatList Clipping Issue on iOS with New Architecture Enabled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native.