Skip to content
Advertisement

Tag: maven-2

How to download SNAPSHOT version from maven SNAPSHOT repository?

So I have a project and I do regular releases to maven without a problem. I now want to make available a SNAPSHOT version of this project. So I do ‘mvn clean deploy’. Everything works as you can see below: [INFO] Retrieving previous build number from sonatype-nexus-snapshots Uploading: https://oss.sonatype.org/content/repositories/snapshots/me/soliveirajr/menta-regex/0.9.6-SNAPSHOT/menta-regex-0.9.6-20111010.153035-2.jar 5K uploaded (menta-regex-0.9.6-20111010.153035-2.jar) I go to my sonatype manager and I

How to upload sources to local Maven repository

Suppose I have a Maven 2 Java project on my local machine. I build the project .jar file and push it to my local Maven repo, using mvn install. Question: How can I force Maven to also push the project sources jar to the local repo? This is useful if I’ll use the above mentioned project as dependency while developing

HowTo Unit Test Client Server Code

I’m currently writing a Java Client Server Application. So i want to implement two Libraries, one for the Client and one for the Server. The Client Server Communication has a very strict protocol, that I wan’t to test with JUnit. As build tool im using Maven and a Husdon Server for continues Integration. Actually I do not have any good

Get Maven artifact version at runtime

I have noticed that in a Maven artifact’s JAR, the project.version attribute is included in two files: Is there a recommended way to read this version at runtime? Answer You should not need to access Maven-specific files to get the version information of any given library/class. You can simply use getClass().getPackage().getImplementationVersion() to get the version information that is stored in

Maven: compile aspectj project containing Java 1.6 source

Primary Question What I want to do is fairly easy. Or so you would think. However, nothing is working properly. Requirement: Using maven, compile Java 1.6 project using AspectJ compiler. Note: Our code cannot compile with javac. That is, it fails compilation if aspects are not woven in (because we have aspects that soften exceptions). Update 2/21/2011: There are two

Advertisement