Failed to execute goal errors when running mvn install:install-file











up vote
0
down vote

favorite












I'm trying to add a JAR to my local repository. This process worked fine at home, but on another machine it's throwing errors and I don't really know what the issue is. I've tried googling some of the errors to no joy.



$ mvn install:install-file -Dfile=C:/Users/yqb18196/Documents/ojdbc7.jar -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=12.0.0 -Dpackaging=jar
[INFO] Scanning for projects...
...
[INFO]
[INFO] ------------------< com.websystique.springmvc:Budget >------------------
[INFO] Building Budget 1.0.0
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ Budget ---
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.5/plexus-utils-3.0.5.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.729 s
[INFO] Finished at: 2018-11-19T14:05:24Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file (default-cli) on project Budget: Execution default-cli of goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file failed: Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-install-plugin:jar:2.4 -> org.codehaus.plexus:plexus-utils:jar:3.0.5: Failed to read artifact descriptor for org.codehaus.plexus:plexus-utils:jar:3.0.5: Could not transfer artifact org.codehaus.plexus:plexus-utils:pom:3.0.5 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException


I don't seem to have these mentioned plugins in my pom.xml file, but then I suppose they might be dependencies of dependencies(?)



I've then tried to run mvn clean install as some posts suggest, but then I get the following failure:



$ mvn clean install
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.298 s
[INFO] Finished at: 2018-11-19T15:08:06Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project Budget: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-surefire-plugin:jar:2.12.4 -> org.apache.maven.surefire:surefire-booter:jar:2.12.4: Failed to read artifact descriptor for org.apache.maven.surefire:surefire-booter:jar:2.12.4: Could not transfer artifact org.apache.maven.surefire:surefire-booter:pom:2.12.4 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]


Anything that I could do to resolve this, or figure out what the issue is?










share|improve this question






















  • Are you behind a proxy?
    – Eugen Covaci
    Nov 19 at 15:35










  • According to this site - amibehindaproxy.com - I'm not.
    – Martyn
    Nov 19 at 16:55










  • Could this be the problem: stackoverflow.com/questions/50946420/…? Which Java Version is running on the other machine?
    – briadeus
    Nov 19 at 20:15










  • That's it, well spotted. Yeh I updated the protocol version and it worked. Actually, it seems to run OK now without adding -Dhttps.protocols=TLSv1.2 install, I'm not sure if it's saved that version now or whether I'll have a similar issue when I need to retrieve new dependencies. Least I know the issue now anyway, thanks!
    – Martyn
    Nov 20 at 14:50















up vote
0
down vote

favorite












I'm trying to add a JAR to my local repository. This process worked fine at home, but on another machine it's throwing errors and I don't really know what the issue is. I've tried googling some of the errors to no joy.



$ mvn install:install-file -Dfile=C:/Users/yqb18196/Documents/ojdbc7.jar -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=12.0.0 -Dpackaging=jar
[INFO] Scanning for projects...
...
[INFO]
[INFO] ------------------< com.websystique.springmvc:Budget >------------------
[INFO] Building Budget 1.0.0
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ Budget ---
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.5/plexus-utils-3.0.5.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.729 s
[INFO] Finished at: 2018-11-19T14:05:24Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file (default-cli) on project Budget: Execution default-cli of goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file failed: Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-install-plugin:jar:2.4 -> org.codehaus.plexus:plexus-utils:jar:3.0.5: Failed to read artifact descriptor for org.codehaus.plexus:plexus-utils:jar:3.0.5: Could not transfer artifact org.codehaus.plexus:plexus-utils:pom:3.0.5 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException


I don't seem to have these mentioned plugins in my pom.xml file, but then I suppose they might be dependencies of dependencies(?)



I've then tried to run mvn clean install as some posts suggest, but then I get the following failure:



$ mvn clean install
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.298 s
[INFO] Finished at: 2018-11-19T15:08:06Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project Budget: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-surefire-plugin:jar:2.12.4 -> org.apache.maven.surefire:surefire-booter:jar:2.12.4: Failed to read artifact descriptor for org.apache.maven.surefire:surefire-booter:jar:2.12.4: Could not transfer artifact org.apache.maven.surefire:surefire-booter:pom:2.12.4 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]


Anything that I could do to resolve this, or figure out what the issue is?










share|improve this question






















  • Are you behind a proxy?
    – Eugen Covaci
    Nov 19 at 15:35










  • According to this site - amibehindaproxy.com - I'm not.
    – Martyn
    Nov 19 at 16:55










  • Could this be the problem: stackoverflow.com/questions/50946420/…? Which Java Version is running on the other machine?
    – briadeus
    Nov 19 at 20:15










  • That's it, well spotted. Yeh I updated the protocol version and it worked. Actually, it seems to run OK now without adding -Dhttps.protocols=TLSv1.2 install, I'm not sure if it's saved that version now or whether I'll have a similar issue when I need to retrieve new dependencies. Least I know the issue now anyway, thanks!
    – Martyn
    Nov 20 at 14:50













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm trying to add a JAR to my local repository. This process worked fine at home, but on another machine it's throwing errors and I don't really know what the issue is. I've tried googling some of the errors to no joy.



$ mvn install:install-file -Dfile=C:/Users/yqb18196/Documents/ojdbc7.jar -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=12.0.0 -Dpackaging=jar
[INFO] Scanning for projects...
...
[INFO]
[INFO] ------------------< com.websystique.springmvc:Budget >------------------
[INFO] Building Budget 1.0.0
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ Budget ---
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.5/plexus-utils-3.0.5.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.729 s
[INFO] Finished at: 2018-11-19T14:05:24Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file (default-cli) on project Budget: Execution default-cli of goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file failed: Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-install-plugin:jar:2.4 -> org.codehaus.plexus:plexus-utils:jar:3.0.5: Failed to read artifact descriptor for org.codehaus.plexus:plexus-utils:jar:3.0.5: Could not transfer artifact org.codehaus.plexus:plexus-utils:pom:3.0.5 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException


I don't seem to have these mentioned plugins in my pom.xml file, but then I suppose they might be dependencies of dependencies(?)



I've then tried to run mvn clean install as some posts suggest, but then I get the following failure:



$ mvn clean install
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.298 s
[INFO] Finished at: 2018-11-19T15:08:06Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project Budget: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-surefire-plugin:jar:2.12.4 -> org.apache.maven.surefire:surefire-booter:jar:2.12.4: Failed to read artifact descriptor for org.apache.maven.surefire:surefire-booter:jar:2.12.4: Could not transfer artifact org.apache.maven.surefire:surefire-booter:pom:2.12.4 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]


Anything that I could do to resolve this, or figure out what the issue is?










share|improve this question













I'm trying to add a JAR to my local repository. This process worked fine at home, but on another machine it's throwing errors and I don't really know what the issue is. I've tried googling some of the errors to no joy.



$ mvn install:install-file -Dfile=C:/Users/yqb18196/Documents/ojdbc7.jar -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=12.0.0 -Dpackaging=jar
[INFO] Scanning for projects...
...
[INFO]
[INFO] ------------------< com.websystique.springmvc:Budget >------------------
[INFO] Building Budget 1.0.0
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ Budget ---
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.5/plexus-utils-3.0.5.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.729 s
[INFO] Finished at: 2018-11-19T14:05:24Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file (default-cli) on project Budget: Execution default-cli of goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file failed: Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-install-plugin:jar:2.4 -> org.codehaus.plexus:plexus-utils:jar:3.0.5: Failed to read artifact descriptor for org.codehaus.plexus:plexus-utils:jar:3.0.5: Could not transfer artifact org.codehaus.plexus:plexus-utils:pom:3.0.5 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException


I don't seem to have these mentioned plugins in my pom.xml file, but then I suppose they might be dependencies of dependencies(?)



I've then tried to run mvn clean install as some posts suggest, but then I get the following failure:



$ mvn clean install
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.298 s
[INFO] Finished at: 2018-11-19T15:08:06Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project Budget: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-surefire-plugin:jar:2.12.4 -> org.apache.maven.surefire:surefire-booter:jar:2.12.4: Failed to read artifact descriptor for org.apache.maven.surefire:surefire-booter:jar:2.12.4: Could not transfer artifact org.apache.maven.surefire:surefire-booter:pom:2.12.4 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]


Anything that I could do to resolve this, or figure out what the issue is?







java maven maven-2






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 19 at 15:13









Martyn

1,51061760




1,51061760












  • Are you behind a proxy?
    – Eugen Covaci
    Nov 19 at 15:35










  • According to this site - amibehindaproxy.com - I'm not.
    – Martyn
    Nov 19 at 16:55










  • Could this be the problem: stackoverflow.com/questions/50946420/…? Which Java Version is running on the other machine?
    – briadeus
    Nov 19 at 20:15










  • That's it, well spotted. Yeh I updated the protocol version and it worked. Actually, it seems to run OK now without adding -Dhttps.protocols=TLSv1.2 install, I'm not sure if it's saved that version now or whether I'll have a similar issue when I need to retrieve new dependencies. Least I know the issue now anyway, thanks!
    – Martyn
    Nov 20 at 14:50


















  • Are you behind a proxy?
    – Eugen Covaci
    Nov 19 at 15:35










  • According to this site - amibehindaproxy.com - I'm not.
    – Martyn
    Nov 19 at 16:55










  • Could this be the problem: stackoverflow.com/questions/50946420/…? Which Java Version is running on the other machine?
    – briadeus
    Nov 19 at 20:15










  • That's it, well spotted. Yeh I updated the protocol version and it worked. Actually, it seems to run OK now without adding -Dhttps.protocols=TLSv1.2 install, I'm not sure if it's saved that version now or whether I'll have a similar issue when I need to retrieve new dependencies. Least I know the issue now anyway, thanks!
    – Martyn
    Nov 20 at 14:50
















Are you behind a proxy?
– Eugen Covaci
Nov 19 at 15:35




Are you behind a proxy?
– Eugen Covaci
Nov 19 at 15:35












According to this site - amibehindaproxy.com - I'm not.
– Martyn
Nov 19 at 16:55




According to this site - amibehindaproxy.com - I'm not.
– Martyn
Nov 19 at 16:55












Could this be the problem: stackoverflow.com/questions/50946420/…? Which Java Version is running on the other machine?
– briadeus
Nov 19 at 20:15




Could this be the problem: stackoverflow.com/questions/50946420/…? Which Java Version is running on the other machine?
– briadeus
Nov 19 at 20:15












That's it, well spotted. Yeh I updated the protocol version and it worked. Actually, it seems to run OK now without adding -Dhttps.protocols=TLSv1.2 install, I'm not sure if it's saved that version now or whether I'll have a similar issue when I need to retrieve new dependencies. Least I know the issue now anyway, thanks!
– Martyn
Nov 20 at 14:50




That's it, well spotted. Yeh I updated the protocol version and it worked. Actually, it seems to run OK now without adding -Dhttps.protocols=TLSv1.2 install, I'm not sure if it's saved that version now or whether I'll have a similar issue when I need to retrieve new dependencies. Least I know the issue now anyway, thanks!
– Martyn
Nov 20 at 14:50

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53377570%2ffailed-to-execute-goal-errors-when-running-mvn-installinstall-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53377570%2ffailed-to-execute-goal-errors-when-running-mvn-installinstall-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Tonle Sap (See)

I get strange results when I access the Sqlitedatabase with Unity C# via XAMPP

Guatemaltekische Davis-Cup-Mannschaft