Greetings
I´m kind of a newbie to geoserver.
I´m trying to do some experiments by adding a new JAR library to be used in a new module that I created.
For that in my local maven repository I added a new folder inside the folder org/geoserver with the name of the library. inside that i created a folder named 1.0
containing the JAR file and a pom file containing:
4.0.0
org.geoserver
scapetoad
1.0
In pom.xlm of the new module that is supposed to use the library located in the local repository I added the dependency:
org.geoserver
scapetoad
1.0
test
when I run the command mvn eclipse:eclipse everything works fine, I can import the project to eclipse and import and use the classes from the library and the eclipse recognize them. But when I try to compile the module in the console with the mvn install it doesn’t recognize the classes inside the library and it doesn´t compile…
I might be doing something wrong but I don´t know what…
Can you give me some help?
Emanuel Rita
(P.S. I´m sorry for my english. English is not my natural language
)
On 11/05/2009 10:49 AM, Emanuel Rita wrote:
I´m building my module with Maven.
Yes the test block was wrong. I solved the problem by adding the JAR file manually with the command mvn:mvn-install-file
Thanks for your help 
2009/11/5 David Winslow <dwinslow@anonymised.com>
On 11/05/2009 05:35 AM, Emanuel Rita wrote:
Greetings
I´m kind of a newbie to geoserver.
I´m trying to do some experiments by adding a new JAR library to be used in a new module that I created.
For that in my local maven repository I added a new folder inside the folder org/geoserver with the name of the library. inside that i created a folder named 1.0
containing the JAR file and a pom file containing:
4.0.0
org.geoserver
scapetoad
1.0
In pom.xlm of the new module that is supposed to use the library located in the local repository I added the dependency:
org.geoserver
scapetoad
1.0
test
when I run the command mvn eclipse:eclipse everything works fine, I can import the project to eclipse and import and use the classes from the library and the eclipse recognize them. But when I try to compile the module in the console with the mvn install it doesn’t recognize the classes inside the library and it doesn´t compile…
I might be doing something wrong but I don´t know what…
Can you give me some help?
Emanuel Rita
(P.S. I´m sorry for my english. English is not my natural language
)
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. [http://p.sf.net/sfu/bobj-july](http://p.sf.net/sfu/bobj-july)
_______________________________________________
Geoserver-devel mailing list
[Geoserver-devel@lists.sourceforge.net](mailto:Geoserver-devel@lists.sourceforge.net)
[https://lists.sourceforge.net/lists/listinfo/geoserver-devel](https://lists.sourceforge.net/lists/listinfo/geoserver-devel)
I imagine the problem is that test block. This tells maven to only include your library when compiling the tests in src/test/, and not to treat them as runtime or compilation-time dependencies of the rest of the project. But, I may have misunderstood your message.
Are you building your extension with Maven, or using something else?
–
David Winslow
OpenGeo - http://opengeo.org/
Oops, replied off-list. Reposting for the search engines.