Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chrisfair opened this issue Jul 17, 2019 · 3 comments
Open

Comments

@chrisfair
Copy link

[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

 <version>0.0.2-SNAPSHOT</version>
 <packaging>dotnet</packaging>
 <modelVersion>4.0.0</modelVersion>

 <parent>
      <groupId>com.beckman.particle.commonmodules</groupId>
      <artifactId>integrated-security</artifactId>
      <version>0.0.2-SNAPSHOT</version>
 </parent>

 <artifactId>activeDirectoryDotNetCoreLib</artifactId>
 
 <properties>
      <target.name>activeDirectoryGroupsDotNet${dynamicLib.extension}</target.name>
      <rootPOM>${basedir}${file.separator}..${file.separator}</rootPOM>
 </properties>

 <build>
      <sourceDirectory>${rootPOM}${file.separator}src${file.separator}main${file.separator}csharp</sourceDirectory>
      <directory>${rootPOM}${file.separator}bin</directory>
      <defaultGoal>Clean restore package</defaultGoal>
      <finalName>${target.name}${final.extension}</finalName>
      <plugins>
           <plugin>
                <groupId>org.eobjects.build</groupId>
                <artifactId>dotnet-maven-plugin</artifactId>
                <version>0.24</version>
                <extensions>true</extensions>
                <configuration>
                     <buildConfiguration>Release</buildConfiguration>
                     <buildEnabled>true</buildEnabled>
                     <cleanEnabled>true</cleanEnabled>
                </configuration>
           </plugin>
           <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <configuration>
                     <preparationGoals>dotnet:update-versions</preparationGoals>
                </configuration>
           </plugin>
      </plugins>
 </build>
@chrisfair
Copy link
Author

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
Copy link
Author

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

@Chirag1305
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants