IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Maven Java Discussion :

ng build avec frontend-maven-plugin


Sujet :

Maven Java

  1. #1
    Membre actif
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    728
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2006
    Messages : 728
    Points : 250
    Points
    250
    Par défaut ng build avec frontend-maven-plugin
    Bonjour,

    j'essaye de builder mon application angular avec maven/eclipse and avec the frontend-maven-plugin

    Voici mon pom.xml

    Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
     
    		    <plugin>
    		        <groupId>com.github.eirslett</groupId>
    		        <artifactId>frontend-maven-plugin</artifactId>
    		        <version>1.6</version>
    			    <configuration>
    			        <workingDirectory>src/main/angular5/tourism</workingDirectory>
    			        <!-- where to install npm -->
    			        <installDirectory>src/main/angular5/tourism</installDirectory>
    			    </configuration>		        
    		        <executions>
    				    <execution>
    				        <id>install node and npm</id>
    				        <goals>
    				            <goal>install-node-and-npm</goal>
    				        </goals>
    				        <phase>generate-resources</phase>
    						<configuration>
    					        <nodeVersion>v8.11.3</nodeVersion>
    					        <npmVersion>6.3.0</npmVersion>					    
    					    </configuration>				        
    				    </execution>
    		            <execution>
    		                    <id>npm install</id>
    		                    <goals>
    		                        <goal>npm</goal>
    		                    </goals>
    		                    <!-- Optional configuration which provides for running any npm command -->
    		                    <configuration>
    		                        <arguments>install</arguments>
    		                        <workingDirectory>src/main/angular5/tourism</workingDirectory>
    		                    </configuration>
    		             </execution>
    			         <execution>
    			             <id>prod</id>
    			             <goals>
    			               <goal>npm</goal>
    			             </goals>
    			             <configuration>
    			               <arguments>run-script build</arguments>
    			               <workingDirectory>src/main/angular5/tourism</workingDirectory>
    			             </configuration>
    			             <phase>generate-resources</phase>
    			          </execution>		             				    		        
    		        </executions>
    		    </plugin>

    Normallement quand maven execute ng build, cela devrait générer les fichiers compilés dans le répertoire dist. Cependant, comme vous pouvez le voir sur l'image suivante, je n'ai pas le résultat excompté dans le répertoire dist. Pouvez vous m'aider s'il vous plait ?

    Nom : Capture d’écran 2018-08-27 à 10.47.13.png
Affichages : 3397
Taille : 57,3 Ko

    Nom : Capture d’écran 2018-08-27 à 11.25.52.png
