Plugin not found for 'install' prefix in current project

I want to add jdbc oracle to maven repository, since it is not in repository, I have to run this command:

mvn install:install-file
-Dfile=D:\Temp\ojdbc6.jar 
-DgroupId=com.oracle 
-DartifactId=ojdbc6 -
 Dversion=11.2.0 -Dpackaging=jar

      

and face this error:

[ERROR] No plugin found for prefix 'install' in the current project and in the p
lugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the re
positories [local ({my repository path}), central (https://repo.maven.
apache.org/maven2)] 

      

any help will be appreciated.

+4


source to share


3 answers


I got the same problem, there is a two step process to solve this problem:

  • Configuring Maven Proxy Server Configuration

    • Open the Maven config file:

      • For Linux: ${user.home}/.m2/settings.xml

      • For Windows: C:\users\username\.m2\settings.xml

      • If you can find the file, open it and search for the <proxies></proxies>

        segment.

      • If you can't find the file, create a new file named settings.xml

        and add the following xml tags<settings></settings>

      • Add proxy settings as shown below:

        <proxies>
            <proxy>
                <id>example-proxy</id>
                <active>true</active>
                <protocol>http</protocol>
                <host>proxy.example.com</host>
                <port>8080</port>
                <username>proxyuser</username>
                <password>somepassword</password>   
             <nonProxyHosts>www.google.com|*.example.com</nonProxyHosts>
           </proxy>
        </proxies>
        
              

  • Update Maven Libraries with Working Extension



You are now ready to use Maven with your programs.

0


source


Try adding this to your Maven config file:

<!-- https://mvnrepository.com/artifact/com.oracle/ojdbc14 -->
<dependency>
    <groupId>com.oracle</groupId>
    <artifactId>ojdbc14</artifactId>
    <version>10.2.0.4.0</version>
</dependency>

      

It should install Oracle JDBC into your repository and install the required JARS.



https://www.tech-recipes.com/rx/39256/add-dependencies-to-maven-pom-xml-file/

Add it to the tag dependencies

.

Hope it helps!

0


source


I recently got the same error and I tried this command. It worked.

export MAVEN_OPTS=-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2

      

0


source







All Articles