Question

I checked out current SVN Snapshot of DWR (3.0.0-rc3-SNAPSHOT) and I am unable to mvn install it - the pom.xml seem to be configured not for such command. What is the correct way of installing DWR into maven repo?

I also tried copying files from https://oss.sonatype.org/content/repositories/snapshots/org/directwebremoting/dwr/3.0.0-rc3-SNAPSHOT/ and mvn installing them as well. This way obviously does not work either. How can it be installed from here? I don't want to link to the snapshot directory directory from my pom.xml as I don't want to get unexpected results when new snapshot is introduced.

Was it helpful?

Solution

I'm not sure if I get you correctly, but you can always download the JAR and install it locally using Maven. Something like this:

mvn install:install-file -Dfile=dwr-3.0.0-rc3-20130514.180049-1.jar -DgroupId=org.directwebremoting -DartifactId=dwr -Dversion=3.0.0-rc3-SNAPSHOT -Dpackaging=jar

more on the Maven info here:
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

EDIT:
I managed to install it from source as well by do SVN checkout:

svn co https://svn.directwebremoting.org/dwr/trunk/

My first attempt to build it failed because I was using Maven 2.x. Seems like DWR is using Maven enforcer plugin to enforce certain Maven version. I didn't check which version is really required but by updating my Maven to Maven3 I managed to install it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top