Hi all guys, Thanks a lot for your replies!!! And sorry for replying late, but my timezone is really different from yours :P
@Lars: nope, unfortunately I don't have any Windows machine available :( @Matthias: we have an internal repo too, indeed I would like to install NUnit there... how did you accomplish that? @Brett: I tried indeed installing the artifact in the way you are suggesting, everything runs fine until I try to package the artifact that depends to NUnit, the output message is: WARNING: NPANDAY-1005-0001: Error copying dependency NUnit:NUnit.Framework:dll:2.5.10.11092:test File /Users/stripodi/.m2/repository/NUnit/NUnit.Framework/2.5.10.11092/NUnit.Framework-2.5.10.11092.jar does not exist Jul 27, 2011 8:19:08 AM npanday.PathUtil getDotNetArtifact WARNING: NPANDAY-1005-0001: Error copying dependency NUnit:NUnit.Framework:dll:2.5.10.11092:test File /Users/stripodi/.m2/repository/NUnit/NUnit.Framework/2.5.10.11092/NUnit.Framework-2.5.10.11092.jar does not exist Jul 27, 2011 8:19:08 AM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies WARNING: NPANDAY-180-018: Not found in local repository, now retrieving artifact from wagon:NUnit:NUnit.Framework:dll:2.5.10.11092, Failed Path Check = /private/tmp/aaa/target/NUnit.Framework.dll Do you have any idea? Thanks a lot in advance, have a nice day!!! Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Wed, Jul 27, 2011 at 2:29 AM, Brett Porter <[email protected]> wrote: > Try this instead: > > mvn install:install-file \ > -Dfile=./nunit.framework.dll \ > -DgroupId=NUnit \ > -DartifactId=NUnit.Framework \ > -Dpackaging=dll \ > -DartifactVersion=2.5.10.11092 \ > -DgeneratePom=true > > Afterwards, you'll need to edit the POM to change "dll" to "dotnet-library". > We generally want to replace custom code with the standard Maven equivalents > in future - the only catch is that it won't recognise the custom types. > > - Brett > > On 27/07/2011, at 3:10 AM, Simone Tripodi wrote: > >> Hi all ASF mates, >> I'm trying to convince my .NET co-workers about the power of automated >> builds using maven, I'm unfortunately experiencing an issue with NUnit >> because I'm not able to install 3rd party dependencies ;( >> >> What I tried to run is >> >> mvn org.apache.npanday.plugins:maven-install-plugin:install-file \ >> -Dfile=./nunit.framework.dll \ >> -DgroupId=NUnit \ >> -DartifactId=NUnit.Framework \ >> -Dpackaging=library \ >> -DartifactVersion=2.5.10.11092 >> >> The output looks good >> >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Building Maven Stub Project (No POM) 1 >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] >> [INFO] --- maven-install-plugin:1.4.0-incubating:install-file >> (default-cli) @ standalone-pom --- >> [INFO] NPANDAY-xxx-000: Installing file with generated pom >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD SUCCESS >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 2.117s >> [INFO] Finished at: Tue Jul 26 18:52:29 CEST 2011 >> [INFO] Final Memory: 5M/1016M >> [INFO] >> ------------------------------------------------------------------------ >> >> but NO artifacts are installed in ~/.m2/repository >> Running maven with -X option I got >> >> [INFO] NPANDAY-xxx-000: Installing file with generated pom >> [DEBUG] NPANDAY-001-031: artifact:NUnit:NUnit.Framework:library:2.5.10.11092 >> [DEBUG] NPANDAY-001-032: artifact >> file:/Applications/NUnit-2.5.10.11092/bin/net-2.0/framework/nunit.framework.dll >> [DEBUG] NPANDAY-001-032: config >> file:${project.basedir}/target/NUnit.Framework.exe.config >> [DEBUG] NPANDAY-001-033: config file:library >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD SUCCESS >> [INFO] >> ------------------------------------------------------------------------ >> >> Just for the record: these are my mvn settings >> Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100) >> Maven home: /Applications/apache-maven-3.0.3 >> Java version: 1.5.0_19, vendor: Apple Computer, Inc. >> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home >> Default locale: en_US, platform encoding: MacRoman >> OS name: "mac os x", version: "10.4.11", arch: "i386", family: "unix" >> >> Do you have any hint for a hopeless guy? Is there any alternative way >> I can create repo artifacts? >> Many thanks in advance, have a nice day! >> All the best, >> Simo >> >> http://people.apache.org/~simonetripodi/ >> http://www.99soft.org/ > > -- > Brett Porter > [email protected] > http://brettporter.wordpress.com/ > http://au.linkedin.com/in/brettporter > > > > >
