epublib Epub Library build issue - eclipse

I am trying to work with the epublib code base. I think I have my maven file set up correctly. The dependencies do get downloaded and are in my .m2 folder. However, I can not get maven build to complete without errors.
I have used
mvn install,
mvn clean install,
mvn package,
if I take out the epublib dependencies everything works.So what did I miss when I set up my pom file? Or what other way can I use the epublib libraries.
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>epub</groupId>
<artifactId>epubfix</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>EPub file Correction</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-
8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>nl.siegmann.epublib</groupId>
<artifactId>epublib-core</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>nl.siegmann.epublib</groupId>
<artifactId>epublib-tools</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>nl.siegmann.epublib</groupId>
<artifactId>epublib-parent</artifactId>
<version>3.1</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
I expect to see something like
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------------------------------------------------
[INFO] Building EPub file Correction 0.0.1-SNAPSHOT
[INFO] -------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources)
# epubfix ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) #
epubfix ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-
testResources) # epubfix ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/Users/dyk/Eclipse/workspace/epub/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-
testCompile) # epubfix ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) #
epubfix ---
[INFO] Surefire report directory:
/Users/dyk/Eclipse/workspace/epub/target/surefire-reports
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # epubfix ---
[INFO] Building jar:
/Users/dyk/Eclipse/workspace/epub/target/epubfix-0.0.1-SNAPSHOT.jar
[INFO] META-INF/maven/epub/epubfix/pom.xml already added, skipping
[INFO] META-INF/maven/epub/epubfix/pom.properties already added,
skipping
[INFO] -------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] -------------------------------------------------------------
[INFO] Total time: 1.269 s
[INFO] Finished at: 2019-04-12T10:57:11-06:00
[INFO] Final Memory: 12M/309M
[INFO] -------------------------------------------------------------
However, I am getting this error.
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------------------------------------------------
[INFO] Building EPub file Correction 0.0.1-SNAPSHOT
[INFO] -------------------------------------------------------------
[INFO] Downloading:
https://repo.maven.apache.org/maven2/nl/siegmann/epublib/epublib-
core/3.1/epublib-core-3.1.pom
[WARNING] The POM for nl.siegmann.epublib:epublib-core:jar:3.1 is
missing, no
dependency information available
[INFO] Downloading:
https://repo.maven.apache.org/maven2/nl/siegmann/epublib/epublib-
tools/3.1/epublib-tools-3.1.pom
[WARNING] The POM for nl.siegmann.epublib:epublib-tools:jar:3.1 is
missing, no
dependency information available
[INFO] Downloading:
https://repo.maven.apache.org/maven2/nl/siegmann/epublib/epublib-
parent/3.1/epublib-parent-3.1.pom
[WARNING] The POM for nl.siegmann.epublib:epublib-parent:pom:3.1 is
missing, no
dependency information available
[INFO] Downloading:
https://repo.maven.apache.org/maven2/nl/siegmann/epublib/epublib-
core/3.1/epublib-core-3.1.jar
[INFO] Downloading:
https://repo.maven.apache.org/maven2/nl/siegmann/epublib/epublib-
tools/3.1/epublib-tools-3.1.jar
[INFO] -------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] -------------------------------------------------------------
[INFO] Total time: 1.293 s
[INFO] Finished at: 2019-04-12T10:11:37-06:00
[INFO] Final Memory: 13M/309M
[INFO] -------------------------------------------------------------
[ERROR] Failed to execute goal on project epubfix: Could not resolve
dependencies for project epub:epubfix:jar:0.0.1-SNAPSHOT: The
following
artifacts could not be resolved: nl.siegmann.epublib:epublib-
core:jar:3.1,
nl.siegmann.epublib:epublib-tools:jar:3.1,
nl.siegmann.epublib:epublib-
parent:pom:3.1: Could not find artifact nl.siegmann.epublib:epublib-
core:jar:3.1 in central (https://repo.maven.apache.org/maven2) ->
[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/DependencyResolutionException

The dependency
<dependency>
<groupId>nl.siegmann.epublib</groupId>
<artifactId>epublib-core</artifactId>
<version>3.1</version>
</dependency>
is not in MavenCentral. You need to configure the correct repository (or, if this is a spelling error, correct it).

Related

Setting up geoserver-manager in new ecplise project

Been hitting this with the blunt end of my face for the better part of a week--I have reached critical frustration levels.
I've made a new maven project within eclipse and have the following pom.xml:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<repositories>
<repository>
<id>GeoSolutions</id>
<url>http://maven.geo-solutions.it/</url>
</repository>
</repositories>
<!-- The Basics -->
<groupId>ARU</groupId>
<artifactId>ARU</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>it.geosolutions</groupId>
<artifactId>geoserver-manager</artifactId>
<version>1.5.2</version>
</dependency>
</dependencies>
<!-- Project Information -->
<name>Automatic Raster Update</name>
<description>Application that automates the update of your raster imagery</description>
<!-- Build Settings -->
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.4</source>
<target>1.4</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
when I run the pom.xml as a maven build i get the following output:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Automatic Raster Update 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # ARU ---
[INFO] Deleting C:\BABS_WMS\v_1.1\js_Dev\ARU\ARU-master\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # ARU ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\BABS_WMS\v_1.1\js_Dev\ARU\ARU-master\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) # ARU ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 1 source file to C:\BABS_WMS\v_1.1\js_Dev\ARU\ARU-master\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.499 s
[INFO] Finished at: 2016-01-19T13:36:30-05:00
[INFO] Final Memory: 9M/219M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project ARU: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [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
The Maven dependencies seems to load, but I get the following with inspecting the build path libs.
Where do I go and what do I do?
UPDATE
This is the error I get when I try and run my test code

setup maven for jdk10

[INFO] Scanning for projects...
[INFO] ---------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] test.master
[INFO] test.generator
[INFO] test.model
[INFO] test.dal
[INFO] test.service
[INFO] test.web
[INFO]
[INFO] ---------------------------------------------
[INFO] Building test.master 0.0.1-SNAPSHOT
[INFO] ---------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # test.master ---
[INFO]
[INFO] --- maven-jdeps-plugin:3.1.1:jdkinternals (default) # test.master ---
[INFO]
[INFO] --- maven-jdeps-plugin:3.1.1:test-jdkinternals (default) # test.master ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # test.master ---
[INFO] Installing C:\Users\cora_kwok\git\backend2\pom.xml to C:\Users\cora_kwok\.m2\repository\com\kinetix\test.master\0.0.1-SNAPSHOT\test.master-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] ----------------------------------------------------------
[INFO] Building test.generator 1.0.0
[INFO] -------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # test.generator ---
[INFO] Deleting C:\Users\cora_kwok\git\backend2\test.generator\target
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) # test.generator ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\cora_kwok\git\backend2\test.generator\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # test.generator ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to C:\Users\cora_kwok\git\backend2\test.generator\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Source option 5 is no longer supported. Use 6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] -----------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] test.master ............................. SUCCESS [ 0.703 s]
[INFO] test.generator ............................ FAILURE [ 0.790 s]
[INFO] test.model ......................................... SKIPPED
[INFO] test.dal ........................................... SKIPPED
[INFO] test.service ....................................... SKIPPED
[INFO] test.web ........................................... SKIPPED
[INFO] ---------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ----------------------------------------------
[INFO] Total time: 1.715 s
[INFO] Finished at: 2018-05-09T14:14:05+08:00
[INFO] Final Memory: 11M/40M
[INFO] ---------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project test.generator: Compilation failure: Compilation failure:
[ERROR] Source option 5 is no longer supported. Use 6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
[ERROR] -> [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 <goals> -rf :test.generator
Below is my pom.xml for the module test.generator . I would like to use jdeps to check the 3rd party dependency of jdk10, and prepare for the jdk10 upgrade, however, when I try to run and results the above errors.
I did remove my m2.repository folder, but the same error still exists.
I have installed the jdk10 and jre10. However, it seems it failed to recognize jdk10 during the maven build.
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.kinetix</groupId>
<artifactId>test.master</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>com.kinetix.test</groupId>
<artifactId>test.generator</artifactId>
<version>1.0.0</version>
<name>test.generator</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java-version>10.0.1</java-version>
</properties>
<dependencies>
<dependency>
<groupId>org.jasypt</groupId>
<artifactId>jasypt</artifactId>
<version>1.9.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
I have no idea why it failed to recognize jdk10 for version 10.0.1 is smaller than that of version 1.7.
You have to define the maven-compiler plugin via pluginManagement like this:
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
</plugin>
</plugins>
</pluginManagement>
..
</build>
Furthermore you should define the property like this:
<properties>
<maven.compiler.source>10</maven.compiler.source>
<maven.compiler.target>10</maven.compiler.target>
<maven.compiler.release>10</maven.compiler.release>
</properties>
You have multi module build where you have a parent where you should define the above. Furthermore I recommend strongly to define all plugins you are using like maven-resources-plugin etc. like the maven-compiler-plugin above...and with most recent versions and not with such ancient versions...

Project has dependencies in maven that are not resolved locally (Spring-security dependencies)

I try to use Spring, but it seems some problem in my pom.xml, where it is unable to resolve spring dependencies.
In pom.xml I have the following repository:
<repositories>
<repository>
<id>repository.springframework.maven.release</id>
<name>Spring Framework Maven Release Repository</name>
<url>http://maven.springframework.org/release</url>
</repository>
</repositories>
<!-- Spring Core framework -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>4.3.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>4.3.2.RELEASE</version>
</dependency>
<!-- Spring security framework -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>4.1.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
<version>4.1.2.RELEASE</version>
</dependency>
I Got always : Could not resolve dependencies for project, The following artifacts could not be resolved:
org.springframework.security:spring-security-web:jar:4.1.2.RELEASE
aopalliance:aopalliance:jar:1.0
org.springframework.security:spring-security-core:jar:4.1.2.RELEASE
org.springframework:spring-expression:jar:4.3.1.RELEASE
org.springframework.security:spring-security-config:jar:4.1.2.RELEASE
Even If I use another repository in pom.xml or even delete the repository to use the default one from maven, it the same, nothing changed.
Full error message from Maven:
Failed to execute goal on project Aegyptologie: Could not resolve dependencies for project de.unileipzig.wirote:Aegyptologie:war:0.1-SNAPSHOT: The following artifacts could not be resolved: org.springframework:spring-core:jar:4.3.2.RELEASE, org.springframework:spring-web:jar:4.3.2.RELEASE, org.springframework:spring-aop:jar:4.3.2.RELEASE, org.springframework:spring-beans:jar:4.3.2.RELEASE, org.springframework:spring-context:jar:4.3.2.RELEASE, org.springframework.security:spring-security-web:jar:4.1.2.RELEASE, aopalliance:aopalliance:jar:1.0, org.springframework.security:spring-security-core:jar:4.1.2.RELEASE, org.springframework:spring-expression:jar:4.3.1.RELEASE, org.springframework.security:spring-security-config:jar:4.1.2.RELEASE: Could not transfer artifact org.springframework:spring-core:jar:4.3.2.RELEASE from/to repository.springframework.maven.release (http://maven.springframework.org/release): Connection reset -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
How can I fix it?
I can build the project without any error. Please see the logs as an evidence: It looks to me that you're running behind the proxy. If yes, you need to fixed the conf/settings.xml file of apache-maven-3.x.x
$ mvn clean install -DskipTests
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Aegyptologie 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://mvnrepository.com/artifact/org.springframework/org/springframework/security/spring-security-web/4.1.2.RELEASE/spring-security-web-4.1.2.RELEASE.pom
Downloading: https://repo.maven.apache.org/maven2/org/springframework/security/spring-security-web/4.1.2.RELEASE/spring-security-web-4.1.2.RELEASE.pom
Downloaded: https://repo.maven.apache.org/maven2/org/springframework/security/spring-security-web/4.1.2.RELEASE/spring-security-web-4.1.2.RELEASE.pom (0 B at 0.0 KB/sec)
Downloading: https://mvnrepository.com/artifact/org.springframework/org/springframework/security/spring-security-core/4.1.2.RELEASE/spring-security-core-4.1.2.RELEASE.pom
Downloading: https://repo.maven.apache.org/maven2/org/springframework/security/spring-security-core/4.1.2.RELEASE/spring-security-core-4.1.2.RELEASE.pom
Downloaded: https://repo.maven.apache.org/maven2/org/springframework/security/spring-security-core/4.1.2.RELEASE/spring-security-core-4.1.2.RELEASE.pom (0 B at 0.0 KB/sec)
Downloading: https://mvnrepository.com/artifact/org.springframework/org/springframework/security/spring-security-web/4.1.2.RELEASE/spring-security-web-4.1.2.RELEASE.jar
Downloading: https://mvnrepository.com/artifact/org.springframework/org/springframework/security/spring-security-core/4.1.2.RELEASE/spring-security-core-4.1.2.RELEASE.jar
Downloading: https://repo.maven.apache.org/maven2/org/springframework/security/spring-security-web/4.1.2.RELEASE/spring-security-web-4.1.2.RELEASE.jar
Downloading: https://repo.maven.apache.org/maven2/org/springframework/security/spring-security-core/4.1.2.RELEASE/spring-security-core-4.1.2.RELEASE.jar
Downloaded: https://repo.maven.apache.org/maven2/org/springframework/security/spring-security-web/4.1.2.RELEASE/spring-security-web-4.1.2.RELEASE.jar (0 B at 0.0 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/springframework/security/spring-security-core/4.1.2.RELEASE/spring-security-core-4.1.2.RELEASE.jar (0 B at 0.0 KB/sec)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # Aegyptologie ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # Aegyptologie ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 29 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # Aegyptologie ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 42 source files to e:\Advance Java\POI\Aegyptologie\target\classes
[WARNING] /e:/Advance Java/POI/Aegyptologie/src/main/java/de/unileipzig/wirote/control/Encoding.java: e:\Advance Java\POI\Aegyptologie\src\main\java\de\unileipzig\wirote\control\Encoding.java uses unchecked or uns
[WARNING] /e:/Advance Java/POI/Aegyptologie/src/main/java/de/unileipzig/wirote/control/Encoding.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # Aegyptologie ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory e:\Advance Java\POI\Aegyptologie\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # Aegyptologie ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # Aegyptologie ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:2.2:war (default-war) # Aegyptologie ---
[INFO] Packaging webapp
[INFO] Assembling webapp [Aegyptologie] in [e:\Advance Java\POI\Aegyptologie\target\awv-seite]
[INFO] Processing war project
[INFO] Copying webapp resources [e:\Advance Java\POI\Aegyptologie\src\main\webapp]
[INFO] Webapp assembled in [6184 msecs]
[INFO] Building war: e:\Advance Java\POI\Aegyptologie\target\awv-seite.war
[INFO] WEB-INF\web.xml already added, skipping
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # Aegyptologie ---
[INFO] Installing e:\Advance Java\POI\Aegyptologie\target\awv-seite.war to C:\Users\prateek\.m2\repository\de\unileipzig\wirote\Aegyptologie\0.1-SNAPSHOT\Aegyptologie-0.1-SNAPSHOT.war
[INFO] Installing e:\Advance Java\POI\Aegyptologie\pom.xml to C:\Users\prateek\.m2\repository\de\unileipzig\wirote\Aegyptologie\0.1-SNAPSHOT\Aegyptologie-0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42.299 s
[INFO] Finished at: 2016-08-19T01:49:13+05:30
[INFO] Final Memory: 29M/320M
[INFO] ------------------------------------------------------------------------

Maven surefire plugin Nothing to compile - all classes are up to date

When I ran clean test or
clean test -DsuiteFile=src/main/resources/testng/SmokeTestSuite.xml in eclipse
following is the output.No test running but Build is success.
I have been struggling for this for quite a few weeks.Would be great if someone can explain me what was the issue and a proper solution.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building eselenium-ellis-tests 0.0.1
[INFO] ------------------------------------------------------------------------
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Downloading: https://devops-tools.pearson.com/nexus-master/content/repositories/releases/com/pearson/eselenium-pageobjects-ellis/1.0.1-SNAPSHOT/maven-metadata.xml
Downloading: https://devops-tools.pearson.com/nexus-deps/content/groups/all-deps/com/pearson/eselenium-pageobjects-ellis/1.0.1-SNAPSHOT/maven-metadata.xml
Downloaded: https://devops-tools.pearson.com/nexus-deps/content/groups/all-deps/com/pearson/eselenium-pageobjects-ellis/1.0.1-SNAPSHOT/maven-metadata.xml (788 B at 0.2 KB/sec)
Downloading: https://devops-tools.pearson.com/nexus-deps/content/groups/all-deps/com/pearson/eselenium-pageobjects-ellis/1.0.1-SNAPSHOT/maven-metadata.xml
Downloading: https://devops-tools.pearson.com/nexus-master/content/repositories/releases/com/pearson/eselenium-pageobjects-ellis/1.0.1-SNAPSHOT/maven-metadata.xml
Downloaded: https://devops-tools.pearson.com/nexus-deps/content/groups/all-deps/com/pearson/eselenium-pageobjects-ellis/1.0.1-SNAPSHOT/maven-metadata.xml (788 B at 0.2 KB/sec)
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # eselenium-ellis-tests ---
[INFO] Deleting C:\ATDD\workspace\galaxy-tests\target
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) # eselenium-ellis-tests ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 8 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # eselenium-ellis-tests ---
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 19 source files to C:\ATDD\workspace\galaxy-tests\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) # eselenium-ellis-tests ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) # eselenium-ellis-tests ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # eselenium-ellis-tests ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.003s
[INFO] Finished at: Sun Oct 19 09:48:48 IST 2014
[INFO] Final Memory: 20M/153M
[INFO] ------------------------------------------------------------------------
AND My POM file looks like below.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.pearson</groupId>
<artifactId>eselenium-ellis-tests</artifactId>
<version>0.0.1</version>
<properties>
<suiteXmlFile>${suiteFile}</suiteXmlFile>
</properties>
<dependencies>
<dependency>
<groupId>com.pearson</groupId>
<artifactId>eselenium.framework</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>com.pearson</groupId>
<artifactId>eselenium-pageobjects-ellis</artifactId>
<version>1.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.5.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12.4</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
<suiteXmlFiles>
<suiteXmlFile>${suiteFile}</suiteXmlFile>
<!--<suiteXmlFile>src/main/resources/testng/SmokeTestSuite.xml</suiteXmlFile> -->
</suiteXmlFiles>
<reportsDirectory>test-output</reportsDirectory>
<reportsDirectory>test-output\archive\${timestamp}</reportsDirectory>
<systemProperties>
<property>
<name>browser.NAME</name>
<value>${browser.NAME}</value>
</property>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
Your issue is actually not being able to provide pom.xml value from command prompt. Its a duplicate of
Passing command line arguments from Maven as properties in pom.xml
you will find solution there. You need to double quote your parameter.

