Comments (4)
@wwjbatista Re-opening the task. I think you fix 'almost' works, but not for all cases:
> file_path="/Somewhere/xxx-foo/target/xxx-foo-1.0.0.jar"
"xxx-foo" => GOOD
> file_path="/Somewhere/xxx-foo/target/xxx-foo-1.0.0-SNAPSHOT.jar"
"xxx-foo--SNAPSHOT" => NO
The generic issue is that we could have random artifact name such as xxx-foo-1.2.3.263541263412.jar
or whatever else.
- I think we should at support the default
SNAPSHOT
(very standard) - As a default, if name does not math regex, have a sane default. Maybe stop at the last
-
?
@pierre Any thoughts?
from killbill-cloud.
This is really annoying and should be fixed: Example:
kpm install_java_plugin 'dev:xxx-foo' --from-source-file="/Somewhere/xxx-foo/target/xxx-foo-1.0.0.jar" --version="1.0.0" --destination=/var/tmp/mybundles
As a result the entry /var/tmp/mybundles/plugins/java/xxx
will be created (and if multiple plugins starts with xxx
, then each install overrides previous one). We would want /var/tmp/mybundles/plugins/java/xxx-foo
instead.
from killbill-cloud.
Interesting that the SNAPSHOT
one doesn't work, we have a test specifically for this: 576e3ff#diff-def9654044137b79bf1d315ac4671d1bR62.
from killbill-cloud.
Also, something that i noticed is that we need to specify the version (but we should not have to, as it can be extracted):
kpm install_java_plugin analytics --from-source-file=/SOMETHING/killbill/killbill-analytics-plugin/target/analytics-plugin-4.2.4-SNAPSHOT.jar
no implicit conversion of nil into String
/Users/sbrossier/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/pathname.rb:389:in `initialize'
/Users/sbrossier/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/pathname.rb:389:in `new'
/Users/sbrossier/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/pathname.rb:389:in `join'
However, following works:
kpm install_java_plugin analytics --from-source-file=/Users/sbrossier/Src/killbill/killbill-analytics-plugin/target/analytics-plugin-4.2.4-SNAPSHOT.jar --version=4.2.4-SNAPSHOT
I, [2017-08-07T14:33:14.130954 #3374] INFO -- : Successful installation of ...
from killbill-cloud.
Related Issues (20)
- kpm task failing? HOT 8
- Use HTTP basic authentication for GitHub API HOT 1
- Installing killbill:latest from docker does not create database tables. HOT 1
- Custom logback configuration
- Upgrade to Traveling Ruby 2.4
- Add Sonatype mirror in build image Maven config
- jdbc with sql HOT 1
- Symlink kpm to latest version
- arm64 image availability HOT 1
- Sentry Support for Docker HOT 1
- Running startup.sh fails due to endorsed directory.
- kpm: upgrade Ruby and dependencies
- Kaui 2.0.11 does not work with Killbill latest image
- Killbill unable to connect to Postgres server HOT 1
- Update Ruby/Jruby versions
- kpm diagnostic tool fails when there are no records in the tenant_kvs table with certain keys HOT 1
- Cleanup docker build configuration files
- kpm diagnostic tool includes wrong log files in case of remote KB server
- kpm diagnostic tool behaves inconsistently when the api credentials are specified in a config file as well as on the command line
- Remove unused options in the kpm diagnostic help command and from the code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from killbill-cloud.