This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Required mavenarchiver update site --> | |
<associateSites> | |
<associateSite label="m2e extras" url="https://repository.sonatype.org/content/repositories/forge-sites/m2e-extras/0.14.0/N/0.14.0.201107060316/"/> | |
</associateSites> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.maven.ide.eclipse.wtp.jpt; | |
import java.io.File; | |
import org.apache.maven.model.Resource; | |
import org.eclipse.core.resources.IContainer; | |
import org.eclipse.core.resources.IFile; | |
import org.eclipse.core.resources.IFolder; | |
import org.eclipse.core.resources.IProject; | |
import org.eclipse.core.resources.IWorkspaceRoot; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running the Application in JBoss Developer Studio or Eclipse with JBoss Tools | |
============================================================================= | |
We assume you already have the project in your workspace because it was created from | |
the Maven archetype within your IDE. | |
To run the project and try it out, you will need to perform a maven compilation before the first time you deploy, | |
as some resources and classes can not be generated via the GWT/Eclipse compilers alone : | |
1. Right-click on the project the project node in the Package Explorer and select Run As > Maven Build... | |
2. Set goals = package and click Run. GWT compilation might take a few minutes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Moving m2e-wtp project to Eclipse | |
Over the last 2+ years we have done a lot of work at helping improving Maven Integration for Eclipse (m2e) in areas of performance, features and extensions. | |
One of those extensions, if not the most important one, is maintaining and developing Maven Integration for Web Tools Platform also called m2e-wtp. | |
Today (or rather last night) our proposal for making this an Eclipse.org project [got posted](http://www.eclipse.org/proposals/technology.m2e.m2e-wtp/). | |
#What is m2e-wtp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.jboss.tools.stacks; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.Properties; | |
import org.jboss.jdf.stacks.model.Archetype; | |
import org.jboss.jdf.stacks.model.ArchetypeVersion; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void configureClasspath(IMavenProjectFacade facade, | |
IClasspathDescriptor classpath, IProgressMonitor monitor) | |
throws CoreException { | |
IProject project = facade.getProject(); | |
Set<IRuntime> runtimes = getTargetedJBossRuntimes(project); | |
if (runtimes == null || runtimes.isEmpty()) { | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def basedir = project.basedir.canonicalPath.replace("\\", "/") | |
def version = "4.0.0" | |
def examplesBaseUrl = System.getProperty('examples.base.url')?:"http://download.jboss.org/jbosstools/examples/${version}"; | |
if (examplesBaseUrl.endsWith("/")) { | |
examplesBaseUrl = examplesBaseUrl.substring(0, examplesBaseUrl.length() -1); | |
} | |
def zipDir = new File(project.build.directory,"zips") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2011 JBoss, by Red Hat, Inc | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tried : | |
IMavenExecutionContext context = MavenPlugin.getMaven().createExecutionContext(); | |
version = context.execute(new ICallable<String>() { | |
public String call(IMavenExecutionContext context, IProgressMonitor monitor) throws CoreException { | |
return MavenPlugin.getMaven().resolvePluginVersion(groupId, artifactId, context.getSession()); | |
} | |
}, new NullProgressMonitor()); | |
and got |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************************************* | |
* Copyright (c) 2013 Red Hat, Inc. and others. | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
* | |
* Contributors: | |
* JBoss by Red Hat - Initial implementation. | |
************************************************************************************/ |
OlderNewer