where is " <groupId>org.glassfish.embedded</groupId>" repository here? - java

I want to use <groupId>org.glassfish.embedded</groupId> in my dependencies. What repository should I use?

I don't know what you want to use but the groupId org.glassfish.embedded looks pretty old.
I suggest to check the more recent maven coordinates that have been published with the release of GlassFish 3.0.1 and to use the Nexus repository for GlassFish:
<repository>
<id>java.net</id>
<name>GlassFish Maven Repository</name>
<url>http://maven.glassfish.org/content/groups/glassfish</url>
</repository>

Since version 3.1.2, glassfish artifacts are in Maven Central, so you don't need any special repository.
<dependency>
<groupId>org.glassfish.main.extras</groupId>
<artifactId>glassfish-embedded-all</artifactId>
<version>3.1.2</version>
</dependency>

http://download.java.net/maven/glassfish/org/glassfish/embedded/ ?
Add the respository to your pom.xml
<repository>
<id>glassfish.java.net</id>
<name>Glassfish repository</name>
<url>http://download.java.net/maven/glassfish</url>
<layout>legacy</layout>
</repository>
What artifact do you want though?

Maybe this will help: From What is the official Maven repository for Embedded GlassFish? : http://download.java.net/maven/glassfish/org/glassfish/extras/glassfish-embedded-all/3.1.1/

Related

Maven plugin for running JWebAssembly

I can see that JWebAssembly can be built with gradle
https://github.com/i-net-software/JWebAssembly/wiki/Build-with-Gradle
but they also provide examples for adding maven dependencies, so I would expect that there is a maven plugin as well. I can't find it anywhere. How to run JWebAssembly with maven?
This is from the same github wiki(https://github.com/i-net-software/JWebAssembly/wiki/Getting-Started#add-dependency-to-api):
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.i-net-software</groupId>
<artifactId>jwebassembly-api</artifactId>
<version>master-SNAPSHOT</version>
</dependency>

Jongo Maven Dependency causing problems

I am currently trying to use the Jongo project to connect to a remote MongoDB.
To do so, I added these dependencies to my project :
<dependencies>
<dependency>
<groupId>org.jongo</groupId>
<artifactId>jongo</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
<version>2.6.5</version>
</dependency>
</dependencies>
I already had some troubles with the first dependency (jongo:1.0), since maven could not retreive this version (the latest maven knew was 0.4) : Intellij tells me Dependency "org.jongo:jongo:1.0" not found. Yet, the dependency can be found there
I managed to get it via Project Structure -> Librairies
The problem is that this dependency is now local, and anyone who clones this project must import this dependency manually, which is not suitable.
I am using Intellij IDEA 13.0
First, the Sonatype dependency version in the snapshots repository you had linked in your post is 1.1-SNAPSHOT and not 1.0.
It's not recommended to use 3rd party snapshots in your build
If however you insist, you need to add Sonatype snapshots repository to your maven build as follows:
<repository>
<id>sonatype-snapshots</id>
<name>sonatype-snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
EDIT
The 1.0 version resides in Sonatype releases repository:
<repository>
<id>sonatype-releases</id>
<name>sonatype-releases</name>
<url>https://oss.sonatype.org/content/repositories/releases/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
Jongo 1.0 is in maven central. There is no need for extra repository configuration in your pom.

wiquery-plugins integration with wicket 1.3.6 and maven repository

I am using wicket-1.3.6, can I use wiquery plugin in my application?
What is the maven repository for wiquery plugin?
Thanks and Regards.
Maven information:
<dependency>
<groupId>com.wiquery-plugins</groupId>
<artifactId>wiquery-plugins</artifactId>
<version>1.1</version>
</dependency>
<repositories>
<repository>
<id>wiquery plugin repository</id>
<name>wiQuery plugin repository</name>
<url>http://wiquery-plugins.googlecode.com/svn/m2repo/</url>
<layout>default</layout>
</repository>
</repositories>
I have no idea of the support for this in jquery/wicket.

Can't find the "org.eclipse.persistence" Maven dependency

I installed Eclipse Helios with the m2eclipse maven plugin.
I want to create an application using JPA. So, what I do is: New > Maven Project then I select the maven default archetype.
The problem is that I want to add the "org.eclipse.persistence" dependency that I can't find.
Where is it? Can we add it manually? Should I update a sort of "repository"?
Then, is it the right archetype that I'm using?
EclipseLink is not available in Maven central repository, you need to add its repository manually. For example, to use the "full" version of EclipseLink 2.0 (you didn't mention the artifact you're looking for):
<dependencies>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>eclipselink</artifactId>
<version>2.0.0</version>
<scope>compile</scope>
...
</dependency>
<dependencies>
...
<repositories>
<repository>
<id>EclipseLink Repo</id>
<url>http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/rt/eclipselink/maven.repo</url>
</repository>
...
</repositories>
This is documented in the EclipseLink/Maven page.
Regarding the archetype you're using, it's impossible to answer without more details on the kind of project you want to create. And anyway, you can always modify the POM after the facts.
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>javax.persistence</artifactId>
<version>2.0.0</version>
<scope>compile</scope>
</dependency>
...
<repositories>
<repository>
<url>http://repo.maven.apache.org/maven2</url>
</repository>
</repositories>
You can check below link. I found eclipse JARs on this link.
However, no idea about how to add it on Nexus.
http://dev.nightlabs.org/maven-repository/repo/

Is there a public Maven repository that contains spring-core 3 yet?

Is there a public Maven repository that contains spring-core 3 yet?
I can find 2.5.4 all day long but not 3. If there answer is yes, please include the location in the answer.
You can get the milestones and release candidates from Spring's Maven repository. The repository is difficult to browse, but the files are there, e.g. the spring-core 3.0.0.RC1 pom
Here is an example repository declaration and dependency:
<repositories>
<repository>
<id>springsource maven repo</id>
<url>http://maven.springframework.org/milestone</url>
</repository>
</repositories>
...
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.0.0.RC1</version>
</dependency>
</dependencies>
Since the question was asked, the Spring Enterprise Bundle Repository has been put online and is easier to browse.
Browse by Library, and then by Spring Framework, and you'll find what you're looking for.
<repository>
<id>com.springsource.repository.bundles.release</id>
<name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
<url>http://repository.springsource.com/maven/bundles/release</url>
</repository>
...
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.core</artifactId>
<version>3.0.2.RELEASE</version>
</dependency>

Categories