Hi, I found the solution myself.
Just need to define the following within the RarMavenProjectStub: Build build = new Build(); build.setDirectory( getBasedir() + "/target" ); build.setSourceDirectory( getBasedir() + "/src/main/java" ); build.setOutputDirectory( getBasedir() + "/target/classes" ); build.setTestSourceDirectory( getBasedir() + "/src/test/java" ); build.setTestOutputDirectory( getBasedir() + "/target/test-classes" ); setBuild( build ); which solved the problem. Kind regards Karl Heinz Marbaise On 12/9/14 9:48 PM, Karl Heinz Marbaise wrote:
Hi, after taking a deeper look into the reason for the failed build i have realized that based on the usage of the maven-plugin-testing-harness a problem exists which i have drilled down to the following...point... In maven-archiver the following code snippet: (MavenArchiver class line 532): File pomPropertiesFile = archiveConfiguration.getPomPropertiesFile(); if ( pomPropertiesFile == null ) { File dir = new File( workingProject.getBuild().getDirectory(), "maven-archiver" ); pomPropertiesFile = new File( dir, "pom.properties" ); } new PomPropertiesUtil().createPomProperties( workingProject, archiver, pomPropertiesFile, forced ); is used to create the default parts in an archive with pom.xml and pom.properties but the integration tests just miss to define the getBuild().getDirectory() part of the mojo under tests which results in creationg of the "maven-archiver" folder in the root of maven-rar-plugin (every time you run the test part)... which is part of svn:ignore which does not make sense and which is currently failing the build based on the apache-rat-plugin check.... So the question is: Does exist a simple solution to set the part getBuild().getDirectory() in testing harness ...May be i oversight something here... Can someone give me a little hint ? Many thanks in advance. Kind regards Karl Heinz Marbaise
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org