sonatype / nexus-book-examples Goto Github PK
View Code? Open in Web Editor NEWExample projects and other resources for the book Repository Management with Nexus
Example projects and other resources for the book Repository Management with Nexus
Failed to deploy artifacts/metadata: Cannot access http://localhost:8081/nexus/content/repositories/snapshots with type default using the available connector factories: BasicRepositoryConnectorFactory
I install the nexus-3.13.0-01 with the bellow changes.
nexus.rc:
run_as_user="jboss"
nexus.vmoptions:
-Xms1200M
-Xmx1200M
-XX:MaxDirectMemorySize=2G
-XX:+UnlockDiagnosticVMOptions
-XX:+UnsyncloadClass
-XX:+LogVMOutput
-XX:LogFile=/var/SP/log/nexus/jvm.log
-XX:-OmitStackTraceInFastThrow
-Djava.net.preferIPv4Stack=true
-Dkaraf.home=.
-Dkaraf.base=.
-Dkaraf.etc=etc/karaf
-Djava.util.logging.config.file=etc/karaf/java.util.logging.properties
-Dkaraf.data=/var/SP/data/nexus
-Djava.io.tmpdir=/var/SP/data/nexus/tmp
-Dkaraf.startLocalConsole=false
After I started the nexus withthe above changes the app is running fine but I am not able to login using the default user and password (admin/admin123)
https://help.sonatype.com/display/NXRM3/Maven+Repositories#MavenRepositories-ConfiguringApacheMaven shows to directly using admin
account for deployment, that is bad practice from security point of view, as admin
account can be used to login and change Nexus server configuration.
<settings>
....
<servers>
<server>
<id>nexus</id>
<username>admin</username>
<password>admin123</password>
</server>
</servers>
This is step backward from Nexus 2, where there was special user deployment
https://stackoverflow.com/questions/6950346/infrastructure-with-maven-jenkins-nexus
Is there better way to do in Nexus 3?
[bug]nexus oss 3.0 for win64
set the base_url invalid.
it behind a iis7 reverse proxy.
the html page content return the local address and local port.
Hi,
I tried the rawPopulator.groovy to upload file. Our url using the "-h" flag looks like this "-h http://servername:8081/nexus" but the upload request points to "PUT http://servername:8081/repository/repoName/index.html" as printed via logging. So the subpath "/nexus" is lost somewhere. If I change the resourcePath to "def resourcePath = "/nexus/repository/${options.r}/"" then everything works.
Regards,
Markus
Just followed these official instructions to deploy the simple-project to my local Nexus 3 repository: it fails!
Error:
BUILD FAILED
C:\myPath\nexus-book-examples\ant-ivy\simple-project\build.xml:45: impossible to publish artifacts for org.sonatype.nexus.examples#simple-project;1.0.0: java.io.IOException: Access to URL http://localhost:8081/repository/maven-releases/org/sonatype/nexus/examples/simple-project/1.0.0/simple-project-1.0.0.pom was refused by the server: Unauthorized
The branch is
Nexus-3.x
I also tried to create a new user with role nx-admin, but the result is the same.
Hi,
Iam unable to run the provision.sh script as iam getting the below error.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Script named 'npmBower' will be created
Caught: java.lang.NoClassDefFoundError: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling
java.lang.NoClassDefFoundError: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling
at org.sonatype.nexus.script.ScriptXO.(ScriptXO.groovy)
at addUpdateScript.run(addUpdateScript.groovy:69)
Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.runtime.typehandling.ShortTypeHandling
... 2 more
Could you please let me know if there are any pre-requisites that needs to be downloaded
Regards,
Amrutha
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.