java - Maven offline: Plugin not found error -
i got below compile error in pom.xml. want work pom.xml in offline mode. have dependencies in repositry. need install jar or pom.xml in org.apache.maven.plugins:maven-javadoc-plugin?. tried insert jar of maven-javadoc-plugin, failed. please me error or give me information, don't know how solve it. below pom.xml. know have in .m2 directory.
please find below error:
error resolving version plugin 'org.apache.maven.plugins:maven-javadoc-plugin' repositories [local (c:\users \myname\.m2\repository), nexus-chrono (http://192.168.241.125:8081/nexus/content/groups/public/)]: plugin not found in plugin repository <?xml version="1.0" encoding="utf-8"?> <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <parent> <groupid>es.chx</groupid> <artifactid>parent-pom</artifactid> <version>2.0-snapshot</version> </parent> <modelversion>4.0.0</modelversion> <groupid>es.chx.gestionenvios</groupid> <artifactid>gestionenvios</artifactid> <name>gestionenvios</name> <packaging>war</packaging> <properties> <project.reporting.outputencoding>utf-8</project.reporting.outputencoding> <org.springframework-version>2.5</org.springframework-version> </properties> <dependencies> <dependency> <groupid>es.chx</groupid> <artifactid>arq-chx</artifactid> <version>1.0-snapshot</version> </dependency> <!-- <dependency> --> <!-- <groupid>es.chx.web</groupid> --> <!-- <artifactid>loginliferayfromapp</artifactid> --> <!-- <version>1.0-snapshot</version> --> <!-- </dependency> --> <!-- <dependency> --> <!-- <groupid>es.chx.web</groupid> --> <!-- <artifactid>commonweb</artifactid> --> <!-- <version>1.0-snapshot</version> --> <!-- </dependency> --> <!-- --> <dependency> <!-- --> <groupid>es.chx.intranet</groupid> <!-- --> <artifactid>commonintranet</artifactid> <!-- --> <version>1.0</version> <!-- --> </dependency> <dependency> <groupid>displaytag</groupid> <artifactid>displaytag-doc</artifactid> <version>1.2</version> <type>pom</type> </dependency> <dependency> <groupid>displaytag</groupid> <artifactid>displaytag</artifactid> <version>1.2</version> </dependency> <dependency> <groupid>displaytag</groupid> <artifactid>displaytag-export-poi</artifactid> <version>1.2</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-context</artifactid> <version>${org.springframework-version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-webmvc</artifactid> <version>${org.springframework-version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-aop</artifactid> <version>${org.springframework-version}</version> </dependency> <dependency> <groupid>org.ajaxtags</groupid> <artifactid>ajaxtags</artifactid> <version>1.3-beta-rc7</version> </dependency> <dependency> <groupid>net.sf.json-lib</groupid> <artifactid>json-lib</artifactid> <version>2.2.3</version> <type>pom</type> </dependency> <dependency> <groupid>net.sf.json-lib</groupid> <artifactid>json-lib-ext-spring</artifactid> <version>1.0.2</version> </dependency> <dependency> <groupid>es.chx.web</groupid> <artifactid>dwr</artifactid> <version>3.0</version> </dependency> <dependency> <groupid>cglib</groupid> <artifactid>cglib</artifactid> <version>2.2.2</version> <scope>compile</scope> </dependency> <dependency> <groupid>javax.inject</groupid> <artifactid>javax.inject</artifactid> <version>1</version> </dependency> <dependency> <groupid>javax.validation</groupid> <artifactid>validation-api</artifactid> <version>1.0.0.ga</version> <scope>compile</scope> </dependency> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-validator</artifactid> <version>4.2.0.final</version> <scope>compile</scope> <exclusions> <exclusion> <artifactid>slf4j-api</artifactid> <groupid>org.slf4j</groupid> </exclusion> </exclusions> </dependency> <dependency> <groupid>jstl</groupid> <artifactid>jstl</artifactid> <version>1.2</version> </dependency> <dependency> <groupid>log4j</groupid> <artifactid>log4j</artifactid> <version>1.2.14</version> </dependency> <dependency> <groupid>commons-validator</groupid> <artifactid>commons-validator</artifactid> <version>1.4.0</version> </dependency> <dependency> <groupid>commons-lang</groupid> <artifactid>commons-lang</artifactid> <version>2.6</version> </dependency> <dependency> <groupid>javax.servlet</groupid> <artifactid>jsp-api</artifactid> <version>2.0</version> <scope>provided</scope> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-tx</artifactid> <version>2.5</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-jdbc</artifactid> <version>2.5</version> </dependency> <dependency> <groupid>commons-dbcp</groupid> <artifactid>commons-dbcp</artifactid> <version>1.2.2</version> </dependency> <dependency> <groupid>com.oracle</groupid> <artifactid>ojdbc14</artifactid> <version>10.2.0.2.0</version> </dependency> <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <version>4.4</version> <scope>test</scope> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-test</artifactid> <version>2.5</version> <scope>test</scope> </dependency> <dependency> <groupid>com.lowagie</groupid> <artifactid>itext</artifactid> <version>1.3</version> </dependency> </dependencies> <repositories> <repository> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> <id>nexus-chrono</id> <url>http://192.168.241.125:8081/nexus/content/groups/public/</url> </repository> <repository> <id>apache.snapshots</id> <name>maven plugin snapshots</name> <url>http://repository.apache.org/snapshots/</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <build> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-war-plugin</artifactid> <version>2.1.1</version> <configuration></configuration> </plugin> <plugin> <artifactid>maven-eclipse-plugin</artifactid> <version>2.9</version> <configuration> <additionalprojectnatures> <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature> </additionalprojectnatures> <additionalbuildcommands> <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand> </additionalbuildcommands> <downloadsources>true</downloadsources> <downloadjavadocs>true</downloadjavadocs> </configuration> </plugin> </plugins> </build> </project>
in m2 repository @ c:\users\myname\.m2\repository
, need both
- the application dependencies
- and maven plugins used in pom,
org.apache.maven.plugins:maven-javadoc-plugin
in particular case
Comments
Post a Comment