Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Warning messages when starting tests

I think I see the issue now. I am building the p2 repository and the product in the same eclipse project. I guess I'll need separete eclipse projects for them.

Thanks!

On Fri, Nov 14, 2014 at 2:47 PM, Jeff MAURY <jeffmaury@xxxxxxxxxxxxx> wrote:
I think the error is not the one related to Log4J but about conflicting plugins. Looks like your using a target file using a local P2 repo

Jeff

On Fri, Nov 14, 2014 at 6:07 PM, Andreas Sewe <andreas.sewe@xxxxxxxxxxxxxx> wrote:
Hi Lutz,

> When running tycho-surefire tests as part of my product build I get
> warning messages like the one shown below and I'd like to fix whatever
> is wrong to get rid of the warning. I have little experience with maven
> so I don't know what causes the warnings. Any hints how to fix this?
>
> Thanks!
>
> [INFO] Command line:
> [/usr/lib/jvm/java-7-openjdk-i386/jre/bin/java, -Dosgi.noShutdown=false,
> -Dosgi.os=linux <http://Dosgi.os=linux>, -Dosgi.ws=gtk
> <http://Dosgi.ws=gtk>, -Dosgi.arch=x86, -Dosgi.clean=true, -jar,
> /home/jenkins/Osate2-nightly/workspace/.repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.3.0.v20140415-2008/org.eclipse.equinox.launcher-1.3.0.v20140415-2008.jar,
> -data,
> /home/jenkins/Osate2-nightly/workspace/osate2-core/org.osate.core.tests/target/work/data,
> -install,
> /home/jenkins/Osate2-nightly/workspace/osate2-core/org.osate.core.tests/target/work,
> -configuration,
> /home/jenkins/Osate2-nightly/workspace/osate2-core/org.osate.core.tests/target/work/configuration,
> -application, org.eclipse.tycho.surefire.osgibooter.headlesstest,
> -testproperties,
> /home/jenkins/Osate2-nightly/workspace/osate2-core/org.osate.core.tests/target/surefire.properties]
>
> log4j:WARN No appenders could be found for logger
> (org.eclipse.xtext.ui.internal.Activator
> <http://org.eclipse.xtext.ui.internal.Activator>).
> log4j:WARN Please initialize the log4j system properly.

This warning has nothing to do with Tycho or Maven. Instead, it is
caused by the org.eclipse.xtext.ui.internal.Activator causing Log4J to
be initialized which in turn complains that you didn't set up your
logging configuration.

Now, a quick Internet search indicates yields [1], which indicates that
you could get rid of this message by explicitly requesting the
org.eclipse.xtext.logging fragment to be part of the surefire run. Have
a look at [2] for information on how to add extra
features/bundles/fragments to the runtime during test execution.

Hope this helps.

Andreas

[1]
<http://stackoverflow.com/questions/8229613/how-do-i-pass-a-log4j-configuration-to-the-eclipse-ide-itself>
[2]
<http://wiki.eclipse.org/Tycho/FAQ#How_to_add_a_undeclared_dependency.3F_.28e.g..2C_OSGi_declarative_service.29>

--
Codetrails GmbH
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Phone: +49-6151-276-7092
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



--
Lutz Wrage, 6215 Hampton St, Pittsburgh, PA 15206 - (412)661-3033

Back to the top