Open GoogleCodeExporter opened 8 years ago
I can confim this.
To fix this I added the new drools maven url to pom.xml and specified a
different drools version. In my case: 5.1.1
You can use the file attached. After replacement run "mvn clean package" and
"mvn eclipse:clean eclipse:eclipse".
Original comment by daniel.w...@gmail.com
on 23 Mar 2011 at 5:31
Attachments:
I was able to get a little farther with the above modifications to the pom.xml,
but I am now getting the following error:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\chap6\MultipleRulesExample.java:[16,33] package org.apache.commo
ns.logging does not exist
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\chap6\MultipleRulesExample.java:[17,33] package org.apache.commo
ns.logging does not exist
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\chap6\MultipleRulesExample.java:[30,16] cannot find symbol
symbol : class Log
location: class net.firstpartners.chap6.MultipleRulesExample
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\chap7\FitRulesExample.java:[13,33] package org.apache.commons.lo
gging does not exist
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\chap7\FitRulesExample.java:[14,33] package org.apache.commons.lo
gging does not exist
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\chap7\FitRulesExample.java:[26,16] cannot find symbol
symbol : class Log
location: class net.firstpartners.chap7.FitRulesExample
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\fit\fixture\Clear.java:[4,33] package org.apache.commons.logging
does not exist
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\fit\fixture\Clear.java:[5,33] package org.apache.commons.logging
does not exist
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\fit\fixture\Clear.java:[18,9] cannot find symbol
symbol : class Log
location: class net.firstpartners.fit.fixture.Clear
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\drools\SimpleRuleRunner.java:[17,33] package org.apache.commons.
logging does not exist
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\drools\SimpleRuleRunner.java:[18,33] package org.apache.commons.
logging does not exist
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\drools\SimpleRuleRunner.java:[30,9] cannot find symbol
symbol : class Log
location: class net.firstpartners.drools.SimpleRuleRunner
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\chap6\MultipleRulesExample.java:[30,26] cannot find symbol
symbol : variable LogFactory
location: class net.firstpartners.chap6.MultipleRulesExample
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\chap7\FitRulesExample.java:[26,26] cannot find symbol
symbol : variable LogFactory
location: class net.firstpartners.chap7.FitRulesExample
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\fit\fixture\Clear.java:[18,19] cannot find symbol
symbol : variable LogFactory
location: class net.firstpartners.fit.fixture.Clear
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\drools\SimpleRuleRunner.java:[30,19] cannot find symbol
symbol : variable LogFactory
location: class net.firstpartners.drools.SimpleRuleRunner
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\drools\SimpleRuleRunner.java:[82,39] cannot find symbol
symbol : variable LogFactory
location: class net.firstpartners.drools.SimpleRuleRunner
[INFO] 17 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:37.368s
[INFO] Finished at: Mon Jun 13 08:52:21 EDT 2011
[INFO] Final Memory: 8M/22M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
3.2:compile (default-compile) on project chapter6: Compilation failure: Compilat
ion failure:
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\chap6\MultipleRulesExample.java:[16,33] package org.apache.commo
ns.logging does not exist
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\chap6\MultipleRulesExample.java:[17,33] package org.apache.commo
ns.logging does not exist
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\chap6\MultipleRulesExample.java:[30,16] cannot find symbol
[ERROR] symbol : class Log
[ERROR] location: class net.firstpartners.chap6.MultipleRulesExample
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\chap7\FitRulesExample.java:[13,33] package org.apache.commons.lo
gging does not exist
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\chap7\FitRulesExample.java:[14,33] package org.apache.commons.lo
gging does not exist
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\chap7\FitRulesExample.java:[26,16] cannot find symbol
[ERROR] symbol : class Log
[ERROR] location: class net.firstpartners.chap7.FitRulesExample
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\fit\fixture\Clear.java:[4,33] package org.apache.commons.logging
does not exist
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\fit\fixture\Clear.java:[5,33] package org.apache.commons.logging
does not exist
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\fit\fixture\Clear.java:[18,9] cannot find symbol
[ERROR] symbol : class Log
[ERROR] location: class net.firstpartners.fit.fixture.Clear
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\drools\SimpleRuleRunner.java:[17,33] package org.apache.commons.
logging does not exist
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\drools\SimpleRuleRunner.java:[18,33] package org.apache.commons.
logging does not exist
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\drools\SimpleRuleRunner.java:[30,9] cannot find symbol
[ERROR] symbol : class Log
[ERROR] location: class net.firstpartners.drools.SimpleRuleRunner
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\chap6\MultipleRulesExample.java:[30,26] cannot find symbol
[ERROR] symbol : variable LogFactory
[ERROR] location: class net.firstpartners.chap6.MultipleRulesExample
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\chap7\FitRulesExample.java:[26,26] cannot find symbol
[ERROR] symbol : variable LogFactory
[ERROR] location: class net.firstpartners.chap7.FitRulesExample
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\fit\fixture\Clear.java:[18,19] cannot find symbol
[ERROR] symbol : variable LogFactory
[ERROR] location: class net.firstpartners.fit.fixture.Clear
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\drools\SimpleRuleRunner.java:[30,19] cannot find symbol
[ERROR] symbol : variable LogFactory
[ERROR] location: class net.firstpartners.drools.SimpleRuleRunner
[ERROR] \Users\bemerick\Desktop\Drools\drools_book\chap6-sample\src\main\java\ne
t\firstpartners\drools\SimpleRuleRunner.java:[82,39] cannot find symbol
[ERROR] symbol : variable LogFactory
[ERROR] location: class net.firstpartners.drools.SimpleRuleRunner
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
Original comment by bob.emer...@gmail.com
on 13 Jun 2011 at 1:10
I had luck changing the jboss repo to
<repository>
<id>WSO2</id>
<url>http://dist.wso2.org/maven2/</url>
</repository>
Original comment by pstam...@gmail.com
on 2 May 2012 at 10:05
I had the same problem. "Fixed" by tweaking the POM (see attached):
- change the jboss repo (per comment 3)
- fix versions of dependencies
- add versions for plugins (e.g. compiler, jar)
No idea how robust a solution this is (probably not very) however it does seem
to work for me (mvn 3.0.4, osx 10.7.5)
Original comment by scott.fi...@gmail.com
on 24 Oct 2012 at 12:06
...and updated pom for chapter 8 example. Same warning as previous: no
guarantees of robustness.
Original comment by scott.fi...@gmail.com
on 24 Oct 2012 at 12:47
Attachments:
Great, thanks! Paul
Original comment by pa...@firstpartners.net
on 24 Oct 2012 at 9:13
[deleted comment]
this is fixed pom.xml for samples chapter6
Original comment by micangel...@gmail.com
on 30 Jul 2013 at 2:33
Attachments:
Original issue reported on code.google.com by
jrussell...@gmail.com
on 28 Jan 2011 at 1:55