Tag Info

Hot answers tagged

7

As stated in the doco the data storage and config. is separated from the application. This way you can just copy both the application directory (Something like /opt/nexus-oss-webapp-X.Y.Z/) and your data directory (/opt/sonatype-work/) to a new server without any trouble. I suspect the only setting that you'll need to change before trying to restart it is ...


4

Absolutely, you can bind two services to the same port on different IPs. Just set up Apache and Maven to bind to a specific IP address.


3

According to this thread, the only way to do so is to not run it as a service, but instead run it as a logged-on user, with a desktop. Personally, I had luck with the following settings: 1) write a batch file to launch the slave via JNLP/javaws 2) put said script into autostart 3) set the user to auto-login. This was all in a VM, so when I launched the VM ...


3

RiotGames has something you might find useful.


3

Absent a facility in the software itself that lets you do this, you've pretty much outlined the three options available to make it happen without working too hard. Looking at those options more closely: Option 3 sucks. Don't do it. Too complex and too much potential to screw up. Option 1 sucks less - You just need to remember to patch every time you ...


2

Based on Apache Buildr code : http://svn.apache.org/repos/asf/buildr/trunk/lib/buildr/packaging/artifact.rb You can do something like this: def snapshot? version =~ /-SNAPSHOT$/ end if snapshot? metadata_path = "#{group_path}/#{id}/#{version}/maven-metadata.xml" metadata_xml = StringIO.new URI.download repo_url + metadata_path, metadata_xml ...


2

If you use Artifactory as your Maven repository, a more elegant solution is at hand. Starting from version 2.6.0 a request for a non-unique artifact can return the latest available snapshot. To utilize this feature, first make sure that the target repository is defined with a unique snapshot policy, then request the desired artifact using a non-unique ...


2

Hmm. There should be chef output that indicates what's wrong. Looking at the cookbook, I see that it's trying to download maven 3 as: http://www.apache.org/dist/maven/binaries/apache-maven-3.0.3-bin.tar.gz (as specified in maven/attributes/default.rb, as the maven.3.url attribute). If you try to wget that URL, you'll get a 404. So, the cookbook is broken ...


2

Artifactory will not authenticate with SSH keys in the maven settings.xml; if you're after a more secure way to authenticate other than the clear-text passwords, it does give you the option of generating and using encrypted passwords. See this for more info: Centrally Secure Passwords


2

Yes you can. Just bind Apache to one IP, and Maven to another IP I am going to assume that it is the cross-domain policies of Javascript you are trying to overcome. It is relatively easy to do communication cross subdomain in Javascript, however not by default. All you would need to do is set up, for example: www.example.com - Apache's IP app.example.com ...


1

It could be the max user processes you're hitting. Try increasing that to something like 1024. ulimit -u 1024 There are global limits to this, so check out sysctl.conf and look at the output of: sysctl kern.maxprocperuid kern.maxproc and adjust if needed.


1

Allocate more memory to the jvm. Usually this is the cause. If you have 1GB, add 0.5GB or 1. Depending on your RAM, you have to keep 1-2 GB of the RAM for OS processes. Do not allocate more memory than you have. As Mat said, it could be the issues with too many opened files, but, in this case, you should see such a message. Search for it in logs.


1

I've seen Nexus using a lot of "%sys" CPU (rather than usr or iowait) on startup (vmstat/top). I haven't got to the bottom of it, but thought this might be a useful pointer.


1

As you can download the files with Firefox and curl (inside the vm?) i'd double check proxy settings for mvn.


1

Is VM a Linux? If yes, try: export http_proxy=http://your_proxy:port export ftp_proxy=$http_proxy mvn install If this does not help, you can look at logs on proxy server(is there any connection attempt?) use packet sniffer/analyzer program like Wireshark to see what actually is happening


1

I have had to do this before though in linux. I exploded both the war files out and did $ diff --brief -r originalwebapp.war/ newwebapp.war/ This lists all the files that are different between the two archives. Hopefully, it will be a few files - most likely in the WEB-INF/ folder re: configuration of one form or another OR maybe libs being moved around.


1

I'm assuming that your XXXXXXXXXXXXXXX is masking an actual, non-localhost (or localhost variant/alias) hostname. This can happen if your machine has a hostname/IP-address that cannot be both forward and reverse looked-up according to your local name resolver setup. InetAddress.getLocalHost() is known to perform reverse lookups to resolve the local host. ...


1

As long as you use this Nexus to host only your private repositories, and the devs team have properly configured maven locally to use it only for that repo, all you need to do is open the Repositories tab, right-click on the repository you want to disable, and select Put Out of Service.


1

Finally figured it out! I'm using a Maven plugin to extract the module version via a Maven plugin, based on this SO article. The command produces output like this [INFO] --- maven-help-plugin:2.1.1:evaluate (default-cli) @ master-parent --- [INFO] No artifact parameter specified, using 'com.myorg:master-parent:pom:0.3.02' as project. [INFO] 0.3.02 [INFO] ...


1

I know this is an old question, but for those looking for a solution, this page explains it concisely: http://mail-archives.apache.org/mod_mbox/ant-notifications/201112.mbox/%3Cbug-52374-48744@https.issues.apache.org/bugzilla/%3E



Only top voted, non community-wiki answers of a minimum length are eligible