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

Docker : "build-only-webapp" option fail (root cause: jdeb 1.6) #166

Closed
dzc34 opened this issue Jun 27, 2018 · 2 comments
Closed

Docker : "build-only-webapp" option fail (root cause: jdeb 1.6) #166

dzc34 opened this issue Jun 27, 2018 · 2 comments
Labels

Comments

@dzc34
Copy link
Member

dzc34 commented Jun 27, 2018

Observed behaviour

[INFO] Attaching created debian package /home/fabrice/Bureau/Asqatasun/git.contrast-finder.build/webapp/ta
rget/contrast-finder-webapp_0.9.2-SNAPSHOT_tomcat8.deb
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ webapp ---
[WARNING] Error injecting: org.apache.maven.artifact.installer.DefaultArtifactInstaller
com.google.inject.ProvisionException: Unable to provision, see the following errors:

1) Error injecting: private org.eclipse.aether.spi.log.Logger org.apache.maven.repository.internal.Default
VersionRangeResolver.logger
  while locating org.apache.maven.repository.internal.DefaultVersionRangeResolver
  while locating java.lang.Object annotated with *
  at org.eclipse.sisu.wire.LocatorWiring
  while locating org.eclipse.aether.impl.VersionRangeResolver
    for parameter 2 at org.eclipse.aether.internal.impl.DefaultDependencyCollector.<init>(DefaultDependencyCollector.java:92)

Steps to reproduce the behaviour

mvn clean install
cd webapp/
mvn clean install

or

./docker/build_and_run-with-docker.sh                     --source-dir $(pwd) --docker-dir docker/SNAPSHOT-local 
./docker/build_and_run-with-docker.sh --build-only-webapp --source-dir $(pwd) --docker-dir docker/SNAPSHOT-local 
@dzc34 dzc34 added the bug label Jun 27, 2018
@dzc34
Copy link
Member Author

dzc34 commented Jun 29, 2018

bug present after 8.3 release
caused by : 83f724e "Fixed #118 - Upgraded outdated dependency: jdeb (1.6 instead of 1.5)"

@dzc34 dzc34 changed the title Docker : "build-only-webapp" option fail Docker : "build-only-webapp" option fail (root cause: jdeb 1.6) Jul 1, 2018
@dzc34 dzc34 closed this as completed in c7a92fd Jul 1, 2018
dzc34 added a commit that referenced this issue Jul 1, 2018
@dzc34
Copy link
Member Author

dzc34 commented Jul 1, 2018

c7a92fd 2 fixes the bug,
but causes an error for the mvn site command

mvn site

(...)
[INFO] Contrast-Finder .................................... SUCCESS [ 13.364 s]
[INFO] contrast-finder-documentation ...................... SUCCESS [  2.663 s]
[INFO] contrast-finder-engine ............................. SUCCESS [  3.203 s]
[INFO] utils .............................................. SUCCESS [  6.402 s]
[INFO] api ................................................ SUCCESS [  6.504 s]
[INFO] impl ............................................... SUCCESS [  6.339 s]
[INFO] hsv ................................................ SUCCESS [  7.606 s]
[INFO] contrast-finder-webapp ............................. SUCCESS [ 18.264 s]
[INFO] contrast-finder-dist_debian-packages ............... FAILURE [  0.129 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:04 min
[INFO] Finished at: 2018-07-01T21:42:36+02:00
[INFO] Final Memory: 84M/1527M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) 
on project contrast-finder-dist_debian-packages: Execution default-site of goal org.apache.maven.plugins:maven-site-plugin:3.3:site failed: 
A required class was missing while executing org.apache.maven.plugins:maven-site-plugin:3.3:site: org/apache/maven/doxia/siterenderer/DocumentContent

see: Maven skip site/reporting for module / stackoverflow

add to dist./debian_package/pom.xml:

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>

@dzc34 dzc34 reopened this Jul 1, 2018
@dzc34 dzc34 closed this as completed Jul 1, 2018
dzc34 added a commit to dzc34/Contrast-Finder that referenced this issue Sep 2, 2018
----------------------

  set version to 0.9.2
  Updating screenshots
  removed unused css file (van11y accessible modal)
  removed unused js file (van11y accessible modal)
  fixed some  Codacy issues (js, java)
  typo
  fixed Asqatasun#178 / fixed Asqatasun#179
  transform debian package documentation into markdown file
  typo
  fixed Asqatasun#172
  Asqatasun#172 - All maven plugins have their version specified (except maven-assembly-plugin)
  Revert "fixed Asqatasun#172 - All maven plugins have their version specified (except maven-assembly-plugin)"
  Upgraded dependencies
  fixed Asqatasun#172 - All maven plugins have their version specified (except maven-assembly-plugin)
  Doc > Contributor > QA tools - Added "Image Analysis Tool"
  Upgraded dependencies - Fixed Asqatasun#167 / Fixed Asqatasun#168 / Fixe d Asqatasun#169 / Fixed Asqatasun#170
  Asqatasun#166 - Disabled maven-site-plugin for debian_package
  clean Asqatasun#166
  Fixed Asqatasun#166 - Use an independent subproject for jdeb (debian packages creation)
  Webapp - Added humans.txt file
  Fixed Asqatasun#165 - Added some information to the MANIFEST.MF files : commit, buid timestamp
  Fixed Asqatasun#162 / Fixed Asqatasun#163 / Fixed Asqatasun#164
  set version to 0.9.2-SNAPSHOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant