background preloader

Maven Repository Nexus

Maven Repository Nexus

Maven Repository Management with Nexus - 3.7. Configuring Nexus as a Service When installing Nexus for production usage you should configure Nexus as a service, so it starts back up after server reboots. It is good practice to run that service or daemon as a specific user that has only the required access righs. The following sections provide instructions for configuring Nexus as a service or daemon on various operating systems. 3.7.1. Running as a Service on Linux You can configure Nexus to start automatically, by copying the nexus script to the /etc/init.d directory. Create a nexus user with sufficient access rights to run the service Copy either $NEXUS_HOME/bin/nexus to /etc/init.d/nexus or create a symlink Make the /etc/init.d/nexus script executable - chmod 755 /etc/init.d/nexus Edit this script changing the following variables: Change NEXUS_HOME to the absolute folder location e.g. Warning While not recommended, it is possible to run Nexus as root user by setting RUN_AS_USER=root. Add Nexus as a Service on Red Hat, Fedora, and CentOS 3.7.2. <? Tip

Netbeans IDE NetBeans IDE lets you quickly and easily develop Java desktop, mobile, and web applications, as well as HTML5 applications with HTML, JavaScript, and CSS. The IDE also provides a great set of tools for PHP and C/C++ developers. It is free and open source and has a large community of users and developers around the world. Best Support for Latest Java Technologies NetBeans IDE provides first-class comprehensive support for the newest Java technologies and latest Java specification enhancements before other IDEs. With its constantly improving Java Editor, many rich features and an extensive range of tools, templates and samples, NetBeans IDE sets the standard for developing with cutting edge technologies out of the box. Fast & Smart Code Editing An IDE is much more than a text editor. The editor supports many languages from Java, C/C++, XML and HTML, to PHP, Groovy, Javadoc, JavaScript and JSP. More information Easy & Efficient Project Management Rapid User Interface Development See Also

Using Maven to deploy projects to Sonatype Nexus Repository | Java/JEE This page describes the process of installing and using the nexus repository manager to deploy 2 projects to the repository. This page will show you how to create a simple project and deploy it to the Nexus repository. We will go further and create a second project that will depend on the first one. Installing Nexus The process of installing the repository manager literally takes 10 minutes. There is a great video of this at the following link. install nexus by first downloading it. navigate to the bin/jsw/your-architecture/nexus start It should print out something like this: Starting Sonatype Nexus Repository Manager… Started Sonatype Nexus Repository Manager. navigate to the following url: The default admin username/password is: admin/admin123 Creating a Test project Start a test project by using an archetype. Answer the questions like this: Once the project is created you can verify that its working by typing… cd testproject mvn test

Add Javadoc You are wondering why Netbeans give you code completion but no javadoc, rather saying “javadoc not found” ? It is not part of the Netbeans Installer or the regular JDK package. You need to download it separately (link), copy the zip file to a folder of your choice and configure the javadoc in Java platforms. Netbeans Java Platform Like this: Like Loading... Maven secrets: filtering sources - Connect The default Maven root project object model provides very good defaults that declare what needs to be done in most cases. Sometimes you need a bit more or different and Maven lets you do that. In this first episode I’ll show you how to filter your source files. Why filter source files? Well there are many use cases you can think of. public static final String DOMAIN = "${pom.groupId}"; public static final String WCB_ID = "${pom.artifactId}"; Note: We could discuss if this is a good approach compared to using resource files (that are filtered by default) and can be loaded from the classpath at runtime, but that is beyond the scope of this post ;) Filtering in Maven Filtering is a standard feature in Maven and any typical project uses it extensively. Note: Always make sure binary resources are NOT being filtered. Configuring the resources plugin So, in order to filter the source files we need to tell the resources plugin to use them as resources. <project...> ... <project...> ... Conclusion

Git Gradle Un article de Wikipédia, l'encyclopédie libre. Gradle allie les atouts de Apache Maven et Apache Ant : il allie l'utilisation de conventions à la manière de Maven (convention plutôt que configuration) avec la flexibilité de Ant pour décrire les tâches de constructions, avec une cohérence forte dans l'interface de programmation des tâches. Présentation[modifier | modifier le code] Gradle permet d'écrire des tâches de constructions dans un fichier de construction en utilisant le langage Groovy. Gradle reprend certaines des idées fortes de Maven : convention plutôt que configurationcycle de viegestion des dépendances à la manière d'Apache Ivy ou Mavenréférentiel (ou entrepôts) Gradle présente les avantages suivants : possibilité de scripter la construction en Groovy dans le fichier de construction ;possibilité de changer le comportement par défaut de certaines tâches ;une notation compacte pour décrire les dépendances ;un moteur de production pensé pour produire des projets multi-langages.

Have used this before on my local dev machine. Very easy to add custom libs like artifactory. Tho never did push release or snapshot builds when I did run it. by superunknown Apr 10

Related: