Problem when compiling hrsample

5 posts / 0 new
Last post
kelhamoumi
Offline
Joined: 01/30/2011
Problem when compiling hrsample

Hi,

I want to try Jspresso, so i started with tne example in refrence_guide.pdf (hrsample).

I did all steps befor compiling without probleme ( I downloaded python)

Please i need help because when i execute "mvn compile" i get a errors :

C:\Users\kelhamoumi\eclipse\workspace\hrsample>mvn compile
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Example Application
[INFO]   Example Application - Core
[INFO]   Example Application - Startup - Swing
[INFO]   Example Application - Startup - Wings
[INFO]   Example Application - Startup - Remote
[INFO]   Example Application - Startup - Flex - Config
[INFO]   Example Application - Startup - Flex - Client
[INFO]   Example Application - Startup - Flex
[INFO]   Example Application - Startup - Qooxdoo - Client
[INFO]   Example Application - Startup - Qooxdoo - Server
[INFO]   Example Application - Startup - Qooxdoo
[INFO]   Example Application - Startup
[INFO]   Example Application - Webapp
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Application
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Application - Core
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [groovy:execute {execution: generate-dsl-application}]
SJS - include(C:\Users\kelhamoumi\eclipse\workspace\hrsample\core/src/main/dsl/model.groovy)
SJS - include(C:\Users\kelhamoumi\eclipse\workspace\hrsample\core/src/main/dsl/view.groovy)
SJS - include(C:\Users\kelhamoumi\eclipse\workspace\hrsample\core/src/main/dsl/frontend.groovy)
SJS - include(C:\Users\kelhamoumi\eclipse\workspace\hrsample\core/src/main/dsl/backend.groovy)
[INFO] [antrun:run {execution: generate-entities}]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] [antrun:run {execution: groovy-path-fix}]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] [build-helper:add-source {execution: add-generated-sources}]
[INFO] Source directory: C:\Users\kelhamoumi\eclipse\workspace\hrsample\core\target\generated-sources\entitygenerator added.
[INFO] [2-xdoclet2:xdoclet {execution: xdoclet-hibernate}]
Running org.xdoclet.plugin.hibernate.HibernateMappingPlugin
[INFO] [antrun:run {execution: hibernate-descriptors-fix}]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] [jasperreports:compile-reports {execution: compile-jasper-reports}]
[INFO] Nothing to compile - all Jasper reports are up to date
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 10 resources
[INFO] Copying 0 resource
[INFO] Copying 4 resources

