简体   繁体   中英

Eclipse is not downloading plugin from central maven repo

I am trying to create a JAX-RPC webservice client using maven-jaxrpc-plugin in Eclipse using M2E. Here is the corresponding snippet from pom.xml

<pluginManagement>
        <plugins>
            <plugin>
                <groupId>net.sf.jaxrpc-maven</groupId>
                <artifactId>maven-jaxrpc-plugin</artifactId>
                <version>0.3</version>
                <executions>
                    <execution>
                        <id>jax-rpc-scoring-client</id>
                        <phase>install</phase>
                        <goals>
                            <goal>wscompile</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <config>${project.basedir}/config.xml</config>
                    <operation>gen:client</operation>
                    <mapping>${project.build.outputDirectory}/META-INF/jaxrpc-mapping.xml</mapping>
                    <nd>${project.build.outputDirectory}/META-INF/wsdl</nd>
                    <d>${project.build.directory}/generated-classes/jaxrpc</d>
                    <keep>true</keep>
                    <verbose>true</verbose>
                </configuration>
            </plugin>
        </plugins>
</pluginManagement>

<plugins>
    <plugin>
        <groupId>net.sf.jaxrpc-maven</groupId>
        <artifactId>maven-jaxrpc-plugin</artifactId>
    </plugin>
</plugins>

However when I right click -> maven -> install

I get the following error.

Plugin net.sf.jaxrpc-maven:maven-jaxrpc-plugin:0.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for net.sf.jaxrpc-maven:maven-jaxrpc-plugin:jar:0.3: Failure to find net.sf.jaxrpc-maven:maven-jaxrpc-plugin:pom:0.3 in http://fid-nexus.organization.com/ETCB/nexus/content/groups/fid/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]

I checked on my organisations nexus and the plugin is not there. However shouldn't maven fallback and download it from central repo ? In my m2 settings.xml it is configured as shown below.

                 <pluginRepository>
                    <id>central</id>
                    <url>http://repo.maven.apache.org/maven2</url>
                    <releases>
                            <enabled>true</enabled>
                    </releases>
                    <snapshots>
                            <enabled>true</enabled>
                    </snapshots>
                </pluginRepository>

I even tried doing right click update on central repository from Maven Repository View but that didn't help. I am really scratching my head on this :(

This particular library does not exist in the Central Maven Repository nor does it exist any any publicly available repository. It is unreleased code so, as a result, you will be unable to download it regardless of how you configure your POM or Eclipse.

The source for this library exists here ( https://github.com/anomen-s/maven-jaxrpc-plugin ).

This project expects the user to clone it's Git repository and build it locally, which will place it's artifact in your local Maven cache (ie, ~/.m2/repository). Once you do this, it will be available to your project.

Instructions on how to build it are in the project's Readme.md file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM