Comments (16)
Reported by [email protected]
from jersey.
[email protected] said:
Created an attachment (id=1)
example jersey POM file that cleans and installs the jersey jars in the local maven repository
from jersey.
[email protected] said:
I'd like to assist with the jersey maven support if needed. I'd like to know
which approach you all would like to use for adding jersey to a maven repository.
1. Deploying to the legacy maven repo https://maven-repository.dev.java.net/
This would involve adding maven pom files for the JSR-311 and Jersey jar files
as well as the maven-repository-importer.jar. The ant build file would be
extended to deploy the artifacts to the maven repository.One catch is that the
documentation refers to CVS repositories, I dunno for sure if it would work with
SVN.
2. Same as above but use the maven plugin in the previously attached POM instead
of the ant task.
3. Deploy to the new https://maven2-repository.dev.java.net/ I think I can
easily extend the previously attached POM to deploy to the maven2-repo checkout
directory. It would still probably be beneficial to main the pom files in the
jersey source as the generated POM files do not include any dependencies.
from jersey.
[email protected] said:
When i try the attached [pom.xml], I get:
-cuthere-
Downloading:
http://snapshots.repository.codehaus.org//org/codehaus/mojo/properties-maven-plugin/1.0-SNAPSHOT/properties-maven-plugin-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: org.codehaus.mojo
ArtifactId: properties-maven-plugin
Version: 1.0-SNAPSHOT
Reason: Unable to download the artifact from any repository
org.codehaus.mojo:properties-maven-plugin:pom:1.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
Codehaus Snapshots (http://snapshots.repository.codehaus.org/)
-cuthere-
I am using Maven version: 2.0.6
Shall i be using maven v1 instead?
(http://snapshots.repository.codehaus.org//org/codehaus/mojo/properties-maven-plugin/1.0-SNAPSHOT/properties-maven-plugin-1.0-SNAPSHOT.pom
is not available via firefox anyway)
Is my understanding right, that using provided [pom.xml], maven
will automatically download any software needed and build up a local
maven repository for me?
Thanks for your help!
from jersey.
[email protected] said:
that is strange. I just checked out the jersey code from the trunk on a solaris
box, put the pom in trunk/jersey , and ran mvn clean install using maven 2.0.7
without a problem. Can you run mvn -U -cpu clean install and see if that helps?
From the URL it seems maven didn't read the manifest to get the latest version
of the plugin and blindly attempted to download the snapshot without the unique
version ID.
When the install goal is run the project invokes the install plugin and should
install the jsr-311 api as javax.ws.rs jsr311-api 0.2 and the jersey jar file as
net.dev.java.jersey jersey-0.3-SNAPSHOT-ea
from jersey.
[email protected] said:
One more thing, the use of the plugin is optional, I just wanted to pull the
jersey version info from the build.properties and use it for the installing the
jars in the local repository. If the POM can be maintained with the same version
info as the build.properties the use of the properties plugin is no longer
needed and everything can be built using the standard maven plugins.
The properties plugin is stored in the snapshots.codehaus.org repo and I added a
repository entry for it so the plugin should download correctly.
from jersey.
[email protected] said:
Created an attachment (id=2)
version without properties plugin
from jersey.
[email protected] said:
Created an attachment (id=3)
support for publishing jersey.jar and jsr311-api.jar to the java.net maven repository
from jersey.
[email protected] said:
Here is a patch containing the changes mentioned on the dev list. Here is how it
works:
1. When a new release is ready, the releaser runs
ant clean,push-to-maven-prepare
This will generate a local maven repository ready to be published.
2. For the first import, the releaser will run
svn import -m "deploying new jars to the java.net maven repository"
build\maven-repo file:///e:/temp/scmtest/repo/jersey/trunk/repo
This will import the maven repository under the jersey projects /trunk. After
this is done hopefully the maven_repository daemon will receive the source
update notification and publish the repo files to the maven repository web server.
3. After the intial repo import a second import will fail since the repo
directories and files already exist. Before running the import, run the svn
delete command to remove the old binaries.
svn delete -m "preparing for new jar deployment to maven"
https://jersey.dev.java.net/svn/jersey/trunk/repo
That should do it for publishing the Jersey artifacts to the java.net maven
repository. It would probably be a good idea if Kohsuke could review the svn
commands to make sure that svn is support by the daemon and the repo is checked
into the the proper directory.
I included the maven/pom.xml for developers who checkout the Jersey source and
want the latest version of the code installed in their local maven repository.
The developer would change directories to the maven directory and run
mvn install
Finally, all the Jersey core dependencies were already in the java.net
repository except for localizer.jar file. I haven't been able to locate a
java.net project that is associated with it. I was thinking that if the
localizer.jar file is exclusively used by Jersey then it could be added and
maintained with this project the same as the jersey.jar and jsr311-api.jar
artifacts are.
from jersey.
[email protected] said:
Fixed, thanks to Aaron Anderson.
from jersey.
File: jersey-maven.patch
Attached By: [email protected]
from jersey.
File: pom.xml
Attached By: [email protected]
from jersey.
File: pom.xml
Attached By: [email protected]
from jersey.
Was assigned to jersey-issues
from jersey.
This issue was imported from java.net JIRA JERSEY-5
from jersey.
Marked as fixed on Sunday, November 4th 2007, 6:10:34 pm
from jersey.
Related Issues (20)
- Partial update with PUT
- How can I forbidden http method 'OPTIONS' uniformity?
- Problem using wink libraries with JAX-RS 2.0 HOT 2
- java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.introspect.AnnotatedMember.getType()Lcom/fasterxml/jackson/databind/JavaType HOT 1
- Non-ISO8859-1 filenames creating garbled header in multipart request
- Handle com.fasterxml.jackson.databind.exc.InvalidFormatException inside a RequestContext HOT 2
- Jersey REST POST call throwing 404. HOT 2
- Spring RequestScope breaks SpringComponentProvider
- Features are initialized before the SpringComponentProvider
- Jersey creates multiple provider instances if a class implements more than one provider interface HOT 2
- does jersey 2.x Client API support DELETE with a body ? HOT 1
- Java 10 compiled class is breaking at the startup HOT 1
- Jersey threads stuck in `WAITING` HOT 4
- Cannot inject CDI bean into custom validator HOT 3
- Link in exception mapping example README is wrong
- Base64 encoding with non ASCII characters results in ArrayIndexOutOfBoundException
- Issue with SelectableEntityFiltering when the fields specified is . character
- SSE Events delimiter HOT 1
- Allow nested request body inside @BeanParam HOT 1
- Contribute Jersey to Eclipse Foundation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jersey.