Maven scala scoverage try to pull package for other module - scala

I have a multimodule maven project with the following schema
root
- module-A
- module-B (depends on A)
- module-C1 (depends on B)
- module-C2 (depends on B)
...
- module-Cn (depends on B)
And it has the scoverage-maven-plugin configured like this.
<plugin>
<groupId>org.scoverage</groupId>
<artifactId>scoverage-maven-plugin</artifactId>
<version>${scoverage.plugin.version}</version>
<configuration>
<scalaVersion>${scala.version}</scalaVersion>
<aggregate>true</aggregate>
</configuration>
<executions>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
scoverage.plugin.version = 1.4.1
scala.version = 2.11.11
If I lunch a mvn clean package in local from the root project, it works as expected, but in the CI workflow (bamboo if its useful), modules A and B go great, but on C1 I get the following error:
14-May-2020 14:23:41 [INFO] >>> scoverage-maven-plugin:1.4.1:report (report) > [scoverage]test # C1 >>>
14-May-2020 14:23:41 [INFO]
14-May-2020 14:23:41 [INFO] --- scoverage-maven-plugin:1.4.1:pre-compile (report) # C1 ---
14-May-2020 14:23:41 [INFO] Downloading from nexus: https://fakenexusurl.com/repository/all/module-B/1.0.0-SNAPSHOT/maven-metadata.xml
14-May-2020 14:23:41 [INFO] Downloading from nexus: https://fakenexusurl.com/repository/all/module-B/1.0.0-SNAPSHOT/module-B-1.0.0-SNAPSHOT.jar
14-May-2020 14:23:41 [INFO] ------------------------------------------------------------------------
14-May-2020 14:23:41 [INFO] Reactor Summary:
14-May-2020 14:23:41 [INFO]
14-May-2020 14:23:41 [INFO] root .......................................... SUCCESS [ 3.610 s]
14-May-2020 14:23:41 [INFO] module-A ................................... SUCCESS [01:38 min]
14-May-2020 14:23:41 [INFO] modulde-B ............................. SUCCESS [01:30 min]
14-May-2020 14:23:41 [INFO] module-C1 ........................... FAILURE [01:37 min]
14-May-2020 14:23:41 [INFO] module-C2 ........................... SKIPPED
14-May-2020 14:23:41 [INFO] ------------------------------------------------------------------------
14-May-2020 14:23:41 [INFO] BUILD FAILURE
14-May-2020 14:23:41 [INFO] ------------------------------------------------------------------------
14-May-2020 14:23:41 [INFO] Total time: 04:50 min
14-May-2020 14:23:41 [INFO] Finished at: 2020-05-14T14:23:41Z
14-May-2020 14:23:42 [INFO] Final Memory: 85M/1627M
14-May-2020 14:23:42 [INFO] ------------------------------------------------------------------------
14-May-2020 14:23:42 [ERROR] Failed to execute goal on project module-C1: Could not resolve dependencies for project group:module-C1:jar:1.0.0-SNAPSHOT: Could not find artifact group:module-B:jar:1.0.0-SNAPSHOT in nexus (https://fakenexusurl.com/repository/all/) -> [Help 1]
I see that it's trying to download module B from the nexus of the company, and of course, it's not there because we didn't publish this snapshot. But I don't understand why it's trying to download dependencies that should look in another module of the same project. And why it doesn't do the same for B that depends on A, if the file are equal except the module name and the dependencies.
All the dependencies used are declared in the root dependencyManagment, and the plugins in the pluginManagment
The CI workflow is a black box for us, we can't know if they are using any extra profiles. The only thing we know is that the launch mvn clean package command.

The flow of scoverage creates a fork of the maven flow, and reruns all until testing. In this fork is not well managed the dependencies between modules, so the only way to execute it correctly from a clean execution is with the command:
mvn clean install scoverage:report
Change install to package, deploy, or any element that needs the report. This will force maven to execute the scoverage:report at the end of each module, preventing the unwanted behaviour.
Foud the information in this thread.

Related

Multiple tags for a Docker image built by Google Jib and Maven?

Using the jib-maven-plugin I'd like to build an image with mulitple tags. While mvn jib:build basically works fine, it "only" tags the image with latest.
My Maven pom.xml defines the following:
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>2.8.0</version>
<configuration>
<to>
<image>my-private-registry.org/my-image</image>
</to>
</configuration>
</plugin>
The docs show that one can use jib.to.tags in the XML to define a list of tags. However, I'd like to run the build step in a Jenkins pipeline, i.e. I cannot hard-code the tags in the pom.xml.
Is it possible to pass the list of tags when running the mvn command, e.g. by setting some -D parameters?
Use -Djib.to.tags=a,b,c.
$ mvn package jib:build -Djib.to.tags=a,b,c
...
[INFO] --- jib-maven-plugin:2.8.0:dockerBuild (default-cli) # hello-spring-boot ---
[INFO] Tagging image with generated image reference hello-spring-boot:0.1.0. If you'd like to specify a different tag, you can set the <to><image> parameter in your pom.xml, or use the -Dimage=<MY IMAGE> commandline flag.
[INFO]
[INFO] Containerizing application to Docker daemon as hello-spring-boot:0.1.0, hello-spring-boot:a, hello-spring-boot:b, hello-spring-boot:c...
[WARNING] Base image 'gcr.io/distroless/java:8' does not use a specific image digest - build may not be reproducible
[INFO] Using base image with digest: sha256:34c3598d83f0dba27820323044ebe79e63ad4f137b405676da75a3905a408adf
[INFO]
[INFO] Container entrypoint set to [java, -Djava.security.egd=file:/dev/./urandom, -cp, /app/resources:/app/classes:/app/libs/*, hello.Application]
[INFO]
[INFO] Built image to Docker daemon as hello-spring-boot:0.1.0, hello-spring-boot:a, hello-spring-boot:b, hello-spring-boot:c
[INFO]
[INFO] A new version of Jib (3.0.0) is available (currently using 2.8.0). Update your build configuration to use the latest features and fixes!
[INFO] https://github.com/GoogleContainerTools/jib/blob/master/jib-maven-plugin/CHANGELOG.md
[INFO] Please see https://github.com/GoogleContainerTools/jib/blob/master/docs/privacy.md for info on disabling this update check.
[INFO]
[INFO] Executing tasks:
[INFO] [==============================] 100.0% complete
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

JaCoCo Check not failing AEM Multi-module Project build below Threshold Coverage

I am trying to configure jaCoCo check in my multi-module AEM 6.4 project.
I have written Test Classes for JUnit5 Extensions which compile well.
I can see report being published to my Sonar Server as well, coverage being 45.9% - Failed.
When I deploy Maven project via maven Run Configurations: mvn clean verify, it always shows all modules deployed with SUCCESS.
Root POM Variables declaration:
<properties>
<!-- Sonar -->
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.jacoco.reportPaths>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPaths>
<sonar.language>java</sonar.language>
<!-- JaCoCo -->
<jacoco.percentage.instruction>0.98</jacoco.percentage.instruction>
</properties>
Root POM Maven Surefire, Fail-safe and JaCoCo Plugins Configuration
<build>
<plugins>
<!-- Maven Surefire Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<argLine>${jacocoArgLine} -Xmx256m</argLine>
</configuration>
</plugin>
<!-- Maven Failsafe Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.22.0</version>
</plugin>
<!-- JaCoCo Plugin for Code Coverage -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.3</version>
<configuration>
<destFile>${sonar.jacoco.reportPaths}</destFile
<dataFile>${sonar.jacoco.reportPaths}</dataFile>
<append>true</append>
</configuration>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<propertyName>jacocoArgLine</propertyName>
</configuration>
</execution>
<execution>
<id>check</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<dataFile>${sonar.jacoco.reportPaths}</dataFile>
<rules>
<rule implementation="org.jacoco.maven.RuleConfiguration">
<element>PACKAGE</element>
<limits>
<limit implementation="org.jacoco.report.check.Limit">
<counter>INSTRUCTION</counter>
<value>COVEREDRATIO</value>
<minimum>0.80</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Please note that I did not configure any plugin on core or it.tests module POM files.
Output from logs - Core Bundle:
[INFO] Building Test - Core 0.0.1-SNAPSHOT [2/5]
[INFO] -------------------------------[ bundle ]-------------------------------
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) # test.core ---
[INFO] Deleting C:\Apps\Workspace\git\test-bitbucket\core\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven) # test.core ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.3:prepare-agent (prepare-agent) # test.core ---
[INFO] jacocoArgLine set to -javaagent:C:\\Users\\Public\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.8.3\\org.jacoco.agent-0.8.3-runtime.jar=destfile=C:\\Apps\\Workspace\\git\\test-bitbucket\\core\\..\\target\\jacoco.exec,append=true
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) # test.core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Apps\Workspace\git\test-bitbucket\core\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) # test.core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 20 source files to C:\Apps\Workspace\git\test-bitbucket\core\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) # test.core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Apps\Workspace\git\test-bitbucket\core\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) # test.core ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.22.0:test (default-test) # test.core ---
[INFO] No tests to run.
[INFO]
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.3:check (check) # marketing-garage.core ---
[INFO] Skipping JaCoCo execution due to missing execution data file:C:\Apps\Workspace\git\test-bitbucket\core\..\target\jacoco.exec
Output from logs - Tests Bundle:
[INFO] Building Test - Integration 0.0.1-SNAPSHOT [5/5]
[INFO] -------------------------------[ bundle ]-------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) # test.it.tests ---
[INFO] Deleting C:\Apps\Workspace\git\test-bitbucket\it.tests\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven) # test.it.tests ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.3:prepare-agent (prepare-agent) # test.it.tests ---
[INFO] jacocoArgLine set to -javaagent:C:\\Users\\Public\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.8.3\\org.jacoco.agent-0.8.3-runtime.jar=destfile=C:\\Apps\\Workspace\\git\\test-bitbucket\\it.tests\\..\\target\\jacoco.exec,append=true
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) # test.it.tests ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Apps\Workspace\git\test-bitbucket\it.tests\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) # test.it.tests ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) # test.it.tests ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) # test.it.tests ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 8 source files to C:\Apps\Workspace\git\test-bitbucket\it.tests\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.22.0:test (default-test) # test.it.tests ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.test.it.tests.LogoutServletTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.603 s - in com.test.it.tests.LogoutServletTest
[INFO] Running com.test.it.tests.SocialFeedsServiceTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.731 s - in com.test.it.tests.SocialFeedsServiceTest
[INFO]
[INFO] Results:
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-bundle-plugin:4.1.0:bundle (default-bundle) # test.it.tests -
[WARNING] Bundle com.test:test.it.tests:bundle:0.0.1-SNAPSHOT : The JAR is empty: The instructions for the JAR named com.test.it.tests did not cause any content to be included, this is likely wrong
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.3:check (check) # test.it.tests ---
[INFO] Loading execution data file C:\Apps\Workspace\git\test-bitbucket\it.tests\..\target\jacoco.exec
[INFO] Analyzed bundle 'test.it.tests' with 0 classes
[INFO] All coverage checks have been met.
[INFO] -----------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] test 0.0.1-SNAPSHOT ................ SUCCESS [ 2.091 s]
[INFO] Test - Core ........................ SUCCESS [ 15.467 s]
[INFO] Test - UI apps ..................... SUCCESS [ 55.583 s]
[INFO] Test - UI content .................. SUCCESS [ 47.815 s]
[INFO] Test - Integration 0.0.1-SNAPSHOT SUCCESS [ 36.362 s]
[INFO] -----------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] -----------------------------------------------------------------------
[INFO] Total time: 02:41 min
[INFO] Finished at: 2019-03-25T11:08:31+05:30
[INFO] -----------------------------------------------------------------------
I expected the build to fail if coverage is below 80% but this configuration is passing all builds from Maven Build perspective.

Compile Scala incrementally in Maven project

I'd like to compile Scala incrementally in a Maven project.
Currently, Scala compiles even if nothing changes.
I've tried scala-maven-plugin, but it doesn't seem to work incrementally at all.
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0">
<artifactId>example</artifactId>
<build>
<plugins>
<plugin>
<artifactId>scala-maven-plugin</artifactId>
<configuration>
<recompileMode>incremental</recompileMode>
<scalaVersion>2.11.7</scalaVersion>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<groupId>net.alchim31.maven</groupId>
<version>3.2.2</version>
</plugin>
</plugins>
</build>
<groupId>example</groupId>
<modelVersion>4.0.0</modelVersion>
<name>example</name>
<version>0.0-SNAPSHOT</version>
</project>
src/main/scala/example/Foo.scala
package example
class Foo {
val foo = None
}
Maven version:
$ mvn --version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T10:37:52-07:00)
Maven home: /usr/share/maven3
Java version: 1.8.0_45-internal, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-65-generic", arch: "amd64", family: "unix"
And then:
$ mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building example 0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # example ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/paul/dev/example/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) # example ---
[INFO] No sources to compile
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:compile (default) # example ---
[INFO] Using incremental compilation
[INFO] Compiling 1 Scala source to /home/paul/dev/example/target/classes...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.090 s
[INFO] Finished at: 2015-10-15T18:22:34-07:00
[INFO] Final Memory: 23M/412M
[INFO] ------------------------------------------------------------------------
$ mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building example 0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # example ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/paul/dev/stash-conditions-test/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) # example ---
[INFO] No sources to compile
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:compile (default) # example ---
[INFO] Using incremental compilation
[INFO] Compiling 1 Scala source to /home/paul/dev/stash-conditions-test/target/classes...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.661 s
[INFO] Finished at: 2015-10-15T18:22:39-07:00
[INFO] Final Memory: 23M/418M
[INFO] ------------------------------------------------------------------------
It compiles every time!
How can I get a Maven project that compiles Scala only when it has changed?
You should try: mvn scala:cc.
see the instruction here http://davidb.github.io/scala-maven-plugin/example_cc.html
Need pass all instead incremental
<configuration>
<recompileMode>all</recompileMode>
</configuration>

How to use Maven exec plugin in Eclipse?

I'm new to Maven and I'm trying to run a project with exec:java. My build fails, presumably because I don't have the exec plugin. I downloaded the plugin (http://mvnrepository.com/artifact/org.codehaus.mojo/exec-maven-plugin), but now I don't know what to do with it in order to be able to use it in Eclipse. I tried adding it to the build path, but that didn't seem to work. This may be a very stupid question, but how do I get the plugin to work?
Here's my build output:
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Twitter2 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- exec-maven-plugin:1.4.0:java (default-cli) # Twitter2 ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.826 s
[INFO] Finished at: 2015-06-11T14:24:29-06:00
[INFO] Final Memory: 10M/114M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:java (default-cli) on project Twitter2: The parameters 'mainClass' for goal org.codehaus.mojo:exec-maven-plugin:1.4.0:java are missing or invalid -> [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/PluginParameterException
As the error says, it seems the mainClass parameter, which tells the plugin what class to run, is not set properly. See http://www.mojohaus.org/exec-maven-plugin/java-mojo.html for the usage of the java goal of the plugin. Try adding the parameter in the POM configuration:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<mainClass>fully.qualified.class.name</mainClass>
</configuration>
</plugin>
Or via property -Dexec.mainClass=fullClassName in the command line.

STS/Eclipse "Java EE" perspective does not recognise maven directory structure

I'm new to maven and I am trying to get eclipse to recognise the maven directory structure when i'm using the dynamic web project perspective.
So I started with the question here: A Java web project created with Maven is not recognized as such by Eclipse and I got this far:
I edited the eclipse-plugin in my pom.xml as:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.6</version>
<configuration>
<wtpmanifest>true</wtpmanifest>
<wtpapplicationxml>true</wtpapplicationxml>
<wtpversion>2.0</wtpversion>
<downloadSources>true</downloadSources>
<additionalBuildcommands>
<buildcommand>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</buildcommand>
</additionalBuildcommands>
<additionalConfig>
<file>
<name>.checkstyle</name>
<url>http://rs.gbif.org/conventions/java-style-config.xml</url>
</file>
</additionalConfig>
</configuration>
</plugin>
Then I used the command
mvn eclipse:eclipse
and it gave the following as output:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building IPT 2.0.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-eclipse-plugin:2.6:eclipse (default-cli) # ipt >>>
[INFO]
[INFO] --- buildnumber-maven-plugin:1.0-beta-4:create (default) # ipt ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: cmd.exe /X /C "svn --non-interactive info"
[INFO] Working directory: C:\IOR_SVN\gbif-providertoolkit-read-only\gbif-ipt
[INFO] Storing buildNumber: 3391 at timestamp: 1309767247372
[INFO] Executing: cmd.exe /X /C "svn --non-interactive info"
[INFO] Working directory: C:\IOR_SVN\gbif-providertoolkit-read-only\gbif-ipt
[INFO] Storing buildScmBranch: trunk
[INFO]
[INFO] <<< maven-eclipse-plugin:2.6:eclipse (default-cli) # ipt <<<
[INFO]
[INFO] --- maven-eclipse-plugin:2.6:eclipse (default-cli) # ipt ---
[INFO] Adding support for WTP version 2.0.
[INFO] Using Eclipse Workspace: null
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAIN
ER
[WARNING] Invalid POM for org.apache.struts:struts2-core:jar:2.0.5, transitive d
ependencies (if any) will not be available, enable debug logging for more detail
s
[INFO] ### TRUE - Manifests are equal
[INFO] Not writing Manifest file as it is unchanged: C:\IOR_SVN\gbif-providertoo
lkit-read-only\gbif-ipt\src\main\webapp\META-INF\MANIFEST.MF
[INFO] Wrote settings to C:\IOR_SVN\gbif-providertoolkit-read-only\gbif-ipt\.set
tings\org.eclipse.jdt.core.prefs
[INFO] Wrote Eclipse project for "ipt" to C:\IOR_SVN\gbif-providertoolkit-read-o
nly\gbif-ipt.
So doing this method I get the my Java Folders recognized in the "Java Perspective" in eclipse, but when I go to the "Java EE" perspective then nothing is recognized there. So the source as well as the webapps folder does not get recognised.
In terms of versions, I use the SpringSource IDE version 2.3.1 and I use version 3 of maven (this version didn't come with maven prebundled so I downloaded the latest maven)
I have seen this happen when you run eclipse:eclipse command, some of the eclipse project facets properties on eclipse are changing, To verify this do this in eclipse
Select the project ==> properties ==> Project Facets ==> Dynamic Web Module (facets property)
I think that property check box is not checked (hence eclipse won't recognize your web project)