Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arjundandagi/mvn-upper
https://github.com/arjundandagi/mvn-upper
Last synced: about 15 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/arjundandagi/mvn-upper
- Owner: ArjunDandagi
- Created: 2020-10-03T18:23:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-03T18:23:58.000Z (over 4 years ago)
- Last Synced: 2024-11-18T23:58:57.419Z (2 months ago)
- Language: Java
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# upper
converts given string to uppercase ( yeah, really)
its a static method , so enjoy calling directly you pythonista :p ( dont forget to import the class though, and adding a semicolon is something you will do even if i warn also 😂 )
# What is this ?
I wanted to know how i can use a package as dependency in other , so i looked for the simplest way possible
# Why?
learning packaging and how the code you write can be reused makes me think like i am actully engaged and doing something productive 🤓
# How?
This is how i created this package```
mvn archetype:generate
```
it asks to type the GAV ( in maven terminology a GAV is expansio of GroupId , ArtefactId , and Version 🧘♂️) coordinates , create one for yourself
then edit the entry class and added a static method that converts a given string to UPPERCASE 🥶
for this package to be exporte the classpath is always a pain in the back. so i just added a configuration XML shit to the maven-jar-plugin [MORE HERE](https://stackoverflow.com/questions/9689793/cant-execute-jar-file-no-main-manifest-attribute)essentially you just need to tell what is your Main-Class to maven to package it.
# Things Learnt:
1. Maven ( not the nitty gritty)
2. How to package your single java class so that world can use it [READ HOW](http://tutorials.jenkov.com/maven/publish-to-central-maven-repository.html)
3. Creating Simple things brings happines :smile:# why so much README?
its not for you , i might come back and look at my own code in case i dont do anything after this and completely forget about what i have built.
reading back my own readme helps me getting their faster :)
peace