[INFO] Copying 0 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 2 source files to C:\Users\kelhamoumi\eclipse\workspace\hrsample\core\target\classes
[INFO] [groovy:generateStubs {execution: compile-groovy-classes}]
[INFO]  No sources found for Java stub generation
[INFO] [groovy:compile {execution: compile-groovy-classes}]
[INFO]  No sources found to compile
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Application - Startup - Swing
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Application - Startup - Wings
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Application - Startup - Remote
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Application - Startup - Flex - Config
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [assembly:single {execution: make shared resources}]
[INFO] Reading assembly descriptor: C:\Users\kelhamoumi\eclipse\workspace\hrsample\startup\flex\config/src/main/assembly/resources.xml
[INFO] Building zip: C:\Users\kelhamoumi\eclipse\workspace\hrsample\startup\flex\config\target\hrsample-startup-flex-config-1.0-SNAPSHOT-resources.zip
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Application - Startup - Flex - Client
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 4 resources
[INFO] [flexmojos:compile-swf {execution: default-compile-swf}]
[INFO] Flexmojos 3.6
[INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
[WARNING] Source file was not defined, flexmojos will guess one.
[INFO] Flex compiler configurations:

-compiler.accessible=false
-compiler.actionscript-file-encoding UTF-8
-compiler.allow-source-path-overlap=false
-compiler.as3=true
-compiler.context-root hrsample-webapp
-compiler.debug=false
-compiler.es=false
-compiler.external-library-path C:\Users\kelhamoumi\eclipse\workspace\hrsample\startup\flex\client\target\classes\libraries\playerglobal.swc
-compiler.fonts.local-fonts-snapshot C:\Users\kelhamoumi\eclipse\workspace\hrsample\startup\flex\client\target\classes\fonts.ser
-compiler.fonts.managers flash.fonts.JREFontManager flash.fonts.AFEFontManager flash.fonts.BatikFontManager
-compiler.headless-server=false
-compiler.include-libraries=
-compiler.keep-all-type-selectors=false
-compiler.keep-generated-actionscript=false
-compiler.library-path C:\Users\kelhamoumi\eclipse\workspace\hrsample\startup\fl
ex\client\target\classes\libraries\flex.swc C:\Users\kelhamoumi\eclipse\workspac
e\hrsample\startup\flex\client\target\classes\libraries\framework.swc C:\Users\k
elhamoumi\eclipse\workspace\hrsample\startup\flex\client\target\classes\librarie
s\rpc.swc C:\Users\kelhamoumi\eclipse\workspace\hrsample\startup\flex\client\tar
get\classes\libraries\utilities.swc C:\Users\kelhamoumi\eclipse\workspace\hrsamp
le\startup\flex\client\target\classes\libraries\jspresso-flex.swc C:\Users\kelha
moumi\eclipse\workspace\hrsample\startup\flex\client\target\classes\libraries\da
tetimelibrary.swc C:\Users\kelhamoumi\eclipse\workspace\hrsample\startup\flex\cl
ient\target\classes\libraries\flexlib.swc C:\Users\kelhamoumi\eclipse\workspace\
hrsample\startup\flex\client\target\classes\libraries\resizecontainers.swc C:\Us
ers\kelhamoumi\.m2\repository\com\adobe\flex\framework\framework\3.4.0.9271\fram
ework-3.4.0.9271-en_US.rb.swc C:\Users\kelhamoumi\.m2\repository\com\adobe\flex\
framework\framework\3.4.0.9271\framework-3.4.0.9271-fr_FR.rb.swc C:\Users\kelham
oumi\.m2\repository\com\adobe\flex\framework\rpc\3.4.0.9271\rpc-3.4.0.9271-en_US
.rb.swc C:\Users\kelhamoumi\.m2\repository\com\adobe\flex\framework\rpc\3.4.0.92
71\rpc-3.4.0.9271-fr_FR.rb.swc
-compiler.locale en_US fr_FR
-compiler.namespaces.namespace http://www.adobe.com/2006/mxml C:\Users\kelhamoum
i\eclipse\workspace\hrsample\startup\flex\client\target\classes\config-3.4.0.927
1\mxml-manifest.xml
-compiler.optimize=true
-compiler.services C:\Users\kelhamoumi\eclipse\workspace\hrsample\startup\flex\c
lient\target\generated-resources\services-config.xml
-compiler.source-path C:\Users\kelhamoumi\eclipse\workspace\hrsample\startup\fle
x\client\src\main\flex C:\Users\kelhamoumi\eclipse\workspace\hrsample\startup\fl
ex\client\src\main\locales\{locale}
-compiler.strict=true
-compiler.use-resource-bundle-metadata=true
-compiler.verbose-stacktraces=false
-default-background-color 8821927
-default-frame-rate 24
-default-script-limits 1000 60
-default-size 500 375
-metadata.date Sun Jan 30 10:00:20 WET 2011
-metadata.localized-description Example Application Description x-default
-metadata.localized-title Example Application - Startup - Flex - Client x-default
-target-player 9.0.0
-use-network=true

-verify-digests=true -static-link-runtime-shared-libraries=false -load-config=
-metadata.language+=en_US
-metadata.language+=fr_FR
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Application - Startup - Flex
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Application - Startup - Qooxdoo - Client
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Application - Startup - Qooxdoo - Server
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Application - Startup - Qooxdoo
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Application - Startup
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ------------------------------------------------------------------------
[INFO] Building Example Application - Webapp
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
Downloading: http://repository.jspresso.org/maven2-snapshots/org/jspresso/hrsample
/hrsample-startup-qooxdoo-client/1.0-SNAPSHOT/hrsample-startup-qooxdoo-client-1.0-SNAPSHOT-web-resources.zip
[INFO] Unable to find resource 'org.jspresso.hrsample:hrsample-startup-qooxdoo-client:zip:web-resources:1.0-SNAPSHOT' in repository jspresso-snapshots-repository
 (http://repository.jspresso.org/maven2-snapshots)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.jspresso.hrsample:hrsample-startup-qooxdoo-client:zip:web-resources:1.0-S
NAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.jspresso.hrsample -DartifactId=hrsample-startup-qooxdoo-client -Dversion=1.0-SNAPSHOT -Dclassifier=web-resources -D
packaging=zip -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:

      mvn deploy:deploy-file -DgroupId=org.jspresso.hrsample -DartifactId=hrsample-startup-qooxdoo-client -Dversion=1.0-SNAPSHOT -Dclassifier=web-resources
-Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.jspresso.hrsample:hrsample-webapp:war:1.0-SNAPSHOT
        2) org.jspresso.hrsample:hrsample-startup-qooxdoo-client:zip:web-resources:1.0-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
  org.jspresso.hrsample:hrsample-webapp:war:1.0-SNAPSHOT

from the specified remote repositories:
  jspresso-repository (http://repository.jspresso.org/maven2),
  central (http://repo1.maven.org/maven2),
  jboss-repository (http://repository.jboss.org/nexus/content/groups/public-jboss),
  jspresso-snapshots-repository (http://repository.jspresso.org/maven2-snapshots),
  beandoc-repository (http://spring-beandoc.sourceforge.net/repo),
  jasperreports-repository (http://jasperreports.sourceforge.net/maven2),
  sonatype-repository (http://repository.sonatype.org/content/groups/flexgroup),

  java.net-repository (http://download.java.net/maven/2)

 

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48 seconds
[INFO] Finished at: Sun Jan 30 10:00:32 WET 2011
[INFO] Final Memory: 112M/334M
[INFO] ------------------------------------------------------------------------

vvandens
Offline
Joined: 05/29/2008
Problem when compiling hrsample

Hi and welcome to Jspresso !

You should issue mvn package instead of mvn compile. This will ensure that modules artifacts are produced and registered in the Maven reactor and thus, can be re-used along the build process. In your example, the war module depends on the qooxdoo client module.

 

HTH,

Vincent

kelhamoumi
Offline
Joined: 01/30/2011
Problem when compiling hrsample

Bonjour Mr Vincent,

Tout d'abord merci pour votre réponse.

je préfère vous répondre  en  français, c'est plus simple pour moi.

J'ai déjà exécuté "mvn package" et j'obtiens  "BUILD SUCCESSFUL" à la fin.

malgré ça le "mvn compile" donne les erreurs mentionnées  dans mon premier message.

ci-joint les messages affichés lors de mvn package.

 

J'ai remarqué que  parmi ces messages il y'a ces lignes

[INFO] Building Example Application - Startup - Qooxdoo - Client

[INFO] ------------------------------------------------------------------------

[INFO] No goals needed for project - skipping

[INFO] ------------------------------------------------------------------------

[INFO] Building Example Application - Startup - Qooxdoo - Server

[INFO] ------------------------------------------------------------------------

[INFO] No goals needed for project - skipping

[INFO] ------------------------------------------------------------------------

[INFO] Building Example Application - Startup - Qooxdoo

[INFO] ------------------------------------------------------------------------

[INFO] No goals needed for project - skipping

 

AttachmentSize
mvn-package.txt 76.52 KB
vvandens
Offline
Joined: 05/29/2008
Problem when compiling hrsample

Bonsoir Monsieur Hamoumi,

Lorsque "mvn package" est exécuté, les artifacts produits pour chaque module sont uniquement conservés le temps du build. Si vous souhaitez les installer dans votre repository local Maven, il faut exécuter "mvn install". Dans ce cas, vous pourrez ensuite exécuter "mvn compile" puisque les différentes dépendances pourront désormais être résolues.

Cependant, notez bien que "mvn compile" ne sera utile que pour exécuter la version swing. La production d'un "war" requiert au minimum la phase "package".

 

Cordialement,

Vincent

kelhamoumi
Offline
Joined: 01/30/2011
Problem when compiling hrsample

Bonjour,

 

Merci beaucoup, ça marche maitenant.