How do I suppress some Maven logs but keep other output? - java

I'm running Maven in a CI environment and want to see some of its log output - but I don't want to see routine messages about downloading artifacts etc.
I can use -q but that suppresses everything useful too.
Maven uses slf4j and by default uses the slf4j-simple backend so there's no logging.properties etc, and anyway how would I even find out which class generates the log messages?
e.g. if I have
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] XXX JDBC Driver - JDBC 4.2 [bundle]
[INFO] XXX JDBC Driver aggregate [pom]
[INFO]
[INFO] -----------------< XXX:XXX >------------------
[INFO] Building XXX JDBC Driver - JDBC 4.2 XXXX [1/2]
[INFO] -------------------------------[ bundle ]-------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # XXXX-jdbc ---
[INFO] Deleting XXXX/target
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java) # XXX-jdbc ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) # XXXX-jdbc ---
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) # XXXX-jdbc ---
[WARNING] Ignoring missing properties file: XXX/build.local.properties
[INFO]
[INFO] --- jcp:6.0.1:preprocess (preprocessSources) # XXX-jdbc ---
[INFO] Added MAVEN property mvn.project.name=XXX JDBC Driver - JDBC 4.2
[INFO] Added MAVEN property mvn.project.version=XX.YY.ZZ
.... blah blah blah ...
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running XXX.TestSuite
Tests run: 58, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 6.43 sec
and for this task I just want the test output, how do I do that?

Maven uses slf4j-simple. Its configuration is loaded from the classpath in a file simplelogger.properties. You can modify the classpath to put your own copy of this file first, but you can also override these properties by setting system properties.
First re-run your build with -D-Dorg.slf4j.simpleLogger.showLogName=true so you can see which classes the logs are coming from. Then adjust log levels as desired by setting additional properties named -Dorg.slf4.simpleLogger.log.[[classname]]=[[level]].
You may require the -B (batch) flag too.
I find it convenient to set these in a .mvn/maven.config file in my project, but you can use MAVEN_OPTS or the command line instead. An example .mvn/maven.config might be:
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
-Dorg.slf4j.simpleLogger.log.com.igormaznitsa.jcp.maven.PreprocessorMojo=warn
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.event.ExecutionEventLogger=warn
-Dorg.slf4j.simpleLogger.log.org.apache.maven.shared.filtering.DefaultMavenResourcesFiltering=warn
-Dorg.slf4j.simpleLogger.log.org.apache.maven.plugin.clean.CleanMojo=warn
-Dorg.slf4j.simpleLogger.showLogName=true
Note that putting these options in a simplelogging.properties of the project being compiled will not work, it must be in the classpath of the maven runtime.
Also beware that .mvn/maven.config doesn't appear to support comments. I tried #, ;, //, /* .. */.

Related

Problem when running insert-sample <login> <pwd>

I'm exploring DocdokuPLM.
To Install docdoku I have used the docker configuration file which can be found here.
Using it have configured and installed Docdokuplm in my localhost.
Now not sure why sample project is not getting imported.
To import and check sample project I have used the following command.
sudo ./platform-ctl insert-sample MY_LOGIN_USER_ID MY_PASSWORD
While running the command to import sample project i'm getting the following error:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.571 s
[INFO] Finished at: 2019-01-31T07:29:36+00:00 [INFO] Final Memory: 34M/301M
[INFO] ------------------------------------------------------------------------
[INFO] - No workspace name supplied, generating one...
[INFO] - Using wks-a72fca63 as workspace name
[INFO] - Starting load process...
[INFO] - Checking server availability...
[INFO] - Creating your account...
[INFO] - Creating account [sommesh29]
[INFO] - Cannot create account, trying to use given credentials for next operations
[INFO] - Creating workspace...
[INFO] - Adding user sommesh29 to workspace wks-a72fca63
[SEVERE] - Ooops, something went wrong while loading sample data : Not Found Not Foundcom.docdoku.api.client.ApiException: Not Found
at com.docdoku.api.client.ApiClient.handleResponse(ApiClient.java:838)
at com.docdoku.api.client.ApiClient.execute(ApiClient.java:773)
at com.docdoku.api.client.ApiClient.execute(ApiClient.java:757)
at com.docdoku.api.services.WorkspacesApi.addUserWithHttpInfo(WorkspacesApi.java:833)
at com.docdoku.api.services.WorkspacesApi.addUser(WorkspacesApi.java:819)
at com.docdoku.loaders.SampleLoader.addUserToWorkspace(SampleLoader.java:304)
at com.docdoku.loaders.SampleLoader.load(SampleLoader.java:88)
at com.docdoku.loaders.Main.main(Main.java:73)
what am i doing wrong ?
Is this a issue from my side or is this issue occurring from Docker file?

jul-to-log4j-bridge "mvn package" ends with "package org.apache.log4j.plugins does not exist" COMPILATION ERROR

Good Day,
I try to build "jul-to-log4j-bridge" jar file using Apache Maven 3.6.0 (Java version: 1.8.0_181, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_181\jre)
The aim is to redirect JUL to log4j 1.2.17.
I'm brand new in the java dev world, and have no real background, but :
I installed svn OK
I gathered sources from http://svn.apache.org/repos/asf/logging/sandbox/jul-to-log4j-bridge/ usign svn
(svn export http://svn.apache.org/repos/asf/logging/sandbox/jul-to-log4j-bridge/)
I installed JDK 1.8.0_181 OK
I installed maven 3.6.0 OK
I modified versions of build.plugins.plugin, because they where missing :
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. # line 102, column 15
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:cobertura-maven-plugin is missing. # line 109, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-checkstyle-plugin is missing. # line 92, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. # line 152, column 15
usign this kind of command : mvn help:describe -DartifactId=cobertura-maven-plugin -DgroupId=org.codehaus.mojo
=> I modified pom.xml
But I stumble on the concepts of import / packages / plugins etc ... of maven as the error message I got from "mvn package" is :
[INFO] -------------< org.apache.logging:apache-jul-log4j-bridge >-------------
[INFO] Building java.util.logging to log4j Bridge 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # apache-jul-log4j-bridge ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # apache-jul-log4j-bridge ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 8 source files to C:\Users\llv\Documents\#D\Part\maven\svn\jul-to-log4j-bridge\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/llv/Documents/#D/Part/maven/svn/jul-to-log4j-bridge/src/main/java/org/apache/log4j/jul/JULReceiver.java:[19,32] package org.apache.log4j.plugins does not exist
Can someone please help to pass trough this ?
this is about JULReceiver.java..
Any help really appreciated.
thank you
Searching , googling, I founded :
https://logging.apache.org/log4j/extras/
https://logging.apache.org/log4j/extras/apidocs/org/apache/log4j/component/plugins/Receiver.html
And bingo!
package "org.apache.log4j.plugins" does not exist in apache-log4j-extras 1.2.17
but package "org.apache.log4j.component.plugins" does !
So I updated JULReceiver.java from :
import org.apache.log4j.plugins.Plugin;
import org.apache.log4j.plugins.PluginSkeleton;
to:
import org.apache.log4j.component.plugins.Plugin;
import org.apache.log4j.component.plugins.PluginSkeleton;
and compilation is successfull
[INFO] --- maven-source-plugin:3.0.1:jar (default) # apache-jul-log4j-bridge ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.813 s
[INFO] Finished at: 2018-11-08T09:43:07+01:00
[INFO] ------------------------------------------------------------------------
but now tomcat 7.0.23 stops without saying nothing more than :
1/ I set the jar in the classpath:
D:\appli\tomcat\instances\desktop11\lib\apache-jul-log4j-bridge-1.0.0-SNAPSHOT.jar;
2/ I configured all applications using JUL in JVM to use the "apache-jul-log4j-bridge"
JVM parameters:
-Djava.util.logging.manager=org.apache.logging.julbridge.JULBridgeLogManager
instead of the "classic":
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
JVM starts on : D:\opt\jdk1.7.0_80\jre\bin\server\jvm.dll
I guess tomcat (it uses JUL internally) does not supports this java.util.logging.manager ..
or maybe because of this error at compilation (not blocking) about which I seen infos on stackoverflow , but the fix given leads to another pb (I will seach more..)
[INFO] Compiling 9 source files to C:\Users\llv\Documents\#D\Part\maven\svn\jul-to-log4j-bridge\target\test-classes
[WARNING] /C:/Users/llv/Documents/#D/Part/maven/svn/jul-to-log4j-bridge/src/test/java/org/apache/logging/julbridge/MockAppender.java: C:\Users\llv\Documents\#D\Part\maven\svn\jul-to-log4j-bridge\src\test\java\org\apache\logging\julbridge\MockAppender.java uses unchecked or unsafe operations.
[WARNING] /C:/Users/llv/Documents/#D/Part/maven/svn/jul-to-log4j-bridge/src/test/java/org/apache/logging/julbridge/MockAppender.java: Recompile with -Xlint:unchecked for details.
But by the way can someone help me ?
thank you

Not able to create Maven project in eclipse neo

hi I have the eclipse neo and java1.8 in my system. I have added the drools 6.5 jar in the eclipse but I am not able to create the maven project.
Can some one let me know the complete process of creating the maven project or I forget some thing?
Make sure that the Maven Integration for Eclipse plugin is installed in your IDE (it should be installed by default in Eclipse Neon).
In order to verify that, navigate to Window->Preferences and make sure Maven is listed in the left preferences list.
In case maven is not installed, install it using the Eclipse Marketplace.
In case it is, just create a new Maven project by navigating to File->New->Other->Maven->Maven Project.
You coud also create project from command line
mvn archetype:generate
and then import it inside eclipse as an maven project
Example command output below
$ mvn archetype:generate
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [archetype:generate] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:generate]
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: http://cocoon.apache.org -> cocoon-22-archetype-block-plain (Creates an empty Cocoon block; useful if you want to add another block to a Cocoon application)
2: http://cocoon.apache.org -> cocoon-22-archetype-block (Creates a Cocoon block containing some small samples)
3: http://cocoon.apache.org -> cocoon-22-archetype-webapp (Creates a web application configured to host Cocoon blocks. Just add the block dependencies)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 1
Downloading: http://localhost:8081/nexus/content/groups/mac/org/apache/cocoon/cocoon-22-archetype-block-plain/1.0.0/cocoon-22-archetype-block-plain-1.0.0.jar
13K downloaded
Define value for groupId: : com.company
Define value for artifactId: : example
Define value for version: 1.0-SNAPSHOT: :
Define value for package: com.company: : com.company.example
Confirm properties configuration:
groupId: com.company
artifactId: example
version: 1.0-SNAPSHOT
package: com.company.example
Y: :
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating OldArchetype: cocoon-22-archetype-block-plain:1.0.0
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.company
[INFO] Parameter: packageName, Value: com.company.example
[INFO] Parameter: package, Value: com.company.example
[INFO] Parameter: artifactId, Value: example
[INFO] Parameter: basedir, Value: /private/tmp/archetype
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 20,column 6] : $Id is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/src/main/resources/META-INF/cocoon/spring/block-servlet-service.xml [line 20,column 6] : $Id is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/src/main/resources/META-INF/cocoon/spring/block-application-context.xml [line 18,column 6] : $Id is not a valid reference.
[INFO] OldArchetype created in dir: /private/tmp/archetype/example
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 20 seconds
[INFO] Finished at: Tue Sep 09 19:10:51 CEST 2008
[INFO] Final Memory: 8M/15M
[INFO] ------------------------------------------------------------------------

Analysing with SonarQube causes 0 files indexed and no reports (Maven Project)

I have some trouble using SonarQube on an extern server. I'm working with SonarQube just for a couple days now and when I analyze my Maven project local everything is working fine. We are using a Postgresql database.
But there are some problems when I try to analyze a project on an extern SonarQube server.
The Environment:
I'm using SonarQube 4.4 and Maven 3.3. Please find my Maven settings.xml down below.
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sonar.jdbc.url>
jdbc:postgresql://databaseadress/sonarqube?useUnicode=true&characterEncoding=utf8
</sonar.jdbc.url>
<sonar.jdbc.username>username</sonar.jdbc.username>
<sonar.jdbc.password>password</sonar.jdbc.password>
<sonar.host.url>
http://hostAdress
</sonar.host.url>
</properties>
</profile>
I already added the correct database connection. I set up the SonarQoube server by myself and the sonar.propterties was changed correctly.The project is written in Java.
Running an analysis it connects to the database and it starts analysing.
The Problem:
If I analyze the project with mvn sonar:sonar I get the following message:
...
INFO: SonarQube Server 4.4
[INFO] [17:07:01.958] Load global settings
[INFO] [17:07:02.137] User cache: C:\Users\christian.braun.sonar\cache
[INFO] [17:07:02.142] Install plugins
[INFO] [17:07:02.159] Install JDBC driver
[INFO] [17:07:02.163] Create JDBC datasource for jdbc:postgresql://databaseadress/sonarqube?useUnicode=true&characterEncoding=utf8
[INFO] [17:07:02.229] Initializing Hibernate
[INFO] [17:07:04.077] Loading technical debt model...
[INFO] [17:07:04.089] Loading technical debt model done: 12 ms
[INFO] [17:07:04.090] Load project settings
[INFO] [17:07:04.170] Apply project exclusions
[INFO] [17:07:04.257] ------------- Scan TestMaven
[INFO] [17:07:04.259] Load module settings
[INFO] [17:07:04.394] Loading rules...
[INFO] [17:07:04.403] Loading rules done: 9 ms
[INFO] [17:07:04.415] Configure Maven plugins
[INFO] [17:07:04.444] Compare to previous analysis (2014-09-02)
[INFO] [17:07:04.445] Compare over 30 days (2014-08-03, analysis of 2014-09-02 15:58:02.965)
[INFO] [17:07:04.446] No quality gate is configured.
[INFO] [17:07:04.461] Base dir: E:\WORKSPACE_TEST\1
[INFO] [17:07:04.461] Working dir: E:\WORKSPACE_TEST\1\target\sonar
[INFO] [17:07:04.461] Source dirs: E:\WORKSPACE_TEST\1\src\main\java
[INFO] [17:07:04.461] Test dirs: E:\WORKSPACE_TEST\1\src\test\java
[INFO] [17:07:04.461] Binary dirs: E:\WORKSPACE_TEST\1\target\classes
[INFO] [17:07:04.461] Source encoding: windows-1252, default locale: de_DE
[INFO] [17:07:04.461] Index files
[INFO] [17:07:04.483] 0 files indexed
[INFO] [17:07:04.486] Sensor QProfileSensor...
[INFO] [17:07:04.495] Sensor QProfileSensor done: 9 ms
[INFO] [17:07:04.495] Sensor InitialOpenIssuesSensor...
[INFO] [17:07:04.503] Sensor InitialOpenIssuesSensor done: 8 ms
[INFO] [17:07:04.503] Sensor ProjectLinksSensor...
[INFO] [17:07:04.514] Sensor ProjectLinksSensor done: 11 ms
[INFO] [17:07:04.515] Sensor VersionEventsSensor...
[INFO] [17:07:04.523] Sensor VersionEventsSensor done: 8 ms
[INFO] [17:07:04.523] Sensor FileHashSensor...
[INFO] [17:07:04.524] Sensor FileHashSensor done: 1 ms
[INFO] [17:07:04.524] Sensor CpdSensor...
[INFO] [17:07:04.524] Sensor CpdSensor done: 0 ms
[INFO] [17:07:04.524] Sensor Maven dependencies...
[INFO] [17:07:04.554] Sensor Maven dependencies done: 30 ms
[INFO] [17:07:04.660] Execute decorators...
[INFO] [17:07:04.740] Store results in database
[INFO] [17:07:04.782] ANALYSIS SUCCESSFUL, you can browse http://hostAdress/dashboard/index/1:1
[INFO] [17:07:04.879] Executing post-job class org.sonar.plugins.core.issue.notification.SendIssueNotificationsPostJob
[INFO] [17:07:04.880] Executing post-job class org.sonar.plugins.core.batch.IndexProjectPostJob
[INFO] [17:07:04.897] Executing post-job class org.sonar.plugins.dbcleaner.ProjectPurgePostJob
[INFO] [17:07:04.904] -> Keep one snapshot per day between 2014-08-05 and 2014-09-01
[INFO] [17:07:04.905] -> Keep one snapshot per week between 2013-09-03 and 2014-08-05
[INFO] [17:07:04.905] -> Keep one snapshot per month between 2009-09-08 and 2013-09-03
[INFO] [17:07:04.905] -> Delete data prior to: 2009-09-08
[INFO] [17:07:04.908] -> Clean TestMaven [id=5]
[INFO] [17:07:04.911] <- Clean snapshot 9
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.234 s
[INFO] Finished at: 2014-09-02T17:07:04+02:00
[INFO] Final Memory: 14M/76M
[INFO] ------------------------------------------------------------------------
Looks good at first sight but Sonar doesn't find any files. 0 files indexed
When I take a look at SonarQube I discover the project folder but there are no reports.
Question:
What could be the problem that Sonar doesn't index any files?
I read that this problem could go with the missing sonar-runner, but the SonarQube Documentation says that there is no need of the Sonar-Runner while using the Maven-Plugin.
Just to make this clear, the project is not on the same mashine as sonarqube. Does this matter for indexing files?
Please consider that I'm a complete newbie to SonarQube
Best regards
Christian
So i fixed the problem. SonarQube was just missing the needed plugins. I didn't had to do that using SonarQube on my localhost. After installing them through settings->Update Center everything worked fine. As I said this was a greenhorn mistake.

