pom.xml - dom4j maven missing artifact -


i'm having problem dom4j in pom.xml.

<dependency>     <groupid>org.dom4j</groupid>     <artifactid>dom4j-1.4</artifactid>     <version>1.4</version>     <type>jar</type>     <scope>compile</scope> </dependency> 

is annotated "missing artifact org.dom4j:dom4j-1.4:jar:1.4". here's pom:

<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/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion>  <groupid>com.netline.edu</groupid> <artifactid>eduruleschange</artifactid> <version>1.0-snapshot</version> <packaging>war</packaging>  <name>eduruleschange</name>  <properties>     <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>     <project.build.sourceencoding>utf-8</project.build.sourceencoding> </properties>  <dependencies>     <dependency>         <groupid>javax.portlet</groupid>         <artifactid>portlet-api</artifactid>         <version>2.0</version>         <scope>provided</scope>     </dependency>     <dependency>         <groupid>org.slf4j</groupid>         <artifactid>slf4j-jcl</artifactid>         <version>1.6.4</version>         <type>jar</type>         <scope>compile</scope>     </dependency>     <dependency>         <groupid>javax</groupid>         <artifactid>javaee-web-api</artifactid>         <version>6.0</version>         <scope>provided</scope>     </dependency>     <dependency>         <groupid>commons-logging</groupid>         <artifactid>commons-logging</artifactid>         <version>1.1.1</version>         <type>jar</type>         <scope>compile</scope>     </dependency>      <dependency>         <groupid>com.google.code.findbugs</groupid>         <artifactid>annotations</artifactid>         <version>2.0.0</version>     </dependency>      <dependency>         <groupid>org.slf4j</groupid>         <artifactid>slf4j-api</artifactid>         <version>1.6.4</version>         <scope>compile</scope>     </dependency>      <dependency>         <groupid>com.thoughtworks.xstream</groupid>         <artifactid>xstream</artifactid>         <version>1.4.4</version>         <scope>compile</scope>     </dependency>     <dependency>         <groupid>commons-lang</groupid>         <artifactid>commons-lang</artifactid>         <version>2.6</version>         <type>jar</type>         <scope>compile</scope>     </dependency>     <dependency>         <groupid>junit</groupid>         <artifactid>junit</artifactid>         <version>4.8.2</version>         <scope>test</scope>     </dependency>     <dependency>         <groupid>com.ibm.portal</groupid>         <artifactid>base-wp.base</artifactid>         <version>1.0</version>     </dependency>     <dependency>         <groupid>com.ibm.portal</groupid>         <artifactid>user-wp.user.api</artifactid>         <version>1.0</version>         <scope>provided</scope>     </dependency>     <dependency>         <groupid>org.apache.axis</groupid>         <artifactid>axis</artifactid>         <version>1.4</version>         <type>jar</type>         <scope>compile</scope>     </dependency>     <dependency>         <groupid>javax.servlet</groupid>         <artifactid>jstl</artifactid>         <version>1.2</version>         <type>jar</type>         <scope>provided</scope>     </dependency>     <dependency>         <groupid>com.ibm.db2</groupid>         <artifactid>jcc.db2driver</artifactid>         <version>1.0</version>         <type>jar</type>         <scope>compile</scope>     </dependency>     <dependency>         <groupid>com.silvermedia.oswiata.lib</groupid>         <artifactid>portalmenu</artifactid>         <version>1.0-snapshot</version>         <scope>provided</scope>     </dependency>      <dependency>         <groupid>org.dom4j</groupid>         <artifactid>dom4j-1.4</artifactid>         <version>1.4</version>         <type>jar</type>         <scope>compile</scope>     </dependency> </dependencies>   <build>     <resources>         <resource>             <directory>src/main/resources</directory>             <filtering>true</filtering>         </resource>     </resources>     <plugins>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-compiler-plugin</artifactid>             <version>2.3.2</version>             <configuration>                 <source>1.6</source>                 <target>1.6</target>                 <compilerarguments>                     <endorseddirs>${endorsed.dir}</endorseddirs>                 </compilerarguments>             </configuration>         </plugin>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-war-plugin</artifactid>             <version>2.1.1</version>             <configuration>                   <failonmissingwebxml>false</failonmissingwebxml>              </configuration>          </plugin>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-dependency-plugin</artifactid>             <version>2.1</version>             <executions>                 <execution>                     <phase>validate</phase>                     <goals>                         <goal>copy</goal>                     </goals>                     <configuration>                         <outputdirectory>${endorsed.dir}</outputdirectory>                         <silent>true</silent>                         <artifactitems>                             <artifactitem>                                 <groupid>javax</groupid>                                 <artifactid>javaee-endorsed-api</artifactid>                                 <version>6.0</version>                                 <type>jar</type>                             </artifactitem>                         </artifactitems>                     </configuration>                 </execution>             </executions>         </plugin>      </plugins>     <pluginmanagement>         <plugins>             <!--this plugin's configuration used store eclipse m2e settings only. has no influence on maven build itself.-->             <plugin>                 <groupid>org.eclipse.m2e</groupid>                 <artifactid>lifecycle-mapping</artifactid>                 <version>1.0.0</version>                 <configuration>                     <lifecyclemappingmetadata>                         <pluginexecutions>                             <pluginexecution>                                 <pluginexecutionfilter>                                     <groupid>                                         org.apache.maven.plugins                                     </groupid>                                     <artifactid>                                         maven-dependency-plugin                                     </artifactid>                                     <versionrange>                                         [2.1,)                                     </versionrange>                                     <goals>                                         <goal>copy</goal>                                     </goals>                                 </pluginexecutionfilter>                                 <action>                                     <ignore></ignore>                                 </action>                             </pluginexecution>                         </pluginexecutions>                     </lifecyclemappingmetadata>                 </configuration>             </plugin>         </plugins>     </pluginmanagement> </build>  <reporting>     <plugins>         <plugin>             <groupid>org.codehaus.mojo</groupid>             <artifactid>findbugs-maven-plugin</artifactid>             <version>2.0.1</version>             <configuration>                 <findbugsxmloutput>true</findbugsxmloutput>                 <findbugsxmlwithmessages>true</findbugsxmlwithmessages>                 <xmloutput>true</xmloutput>             </configuration>         </plugin>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-jxr-plugin</artifactid>             <version>2.3</version>         </plugin>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-checkstyle-plugin</artifactid>             <version>2.10</version>         </plugin>     </plugins> </reporting>   

when replace dom4j dependency with

<dependency>     <groupid>dom4j</groupid>     <artifactid>dom4j</artifactid>     <version>1.6.1</version> </dependency> 

i'm getting same error, in first line

<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/xsd/maven-4.0.0.xsd"> 

can help?

first remove existing jar file .m2 folder, again run maven install. problem solve.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -