Here are all the steps I had to take to build completely with a fresh .m2.
It wasn't this hard a few weeks ago; I think some of the upstream
repositories have been changing.
(using maven 2.0.11)
1)
Problem: jms.jar (version 1.1) missing from maven upstream.
Cause: Maven central is missing the JMS jar from the current POM group and
artifact id. I'm not sure if this is related to current cleanup efforts by
central, (
http://www.sonatype.com/people/2010/03/why-external-repos-are-being-phase...)
but it could be.
Solution: Open up drools/trunk/pom.xml and add '
https://repository.jboss.org/maven2' repository (non nexus version).
Comments: jboss is switching to nexus repos, i'd advocate moving the
jms.jar to the nexus url to prevent a one off repo add.
2)
Problem: missing errai-common and errai-bus jars (version 1.1-M1) from
repo.
Cause: errai has not posted 1.1-M1 to maven artifact server.
Solution: check out errai source, build from tag, install into .m2.
3)
Problem: errai won't build due to missing grizzly jars.
Cause: missing repo definition in errai pom files.
Solution: Open up tags/errai-1.1-M1/pom.xml and add repo '
http://download.java.net/maven/2/';.
4)
Problem: guice jar not found during errai build.
Cause: google code repo missing from errai pom.xml
Solution: open up tags/errai-1.1-M1/pom.xml and add repo '
http://guice-maven.googlecode.com/svn/trunk/';.
With these changes, trunk will build from a clean .m2. (just confirmed).
-- Randy
On Mon, May 17, 2010 at 3:08 PM, Mauricio Salatino <salaboy(a)gmail.com>wrote:
No I think, it doesn't clean the m2 repo.
Here I'm also having problems with guice.
On Sat, May 15, 2010 at 11:11 AM, Randy Secrist <randy.secrist(a)gmail.com>wrote:
> And yet, hudson shows it is passing. Anyone know if hudson cleans the .m2
> each time it builds?
>
> anyway ..
>
> Drools GWT Console won't build w/o 1.1-M1 of errai-common and errai bus.
> 1.1-M1 is not yet in any of the repos.
>
> -- Randy
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Drools :: GWT Console
> [INFO] task-segment: [clean, install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting directory
>
/Users/randy/Documents/dev/views/drools/trunk/drools-process/drools-gwt-console/target
> [INFO] [resources:resources]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 2 resources
>
> Missing:
> ----------
> 1) org.jboss.errai:errai-common:jar:1.1-M1
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.jboss.errai
> -DartifactId=errai-common -Dversion=1.1-M1 -Dpackaging=jar
> -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the file
> there:
> mvn deploy:deploy-file -DgroupId=org.jboss.errai
> -DartifactId=errai-common -Dversion=1.1-M1 -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) org.drools:drools-gwt-console:jar:5.1.0.SNAPSHOT
> 2) org.jboss.bpm:gwt-console-server-integration:jar:2.1-SNAPSHOT
> 3) org.jboss.bpm:gwt-console-rpc:jar:2.1-SNAPSHOT
> 4) org.jboss.errai:errai-common:jar:1.1-M1
>
> 2) org.jboss.errai:errai-bus:jar:1.1-M1
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.jboss.errai
> -DartifactId=errai-bus -Dversion=1.1-M1 -Dpackaging=jar -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the file
> there:
> mvn deploy:deploy-file -DgroupId=org.jboss.errai
> -DartifactId=errai-bus -Dversion=1.1-M1 -Dpackaging=jar -Dfile=/path/to/file
> -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) org.drools:drools-gwt-console:jar:5.1.0.SNAPSHOT
> 2) org.jboss.bpm:gwt-console-server-integration:jar:2.1-SNAPSHOT
> 3) org.jboss.bpm:gwt-console-rpc:jar:2.1-SNAPSHOT
> 4) org.jboss.errai:errai-bus:jar:1.1-M1
>
> ----------
> 2 required artifacts are missing.
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-dev
>
>
--
-
http://salaboy.wordpress.com
-
http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
_______________________________________________
rules-dev mailing list
rules-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev