npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rstamp-maven-1

v0.0.1

Published

Generates a Java plus Maven project with some custom libs and fat-jar configuration.

Downloads

67

Readme

Build Status NPM version

Introduction

This rstamp generator creates a new Java+Maven project. It adds some initial code and a test for that code. The resulting pom.xml is configured to create a fat jar.

The pom.xml file includes the libs:

  1. junit v4.11
  2. hamcrest v1.3
  3. mockito v1.8.4
  4. guava v16.0.1
  5. gson v2.2.4

The structure arrived at by this generator:

ProjectDir
├── .git
├── .gitignore
├── license
├── pom.xml
├── readme.md
└── src
    ├── main
    │   └── java
    │       └── first
    │           └── pkg
    │               ├── App.java
    │               └── Main.java
    └── test
        └── java
            └── first
                └── pkg
                    └── AppTest.java

Installation

Install rstamp-cli. %> npm install rstamp-cli -g Install this template either globally or manually. First the manual install:

  1. clone rstamp-maven-1 to a directory like ~/bin/npm/rstamp/templates/,
%> mkdir -p ~/bin/npm/rstamp/templates
%> cd $_
%> git clone https://github.com/lcaballero/rstamp-maven-1
%> cd rstamp-maven-1
%> [sudo] npm link

At this point npm should have put a symbolic link to the package which basically would point to ~/bin/npm/rstamp/template/rstamp-rstamp-1/ and when other tools go to either require() that module or find it's home via the normal npm mechanisms it can be found.

  1. The other way is just to install it globally.
%> npm install rstamp-maven-1 -g

After which the full code is installed. This is the simplest. The manual process is useful when you'd like to fork the code and make a new version, like rstamp-maven-2.

Usage

Once you have rstamp-maven-1 installed you can run rstamp-cli and generate a new project. This following commands might be how you'd go about that:

%> mkdir -p ~/Projects/Node/Playground/new-package
%> cd $_
%> rstamp -g maven-1

A note on -g. -g here doesn't mean global like it does with npm, but instead means 'generate'. That same command could have been written like so:

%> rstamp --generate maven-1

License

See license file.

The use and distribution terms for this software are covered by the Eclipse Public License 1.0, which can be found in the file 'license' at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.