[ http://jira.codehaus.org/browse/NMAVEN-144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
joe ocaba updated NMAVEN-144: ----------------------------- Attachment: NMaven-144-revised.patch Attached revised patched thanks.... > NMaven is unable to build project with groupId and version inherited from > parent > -------------------------------------------------------------------------------- > > Key: NMAVEN-144 > URL: http://jira.codehaus.org/browse/NMAVEN-144 > Project: NMaven > Issue Type: Bug > Components: Install Plugin (0.14) > Affects Versions: 0.14 (Unreleased) > Reporter: jan ancajas > Fix For: 0.14 (Unreleased) > > Attachments: NMaven-144-revised.patch, nmaven-144.patch > > > example : > {noformat} > <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/maven-v4_0_0.xsd"> > <parent> > <artifactId>ConsoleApplication3-parent</artifactId> > <groupId>test</groupId> > <version>1.0-SNAPSHOT</version> > <relativePath>..\pom.xml</relativePath> > </parent> > <modelVersion>4.0.0</modelVersion> > <artifactId>ConsoleApplication1</artifactId> > <packaging>exe</packaging> > ... > ... > {noformat} > encountered this error: > C:\projects\old\ConsoleApplication3>mvn clean install > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] ConsoleApplication3-parent > [INFO] ConsoleApplication1 > [INFO] ConsoleApplication2 > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building ConsoleApplication3-parent > [INFO] task-segment: [clean, install] > [INFO] > ---------------------------------------------------------------------------- > [INFO] [clean:clean] > [INFO] Deleting directory C:\projects\old\ConsoleApplication3\target > [INFO] Deleting directory C:\projects\old\ConsoleApplication3\target\classes > [INFO] Deleting directory > C:\projects\old\ConsoleApplication3\target\test-classes > [INFO] Deleting directory C:\projects\old\ConsoleApplication3\target\site > [INFO] [site:attach-descriptor] > [INFO] [install:install] > [INFO] Installing C:\projects\old\ConsoleApplication3\pom.xml to C:\Documents > and Settings\jan\.m2\repository\ConsoleApplication3-parent\ConsoleApplic > ation3-parent\1.0-SNAPSHOT\ConsoleApplication3-parent-1.0-SNAPSHOT.pom > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building ConsoleApplication1 > [INFO] task-segment: [clean, install] > [INFO] > ---------------------------------------------------------------------------- > [INFO] [clean:clean] > [INFO] Deleting directory > C:\projects\old\ConsoleApplication3\ConsoleApplication1\target > [INFO] Deleting directory > C:\projects\old\ConsoleApplication3\ConsoleApplication1\target\classes > [INFO] Deleting directory > C:\projects\old\ConsoleApplication3\ConsoleApplication1\target\test-classes > [INFO] Deleting directory > C:\projects\old\ConsoleApplication3\ConsoleApplication1\target\site > [INFO] [compile:initialize] > Jun 12, 2008 9:23:57 AM > org.apache.maven.dotnet.registry.ConnectionsRepository lazyLoad > INFO: NMAVEN-080-001: Adding data access object: Class Name = > org.apache.maven.dotnet.dao.impl.ProjectDaoImpl > Jun 12, 2008 9:23:57 AM > org.apache.maven.dotnet.registry.ConnectionsRepository lazyLoad > INFO: NMAVEN-080-004: Connection Start Up: Time = 109 > [INFO] Mojo Execution Time = 156 > [INFO] [resolver:resolve] > [INFO] Mojo Execution Time = 0 > [INFO] [NMaven.Plugin.Settings.JavaBinding:generate-settings] > [INFO] [compile:generate-assembly-info] > [INFO] NMAVEN-902-001: Found AssemblyInfo file(s), so will not generate one > [INFO] [compile:process-sources] > [INFO] NMAVEN-904-002: Copying source files: From = > C:\projects\old\ConsoleApplication3\ConsoleApplication1\., To = > C:\projects\old\ConsoleApplicatio > n3\ConsoleApplication1\target/build-sources, File Count = 2 > [INFO] [compile:process-test-sources] > [INFO] NMAVEN-905-001: No test source files to copy > [INFO] [resgen:copy-resources] > [INFO] [resgen:generate] > [INFO] [resgen:generate-existing-resx-to-resource] > [INFO] [compile:compile] > [INFO] NMAVEN-066-013: Found Vendor = Vendor = MICROSOFT, Vendor Version = > 2.0.50727, Framework Version = 2.0.50727, Executable Paths = [c:\WINDOWS\Mi > crosoft.NET\Framework\v2.0.50727, C:\Program Files\Microsoft Visual Studio > 8\SDK\v2.0] > [INFO] NMAVEN-068-003: Compiling Artifact: Vendor = MICROSOFT, Language = > MICROSOFT, Assembly Name = C:\projects\old\ConsoleApplication3\ConsoleApplic > ation1\target\ConsoleApplication1.exe > [INFO] NMAVEN-900-004: Compile Time = 266 ms > [INFO] Mojo Execution Time = 281 > [INFO] [compile:testCompile] > [INFO] NMAVEN-066-013: Found Vendor = Vendor = MICROSOFT, Vendor Version = > 2.0.50727, Framework Version = 2.0.50727, Executable Paths = [c:\WINDOWS\Mi > crosoft.NET\Framework\v2.0.50727, C:\Program Files\Microsoft Visual Studio > 8\SDK\v2.0] > [INFO] NMAVEN-068-002: No source files to compile. > [INFO] Mojo Execution Time = 0 > [INFO] [test:test] > [INFO] NMAVEN-1100-001: No Unit Tests > [INFO] [install:install] > Jun 12, 2008 9:24:08 AM > org.apache.maven.dotnet.registry.ConnectionsRepository lazyLoad > INFO: NMAVEN-080-001: Adding data access object: Class Name = > org.apache.maven.dotnet.dao.impl.ProjectDaoImpl > Jun 12, 2008 9:24:08 AM > org.apache.maven.dotnet.registry.ConnectionsRepository lazyLoad > INFO: NMAVEN-080-004: Connection Start Up: Time = 78 > [INFO] NMAVEN-001-007: Installing file into repository: File = > C:\projects\old\ConsoleApplication3\ConsoleApplication1\target\ConsoleApplication1.exe, > Dest File = C:\Documents and > Settings\jan\.m2\uac\gac_msil\ConsoleApplication1\1.0-SNAPSHOT__ConsoleApplication3-parent\ConsoleApplication1.exe > [INFO] > ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] NMAVEN-180-010: Project value is null: Group Id =null, Artifact Id = > ConsoleApplication1, Version = null > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > java.lang.IllegalArgumentException: NMAVEN-180-010: Project value is null: > Group Id =null, Artifact Id = ConsoleApplication1, Version = null > at > org.apache.maven.dotnet.dao.impl.ProjectDaoImpl.storeProjectAndResolveDependencies(ProjectDaoImpl.java:403) > at > org.apache.maven.dotnet.dao.impl.ProjectDaoImpl.storeModelAndResolveDependencies(ProjectDaoImpl.java:727) > at > org.apache.maven.dotnet.artifact.impl.ArtifactInstallerImpl.installArtifactWithPom(ArtifactInstallerImpl.java:416) > at > org.apache.maven.dotnet.plugin.install.InstallerMojo.execute(InstallerMojo.java:173) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 18 seconds > [INFO] Finished at: Thu Jun 12 09:24:08 CST 2008 > [INFO] Final Memory: 13M/26M > [INFO] > ------------------------------------------------------------------------ -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira