I was looking at someone else's POM as a reference, where I found dotnet:library

http://jni4net.googlecode.com/svn/mvnrepo/net/sf/jni4net/jni4net.proxygen/0.8.5.1/jni4net.proxygen-0.8.5.1.pom

part of the problem is that I could not find any examples on the NPaday site of what a POM with dependencies should look like. It may be there, but I can't find it.

changing to dotnet-library seems to work and my project actually compiled - wha-hoo!

Thanks, Eric

On 2011-09-07 7:53 PM, Brett Porter wrote:
It should be dotnet-library. Is there somewhere in the docs you saw a reference 
to dotnet:library? That was considered once, but it is problematic for artefact 
keying due to the ':' so we never adopted it and used '-' instead.

- Brett

On 08/09/2011, at 11:04 AM, Eric Kolotyluk wrote:

I have the following POM, but when I try to build it keeps looking for a jar 
instead of a dll. How do I get it to look for a dll?

https://jni4net.googlecode.com/svn/mvnrepo/net/sf/jni4net/jni4net.n/0.8.5.1/

7-Sep-2011 5:42:55 PM npanday.PathUtil getDotNetArtifact
WARNING:
NPANDAY-1005-0001: Error copying dependency 
net.sf.jni4net:jni4net.n:dotnet:library:0.8.5.1:compile File 
C:\Users\10069959\.m2\repository\net\sf\jni4net\jni4net.n\0.8.5.1\jni4net.n-0.8.5.1.jar
 does not exist
[WARNING] Failed to canonicalize path 
P:\Intersystem\main\platform.Java\maven\repository\net\sf\jni4net\jni4net.n\0.8.5.1\jni4net.n-0.8.5.1.dotnet:library.lastUpdated:
 The filename, directory name, or volume label syntax is incorrect
Downloading: 
http://nexus:8081/nexus/content/groups/public/net/sf/jni4net/jni4net.n/0.8.5.1/jni4net.n-0.8.5.1.dotnet:library
[WARNING] Failed to canonicalize path 
P:\Intersystem\main\platform.Java\maven\repository\net\sf\jni4net\jni4net.n\0.8.5.1\jni4net.n-0.8.5.1.dotnet:library.lastUpdated:
 The filename, directory name, or volume label syntax is incorrect
7-Sep-2011 5:42:57 PM npanday.dao.impl.ProjectDaoImpl 
storeProjectAndResolveDependencies
WARNING: NPANDAY-181-121:  Problem in resolving assembly: 
net.sf.jni4net:jni4net.n:dotnet:library:0.8.5.1:compile, Message = Could not 
find artifact net.sf.jni4net:jni4net.n:dotnet:library:0.8.5.1 in nexus 
(http://nexus:8081/nexus/content/groups/public)
Try downloading the file manually from the project website.

Cheers, Eric

<?xml version="1.0" encoding="utf-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns="http://maven.apache.org/POM/4.0.0";>
<parent>
<artifactId>Kodak-Intersystem</artifactId>
<groupId>com.kodak.intersystem</groupId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>..\pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>intersystem-jni4net</artifactId>
<packaging>library</packaging>
<name>com.kodak.intersystem : intersystem-jni4net</name>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.npanday.plugins</groupId>
<artifactId>maven-compile-plugin</artifactId>
<version>1.4.0-incubating</version>
<extensions>true</extensions>
<configuration>
<frameworkVersion>4.0</frameworkVersion>
<includeSources>
<includeSource>Properties\AssemblyInfo.cs</includeSource>
<includeSource>src\main\csharp\com\kodak\intersystem\common\Intersystem.generated.cs</includeSource>
</includeSources>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>net.sf.jni4net</groupId>
<artifactId>jni4net.n</artifactId>
<version>0.8.5.1</version>
<type>dotnet:library</type>
</dependency>
</dependencies>
</project>
--
Brett Porter
[email protected]
http://brettporter.wordpress.com/
http://au.linkedin.com/in/brettporter




Reply via email to