kaspersorensen / dotnet-maven-plugin

A Maven plugin for building dotnet projects based on project.json
Apache License 2.0
25 stars 15 forks source link

I cannot get a successful build from my very simple .net assembly #30

Open chrisfair opened 5 years ago

chrisfair commented 5 years ago

[INFO] [INFO] --- dotnet-maven-plugin:0.24:restore (default-restore) @ activeDirectoryDotNetCoreLib --- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for CommonModules Integrated Security 0.0.2-SNAPSHOT: [INFO] [INFO] CommonModules Integrated Security .................. SUCCESS [ 0.012 s] [INFO] CommonModules Integrated Security Go Executable .... SUCCESS [ 6.560 s] [INFO] CommonModules Integrated Security Dynamic Library .. SUCCESS [ 7.807 s] [INFO] CommonModules Integrated Security DotNetCore Lib ... FAILURE [ 0.019 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 20.876 s [INFO] Finished at: 2019-07-17T16:31:43-06:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.eobjects.build:dotnet-maven-plugin:0.24:restore (default-restore) on project activeDirectoryDotNetCoreLib: Could not find any directories with a project/build file. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :activeDirectoryDotNetCoreLib

Here is my pom.xml ....be gentle I just heard of maven about 2 weeks ago....

CommonModules Integrated Security DotNetCore Lib Build and deploy 0.0.2-SNAPSHOT dotnet 4.0.0 com.beckman.particle.commonmodules integrated-security 0.0.2-SNAPSHOT activeDirectoryDotNetCoreLib activeDirectoryGroupsDotNet${dynamicLib.extension} ${basedir}${file.separator}..${file.separator} ${rootPOM}${file.separator}src${file.separator}main${file.separator}csharp ${rootPOM}${file.separator}bin Clean restore package ${target.name}${final.extension} org.eobjects.build dotnet-maven-plugin 0.24 true Release true true org.apache.maven.plugins maven-release-plugin dotnet:update-versions
chrisfair commented 5 years ago

BTW figured out my primary problem your plugin looks for basedir not sourceDirectory and it needs to be added in the configuration. I am uncertain how to gather the artifacts at present. Since I a serious noob to maven I mistook sourceDirectory as a general convention when it was not from my use of another plugin.

chrisfair commented 5 years ago

I think I understand that now as well....worry for my noobness I will move along now :)

Chirag1305 commented 3 years ago

Hi @chrisfair Can you please share your pom.xml & project.json . I am unable to figure out how to get this working. I keep getting error MSB4057 - The target pack does not exists