java - How to resolve dependency errors in Maven with Nexus repository -
java - How to resolve dependency errors in Maven with Nexus repository -
i newbie maven/nexus these simple questions hope:
when run mvn install on project next errors:
[warning] problems encountered while building effective model com.myproj.testproj:jar:0.0.1 [warning] 'build.plugins.plugin.version' org.apache.maven.plugins:maven-compiler-plugin missing. @ line 294, column 12 [warning] 'build.plugins.plugin.version' org.apache.maven.plugins:maven-surefire-plugin missing. @ line 304, column 12 [warning] [warning] highly recommended prepare these problems because threaten stability of build. [warning] [warning] reason, future maven versions might no longer back upwards building such malformed projects.
and sec error
[warning] pom oracle:ojdbc:jar:10.0.2.0 missing, no dependency info available
for first error think wants me add together version info next plugin
<plugin> <artifactid>maven-compiler-plugin</artifactid> <configuration> <verbose>true</verbose> <source>1.6</source> <target>1.6</target> <encoding>iso-8859-1</encoding> </configuration> </plugin>
the question how know version specify , find out versions available?
the sec error missing oracle:ojdbc:jar:10.0.2.0
artifact 1 not quite sure about. have googled around , seems maybe might have download driver manually , install onto repository locally. correct?
i using nexus maven. how need install ojdbc driver onto nexus repository?
i found page google - http://www.zparacha.com/include-externaljar-file-in-maven/ , talks about how add together jar file maven. don't understand happens when run command described on site install jar file? jar file installed on local repository or nexus repository?
thanks
first off: messages warnings, not errors. project builds , runs fine without serious problems.
the plugins , versions can found here: http://maven.apache.org/plugins/index.html
the oracle jdbc driver can added can seen here: https://repository.sonatype.org/index.html#nexus-search;quick~ojdbc
if error still persists after using artifact there not much can - except creating own repository, warnings not worth effort.
java maven jdbc build nexus
Comments
Post a Comment