Search in sources :

Example 1 with ProjectVersionRefSerializerModule

use of org.commonjava.maven.atlas.ident.jackson.ProjectVersionRefSerializerModule in project indy by Commonjava.

the class PomDownloadSimpleDepTest method init.

@Before
public void init() {
    mapper = new ObjectMapper();
    mapper.registerModules(new ProjectVersionRefSerializerModule(), new ProjectRelationshipSerializerModule());
}
Also used : ProjectRelationshipSerializerModule(org.commonjava.maven.atlas.graph.jackson.ProjectRelationshipSerializerModule) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) ProjectVersionRefSerializerModule(org.commonjava.maven.atlas.ident.jackson.ProjectVersionRefSerializerModule) Before(org.junit.Before)

Example 2 with ProjectVersionRefSerializerModule

use of org.commonjava.maven.atlas.ident.jackson.ProjectVersionRefSerializerModule in project indy by Commonjava.

the class PomDownloadDepFromParentTest method init.

@Before
public void init() {
    mapper = new ObjectMapper();
    mapper.registerModules(new ProjectVersionRefSerializerModule(), new ProjectRelationshipSerializerModule());
}
Also used : ProjectRelationshipSerializerModule(org.commonjava.maven.atlas.graph.jackson.ProjectRelationshipSerializerModule) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) ProjectVersionRefSerializerModule(org.commonjava.maven.atlas.ident.jackson.ProjectVersionRefSerializerModule) Before(org.junit.Before)

Example 3 with ProjectVersionRefSerializerModule

use of org.commonjava.maven.atlas.ident.jackson.ProjectVersionRefSerializerModule in project galley by Commonjava.

the class EmbeddableCDIProducer method postConstruct.

@PostConstruct
public void postConstruct() {
    fileEventManager = new NoOpFileEventManager();
    transferDecorator = new NoOpTransferDecorator();
    pathGenerator = new HashedLocationPathGenerator();
    nfc = new MemoryNotFoundCache();
    // locationExpander = new NoOpLocationExpander();
    // locationResolver = new SimpleUrlLocationResolver( locationExpander, transportManager );
    transportManagerConfig = new TransportManagerConfig();
    passwordManager = new MemoryPasswordManager();
    http = new HttpImpl(passwordManager);
    objectMapper = new ObjectMapper();
    objectMapper.registerModules(new ProjectVersionRefSerializerModule());
    pluginDefaults = new StandardMaven350PluginDefaults();
    pluginImplications = new StandardMavenPluginImplications(xml);
}
Also used : NoOpFileEventManager(org.commonjava.maven.galley.event.NoOpFileEventManager) NoOpTransferDecorator(org.commonjava.maven.galley.io.NoOpTransferDecorator) HashedLocationPathGenerator(org.commonjava.maven.galley.io.HashedLocationPathGenerator) TransportManagerConfig(org.commonjava.maven.galley.config.TransportManagerConfig) MemoryNotFoundCache(org.commonjava.maven.galley.nfc.MemoryNotFoundCache) MemoryPasswordManager(org.commonjava.maven.galley.auth.MemoryPasswordManager) StandardMavenPluginImplications(org.commonjava.maven.galley.maven.internal.defaults.StandardMavenPluginImplications) HttpImpl(org.commonjava.maven.galley.transport.htcli.HttpImpl) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) ProjectVersionRefSerializerModule(org.commonjava.maven.atlas.ident.jackson.ProjectVersionRefSerializerModule) StandardMaven350PluginDefaults(org.commonjava.maven.galley.maven.internal.defaults.StandardMaven350PluginDefaults) PostConstruct(javax.annotation.PostConstruct)

Aggregations

ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)3 ProjectVersionRefSerializerModule (org.commonjava.maven.atlas.ident.jackson.ProjectVersionRefSerializerModule)3 ProjectRelationshipSerializerModule (org.commonjava.maven.atlas.graph.jackson.ProjectRelationshipSerializerModule)2 Before (org.junit.Before)2 PostConstruct (javax.annotation.PostConstruct)1 MemoryPasswordManager (org.commonjava.maven.galley.auth.MemoryPasswordManager)1 TransportManagerConfig (org.commonjava.maven.galley.config.TransportManagerConfig)1 NoOpFileEventManager (org.commonjava.maven.galley.event.NoOpFileEventManager)1 HashedLocationPathGenerator (org.commonjava.maven.galley.io.HashedLocationPathGenerator)1 NoOpTransferDecorator (org.commonjava.maven.galley.io.NoOpTransferDecorator)1 StandardMaven350PluginDefaults (org.commonjava.maven.galley.maven.internal.defaults.StandardMaven350PluginDefaults)1 StandardMavenPluginImplications (org.commonjava.maven.galley.maven.internal.defaults.StandardMavenPluginImplications)1 MemoryNotFoundCache (org.commonjava.maven.galley.nfc.MemoryNotFoundCache)1 HttpImpl (org.commonjava.maven.galley.transport.htcli.HttpImpl)1