Integrating Wicket and Enunciate

I am now learning how to integrate wicket and enunciate by following this article http://docs.codehaus.org/display/ENUNCIATE/A+Rich+Web+service+API+for+Wicket. But the results is different from that site. The api folder was succesfully generated but when I pointed to the API in xml or json or rest or soap, I can't access them.
Here are info I got when I tried to "mvn:jetty-run" in cmd :
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Wicket Examples 1.5.7
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> jetty-maven-plugin:7.4.2.v20110526:run (default-cli) # wicket-example
s >>>
[WARNING] Could not transfer metadata org.jvnet.staxex:stax-ex/maven-metadata.xm
l from/to java.net.1 (http://download.java.net/maven/1): No connector available
to access repository java.net.1 (http://download.java.net/maven/1) of type legac
y using the available factories WagonRepositoryConnectorFactory
[INFO]
[INFO] --- maven-enunciate-spring-plugin:1.18:assemble (default) # wicket-exampl
es ---
[INFO] C:\Users\AGI\Downloads\apache-wicket-1.5.7\src\wicket-examples\enunciate.
xml exists, so it will be used.
[INFO] initializing enunciate.
[INFO] invoking enunciate:generate step...
[INFO] [c] Skipping C code generation because everything appears up-to-date.
[INFO] [csharp] Skipping C# code generation because everything appears up-to-dat
e.
[INFO] [jaxws-ri] Skipping generation of JAX-WS RI support as everything appears
up-to-date....
[INFO] [jaxws-support] Skipping JAX-WS support generation as everything appears
up-to-date...
[INFO] [jersey] Skipping generation of JAX-RS support files because everything a
ppears up-to-date.
[INFO] [obj-c] Skipping C code generation because everything appears up-to-date.
[INFO] [ruby] Skipping Ruby code generation because everything appears up-to-dat
e.
[INFO] [xml] Skipping generation of XML files since everything appears up-to-dat
e...
[INFO] [jaxws-client] Skipping generation of JAX-WS Client sources as everything
appears up-to-date...
[INFO] [docs] Skipping documentation source generation as everything appears up-
to-date...
[INFO] [spring-app] Skipping generation of spring config files as everything app
ears up-to-date...
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
[INFO] invoking enunciate:compile step...
[INFO] [jaxws-client] Skipping compilation of JAX-WS client classes as everythin
g appears up-to-date...
[INFO] invoking enunciate:build step...
[INFO] [jaxws-client] Skipping creation of JAX-WS client jar as everything appea
rs up-to-date...
[INFO] [jaxws-client] Skipping creation of the JAX-WS client source jar as every
thing appears up-to-date...
[INFO] [basic-app] Skipping the build of the expanded war as everything appears
up-to-date...
[INFO] invoking enunciate:package step...
[INFO] closing enunciate.
[INFO]
[INFO] --- maven-remote-resources-plugin:1.2:process (default) # wicket-examples
---
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[WARNING] Failure to transfer org.jvnet.staxex:stax-ex/maven-metadata.xml from h
ttp://download.java.net/maven/1 was cached in the local repository, resolution w
ill not be reattempted until the update interval of java.net.1 has elapsed or up
dates are forced. Original error: Could not transfer metadata org.jvnet.staxex:s
tax-ex/maven-metadata.xml from/to java.net.1 (http://download.java.net/maven/1):
No connector available to access repository java.net.1 (http://download.java.ne
t/maven/1) of type legacy using the available factories WagonRepositoryConnector
Factory
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) # wicket-e
xamples ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 661 resources
[INFO] Copying 12 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:compile (default-compile) # wicket-examples
---
[INFO] Compiling 5 source files to C:\Users\AGI\Downloads\apache-wicket-1.5.7\sr
c\wicket-examples\target\classes
[INFO]
[INFO] --- maven-bundle-plugin:2.2.0:manifest (bundle-manifest) # wicket-example
s ---
[WARNING] Ignoring project type war - supportedProjectTypes = [jar, bundle]
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) #
wicket-examples ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) # wicket-
examples ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< jetty-maven-plugin:7.4.2.v20110526:run (default-cli) # wicket-example
s <<<
[INFO]
[INFO] --- jetty-maven-plugin:7.4.2.v20110526:run (default-cli) # wicket-example
s ---
[INFO] Configuring Jetty for project: Wicket Examples
[INFO] Webapp source directory = C:\Users\AGI\Downloads\apache-wicket-1.5.7\src\
wicket-examples\src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = C:\Users\AGI\Downloads\apache-wicket-1.5.7\src\wicket-examples\
target\classes
[INFO] Context path = /
[INFO] Tmp directory = C:\Users\AGI\Downloads\apache-wicket-1.5.7\src\wicket-exa
mples\target\tmp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides = none
[INFO] web.xml file = file:/C:/Users/AGI/Downloads/apache-wicket-1.5.7/src/wicke
t-examples/src/main/webapp/WEB-INF/web.xml
[INFO] Webapp directory = C:\Users\AGI\Downloads\apache-wicket-1.5.7\src\wicket-
examples\src\main\webapp
[INFO] Starting jetty 7.4.2.v20110526 ...
2012-06-18 14:50:04.567:INFO::jetty-7.4.2.v20110526
2012-06-18 14:50:08.422:INFO::No Transaction manager found - if your webapp requ
ires one, please configure one.
2012-06-18 14:50:08.664:INFO:/:Initializing Spring root WebApplicationContext
INFO - ContextLoader - Root WebApplicationContext: initialization
started
INFO - XmlWebApplicationContext - Refreshing Root WebApplicationContext: star
tup date [Mon Jun 18 14:50:08 GMT+07:00 2012]; root of context hierarchy
INFO - XmlBeanDefinitionReader - Loading XML bean definitions from class pat
h resource [applicationContext.xml]
INFO - DefaultListableBeanFactory - Pre-instantiating singletons in org.springf
ramework.beans.factory.support.DefaultListableBeanFactory#141622d: defining bean
s [contactDao,wicketApplication]; root of factory hierarchy
INFO - ContextLoader - Root WebApplicationContext: initialization
completed in 396 ms
2012-06-18 14:50:09.064:INFO::started o.m.j.p.JettyWebAppContext{/,file:/C:/User
s/AGI/Downloads/apache-wicket-1.5.7/src/wicket-examples/src/main/webapp/},file:/
C:/Users/AGI/Downloads/apache-wicket-1.5.7/src/wicket-examples/src/main/webapp/
2012-06-18 14:50:13.260:INFO::Started SelectChannelConnector#0.0.0.0:8080 STARTI
NG
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 60 seconds.
I think, there is something wrong with the enunciate I am trying to, but I don't know where I should check because if I think I have done what the codehaus tell me to do. Would you guide me to the right track ?
For your attention I say thanks.
try using enunciate 1.28.
I tried for my project with older version of the library without success and succeeded with the latest version.

Categories