{% extends "core/base_package.html" %}{% load staticfiles i18n %} {% block repo_content %}
{% trans 'Add one of the following repositories to your $HOME/.m2/settings.xml in the repository section:' %}
{{ setting }}
{% trans 'In order to add a new Java archive, please run the following command:' %}
FILENAME=filename-version.jar curl --data-binary @$FILENAME -u : --anyauth {{ absolute_url }}{% url 'moneta.core.views.add_element_post' rid=repo.id %}?filename=$FILENAME{% for state in states %}&states={{ state }}{% endfor %}
{% trans 'You can also add generic packages by specifying archive (groupId), name (artifactId, name of the package) and version:' %}
FILENAME=filename-version.XXX ARCHIVE=groupId NAME=artifactId VERSION=version curl --data-binary @$FILENAME -u : --anyauth {{ absolute_url }}{% url 'moneta.core.views.add_element_post' rid=repo.id %}?filename=$FILENAME&name=$NAME&archive=$ARCHIVE&version=$VERSION{% for state in states %}&states={{ state }}{% endfor %}{% endif %} {% include 'core/add_signature.html' %} {% endblock %}