Maven release does not work with a grouping pom

I want to release a project with the following structre (simplified):
parent
--module A (packaging type: pom)
--module B (type jar)
--module C (type jar, uses A and B as dependency)
I want to release my project with the help of Jenkins. A build works fine.
But for the release it seems that there will not be a version of the pom-typed project in the reactor. The build failed because no version of the pom-type project can be found in my maven repository. With the dependency of type jar everything works well.
Can anybody help me?
here you can see the console out out and my test pom-files:
[INFO] [release:prepare {execution: default-cli}]
[INFO] Verifying that there are no local modifications...
[INFO] Executing: /bin/sh -c cd /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace && git status
[INFO] Working directory: /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace
[INFO] Checking dependencies and plugins for snapshots ...
[INFO] Transforming 'Unnamed - com.basfits.test:parentTest:pom:0.0.2-SNAPSHOT'...
[INFO] Transforming 'Unnamed - com.basfits.test:childTestSimplePom:pom:0.0.2-SNAPSHOT'...
[INFO] Transforming 'Unnamed - com.basfits.test:testjarDep:jar:0.0.2-SNAPSHOT'...
[INFO] Transforming 'Unnamed - com.basfits.test:testPomDep:jar:0.0.2-SNAPSHOT'...
[INFO] Updating testjarDep to 0.0.2
[INFO] Updating childTestSimplePom to 0.0.2
[INFO] Not generating release POMs
[INFO] Executing goals 'clean verify'...
[INFO] [INFO] Scanning for projects...
[INFO] [INFO] Reactor build order:
[INFO] [INFO] Unnamed - com.basfits.test:parentTest:pom:0.0.2
[INFO] [INFO] Unnamed - com.basfits.test:childTestSimplePom:pom:0.0.2
[INFO] [INFO] Unnamed - com.basfits.test:testjarDep:jar:0.0.2
[INFO] [INFO] Unnamed - com.basfits.test:testPomDep:jar:0.0.2
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Building Unnamed - com.basfits.test:parentTest:pom:0.0.2
[INFO] [INFO] task-segment: [clean, verify]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] [clean:clean {execution: default-clean}]
[INFO] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Building Unnamed - com.basfits.test:childTestSimplePom:pom:0.0.2
[INFO] [INFO] task-segment: [clean, verify]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] [clean:clean {execution: default-clean}]
[INFO] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Building Unnamed - com.basfits.test:testjarDep:jar:0.0.2
[INFO] [INFO] task-segment: [clean, verify]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] [clean:clean {execution: default-clean}]
[INFO] [INFO] [resources:resources {execution: default-resources}]
[INFO] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] [INFO] skip non existing resourceDirectory /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace/testjarDep/src/main/resources
[INFO] [INFO] [compiler:compile {execution: default-compile}]
[INFO] [INFO] Compiling 1 source file to /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace/testjarDep/target/classes
[INFO] [INFO] [resources:testResources {execution: default-testResources}]
[INFO] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] [INFO] skip non existing resourceDirectory /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace/testjarDep/src/test/resources
[INFO] [INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] [INFO] No sources to compile
[INFO] [INFO] [surefire:test {execution: default-test}]
[INFO] [INFO] No tests to run.
[INFO] [INFO] [jar:jar {execution: default-jar}]
[INFO] [INFO] Building jar: /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace/testjarDep/target/testjarDep-0.0.2.jar
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Building Unnamed - com.basfits.test:testPomDep:jar:0.0.2
[INFO] [INFO] task-segment: [clean, verify]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] [clean:clean {execution: default-clean}]
[INFO] [INFO] Deleting directory /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace/testPomDep/target
[INFO] [INFO] [resources:resources {execution: default-resources}]
[INFO] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] [INFO] skip non existing resourceDirectory /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace/testPomDep/src/main/resources
[INFO] Downloading: http://maven.bcs.de/content/repositories/bis-releases/com/basfits/test/childTestSimplePom/0.0.2/childTestSimplePom-0.0.2.pom
[INFO] [INFO] Unable to find resource 'com.basfits.test:childTestSimplePom:pom:0.0.2' in repository bis-releases (http://maven.bcs.de/content/repositories/bis-releases)
[INFO] Downloading: http://maven.bcs.de/content/groups/public/com/basfits/test/childTestSimplePom/0.0.2/childTestSimplePom-0.0.2.pom
[INFO] [INFO] Unable to find resource 'com.basfits.test:childTestSimplePom:pom:0.0.2' in repository central (http://repo1.maven.org/maven2)
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Failed to resolve artifact.
[INFO]
[INFO] Missing:
[INFO] ----------
[INFO] 1) com.basfits.test:childTestSimplePom:pom:0.0.2
[INFO] Path to dependency:
[INFO] 1) com.basfits.test:testPomDep:jar:0.0.2
[INFO] 2) com.basfits.test:childTestSimplePom:pom:0.0.2
[INFO]
[INFO] ----------
[INFO] 1 required artifact is missing.
[INFO]
[INFO] for artifact:
[INFO] com.basfits.test:testPomDep:jar:0.0.2
[INFO]
[INFO] from the specified remote repositories:
[INFO] nexus-central (http://maven.bcs.de/content/groups/public),
[INFO] bis-releases (http://maven.bcs.de/content/repositories/bis-releases),
[INFO] bis-snapshots (http://maven.bcs.de/content/repositories/bis-snapshots)
[INFO]
[INFO]
[INFO]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] For more information, run Maven with the -e switch
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 3 seconds
[INFO] [INFO] Finished at: Fri Jun 08 13:43:48 CEST 2012
[INFO] [INFO] Final Memory: 21M/271M
[INFO] [INFO] ------------------------------------------------------------------------
[JENKINS] Archiving /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace/pom.xml to /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/modules/com.basfits.test$parentTest/builds/2012-06-08_13-43-09/archive/com.basfits.test/parentTest/0.0.2-SNAPSHOT/parentTest-0.0.2-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.basfits.test</groupId>
<artifactId>parentTest</artifactId>
<version>0.0.2-SNAPSHOT</version>
<packaging>pom</packaging>
<build />
<scm>
<connection>...</connection>
<url>...</url>
</scm>
<distributionManagement>
<repository>
<id>bis-releases</id>
<name>BIS Releases</name>
<url>...</url>
</repository>
<snapshotRepository>
<id>bis-snapshots</id>
<name>BIS Snapshots</name>
<url>...</url>
</snapshotRepository>
</distributionManagement>
<modules>
<module>childTestSimplePom</module>
<module>testPomDep</module>
<module>testjarDep</module>
</modules>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>parentTest</artifactId>
<groupId>com.basfits.test</groupId>
<version>0.0.2-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<artifactId>childTestSimplePom</artifactId>
<packaging>pom</packaging>
<build />
<dependencies>
<dependency>
<groupId>com.mysema.querydsl</groupId>
<artifactId>querydsl-apt</artifactId>
<version>2.3.0</version>
</dependency>
</dependencies>
</project>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>parentTest</artifactId>
<groupId>com.basfits.test</groupId>
<version>0.0.2-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<artifactId>testPomDep</artifactId>
<build />
<dependencies>
<dependency>
<artifactId>testjarDep</artifactId>
<version>0.0.2-SNAPSHOT</version>
<groupId>com.basfits.test</groupId>
</dependency>
<dependency>
<artifactId>childTestSimplePom</artifactId>
<version>0.0.2-SNAPSHOT</version>
<groupId>com.basfits.test</groupId>
<type>pom</type>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
You can set the preparation goals to clean install (default is clean verify). Add this in your grouping pom:
<build>
<plugins>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<preparationGoals>clean install</preparationGoals>
</configuration>
</plugin>
<plugins>
<build>
This will install the released pom.xml into your local repository so your submodules can find it.

Resources