Hi Paul,

sorry for the late answer; is this still current?

@Brett, Deng, Liit? Do you have an idea why npanday fails resolving the artifacts? Shouldn't it resolve to the GAC, for all gac-types?

_
Lars


Am 06.07.11 16:21, schrieb Paul Dietrich:
I'm converting an existing visual studio solution to use npanday.  The solution 
contains multiple artifacts. One of the artifacts is a code-generator that will 
be used by the other artifacts in their generate-sources phase of npanday.

My problem is this...

The codeGenerator artifact won't build on my system unless I include a few 
gac_msil dependencies, specifically, Microsoft.Build.Tasks, 
Microsoft.Build.Utilities, and Microsoft.Build.Framework.  When I include these 
in my CodeGenerator pom.xml I can build and install this artifact locally.  
When I run the artifact from the command line, it works great.

However, when I try to reference the codeGenerator artifact from my other 
artifacts (LLRP shown below), maven generates an error because it can't resolve 
the same 3 dependencies above.  A sample error message shown below. I've also 
included the pom.xml for my CodeGenerator and for one of my other artifacts 
(LLRP).

Any help would be greatly appreciated.


[ERROR] Failed to execute goal on project LLRP: Could not resolve dependencies for 
project Company.LTKNet:LLRP:library:10.14.0.1-SNAPSHOT: The following artifacts 
could not be resolved: 
Microsoft.Build.Tasks:Microsoft.Build.Tasks:dll:b03f5f7f11d50a3a:2.0.0.0, 
Microsoft.Build.Utilities:Microsoft.Build.Utilities:dll:b03f5f7f11d50a3a:2.0.0.0, 
Microsoft.Build.Framework:Microsoft.Build.Framework:dll:b03f5f7f11d50a3a:2.0.0.0: 
Failure to find 
Microsoft.Build.Tasks:Microsoft.Build.Tasks:dll:b03f5f7f11d50a3a:2.0.0.0 in 
http://repo1.maven.org/maven2 was cached in the local repository, resolution will 
not be reattempted until the update interval of central has elapsed or updates are 
forced ->  [Help 1]

<?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>LTKNet-parent</artifactId>
     <groupId>Company.LTKNet</groupId>
     <version>10.14.0.1-SNAPSHOT</version>
     <relativePath>..\pom.xml</relativePath>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <artifactId>LLRP</artifactId>
   <packaging>library</packaging>
   <name>Company.LTKNet : LLRP</name>
   <build>
     <sourceDirectory>./</sourceDirectory>
     <plugins>
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>exec-maven-plugin</artifactId>
         <executions>
           <execution>
             <id>LLRPParam</id>
             <phase>generate-sources</phase>
             <goals>
               <goal>exec</goal>
             </goals>
             <configuration>
               <executable>codeGenerator.exe</executable>
               <arguments>
                 <argument>../../../Defintions/Core/llrp-1x0-def.xml</argument>
                 <argument>LLRPParam.cs</argument>
                 <argument>LLRPParam.xslt</argument>
               </arguments>
             </configuration>
           </execution>
         </executions>
       </plugin>
       <plugin>
         <groupId>org.apache.npanday.plugins</groupId>
         <artifactId>maven-compile-plugin</artifactId>
         <extensions>true</extensions>
         <configuration>
           <includeSources>
....
             <includeSource>Transaction.cs</includeSource>
           </includeSources>
           <keyfile>..\PublicPrivateKeyFile.snk</keyfile>
         </configuration>
       </plugin>
     </plugins>
   </build>
   <dependencies>
     <dependency>
       <groupId>Company.LTKNet</groupId>
       <artifactId>CodeGenerator</artifactId>
       <version>10.14.0.1-SNAPSHOT</version>
       <type>dotnet-executable</type>
     </dependency>
   </dependencies>
</project>


<?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";>
   <modelVersion>4.0.0</modelVersion>
   <artifactId>CodeGenerator</artifactId>
   <groupId>Company.LTKNet</groupId>
   <version>10.14.0.1-SNAPSHOT</version>
   <packaging>dotnet-executable</packaging>
   <name>Company.LTKNet : CodeGenerator</name>
   <build>
     <sourceDirectory>./</sourceDirectory>
     <plugins>
       <plugin>
         <groupId>org.apache.npanday.plugins</groupId>
         <artifactId>maven-compile-plugin</artifactId>
         <extensions>true</extensions>
         <configuration>
           <includeSources>
             <includeSource>Program.cs</includeSource>
             <includeSource>Properties\AssemblyInfo.cs</includeSource>
           </includeSources>
         </configuration>
       </plugin>
     </plugins>
   </build>
   <dependencies>
     <dependency>
       <groupId>Microsoft.Build.Tasks</groupId>
       <artifactId>Microsoft.Build.Tasks</artifactId>
       <type>gac_msil</type>
       <version>2.0.0.0</version>
       <classifier>b03f5f7f11d50a3a</classifier>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>Microsoft.Build.Utilities</groupId>
       <artifactId>Microsoft.Build.Utilities</artifactId>
       <type>gac_msil</type>
       <version>2.0.0.0</version>
       <classifier>b03f5f7f11d50a3a</classifier>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>Microsoft.Build.Framework</groupId>
       <artifactId>Microsoft.Build.Framework</artifactId>
       <type>gac_msil</type>
       <version>2.0.0.0</version>
       <classifier>b03f5f7f11d50a3a</classifier>
       <scope>compile</scope>
     </dependency>
   </dependencies>
</project>



Reply via email to