Affichages : 3326
Taille : 37,9 Ko

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
     
    [INFO] Running 'npm run-script build' in /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/src/main/angular5/tourism
    [DEBUG] Executing command line [/Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/src/main/angular5/tourism/node/node, /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/src/main/angular5/tourism/node/node_modules/npm/bin/npm-cli.js, run-script, build]
    [INFO] 
    [INFO] > tourism@0.0.0 build /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/src/main/angular5/tourism
    [INFO] > ng build
    [INFO] 
    [INFO] 
    [INFO] Date: 2018-08-27T07:17:09.657Z
    [INFO] Hash: 237de58c14f4f60a6461
    [INFO] Time: 10899ms
    [INFO] chunk {main} main.js, main.js.map (main) 9.45 kB [initial] [rendered]
    [INFO] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 227 kB [initial] [rendered]
    [INFO] chunk {runtime} runtime.js, runtime.js.map (runtime) 5.22 kB [entry] [rendered]
    [INFO] chunk {styles} styles.js, styles.js.map (styles) 15.7 kB [initial] [rendered]
    [INFO] chunk {vendor} vendor.js, vendor.js.map (vendor) 2.74 MB [initial] [rendered]
    [DEBUG] Exit value 0
    [INFO] 
    [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ tourism-web ---
    [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1, ConflictMarker.markTime=0, ConflictMarker.nodeCount=78, ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=26, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=3, ConflictResolver.conflictItemCount=75, DefaultDependencyCollector.collectTime=150, DefaultDependencyCollector.transformTime=4}
    [DEBUG] org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3:
    [DEBUG]    org.apache.maven:maven-plugin-api:jar:2.0.6:compile
    [DEBUG]    org.apache.maven:maven-project:jar:2.0.6:compile
    [DEBUG]       org.apache.maven:maven-profile:jar:2.0.6:compile
    [DEBUG]       org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
    [DEBUG]       org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
    [DEBUG]    org.apache.maven:maven-core:jar:2.0.6:compile
    [DEBUG]       org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6:compile
    [DEBUG]       org.apache.maven.reporting:maven-reporting-api:jar:2.0.6:compile
    [DEBUG]          org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:compile
    [DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
    [DEBUG]       org.apache.maven:maven-error-diagnostics:jar:2.0.6:compile
    [DEBUG]       commons-cli:commons-cli:jar:1.0:compile
    [DEBUG]       org.apache.maven:maven-plugin-descriptor:jar:2.0.6:compile
    [DEBUG]       org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
    [DEBUG]       classworlds:classworlds:jar:1.1:compile
    [DEBUG]    org.apache.maven:maven-artifact:jar:2.0.6:compile
    [DEBUG]    org.apache.maven:maven-settings:jar:2.0.6:compile
    [DEBUG]    org.apache.maven:maven-model:jar:2.0.6:compile
    [DEBUG]    org.apache.maven:maven-monitor:jar:2.0.6:compile
    [DEBUG]    org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
    [DEBUG]       junit:junit:jar:3.8.1:compile
    [DEBUG]    org.codehaus.plexus:plexus-utils:jar:2.0.5:compile
    [DEBUG]    org.apache.maven.shared:maven-filtering:jar:1.0-beta-4:compile
    [DEBUG]       org.sonatype.plexus:plexus-build-api:jar:0.0.4:compile
    [DEBUG]    org.codehaus.plexus:plexus-interpolation:jar:1.13:compile
    [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.4.3
    [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.4.3
    [DEBUG]   Imported:  < maven.api
    [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.4.3
    [DEBUG]   Included: org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3
    [DEBUG]   Included: org.apache.maven.reporting:maven-reporting-api:jar:2.0.6
    [DEBUG]   Included: org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7
    [DEBUG]   Included: commons-cli:commons-cli:jar:1.0
    [DEBUG]   Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4
    [DEBUG]   Included: junit:junit:jar:3.8.1
    [DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:2.0.5
    [DEBUG]   Included: org.apache.maven.shared:maven-filtering:jar:1.0-beta-4
    [DEBUG]   Included: org.sonatype.plexus:plexus-build-api:jar:0.0.4
    [DEBUG]   Included: org.codehaus.plexus:plexus-interpolation:jar:1.13
    [DEBUG] Configuring mojo org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-resources-plugin:2.4.3, parent: sun.misc.Launcher$AppClassLoader@55f96302]
    [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources' with basic configurator -->
    [DEBUG]   (f) buildFilters = []
    [DEBUG]   (f) encoding = UTF-8
    [DEBUG]   (f) escapeWindowsPaths = true
    [DEBUG]   (s) includeEmptyDirs = false
    [DEBUG]   (s) outputDirectory = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target/classes
    [DEBUG]   (s) overwrite = false
    [DEBUG]   (f) project = MavenProject: tourism-guide-web:tourism-web:1.0.0-SNAPSHOT @ /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/pom.xml
    [DEBUG]   (s) resources = [Resource {targetPath: null, filtering: false, FileSet {directory: /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/src/main/resources, PatternSet [includes: {}, excludes: {}]}}]
    [DEBUG]   (f) session = org.apache.maven.execution.MavenSession@439a8f59
    [DEBUG]   (f) useBuildFilters = true
    [DEBUG]   (s) useDefaultDelimiters = true
    [DEBUG] -- end configuration --
    [DEBUG] properties used {java.vendor=Oracle Corporation, sun.java.launcher=SUN_STANDARD, env.XPC_SERVICE_NAME=org.eclipse.platform.ide.1804, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, env.JAVA_STARTED_ON_FIRST_THREAD_791=1, os.name=Mac OS X, sun.boot.class.path=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/classes, env.TMPDIR=/var/folders/cj/18nnbwrn68v72gpfnc09tpl80000gn/T/, java.vm.specification.vendor=Oracle Corporation, java.runtime.version=1.8.0_77-b03, env.Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.gtmqhZw2K7/Render, project.build.sourceEncoding=UTF-8, env.DISPLAY=/private/tmp/com.apple.launchd.T8gATB7rP7/org.macosforge.xquartz:0, user.name=admin, maven.build.version=Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00), env.USER=admin, env.SHELL=/bin/bash, env.__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x1, env.PATH=/usr/bin:/bin:/usr/sbin:/sbin, user.language=fr, sun.boot.library.path=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib, classworlds.conf=/Users/admin/Application-Marwen/workspace/.metadata/.plugins/org.eclipse.m2e.launching/launches/m2conf2354967348069411789.tmp, env.XPC_FLAGS=0x0, java.version=1.8.0_77, user.timezone=Europe/Paris, sun.arch.data.model=64, http.nonProxyHosts=local|*.local|169.254/16|*.169.254/16, env.JAVA_MAIN_CLASS_886=org.codehaus.plexus.classworlds.launcher.Launcher, java.endorsed.dirs=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/endorsed, sun.cpu.isalist=, sun.jnu.encoding=UTF-8, file.encoding.pkg=sun.io, file.separator=/, java.specification.name=Java Platform API Specification, java.class.version=52.0, org.slf4j.simpleLogger.defaultLogLevel=debug, user.country=FR, java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre, java.vm.info=mixed mode, env.LOGNAME=admin, os.version=10.13.6, path.separator=:, java.vm.version=25.77-b03, java.awt.printerjob=sun.lwawt.macosx.CPrinterJob, version.war.plugin=2.1.1, sun.io.unicode.encoding=UnicodeBig, env.APP_ICON_791=../Resources/Eclipse.icns, awt.toolkit=sun.lwawt.macosx.LWCToolkit, socksNonProxyHosts=local|*.local|169.254/16|*.169.254/16, ftp.nonProxyHosts=local|*.local|169.254/16|*.169.254/16, user.home=/Users/admin, java.specification.vendor=Oracle Corporation, java.library.path=/Users/admin/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:., java.vendor.url=http://java.oracle.com/, node.directory=node, java.vm.vendor=Oracle Corporation, gopherProxySet=false, maven.home=/Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/EMBEDDED, java.runtime.name=Java(TM) SE Runtime Environment, sun.java.command=org.codehaus.plexus.classworlds.launcher.Launcher -B -X -e -e clean install, java.class.path=/Applications/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.m2e.maven.runtime_1.8.3.20180227-2135/jars/plexus-classworlds-2.5.2.jar, maven.version=3.3.9, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.8, sun.cpu.endian=little, sun.os.patch.level=unknown, env.HOME=/Users/admin, java.io.tmpdir=/var/folders/cj/18nnbwrn68v72gpfnc09tpl80000gn/T/, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, maven.multiModuleProjectDirectory=/Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web, env.SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.Cg1179KZLC/Listeners, os.arch=x86_64, java.awt.graphicsenv=sun.awt.CGraphicsEnvironment, java.ext.dirs=/Users/admin/Library/Java/Extensions:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/ext:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java, user.dir=/Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web, line.separator=
    , java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding=UTF-8, npm.executable=npm, java.specification.version=1.8}
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [DEBUG] resource with targetPath null
    directory /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/src/main/resources
    excludes []
    includes []
    [INFO] skip non existing resourceDirectory /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/src/main/resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ tourism-web ---
    [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=2, ConflictMarker.markTime=1, ConflictMarker.nodeCount=160, ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=43, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=3, ConflictResolver.conflictItemCount=63, DefaultDependencyCollector.collectTime=278, DefaultDependencyCollector.transformTime=6}
    [DEBUG] org.apache.maven.plugins:maven-compiler-plugin:jar:3.1:
    [DEBUG]    org.apache.maven:maven-plugin-api:jar:2.0.9:compile
    [DEBUG]    org.apache.maven:maven-artifact:jar:2.0.9:compile
    [DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.5.1:compile
    [DEBUG]    org.apache.maven:maven-core:jar:2.0.9:compile
    [DEBUG]       org.apache.maven:maven-settings:jar:2.0.9:compile
    [DEBUG]       org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9:compile
    [DEBUG]       org.apache.maven:maven-profile:jar:2.0.9:compile
    [DEBUG]       org.apache.maven:maven-model:jar:2.0.9:compile
    [DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0.9:compile
    [DEBUG]       org.apache.maven:maven-error-diagnostics:jar:2.0.9:compile
    [DEBUG]       org.apache.maven:maven-project:jar:2.0.9:compile
    [DEBUG]          org.apache.maven:maven-plugin-registry:jar:2.0.9:compile
    [DEBUG]       org.apache.maven:maven-plugin-descriptor:jar:2.0.9:compile
    [DEBUG]       org.apache.maven:maven-artifact-manager:jar:2.0.9:compile
    [DEBUG]       org.apache.maven:maven-monitor:jar:2.0.9:compile
    [DEBUG]    org.apache.maven:maven-toolchain:jar:1.0:compile
    [DEBUG]    org.apache.maven.shared:maven-shared-utils:jar:0.1:compile
    [DEBUG]       com.google.code.findbugs:jsr305:jar:2.0.1:compile
    [DEBUG]    org.apache.maven.shared:maven-shared-incremental:jar:1.1:compile
    [DEBUG]       org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile
    [DEBUG]    org.codehaus.plexus:plexus-compiler-api:jar:2.2:compile
    [DEBUG]    org.codehaus.plexus:plexus-compiler-manager:jar:2.2:compile
    [DEBUG]    org.codehaus.plexus:plexus-compiler-javac:jar:2.2:runtime
    [DEBUG]    org.codehaus.plexus:plexus-container-default:jar:1.5.5:compile
    [DEBUG]       org.codehaus.plexus:plexus-classworlds:jar:2.2.2:compile
    [DEBUG]       org.apache.xbean:xbean-reflect:jar:3.4:compile
    [DEBUG]          log4j:log4j:jar:1.2.12:compile
    [DEBUG]          commons-logging:commons-logging-api:jar:1.1:compile
    [DEBUG]       com.google.collections:google-collections:jar:1.0:compile
    [DEBUG]       junit:junit:jar:3.8.2:compile
    [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:3.1
    [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:3.1
    [DEBUG]   Imported:  < maven.api
    [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:3.1
    [DEBUG]   Included: org.apache.maven.plugins:maven-compiler-plugin:jar:3.1
    [DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:1.5.1
    [DEBUG]   Included: org.apache.maven.shared:maven-shared-utils:jar:0.1
    [DEBUG]   Included: com.google.code.findbugs:jsr305:jar:2.0.1
    [DEBUG]   Included: org.apache.maven.shared:maven-shared-incremental:jar:1.1
    [DEBUG]   Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
    [DEBUG]   Included: org.codehaus.plexus:plexus-compiler-api:jar:2.2
    [DEBUG]   Included: org.codehaus.plexus:plexus-compiler-manager:jar:2.2
    [DEBUG]   Included: org.codehaus.plexus:plexus-compiler-javac:jar:2.2
    [DEBUG]   Included: org.apache.xbean:xbean-reflect:jar:3.4
    [DEBUG]   Included: log4j:log4j:jar:1.2.12
    [DEBUG]   Included: commons-logging:commons-logging-api:jar:1.1
    [DEBUG]   Included: com.google.collections:google-collections:jar:1.0
    [DEBUG]   Included: junit:junit:jar:3.8.2
    [DEBUG] Configuring mojo org.apache.maven.plugins:maven-compiler-plugin:3.1:compile from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-compiler-plugin:3.1, parent: sun.misc.Launcher$AppClassLoader@55f96302]
    [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:3.1:compile' with basic configurator -->
    [DEBUG]   (f) basedir = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web
    [DEBUG]   (f) buildDirectory = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target
    [DEBUG]   (f) classpathElements = [/Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target/classes]
    [DEBUG]   (f) compileSourceRoots = [/Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/src/main/java]
    [DEBUG]   (f) compilerId = javac
    [DEBUG]   (f) debug = true
    [DEBUG]   (f) encoding = UTF-8
    [DEBUG]   (f) failOnError = true
    [DEBUG]   (f) forceJavacCompilerUse = false
    [DEBUG]   (f) fork = false
    [DEBUG]   (f) generatedSourcesDirectory = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target/generated-sources/annotations
    [DEBUG]   (f) mojoExecution = org.apache.maven.plugins:maven-compiler-plugin:3.1:compile {execution: default-compile}
    [DEBUG]   (f) optimize = false
    [DEBUG]   (f) outputDirectory = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target/classes
    [DEBUG]   (f) projectArtifact = tourism-guide-web:tourism-web:jar:1.0.0-SNAPSHOT
    [DEBUG]   (f) showDeprecation = false
    [DEBUG]   (f) showWarnings = false
    [DEBUG]   (f) skipMultiThreadWarning = false
    [DEBUG]   (f) source = 1.5
    [DEBUG]   (f) staleMillis = 0
    [DEBUG]   (f) target = 1.5
    [DEBUG]   (f) useIncrementalCompilation = true
    [DEBUG]   (f) verbose = false
    [DEBUG]   (f) mavenSession = org.apache.maven.execution.MavenSession@439a8f59
    [DEBUG]   (f) session = org.apache.maven.execution.MavenSession@439a8f59
    [DEBUG] -- end configuration --
    [DEBUG] Using compiler 'javac'.
    [INFO] No sources to compile
    [INFO] 
    [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ tourism-web ---
    [DEBUG] Configuring mojo org.apache.maven.plugins:maven-resources-plugin:2.4.3:testResources from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-resources-plugin:2.4.3, parent: sun.misc.Launcher$AppClassLoader@55f96302]
    [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.4.3:testResources' with basic configurator -->
    [DEBUG]   (f) buildFilters = []
    [DEBUG]   (f) encoding = UTF-8
    [DEBUG]   (f) escapeWindowsPaths = true
    [DEBUG]   (s) includeEmptyDirs = false
    [DEBUG]   (s) outputDirectory = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target/test-classes
    [DEBUG]   (s) overwrite = false
    [DEBUG]   (f) project = MavenProject: tourism-guide-web:tourism-web:1.0.0-SNAPSHOT @ /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/pom.xml
    [DEBUG]   (s) resources = [Resource {targetPath: null, filtering: false, FileSet {directory: /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/src/test/resources, PatternSet [includes: {}, excludes: {}]}}]
    [DEBUG]   (f) session = org.apache.maven.execution.MavenSession@439a8f59
    [DEBUG]   (f) useBuildFilters = true
    [DEBUG]   (s) useDefaultDelimiters = true
    [DEBUG] -- end configuration --
    [DEBUG] properties used {java.vendor=Oracle Corporation, sun.java.launcher=SUN_STANDARD, env.XPC_SERVICE_NAME=org.eclipse.platform.ide.1804, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, env.JAVA_STARTED_ON_FIRST_THREAD_791=1, os.name=Mac OS X, sun.boot.class.path=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/classes, env.TMPDIR=/var/folders/cj/18nnbwrn68v72gpfnc09tpl80000gn/T/, java.vm.specification.vendor=Oracle Corporation, java.runtime.version=1.8.0_77-b03, env.Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.gtmqhZw2K7/Render, project.build.sourceEncoding=UTF-8, env.DISPLAY=/private/tmp/com.apple.launchd.T8gATB7rP7/org.macosforge.xquartz:0, user.name=admin, maven.build.version=Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00), env.USER=admin, env.SHELL=/bin/bash, env.__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x1, env.PATH=/usr/bin:/bin:/usr/sbin:/sbin, user.language=fr, sun.boot.library.path=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib, classworlds.conf=/Users/admin/Application-Marwen/workspace/.metadata/.plugins/org.eclipse.m2e.launching/launches/m2conf2354967348069411789.tmp, env.XPC_FLAGS=0x0, java.version=1.8.0_77, user.timezone=Europe/Paris, sun.arch.data.model=64, http.nonProxyHosts=local|*.local|169.254/16|*.169.254/16, env.JAVA_MAIN_CLASS_886=org.codehaus.plexus.classworlds.launcher.Launcher, java.endorsed.dirs=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/endorsed, sun.cpu.isalist=, sun.jnu.encoding=UTF-8, file.encoding.pkg=sun.io, file.separator=/, java.specification.name=Java Platform API Specification, java.class.version=52.0, org.slf4j.simpleLogger.defaultLogLevel=debug, user.country=FR, java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre, java.vm.info=mixed mode, env.LOGNAME=admin, os.version=10.13.6, path.separator=:, java.vm.version=25.77-b03, java.awt.printerjob=sun.lwawt.macosx.CPrinterJob, version.war.plugin=2.1.1, sun.io.unicode.encoding=UnicodeBig, env.APP_ICON_791=../Resources/Eclipse.icns, awt.toolkit=sun.lwawt.macosx.LWCToolkit, socksNonProxyHosts=local|*.local|169.254/16|*.169.254/16, ftp.nonProxyHosts=local|*.local|169.254/16|*.169.254/16, user.home=/Users/admin, java.specification.vendor=Oracle Corporation, java.library.path=/Users/admin/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:., java.vendor.url=http://java.oracle.com/, node.directory=node, java.vm.vendor=Oracle Corporation, gopherProxySet=false, maven.home=/Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/EMBEDDED, java.runtime.name=Java(TM) SE Runtime Environment, sun.java.command=org.codehaus.plexus.classworlds.launcher.Launcher -B -X -e -e clean install, java.class.path=/Applications/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.m2e.maven.runtime_1.8.3.20180227-2135/jars/plexus-classworlds-2.5.2.jar, maven.version=3.3.9, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.8, sun.cpu.endian=little, sun.os.patch.level=unknown, env.HOME=/Users/admin, java.io.tmpdir=/var/folders/cj/18nnbwrn68v72gpfnc09tpl80000gn/T/, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, maven.multiModuleProjectDirectory=/Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web, env.SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.Cg1179KZLC/Listeners, os.arch=x86_64, java.awt.graphicsenv=sun.awt.CGraphicsEnvironment, java.ext.dirs=/Users/admin/Library/Java/Extensions:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/ext:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java, user.dir=/Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web, line.separator=
    , java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding=UTF-8, npm.executable=npm, java.specification.version=1.8}
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [DEBUG] resource with targetPath null
    directory /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/src/test/resources
    excludes []
    includes []
    [INFO] skip non existing resourceDirectory /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/src/test/resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ tourism-web ---
    [DEBUG] Configuring mojo org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-compiler-plugin:3.1, parent: sun.misc.Launcher$AppClassLoader@55f96302]
    [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile' with basic configurator -->
    [DEBUG]   (f) basedir = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web
    [DEBUG]   (f) buildDirectory = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target
    [DEBUG]   (f) classpathElements = [/Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target/test-classes, /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target/classes]
    [DEBUG]   (f) compileSourceRoots = [/Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/src/test/java]
    [DEBUG]   (f) compilerId = javac
    [DEBUG]   (f) debug = true
    [DEBUG]   (f) encoding = UTF-8
    [DEBUG]   (f) failOnError = true
    [DEBUG]   (f) forceJavacCompilerUse = false
    [DEBUG]   (f) fork = false
    [DEBUG]   (f) generatedTestSourcesDirectory = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target/generated-test-sources/test-annotations
    [DEBUG]   (f) mojoExecution = org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile {execution: default-testCompile}
    [DEBUG]   (f) optimize = false
    [DEBUG]   (f) outputDirectory = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target/test-classes
    [DEBUG]   (f) showDeprecation = false
    [DEBUG]   (f) showWarnings = false
    [DEBUG]   (f) skipMultiThreadWarning = false
    [DEBUG]   (f) source = 1.5
    [DEBUG]   (f) staleMillis = 0
    [DEBUG]   (f) target = 1.5
    [DEBUG]   (f) useIncrementalCompilation = true
    [DEBUG]   (f) verbose = false
    [DEBUG]   (f) mavenSession = org.apache.maven.execution.MavenSession@439a8f59
    [DEBUG]   (f) session = org.apache.maven.execution.MavenSession@439a8f59
    [DEBUG] -- end configuration --
    [DEBUG] Using compiler 'javac'.
    [INFO] No sources to compile
    [INFO] 
    [INFO] --- maven-surefire-plugin:2.20.1:test (default-test) @ tourism-web ---
    [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=0, ConflictMarker.markTime=0, ConflictMarker.nodeCount=111, ConflictIdSorter.graphTime=1, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=34, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=2, ConflictResolver.conflictItemCount=76, DefaultDependencyCollector.collectTime=75, DefaultDependencyCollector.transformTime=3}
    [DEBUG] org.apache.maven.plugins:maven-surefire-plugin:jar:2.20.1:
    [DEBUG]    org.apache.maven.surefire:maven-surefire-common:jar:2.20.1:compile
    [DEBUG]       org.apache.maven:maven-plugin-api:jar:2.2.1:compile
    [DEBUG]       org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.3:compile
    [DEBUG]       org.apache.maven.surefire:surefire-api:jar:2.20.1:compile
    [DEBUG]          org.apache.maven.surefire:surefire-logger-api:jar:2.20.1:compile
    [DEBUG]       org.apache.maven.surefire:surefire-booter:jar:2.20.1:compile
    [DEBUG]       org.apache.maven:maven-artifact:jar:2.2.1:compile
    [DEBUG]          org.codehaus.plexus:plexus-utils:jar:1.5.15:compile
    [DEBUG]       org.apache.maven:maven-plugin-descriptor:jar:2.2.1:compile
    [DEBUG]          org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
    [DEBUG]             junit:junit:jar:4.12:compile
    [DEBUG]                org.hamcrest:hamcrest-core:jar:1.3:compile
    [DEBUG]       org.apache.maven:maven-project:jar:2.2.1:compile
    [DEBUG]          org.apache.maven:maven-settings:jar:2.2.1:compile
    [DEBUG]          org.apache.maven:maven-profile:jar:2.2.1:compile
    [DEBUG]          org.apache.maven:maven-artifact-manager:jar:2.2.1:compile
    [DEBUG]             backport-util-concurrent:backport-util-concurrent:jar:3.1:compile
    [DEBUG]          org.apache.maven:maven-plugin-registry:jar:2.2.1:compile
    [DEBUG]          org.codehaus.plexus:plexus-interpolation:jar:1.11:compile
    [DEBUG]       org.apache.maven:maven-model:jar:2.2.1:compile
    [DEBUG]       org.apache.maven:maven-core:jar:2.2.1:compile
    [DEBUG]          org.apache.maven:maven-plugin-parameter-documenter:jar:2.2.1:compile
    [DEBUG]          org.slf4j:slf4j-jdk14:jar:1.5.6:runtime
    [DEBUG]             org.slf4j:slf4j-api:jar:1.5.6:runtime
    [DEBUG]          org.slf4j:jcl-over-slf4j:jar:1.5.6:runtime
    [DEBUG]          org.apache.maven.reporting:maven-reporting-api:jar:3.0:compile
    [DEBUG]          org.apache.maven:maven-repository-metadata:jar:2.2.1:compile
    [DEBUG]          org.apache.maven:maven-error-diagnostics:jar:2.2.1:compile
    [DEBUG]          org.apache.maven:maven-monitor:jar:2.2.1:compile
    [DEBUG]          classworlds:classworlds:jar:1.1:compile
    [DEBUG]          org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile
    [DEBUG]             org.sonatype.plexus:plexus-cipher:jar:1.4:compile
    [DEBUG]       org.apache.maven:maven-toolchain:jar:2.2.1:compile
    [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-surefire-plugin:2.20.1
    [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-surefire-plugin:2.20.1
    [DEBUG]   Imported:  < maven.api
    [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-surefire-plugin:2.20.1
    [DEBUG]   Included: org.apache.maven.plugins:maven-surefire-plugin:jar:2.20.1
    [DEBUG]   Included: org.apache.maven.surefire:maven-surefire-common:jar:2.20.1
    [DEBUG]   Included: org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.3
    [DEBUG]   Included: org.apache.maven.surefire:surefire-api:jar:2.20.1
    [DEBUG]   Included: org.apache.maven.surefire:surefire-logger-api:jar:2.20.1
    [DEBUG]   Included: org.apache.maven.surefire:surefire-booter:jar:2.20.1
    [DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:1.5.15
    [DEBUG]   Included: junit:junit:jar:4.12
    [DEBUG]   Included: org.hamcrest:hamcrest-core:jar:1.3
    [DEBUG]   Included: backport-util-concurrent:backport-util-concurrent:jar:3.1
    [DEBUG]   Included: org.codehaus.plexus:plexus-interpolation:jar:1.11
    [DEBUG]   Included: org.slf4j:slf4j-jdk14:jar:1.5.6
    [DEBUG]   Included: org.slf4j:jcl-over-slf4j:jar:1.5.6
    [DEBUG]   Included: org.apache.maven.reporting:maven-reporting-api:jar:3.0
    [DEBUG]   Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3
    [DEBUG]   Included: org.sonatype.plexus:plexus-cipher:jar:1.4
    [DEBUG] Configuring mojo org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-surefire-plugin:2.20.1, parent: sun.misc.Launcher$AppClassLoader@55f96302]
    [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test' with basic configurator -->
    [DEBUG]   (s) additionalClasspathElements = []
    [DEBUG]   (s) argLine = -XX:MaxPermSize=128m -Xmx256m
    [DEBUG]   (s) basedir = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web
    [DEBUG]   (s) childDelegation = false
    [DEBUG]   (s) classesDirectory = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target/classes
    [DEBUG]   (s) classpathDependencyExcludes = []
    [DEBUG]   (s) dependenciesToScan = []
    [DEBUG]   (s) disableXmlReport = false
    [DEBUG]   (s) enableAssertions = true
    [DEBUG]   (f) forkCount = 1
    [DEBUG]   (s) forkMode = once
    [DEBUG]   (s) forkedProcessExitTimeoutInSeconds = 30
    [DEBUG]   (s) junitArtifactName = junit:junit
    [DEBUG]   (s) localRepository =       id: local
          url: file:///Users/admin/.m2/repository/
       layout: default
    snapshots: [enabled => true, update => always]
     releases: [enabled => true, update => always]
     
    [DEBUG]   (f) parallelMavenExecution = false
    [DEBUG]   (s) parallelOptimized = true
    [DEBUG]   (s) perCoreThreadCount = true
    [DEBUG]   (s) pluginArtifactMap = {org.apache.maven.plugins:maven-surefire-plugin=org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.20.1:, org.apache.maven.surefire:maven-surefire-common=org.apache.maven.surefire:maven-surefire-common:jar:2.20.1:compile, org.apache.maven:maven-plugin-api=org.apache.maven:maven-plugin-api:jar:2.2.1:compile, org.apache.maven.plugin-tools:maven-plugin-annotations=org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.3:compile, org.apache.maven.surefire:surefire-api=org.apache.maven.surefire:surefire-api:jar:2.20.1:compile, org.apache.maven.surefire:surefire-logger-api=org.apache.maven.surefire:surefire-logger-api:jar:2.20.1:compile, org.apache.maven.surefire:surefire-booter=org.apache.maven.surefire:surefire-booter:jar:2.20.1:compile, org.apache.maven:maven-artifact=org.apache.maven:maven-artifact:jar:2.2.1:compile, org.codehaus.plexus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:1.5.15:compile, org.apache.maven:maven-plugin-descriptor=org.apache.maven:maven-plugin-descriptor:jar:2.2.1:compile, org.codehaus.plexus:plexus-container-default=org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile, junit:junit=junit:junit:jar:4.12:compile, org.hamcrest:hamcrest-core=org.hamcrest:hamcrest-core:jar:1.3:compile, org.apache.maven:maven-project=org.apache.maven:maven-project:jar:2.2.1:compile, org.apache.maven:maven-settings=org.apache.maven:maven-settings:jar:2.2.1:compile, org.apache.maven:maven-profile=org.apache.maven:maven-profile:jar:2.2.1:compile, org.apache.maven:maven-artifact-manager=org.apache.maven:maven-artifact-manager:jar:2.2.1:compile, backport-util-concurrent:backport-util-concurrent=backport-util-concurrent:backport-util-concurrent:jar:3.1:compile, org.apache.maven:maven-plugin-registry=org.apache.maven:maven-plugin-registry:jar:2.2.1:compile, org.codehaus.plexus:plexus-interpolation=org.codehaus.plexus:plexus-interpolation:jar:1.11:compile, org.apache.maven:maven-model=org.apache.maven:maven-model:jar:2.2.1:compile, org.apache.maven:maven-core=org.apache.maven:maven-core:jar:2.2.1:compile, org.apache.maven:maven-plugin-parameter-documenter=org.apache.maven:maven-plugin-parameter-documenter:jar:2.2.1:compile, org.slf4j:slf4j-jdk14=org.slf4j:slf4j-jdk14:jar:1.5.6:runtime, org.slf4j:slf4j-api=org.slf4j:slf4j-api:jar:1.5.6:runtime, org.slf4j:jcl-over-slf4j=org.slf4j:jcl-over-slf4j:jar:1.5.6:runtime, org.apache.maven.reporting:maven-reporting-api=org.apache.maven.reporting:maven-reporting-api:jar:3.0:compile, org.apache.maven:maven-repository-metadata=org.apache.maven:maven-repository-metadata:jar:2.2.1:compile, org.apache.maven:maven-error-diagnostics=org.apache.maven:maven-error-diagnostics:jar:2.2.1:compile, org.apache.maven:maven-monitor=org.apache.maven:maven-monitor:jar:2.2.1:compile, classworlds:classworlds=classworlds:classworlds:jar:1.1:compile, org.sonatype.plexus:plexus-sec-dispatcher=org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile, org.sonatype.plexus:plexus-cipher=org.sonatype.plexus:plexus-cipher:jar:1.4:compile, org.apache.maven:maven-toolchain=org.apache.maven:maven-toolchain:jar:2.2.1:compile}
    [DEBUG]   (f) pluginDescriptor = Component Descriptor: role: 'org.apache.maven.plugin.Mojo', implementation: 'org.apache.maven.plugin.surefire.HelpMojo', role hint: 'org.apache.maven.plugins:maven-surefire-plugin:2.20.1:help'
    role: 'org.apache.maven.plugin.Mojo', implementation: 'org.apache.maven.plugin.surefire.SurefirePlugin', role hint: 'org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test'
    ---
    [DEBUG]   (s) printSummary = true
    [DEBUG]   (s) projectArtifactMap = {}
    [DEBUG]   (s) projectBuildDirectory = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target
    [DEBUG]   (s) redirectTestOutputToFile = false
    [DEBUG]   (s) remoteRepositories = [      id: central
          url: https://repo.maven.apache.org/maven2
       layout: default
    snapshots: [enabled => false, update => daily]
     releases: [enabled => true, update => never]
    ]
    [DEBUG]   (s) reportFormat = brief
    [DEBUG]   (s) reportsDirectory = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target/surefire-reports
    [DEBUG]   (f) rerunFailingTestsCount = 0
    [DEBUG]   (f) reuseForks = true
    [DEBUG]   (s) runOrder = alphabetical
    [DEBUG]   (f) shutdown = testset
    [DEBUG]   (s) skip = false
    [DEBUG]   (f) skipAfterFailureCount = 0
    [DEBUG]   (s) skipTests = false
    [DEBUG]   (s) suiteXmlFiles = []
    [DEBUG]   (s) tempDir = surefire
    [DEBUG]   (s) testClassesDirectory = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target/test-classes
    [DEBUG]   (s) testFailureIgnore = false
    [DEBUG]   (s) testNGArtifactName = org.testng:testng
    [DEBUG]   (s) testSourceDirectory = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/src/test/java
    [DEBUG]   (s) threadCountClasses = 0
    [DEBUG]   (s) threadCountMethods = 0
    [DEBUG]   (s) threadCountSuites = 0
    [DEBUG]   (s) trimStackTrace = true
    [DEBUG]   (s) useFile = true
    [DEBUG]   (s) useManifestOnlyJar = true
    [DEBUG]   (s) useSystemClassLoader = true
    [DEBUG]   (s) useUnlimitedThreads = false
    [DEBUG]   (s) workingDirectory = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web
    [DEBUG]   (s) project = MavenProject: tourism-guide-web:tourism-web:1.0.0-SNAPSHOT @ /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/pom.xml
    [DEBUG]   (s) session = org.apache.maven.execution.MavenSession@439a8f59
    [DEBUG] -- end configuration --
    [INFO] No tests to run.
    [INFO] 
    [INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ tourism-web ---
    [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1, ConflictMarker.markTime=0, ConflictMarker.nodeCount=47, ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=19, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=1, ConflictResolver.conflictItemCount=43, DefaultDependencyCollector.collectTime=34, DefaultDependencyCollector.transformTime=2}
    [DEBUG] org.apache.maven.plugins:maven-jar-plugin:jar:2.3.2:
    [DEBUG]    org.apache.maven:maven-plugin-api:jar:2.0.6:compile
    [DEBUG]    org.apache.maven:maven-project:jar:2.0.6:compile
    [DEBUG]       org.apache.maven:maven-settings:jar:2.0.6:compile
    [DEBUG]       org.apache.maven:maven-profile:jar:2.0.6:compile
    [DEBUG]       org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
    [DEBUG]          org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
    [DEBUG]       org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
    [DEBUG]       org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
    [DEBUG]          junit:junit:jar:3.8.1:compile
    [DEBUG]          classworlds:classworlds:jar:1.1-alpha-2:compile
    [DEBUG]    org.apache.maven:maven-model:jar:2.0.6:runtime
    [DEBUG]    org.apache.maven:maven-artifact:jar:2.0.6:compile
    [DEBUG]    org.apache.maven:maven-archiver:jar:2.4.2:compile
    [DEBUG]       org.codehaus.plexus:plexus-interpolation:jar:1.13:compile
    [DEBUG]    org.codehaus.plexus:plexus-archiver:jar:2.0.1:compile
    [DEBUG]       org.codehaus.plexus:plexus-io:jar:2.0.1:compile
    [DEBUG]    commons-lang:commons-lang:jar:2.1:compile
    [DEBUG]    org.codehaus.plexus:plexus-utils:jar:3.0:compile
    [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-jar-plugin:2.3.2
    [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-jar-plugin:2.3.2
    [DEBUG]   Imported:  < maven.api
    [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-jar-plugin:2.3.2
    [DEBUG]   Included: org.apache.maven.plugins:maven-jar-plugin:jar:2.3.2
    [DEBUG]   Included: junit:junit:jar:3.8.1
    [DEBUG]   Included: org.apache.maven:maven-archiver:jar:2.4.2
    [DEBUG]   Included: org.codehaus.plexus:plexus-interpolation:jar:1.13
    [DEBUG]   Included: org.codehaus.plexus:plexus-archiver:jar:2.0.1
    [DEBUG]   Included: org.codehaus.plexus:plexus-io:jar:2.0.1
    [DEBUG]   Included: commons-lang:commons-lang:jar:2.1
    [DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:3.0
    [DEBUG] Configuring mojo org.apache.maven.plugins:maven-jar-plugin:2.3.2:jar from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-jar-plugin:2.3.2, parent: sun.misc.Launcher$AppClassLoader@55f96302]
    [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-jar-plugin:2.3.2:jar' with basic configurator -->
    [DEBUG]   (s) addMavenDescriptor = false
    [DEBUG]   (f) archive = org.apache.maven.archiver.MavenArchiveConfiguration@7fab4be7
    [DEBUG]   (f) classesDirectory = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target/classes
    [DEBUG]   (f) defaultManifestFile = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target/classes/META-INF/MANIFEST.MF
    [DEBUG]   (f) finalName = tourism-web-1.0.0-SNAPSHOT
    [DEBUG]   (f) forceCreation = false
    [DEBUG]   (f) outputDirectory = /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target
    [DEBUG]   (f) project = MavenProject: tourism-guide-web:tourism-web:1.0.0-SNAPSHOT @ /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/pom.xml
    [DEBUG]   (f) useDefaultManifestFile = true
    [DEBUG] -- end configuration --
    [WARNING] JAR will be empty - no content was marked for inclusion!
    [DEBUG] isUp2date: false (Destination /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target/tourism-web-1.0.0-SNAPSHOT.jar not found.)
    [DEBUG] 
     
     
    Checking for jar manifest virtual files...
     
     
     
    [INFO] Building jar: /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/target/tourism-web-1.0.0-SNAPSHOT.jar
    [DEBUG] adding directory META-INF/
    [DEBUG] adding entry META-INF/MANIFEST.MF

  2. #2
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 481
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 481
    Points : 48 806
    Points
    48 806
    Par défaut
    Je ne connais pas des masses ce plugin, mais à vue de pifomètre avec l'output affiché, tu m'as tout l'air de builder directement dans le dossier sources plutot que dans target

    Le fait de voir un /src/main/angular5/tourism/node/node_modules/npm/bin/npm-cli.js est déjà un bon indice que ça sent mauvais.

    C'est surment du au
    <installDirectory>src/main/angular5/tourism</installDirectory>

    qui fait que ça finira jamais dans un dist/

    d'ailleurs pourquoi ne pas garder les valeurs par défaut du plugin qui utilise target/ comm tout bon maven doit faire?

  3. #3
    Expert confirmé Avatar de yildiz-online
    Homme Profil pro
    Architecte de domaine
    Inscrit en
    Octobre 2011
    Messages
    1 444
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Architecte de domaine

    Informations forums :
    Inscription : Octobre 2011
    Messages : 1 444
    Points : 4 563
    Points
    4 563
    Par défaut
    installDirectory est le dossier ou sera installé node, c'est donc un dossier temporaire qui ne doit pas se retrouver dans le package final.
    le dossier où se trouve les sources js c'est workingDirectory, ce chemin devra pointer vers le dossier où se trouve le package json.

    Par défaut angular CLI va construire dans workingDirectory/dist, ce qui n'est pas pratique vu que ce sont des sources, tu peux donc redéfinir ce chemin dans angular-cli.json:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    "apps": [
        {
          "root": "src",
          "outDir": "../../../target/classes/static",
    par exemple
    PXL le retro-gaming facile: Essayez-le

    Yildiz-Engine an open-source modular game engine: Website
    Yildiz-Online a 3D MMORTS in alpha: Facebook page / Youtube page

  4. #4
    Membre actif
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    728
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2006
    Messages : 728
    Points : 250
    Points
    250
    Par défaut
    Bonjour yildiz-online et tchize_ et merci pour vos réponses

    sur les conseils de tchize_ j'ai modifié l'installDirectory. Maintenant l'extrait de mon fichier pom.xml est le suivant :

    Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    		    <plugin>
    		        <groupId>com.github.eirslett</groupId>
    		        <artifactId>frontend-maven-plugin</artifactId>
    		        <version>1.6</version>
    			    <configuration>
    			        <workingDirectory>src/main/angular5/tourism</workingDirectory>
    			        <!-- where to install npm -->
    			        <installDirectory>temp</installDirectory>
    			    </configuration>		        
    		        <executions>
    				    <execution>
    				        <id>install node and npm</id>
    				        <goals>
    				            <goal>install-node-and-npm</goal>
    				        </goals>
    				        <phase>generate-resources</phase>
    						<configuration>
    					        <nodeVersion>v8.11.3</nodeVersion>
    					        <npmVersion>6.3.0</npmVersion>					    
    					    </configuration>				        
    				    </execution>
    		            <execution>
    		                    <id>npm install</id>
    		                    <goals>
    		                        <goal>npm</goal>
    		                    </goals>
    		                    <!-- Optional configuration which provides for running any npm command -->
    		                    <configuration>
    		                        <arguments>install</arguments>
    		                    </configuration>
    		             </execution>
    			         <execution>
    			             <id>prod</id>
    			             <goals>
    			               <goal>npm</goal>
    			             </goals>
    			             <configuration>
    			               <arguments>run-script build</arguments>
    			             </configuration>
    			             <phase>generate-resources</phase>
    			          </execution>		             				    		        
    		        </executions>
    		    </plugin>

    Mais au final, je n'obtiens pas ce que je veux dans le répertoire dist des fichiers compilés

    Pièce jointe 407345
    je ne voie pas par exemple tous les fichiers compilés du répertoire app

    J'ai trouvé sur internet un exemple de fichier dist généré par la compilation
    Nom : Capture d’écran 2018-08-28 à 18.30.39.png
Affichages : 3297
Taille : 38,3 Ko

    D'autre part l'objectif final est de produire un zip qui contiendrait toutes les ressources et les sources du projet angular que j'incluerai dans un fichier war (qui est généré par un projet sous module maven qui contient les web services).
    Déjà, je ne voie pas où et comment mettre les dépendance (ou librairies) angular dans le répertoire dist (ces dépendances sont, je suppose tout ce qui est répertorié sous la propriété dependencies du fichier package.json
    Voici un extrait du fichiers package.json
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    {
      "name": "tourism",
      "version": "0.0.0",
      "scripts": {
        "ng": "ng",
        "start": "ng serve",
        "build": "ng build",
        "test": "ng test",
        "lint": "ng lint",
        "e2e": "ng e2e"
      },
      "private": true,
      "dependencies": {
        "@angular/animations": "^6.0.3",
        "@angular/common": "^6.0.3",
        "@angular/compiler": "^6.0.3",
        "@angular/core": "^6.0.3",
        "@angular/forms": "^6.0.3",
        "@angular/http": "^6.0.3",
        "@angular/platform-browser": "^6.0.3",
        "@angular/platform-browser-dynamic": "^6.0.3",
        "@angular/router": "^6.0.3",
        "core-js": "^2.5.4",
        "rxjs": "^6.0.0",
        "zone.js": "^0.8.26"
      },
      "devDependencies": {
        "@angular/compiler-cli": "^6.0.3",
        "@angular-devkit/build-angular": "~0.6.8",
        "typescript": "~2.7.2",
        "@angular/cli": "~6.0.8",
        "@angular/language-service": "^6.0.3",
        "@types/jasmine": "~2.8.6",
        "@types/jasminewd2": "~2.0.3",
        "@types/node": "~8.9.4",
        "codelyzer": "~4.2.1",
        "jasmine-core": "~2.99.1",
    D'autre part, vu ce que j'obtiens dans mon répertoire dist et en comparant avec ce que j'ai trouvé sur internet, je me demande si les fichiers suivants sont nécessaires:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    -main.js.map
    -polyfills.js
    -polyfills.js.map
    -runtime.js
    -runtime.js.map
    -style.js
    styles.js.map

    Si cela peut aider voici un extrait du contenu de mon fichier angular.json
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    {
      "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
      "version": 1,
      "newProjectRoot": "projects",
      "projects": {
        "tourism": {
          "root": "",
          "sourceRoot": "src",
          "projectType": "application",
          "prefix": "app",
          "schematics": {},
          "architect": {
            "build": {
              "builder": "@angular-devkit/build-angular:browser",
              "options": {
                "outputPath": "dist",
                "index": "src/index.html",
                "main": "src/main.ts",
                "polyfills": "src/polyfills.ts",
                "tsConfig": "src/tsconfig.app.json",
                "assets": [
                  "src/favicon.ico",
                  "src/assets"
                ],
                "styles": [
                  "src/styles.css"
                ],
                "scripts": []
              },
              "configurations": {
                "production": {
                  "fileReplacements": [
                    {
                      "replace": "src/environments/environment.ts",
                      "with": "src/environments/environment.prod.ts"
                    }
                  ],
                  "optimization": true,
                  "outputHashing": "all",
                  "sourceMap": false,
                  "extractCss": true,
                  "namedChunks": false,
                  "aot": true,
                  "extractLicenses": true,
                  "vendorChunk": false,
                  "buildOptimizer": true
                }
              }
            },
            "serve": {
              "builder": "@angular-devkit/build-angular:dev-server",
              "options": {
                "browserTarget": "tourism:build"
              },
              "configurations": {
                "production": {
                  "browserTarget": "tourism:build:production"
                }
              }
    et voici mon fichier tsconfig.app.json
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    {
      "extends": "../tsconfig.json",
      "compilerOptions": {
        "outDir": "../out-tsc/app",
        "module": "es2015",
        "types": []
      },
      "exclude": [
        "src/test.ts",
        "**/*.spec.ts"
      ]
    }

  5. #5
    Membre actif
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    728
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2006
    Messages : 728
    Points : 250
    Points
    250
    Par défaut
    J'ai oublié de donner le contenu du fichier tsconfig.json

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
     
    {
      "compileOnSave": false,
      "compilerOptions": {
        "baseUrl": "./src",
        "outDir": "./dist",
        "sourceMap": true,
        "declaration": false,
        "moduleResolution": "node",
        "emitDecoratorMetadata": true,
        "experimentalDecorators": true,
        "target": "es5",
        "typeRoots": [
          "node_modules/@types"
        ],
        "lib": [
          "es2017",
          "dom"
        ]
      }
    }
    et les logs de maven

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
     
    [INFO] > tourism@0.0.0 build /Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/src/main/angular5/tourism
    [INFO] > ng build
    [INFO] 
    [INFO] 
    [INFO] Date: 2018-09-03T12:53:22.792Z
    [INFO] Hash: 4e040e480b1db9055f1d
    [INFO] Time: 12939ms
    [INFO] chunk {main} main.js, main.js.map (main) 8.32 kB [initial] [rendered]
    [INFO] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 226 kB [initial] [rendered]
    [INFO] chunk {runtime} runtime.js, runtime.js.map (runtime) 5.22 kB [entry] [rendered]
    [INFO] chunk {styles} styles.js, styles.js.map (styles) 15.7 kB [initial] [rendered]
    [INFO] chunk {vendor} vendor.js, vendor.js.map (vendor) 2.74 MB [initial] [rendered]
    [DEBUG] Exit value 0
    J'ai essayé d'executer en ligne de commande et j'obtiens le même résultat

    Pour l'instant j'obtiens ceci dans mon répertoire dist

    Nom : Capture d’écran 2018-09-03 à 20.53.24.png
Affichages : 3274
Taille : 34,8 Ko

  6. #6
    Membre actif
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    728
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2006
    Messages : 728
    Points : 250
    Points
    250
    Par défaut
    finalement je me suis apperçu que tous les fichiers compilés du répertoire app sont inclus dans les fichiers que j'obtiens à la compilation. Du coup le post est résolu

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 2
    Dernier message: 14/08/2018, 13h06
  2. Réponses: 6
    Dernier message: 05/02/2013, 18h51
  3. Problème de build avec Maven 2
    Par proganas dans le forum Maven
    Réponses: 2
    Dernier message: 14/09/2009, 13h26
  4. deploiement avec le plugin tomcat-maven-plugin
    Par allstar dans le forum Maven
    Réponses: 1
    Dernier message: 21/05/2008, 08h58
  5. MAVEN plugins....error MOJO
    Par lipczynski dans le forum Maven
    Réponses: 2
    Dernier message: 31/03/2006, 15h47

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo